News for hackers. Stuff that matters.
Re:"Amazon EBS sucks. I just lost all my data" by mattew on Monday May 10, 2010 @09:46AM (#1334369)
Is there any way to set EBS to auto-snapshot on a specified time period through the existing control panel interface? Are snapshots possible through the API?
Re:"Amazon EBS sucks. I just lost all my data" by shlomo on Monday May 10, 2010 @07:43PM (#1336277)
This article includes a script that will perform a consistent snapshot of an XFS-formatted EBS drive (in linux).

http://alestic.com/2009/09/ec2-consistent-snapshot

Consistent snapshots are needed when the disk contains multiple files that must be kept in sync with each other - such as a database's data files and the journal. If your DB gets its disk snapshotted while these files are out of sync, the DB will need to recover the missing data by replaying the journal. Not all DB's can do this reliably for all types of changes (e.g. MySQL's MyISAM engine is fragile in this regard). So you need to make sure that the files in the snapshot all reflect a consistent state of the disk.

Re:"Amazon EBS sucks. I just lost all my data" by blantonl on Monday May 10, 2010 @10:25AM (#1334480)
there is not, however it is really easy to write a script to freeze the volume and execute a snapshot.

# xfs_freeze -f /data # ec2-create-snapshot vol-###### # xfs_freeze -u /data

Re:"Amazon EBS sucks. I just lost all my data" by spudlyo on Monday May 10, 2010 @01:57PM (#1335355)
So that's an xfs feature, but is is this really necessary on a journaling filesystem? I guess for ext3 I'd replace ext_freeze with sync.
Re:"Amazon EBS sucks. I just lost all my data" by mattew on Monday May 10, 2010 @11:28AM (#1334692)
One of my clients has 2 windows instances. I will need to look at the windows tools to see if there is something equivalent there.