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


Last blog post comments

  1. xymon netapp vfiler quota monitoring: rvksjfq sjmgafs 01:26 CEST
  2. Use Windows as router / NAT traffic: vnvrfihp muygzxbi Sat 19 of May, 2012 16:18 CEST
  3. mount nfs v3 share under Solaris 10: kdvwtux xqowacnm Sat 19 of May, 2012 04:21 CEST
  4. Unix Color Terminal: cbeusw ejbpsnr Sat 19 of May, 2012 01:29 CEST
  5. AIX: Get PVID directly from hdisk using od: buy penis enlargement penis_enlargement Fri 18 of May, 2012 15:14 CEST
  6. AIX: Get PVID directly from hdisk using od: risperdal risperdal Fri 18 of May, 2012 13:00 CEST
  7. AIX: Get PVID directly from hdisk using od: cheap phen375 phen375 Wed 16 of May, 2012 18:30 CEST
  8. AIX: Get PVID directly from hdisk using od: Good info Pharmk935 Mon 14 of May, 2012 23:06 CEST
  9. Unix Color Terminal: Good info Pharmd119 Sun 13 of May, 2012 15:49 CEST
  10. Test network throughput without disk or cpu distortion: Good info Pharmd585 Sun 13 of May, 2012 06:01 CEST

Feeds List