+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
Thin Client and Virtual Machines Thread, Shutdown ESXi Server in Technical; Scratch that last one! School boy error doh!...
  1. #16

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Scratch that last one! School boy error doh!

  2. #17

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Ok - could use one last bit of help....

    I need to get ESXi to monitor /vmfs/volumes/ups-shutdown for a file called shutdown

    When it sees this file it needs to firstly remove the shutdown file and then call the VM shutdown script.

    Should this do it?

    Code:
    if [ -e /vmfs/volumes/ups-shutdown/shutdown ];
    then
        rm /vmfs/volumes/ups-shutdown/shutdown
        "/vmfs/volumes/Local Disk/powerdown-esxi4.sh"
    fi
    I was planning to add this to run from cron every minute. Would this be ok? It needs to be run regurlary but is every minute overkill and will it take much performance away from the server?

  3. #18

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Quote Originally Posted by jinnantonnix View Post
    Time to throw a curveball...

    What brand of UPS are you using? If it's APC, I can wholeheartedly recommend their VMware agent. I sent away for it on CD, and despite the instructions being completely wrong, it works splendidly! No more messing about with windows agents and VM monitoring for me anymore!
    From what I read online their agent wasn't available yet! How does this work then?

    Got it all working now anyways, but for curiosities sake....

  4. #19

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Quote Originally Posted by jinnantonnix View Post
    Odd. I bought it in December 2008! It works fine (we've had some real power cuts).

    APC - PowerChute Network Shutdown - Product Information

    Oh, I forgot, your UPS will need a management card, too. ££££.

    Glad you got it working, anyway.
    Ahh I see - it's all money at the end of the day though by buying each agent needed.

    I have a network management card in the UPS, but used APCUPSD to do our shutdowns. It hasn't cost us a penny (other than hardware) to setup and even though it was a headache in places we're finally there.

    Everything seems to be working, but will give it a real test tonight after hours.

    Over the moon I got there with it though with use of a few tweaked scripts and a little hard work



    Thanks for all your help

  5. #20

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Quote Originally Posted by jinnantonnix View Post
    I forgot to mention - you need to be able to reboot your signalling machine for maintenance.

    If ever you need to reboot the machine hosting the NFS (e.g. patch upgrade) the ESX will see it as a signal to shutdown.

    To get around this, set a flag file on the host to signal that it shouldn't shutdown.

    Just before maintenance, you could do something like

    Code:
    touch /tmp/noshutdown
    Add a routine in your script so that if this file exists then it shouldn't shutdown.

    Delete the flag file after maintenance, of course!
    I did it the other way so it creates a flag file when the power goes - so this shouldn't be a problem for my individual setup.

    Can't wait for 3 o'clock to test it properly!

  6. #21
    Duke's Avatar
    Join Date
    May 2009
    Posts
    1,017
    Thank Post
    300
    Thanked 174 Times in 160 Posts
    Rep Power
    57
    Quote Originally Posted by jinnantonnix View Post
    Time to throw a curveball...

    What brand of UPS are you using? If it's APC, I can wholeheartedly recommend their VMware agent. I sent away for it on CD, and despite the instructions being completely wrong, it works splendidly! No more messing about with windows agents and VM monitoring for me anymore!
    That's exactly what I meant about better UPS support in VMware - cheers!

SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. ESXi Server
    By Danlewis3 in forum Thin Client and Virtual Machines
    Replies: 17
    Last Post: 17th February 2010, 02:40 PM
  2. VMWare ESXi - convert physical win2k3 server : Tips?
    By contink in forum Thin Client and Virtual Machines
    Replies: 21
    Last Post: 13th December 2009, 02:53 AM
  3. Server shutdown
    By KWestos in forum Windows Server 2000/2003
    Replies: 4
    Last Post: 6th July 2009, 11:11 AM
  4. ESXi disk setup for SQL server VMs - advice sought
    By fox1977 in forum Thin Client and Virtual Machines
    Replies: 2
    Last Post: 29th January 2009, 11:34 AM
  5. ESXI or Server?
    By TechSupp in forum Thin Client and Virtual Machines
    Replies: 4
    Last Post: 22nd January 2009, 07:42 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •