ec2-consistent-snapshot version 0.35 has been released on the Alestic PPA. This software is a wrapper around the EBS create-snapshot API call and can be used to help ensure that the file system and any MySQL database on the EBS volume are in a consistent state, suitable for restoring at a later time.
The most important change in this release is a fix for a defect that has been nagging many folks for months. In rare situations, the create-snapshot API call itself took longer than 10 seconds to return from the EC2 web service at Amazon. The software did not trap the alarm correctly and exited without unfreezing the XFS file system which forced us to add an awkward unfreeze command in all cron jobs.
Thanks to Mike Lawlor who tracked down and provided a patch for this bothersome bug.
Thanks also to Brian Smith, who provided a patch implementing an new --mysql-socket option that a few users had been wishing for.
And thanks to Kenny Gryp, who provided a patch to clean up an error message when both the --help and --xfs-filesystem options were specified.
To get the latest version of ec2-consistent-snapshot installed, then you should be able to upgrade from the Alestic PPA with:
sudo add-apt-repository ppa:alestic &&
sudo apt-get update &&
sudo apt-get install ec2-consistent-snapshot
New bugs in this software can be reported in launchpad at:



Follow Eric Hammond on Twitter
Hi Eric,
Thank you for your wonderful script.
Since I did the 0.35 upgrade, ec2-consistent-snapshot does not work anymore. We have the following error:
ec2-consistent-snapshot: ERROR: 501 Protocol scheme 'https' is not supported (Crypt::SSLeay or IO::Socket::SSL not installed)
It has been running fine for months on a unbuntu karmic box.
Bertrand
I don't know why that would suddenly change. Nothing to that effect was modified in this release. See if the following fixes the problem:
sudo apt-get install libcrypt-ssleay-perl
Had the same problem, sudo apt-get install libcrypt-ssleay-perl fixed it, thanks
masterkain: Thanks for confirming. To track this dependency, I've created bug https://bugs.launchpad.net/ec2-consistent-snapshot/+bug/658941
I am getting the same error that Bertrand got. I tried: sudo apt-get install libcrypt-ssleay-perl
but I failed with the following errors:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libcrypt-ssleay-perl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package libcrypt-ssleay-perl has no installation candidate
Any help is appreciated.
Joyo
Joyo: What Ubuntu release are you using? I just tested on a fresh Ubuntu 10.04 LTS Lucid and it worked well.
Will it work on other file systems like jfs, ext3 & ext4. I use raid10 using 8 * 1 TB of volume and looking for a way to take snapshot for all the volumes as backup purpose, OR is there any other way to take snapshot of volumes while RAID & services are up and running. I use jfs file system.
Please suggest.
Thanks in advance.
sdubey
sdubey:
ec2-consistent-snapshot can be used with any file system. Even if the file system does not support freezing, it tries to get it as consistent as possible (e.g., with sync). This may not be good enough for RAID consistency. Ext3 does not support freezing. Ext4 does support it if you have the correct kernel. You'll need to do some testing to see if your version is recent enough. I haven't used JFS in years and don't remember if it supports freezing. I'd welcome a patch to ec2-consistent-snapshot to support JFS.