Discussions specific to the VMware vSphere hypervisor
Post Reply
v&rsolutions
Novice
Posts: 8
Liked: 2 times
Joined: May 02, 2014 4:55 am
Full Name: V&R Soltions
Contact:

Shutdown esxi host after replica job

Post by v&rsolutions » Jun 27, 2016 7:32 pm

Hi,

We would like to reduce power consumption in our off site datacenter by shutting down the host after the replica job completes. Has anyone done this with a post job script? We use B&R 9 update 1 and esxi 5.5.

Vitaliy S.
Product Manager
Posts: 22976
Liked: 1555 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Shutdown esxi host after replica job

Post by Vitaliy S. » Jun 27, 2016 7:49 pm

Hmm...I don't remember anyone doing it, but I guess you can use a PowerCLI script to achieve your goal. BTW, how often do you replicate production VMs and what's your RTO?

v&rsolutions
Novice
Posts: 8
Liked: 2 times
Joined: May 02, 2014 4:55 am
Full Name: V&R Soltions
Contact:

Re: Shutdown esxi host after replica job

Post by v&rsolutions » Jun 27, 2016 7:52 pm

We only replicate once a day at night and there is not a specific RTO in this case. So the majority of the time the hosts are idle. Our goal is to conserve the best we can.

skrause
Expert
Posts: 438
Liked: 91 times
Joined: Dec 08, 2014 2:58 pm
Full Name: Steve Krause
Contact:

Re: Shutdown esxi host after replica job

Post by skrause » Jun 27, 2016 8:56 pm

Have you tried using VMware's power management?
Steve Krause
Veeam Certified Architect

v&rsolutions
Novice
Posts: 8
Liked: 2 times
Joined: May 02, 2014 4:55 am
Full Name: V&R Soltions
Contact:

Re: Shutdown esxi host after replica job

Post by v&rsolutions » Jun 27, 2016 9:18 pm

I currently run all the replica hosts in low power state. Is that what you mean about power management?

Vitaliy S.
Product Manager
Posts: 22976
Liked: 1555 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Shutdown esxi host after replica job

Post by Vitaliy S. » Jun 28, 2016 10:24 am

That's actually a good idea, Steve. There are two ways to manage host power, one is Distributed Power Management and another is Host Power Management. It seems like the OP is using the second option. To the best of my knowledge DPM can power on and power off hosts based on certain conditions, so it is worth considering this tool from VMware.

v&rsolutions
Novice
Posts: 8
Liked: 2 times
Joined: May 02, 2014 4:55 am
Full Name: V&R Soltions
Contact:

Re: Shutdown esxi host after replica job

Post by v&rsolutions » Jun 30, 2016 4:44 pm

The problem with using vmware to power down the host is that the replica run time can vary. I was hoping to use a veeam post job script to trigger the shut down.

Vitaliy S.
Product Manager
Posts: 22976
Liked: 1555 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Shutdown esxi host after replica job

Post by Vitaliy S. » Jun 30, 2016 5:05 pm

Ok, in this case try to use this script example > https://www.vmware.com/support/develope ... MHost.html

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 23 guests