est. 1998 - v.10

Linux add disk space using LVM ec2 AWS instances when launching an image with larger storage

fdisk /dev/xvda n (create new partition – use defaults) p (primary partition) 3 (partition number) w (write partition table to disk) reboot server mkfs.ext3 /dev/xvda3 (write file system to partition) pvcreate /dev/xvda3 (Initialize the partition for use as a physical volume in lvm and add it to VolGroup) vgextend VolGroup /dev/xvda3 lvextend -L +70G /dev/mapper/VolGroup-lv_root resize2fs /dev/mapper/VolGroup-lv_root

php55 Warning on startup

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/5.5/modules/’ – /usr/lib64/php/5.5/modules/ undefined symbol: php_sockets_le_socket in Unknown on line 0 Warnings like this are typically due to certain module load order dependencies and can be fixed by ensuring the dependant module loads after the required module. In this case I reordered the module loads by renaming /etc/php-5.5.d/libevent.ini to x-libevent.ini (sockets.ini would then load before it.)

DevOps Automation – Ansible+Semaphore is Indispensable!

UPDATE Semaphore 2.x is in current release and much of the information regarding the install process below is no longer relevant as the package has been significantly refactored. The developers have made it much easier to install: See the install directions here: I deviated a bit, but got it up and running in less than 5 minutes. Here’s how: As root: #cd /usr/bin #wget #mv semaphore_linux_amd64 semaphore #chmod a+x semaphore #semaphore.. Read More

Translate »