SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Shutting down a Virtual Machine running SQL Server


Shutting down a Virtual Machine running SQL Server

Author
Message
chuck.forbes
chuck.forbes
Hall of Fame
Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)

Group: General Forum Members
Points: 3490 Visits: 643
We had an impending power outage the other night, and I was in a rush to shutdown all of the VM's running SQL Server before the hosts were brought down. Being cautious (and luckily there was enough time), I went into each VM, went to the Start Menu, and shut down each server.

In the process I noticed a "Shutdown Guest" option in vSphere, which I've read is akin to shutting down a VM as I described above. I asked our VM guy, and he was telling me that shutting down a VM via the "Shutdown Guest" is a less optimal option than going through the Start menu. (I'm not referring to the "Power off" option, which is like pulling the plug from the wall.)

Do any of you have an opinion? Because going with the "Shutdown Guest" option would have been much faster than what I did.

Thanks,
--=Chuck
frederico_fonseca
frederico_fonseca
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10751 Visits: 5894
your VM guy is right. shutdown guest does not always issue a clean shutdown.

For these type of situations is normally good to have prepared in advance a powershell script that connects to all required servers and issues its normal shutdown through windows.
see info in https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/stop-computer?view=powershell-6
Perry Whittle
Perry Whittle
SSC Guru
SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)

Group: General Forum Members
Points: 217090 Visits: 18594
chuck.forbes - Monday, March 5, 2018 9:47 AM
We had an impending power outage the other night, and I was in a rush to shutdown all of the VM's running SQL Server before the hosts were brought down. Being cautious (and luckily there was enough time), I went into each VM, went to the Start Menu, and shut down each server.

In the process I noticed a "Shutdown Guest" option in vSphere, which I've read is akin to shutting down a VM as I described above. I asked our VM guy, and he was telling me that shutting down a VM via the "Shutdown Guest" is a less optimal option than going through the Start menu. (I'm not referring to the "Power off" option, which is like pulling the plug from the wall.)

Do any of you have an opinion? Because going with the "Shutdown Guest" option would have been much faster than what I did.

Thanks,
--=Chuck


from the cmd prompt on any machine in the same network you can issue a remote shutdown using

shutdown /s /m \\ComputerNameOrIPAddress  



-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
chuck.forbes
chuck.forbes
Hall of Fame
Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)

Group: General Forum Members
Points: 3490 Visits: 643
Both of those shutdown suggestions are very much appreciated. If I encounter anything worthy of posting here after experimenting with them, I will do so. Thanks for the help.

--=Chuck
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum









































































































































































SQLServerCentral


Search