VMware

VIZZ.INFO

VMware Virtualisation Information from the creators of VIZZ.INFO

4 Posts tagged with the vcbmounter tag
0

http://vizz.info/2006/08/vmware-vi3-esx3-has-arrived/

vmsnap and vmrestore that were used on ESX 2.x to backup (snap) and restore virtual machines & vmdk’s have been replaced in ESX 3.x with the vcbMounter and vcbRestore commands

0 Comments Permalink
2

PHASE 1

  • Setup NFS
  • Setup SSH RSA login
  • Setup mailx
  • Setup host,username,password in /etc/vmware/backuptools.conf

PHASE 2

Create vcbBack.sh (on masteresx)

#
VMIMBK=/vmimages/vmbk
mount slaveesx:$VMIMBK $VMIMBK
rm -rf $VMIMBK/$1
vcbMounter -a name:$1 -r $VMIMBK/$1
umount $VMIMBK

Create vcbRes.sh (on slaveesx)

#
VMIMBK=/vmimages/vmbk
CATALOG=$VMIMBK/$1/catalog
echo $CATALOG
sed 's/masteresx\.com/slaveesx\.com/' $CATALOG > $CATALOG.rest
vcbRestore -s $VMIMBK/$1 -a $CATALOG.rest -b overwrite

Create vcbCron.sh (on masteresx)

#

/root/vcbBack.sh $1
ssh slaveesx -c "/root/vcbRest.sh $1"

Create cronjob

#
0 * * * * /root/vcbCron.sh myvm1 | smtp=upstream /usr/local/bin/mailx -s "<subject>" <name@domain>


Sit back and enjoy being a SysAdmin

2 Comments Permalink
0

To get the most out of your guest VMs and backup and restore them using VMware Consolidated Backup in the most reliable way you should install VMware Tools.

As well as providing better mouse & video drivers it provides an API to the host providing IP, clock information and installs VM startup, VM shutdown, VM freeze & VM thaw scripts /usr/sbin/pre-freeze-script and /usr/bin/post-thaw-script.

http://vizz.info/2007/11/quiesce-your-live-vmware-vms-before-you-snapshot-them/

These scripts are required to quicese the guest services so a reliable quiescent redo / snapshot can be made by VCB.

http://www.vmware.com/pdf/vi3_vm_backup.pdf

0 Comments Permalink
0

VMware ESX 3 vcbRestore quick restore

After backing up a VMWESX VM with vcbMounter you can use vcbRestore to perform a quick restore on another ESX server

Edit the catalog file

  • change SOURCE hostname to DEST hostname
  • check the same "resource pool" exists on DEST host (if not change it so it does)


for example


  • host=myserver.mydomain


  • resourcepool= "/ha-folder-root/ha-datacenter/host/myserver.mydomain/Resources"

0 Comments Permalink
Click to view osde.info's profile Member since: Jan 25, 2005

VMware Virtualisation Information from the creators of VIZZ.INFO

View osde.info's profile

Communities