VMware

VIZZ.INFO

VMware Virtualisation Information from the creators of VIZZ.INFO

Previous Next
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



Feb 27, 2008 4:45 AM osde.info in response to: engr_root

you cant mess with the /vmfs partition directly always vsbmount them to your NFS share

regards
clive (aka osde.info)
http://www.vizz.info

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