[ILUG] Snapshotting with LVM and XFS (SLES9)
weeboy at conorwynne.com
Fri Oct 22 13:55:36 IST 2004
I've built a system with /dev/md0 (RAID1 9GB) for home directories.
This is LVM2'ed and the VG is called home_vg and is formatted with XFS.
This is fine and dandy and mounted as /home.
I have a spare LUN (sdd1 16GB) which is going to be used for snapshots and
So I have added /dev/sdd1 to home_vg and I run the following command to
take a point in time backup:
# xfs_freeze -f /home; lvcreate -L8.4GB -s -n snappy /dev/home_vg/lvol0;
xfs_freeze -u /home
This happily creates /dev/home_vg/snappy
Next I try to mount /dev/home_vg/snappy, but I get bad superblock errors,
and thus cannot mount it.
Its the default kernel 2.6.5 from SLES9.
lvdisplay shows that I have my two volumes, one for snapshotting.
(not in front of the box so cannot give you exact output at the mo)
Any ideas lads?
More information about the ILUG