Month: March 2016

Just random stuff - Nothing to see here - Move along...

Adding SCSI Disks to VMWare Guest (CentOS 7.2)

After you apply the new disk(s) in VMWare, you need to re-scan the scsi bus. First, find your scsi_host: root@nfs1 ~# grep mpt /sys/class/scsi_host/host?/proc_name /sys/class/scsi_host/host2/proc_name:mptspi In this case, it’s “host2” Trigger a re-scan of the scsi bus for “host2“: # echo “- – -” > /sys/class/scsi_host/host2/scan The hyphens represent controller,channel,lun, so – – – indicates…
Read more

MariaDB 10.1 CentOS 7 Fails to Start Using New Disk or Data Location

If you changed your data location for mysql / mariadb, using a new disk and get an error like this after a start or restart: # systemctl start mariadb Job for mariadb.service failed because the control process exited with error code. See “systemctl status mariadb.service” and “journalctl -xe” for details. Here’s the extended status: #…
Read more

Setting up Goal Tracking for Contact Form 7

Google Analytics Goal tracking with Contact form 7 I’ve set this up for various clients in the past and I tend to see this asked frequently, so I’m making a note of it here. Step 1 – Login to Google Analytics Once your login to your GA account head over to your dashboard, select Goals…
Read more

Ramdisk Sync for Better Performance in I/O Intensive Environments

Setup Create a mountpoint for the disk : mkdir /mnt/ramdisk Secondly, add this line to /etc/fstab in to mount the drive at boot-time. tmpfs /mnt/ramdisk tmpfs defaults,size=2g,noexec,nosuid,uid=65534,gid=65534,mode=1755 0 0 Change the size option in the above line to easily accommodate the amount of the files you’ll have. Don’t worry, it doesn’t allocate all of that space…
Read more