|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: Friday, August 01, 2008 2:34 AM
Posts: 6,
Visits: 28
|
|
Are there any best practices / instructions for shutting down a VSA?
We have a three node ESX system and are writing UPS shutdown scripts.
At the moment I do a shutdown -h on the ESX machines which takes the lot down :
[font=Courier New]REM Shutdown the nodes.
c:\apps\plink esxnode1 -l root -pw password "shutdown -h now"
c:\apps\plink esxnode2 -l root -pw password "shutdown -h now"
c:\apps\plink esxnode3 -l root -pw password "shutdown -h now"
REM Shutdown the VCC
shutdown /s /f /t 0[/font]
On reboot the VSA's are set to autostart, however I have to manually rescan the iSCSI HBA to see my VM's - is this normal or am I just not being patient enough ?
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Yesterday @ 2:22 PM
Posts: 101,
Visits: 354
|
|
| There is a cli command to shutdown an entire LeftHand Management group. That is designed specifically for UPS shutdown scripts. I don't have the command handy right now but sample cli scripts are the LHN website if you have a login. As for the rescan that is expected. ESX never looks on its own.
Adam C
Product Manager
LeftHand Networks
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: Friday, August 01, 2008 2:34 AM
Posts: 6,
Visits: 28
|
|
Thanks for the confirmation Adam,
Got the script which is working. However the ESX servers never actually shut down (well not in the time our 5Kva UPS can keep them up anyway). They sit on unmounting file systems. Is this expected ?
EDIT :
This is definitely something to with the iSCSI.
See http://communities.vmware.com/message/760048;jsessionid=61D26BF4D45DB2D075A241C819018FF0
I am now shutting down all my VM's ( will post scripts later ), then putting the VSA's in maintenance mode, then shutting them down using vmware-cmd.
Still get stuck at Unmounting all file systems. Pressing ALT+F12 gives pages of SCSI warnings.
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: Friday, August 01, 2008 2:34 AM
Posts: 6,
Visits: 28
|
|
EDIT : Forum broken ? All my scripts and links have been removed?!
Well I think I've got a working, albeit messy solution.
In our scenario we have a 5KVA UPS attached via serial to the ESX Control Centre Server.
On power failure the APC software calls the following script :
Firstly the script calls shutdown-vms.sh on each of the ESX nodes. This script shuts down all the VMs running on a host APART from the VSAs.
Secondly after a 10 min delay it puts the SAN in shutdown mode.
Third the script calls shutdown.sh which is the same script as the first one but it does the VSA's as well and then shuts the ESX nodes down.
Finally I call a remote shutdown to our backup server and then shutdown the local control centre.
To run this script you need the following additional tools :
PLINK :
SLEEP :
I don't really like this as I feel it's messy as hell but if anyone can come up with a better solution I'm all ears.
|
|
|
|