On servers running certain forms of chroot, a file system loop is created (in /var/named/chroot), causing errors when attempting to bundle the volume. This occurs in particular when running BIND (named). To successfully bundle the volume, simply stop named: sudo service named stop ec2-bundle-vol {options}
Tag: aws
Time on AWS Linux AMI
The time on the Amazon Linux AMI is set, by default to UTC. To change this, symlink one of the timezone files from /usr/share/zoneinfo/ to /etc/localtime. The change takes effect immediately (and will also affect most logs, etc). For example: ln -sf /usr/share/zoneinfo/EST5EDT /etc/localtime To make the change persist through updates, it is necessary to… Continue reading Time on AWS Linux AMI
Virtualmin on AWS Linux AMI
I have been playing with the AWS Linux AMI for the past few days, and have been setting up a new server based on it. I decided to go with Webmin/Virtualmin on this server, but ran into a couple of problems along the way. The one I wish to mention at the moment, is that… Continue reading Virtualmin on AWS Linux AMI
Installing mcrypt (PHP) on AWS Linux AMI
Update: with the update of PHP to v5.3.3, the amzn repository now includes php-mcrypt, rendering the steps below unnecessary. At the moment, the amzn repository has v5.3.2 of PHP (while the latest version is v5.3.3) – it also does not offer php-mcrypt. While in previous servers I have included a wider selection of repositories, I… Continue reading Installing mcrypt (PHP) on AWS Linux AMI
Installing APC on AWS Linux AMI
Update: Current versions of Amazon’s Linux AMI include the package php-pecl-apc (v3.1.9 – the same as the latest from PECL) in the repository. Using a package manager is usually preferable to using PECL- it will help you keep up to date, is centrally managed, and minimizes unnecessary dependencies (especially build tools). APC can be installed… Continue reading Installing APC on AWS Linux AMI
Setting up a RAID on EC2
At home, I have my operating system drive setup in RAID 0 (striped). The advantage of this, of course, is that read and write speed is appreciably increased (my benchmarks show the array to be about 1.7x as fast as either drive on its own (mind you, I am using older drives, and they are not quite… Continue reading Setting up a RAID on EC2