VMware backup without downtime / shutdown
Our VMware “testfarm†has been running for nearly 1 month now, it’s time for backups.
The portability of VMware guests gives a great option for a full-system backup.
So, how to compress / backup the vmdk files … whithout shutting down the virtual machines ?
These files are several gigabytes big, and the compression will take some time. During the compression or copy the VMware guest is updating the files leaving the backup in an inconsistant state.
lvm snapshot is quite a nice solution to that problem.
1.) create snapshot
lvcreate -L size of volumeG -s -n snapshot name /dev/volumevg/target lv
2.) mount the snapshot
mount /snapshot /dev/volumevg/snapshot name
3.) backup files
tar -zcvf /backup/vmbackup${DATE}.tar.gz /snapshot/vmimages/target system
4.) unmount & delete
umount /snapshot
lvremove -f /dev/volumevg/snapshot name
Sidebar
Wiki
Sidebar
Last blog posts
-
tivoli itm 6.2 change agent hostname to other then original system hostname
Tue 15 of Mar., 2011 19:17 CET
-
X11 secure display forwarding via ssh error
Tue 15 of Mar., 2011 19:03 CET
-
Android 2.2.1 delay between accepting call and actually hearing the caller
Tue 15 of Mar., 2011 18:50 CET
-
AIX: Get PVID directly from hdisk using od
Thu 15 of Apr., 2010 15:25 CEST
-
Power Blade: Add additional vscsi adapters to lpar / vhosts to vio server
Wed 24 of Mar., 2010 09:49 CET
-
Bug in xymon 4.3.3 Beta 2 splitncv
Tue 23 of Feb., 2010 10:11 CET
-
Analysing screen and browser window sizes reported by AWStats using R
Thu 18 of Feb., 2010 14:14 CET
-
Nagios on FreeBSD
Wed 27 of Jan., 2010 13:24 CET
-
Freebsd sendmail via Exchangeserver
Thu 17 of Dec., 2009 10:39 CET
-
xymon netapp vfiler quota monitoring
Tue 24 of Nov., 2009 17:55 CET

Last blog post comments