VMware Cloud Community
SandyB
Enthusiast
Enthusiast

script DR mounting of mirrored datastores

Hi Guys

I am looking to usie the vMA with ESXi 4.1 to try and script our DR process. With ESX 4.o i used PLINK to issue "esxcfg-volume -m datastore_name" commands to mount our replicated SAN luns on our DR ESX hosts is there an easy way to replicate this with vMA?

I have managed to get PLINK to connect to the vMA but it doesnt seem to want to accept commands from a text file?

plink.exe -ssh vi-admin@vMA -pw -m commands.txt

in the txt file i have the following commands.

vifptarget - s esxihost

esxcfg-rescan vmhba1

esxcfg-rescan vmhba2

esxcfg-volume -M datastorename

esxcfg-rescan vmhba1

esxcfg-rescan vmhba2

If it connect to the vMA via putty and issue the commands manually they work fine, does anyone know if i'm missing something?

thanks

S

Reply
0 Kudos
0 Replies