Backups with snapshots
pokurcz:/home/ftp# xfs_freeze -f /fs/tmpptc/
pokurcz:/home/ftp# lvcreate -l 500 -s -n tsnap /dev/dat/tmpptc
Logical volume "tsnap" created
pokurcz:/home/ftp# mkdir /fs/snapt
pokurcz:/home/ftp# mount -o nouuid,ro /dev/dat/tmp
tmpf tmpptc
pokurcz:/home/ftp# mount -o nouuid,ro /dev/dat/tmp
tmpf tmpptc
pokurcz:/home/ftp# mount -o nouuid,ro /dev/dat/
bck devetch fs ftp tmpf tmpptc tsnap
pokurcz:/home/ftp# mount -o nouuid,ro /dev/dat/tsnap /fs/snapt/
pokurcz:/home/ftp# xfs_freeze -u /fs/tmpptc
pokurcz:/home/ftp#
pokurcz:/home/ftp# cd /fs/tmpptc/
pokurcz:/fs/tmpptc# ls
TL1_6-install.pdf
VMware-VMvisor-InstallerCD-3.5.0-67921.i386.iso conieface.xfsdump.gz hypervisor_performance_comparison_1_0_5_with_esx-data.pdf ldap.pem q testy
pokurcz:/fs/tmpptc# touch HELLO.WORLD
pokurcz:/fs/tmpptc# ls /fs/snapt/
VMware-VMvisor-InstallerCD-3.5.0-67921.i386.iso conieface.xfsdump.gz hypervisor_performance_comparison_1_0_5_with_esx-data.pdf ldap.pem q testy
pokurcz:/fs/tmpptc#
Clean up:
pokurcz:/fs/tmpptc# umount /fs/snapt/
pokurcz:/fs/tmpptc# lvremove -f /dev/dat/
tmpf tmpptc tsnap
pokurcz:/fs/tmpptc# lvremove -f /dev/dat/tsnap
Logical volume "tsnap" successfully removed
/Howto | permanent link | writeback | edit