VMware Cloud Community
gilsharon
Contributor
Contributor

Vmware scripting quiesce VM

I am trying to write a script that will enable creating a consistent snapshot of a Lun.

Assuming there are a few VM on the same Lun, I would need somehow to quiesce all VM's and then create the snapshot on the storage device.

Is there a way to quiesce a VM without creating a VM.snapshot ?

Thanks!

0 Kudos
7 Replies
esarakaitis
Enthusiast
Enthusiast

Lun snapshots are not a built in function of vmware, it would be much easier to do this from the storage side depending on your storage vendor.

http://www.vmwareadmins.com

http://www.vmwarescripting.com

0 Kudos
gilsharon
Contributor
Contributor

I know how to create the snapshot on the storage level, that was not my question.

What I want to do is quiesce the VM before I issue the storage snapshot (without creating a VM.snapshot)

Thanks,

Gil.

0 Kudos
LucD
Leadership
Leadership

Are these guests running Windows or Linux or a mix of both ?

____________

Blog: LucD notes

Twitter: lucd22


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
gilsharon
Contributor
Contributor

could be both,

does it matter?

0 Kudos
sketchy00
Hot Shot
Hot Shot

The solution is pretty vendor specific. Equallogic has an "AutoSnapshot Manager VMWare Edition" (ASM/VE) that makes a coordinated LUN snap for you. It's quite nice.

0 Kudos
gilsharon
Contributor
Contributor

"a coordinated LUN snap" is NOT possible without some API support from VMware...

0 Kudos
LucD
Leadership
Leadership

I think so if you want to do the quiesce from within the guest.

I was thinking of using the Invoke-VmScript.

____________

Blog: LucD notes

Twitter: lucd22


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos