Hi All,
I am a newbie for ESX server. Recently I have downloaded the ESX server evaluation version . I am giving a LUN to the ESX server , On that LUN I am installing a RHEL3 VM. LUN is from the NetApp filer.
The script rsh's to the filer create the snap of the LUN ,by which I am taking the full snap of the VM using netapp snap command.
Before that I bring the VM to suspend mode and then I run the snap command ,
But when I suspend the machine the machine goes to poweroff mode. why is this ?
Please refer the script below ,
PATH=$PATH:/bin:/usr/bin
filer where the LUNs reside
FILER=F980-1
VOL=esx_vm1
the VM config file
VM_CFG_PATH=/root/vmware/winNetEnterprise/winNetEnterprise.vmx
echo ' Starting ---> '`date`
rename and delete old snapshots
rsh -l root $FILER snap delete $VOL old3
rsh -l root $FILER snap rename $VOL old2 old3
rsh -l root $FILER snap rename $VOL old1 old2
rsh -l root $FILER snap rename $VOL new old1
suspend the running VM
vmware-cmd $VM_CFG_PATH suspend soft
flush out cached IOs from the ESX server
sync
take a new snapshot of the volume
rsh -l root $FILER snap create $VOL new
resume the suspended VM
vmware-cmd $VM_CFG_PATH start soft
echo ' Finished ---> '`date`
Please help me on the same.
Thanks and Regards,
Athreya VC