Host-based backup of VMware vSphere VMs.
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 »

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.
VP, Product Management
Posts: 27110
Liked: 2719 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Shutdown esxi host after replica job

Post by Vitaliy S. »

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 »

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
Veteran
Posts: 487
Liked: 106 times
Joined: Dec 08, 2014 2:58 pm
Full Name: Steve Krause
Contact:

Re: Shutdown esxi host after replica job

Post by skrause »

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 »

I currently run all the replica hosts in low power state. Is that what you mean about power management?
Vitaliy S.
VP, Product Management
Posts: 27110
Liked: 2719 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Shutdown esxi host after replica job

Post by Vitaliy S. »

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 »

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.
VP, Product Management
Posts: 27110
Liked: 2719 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Shutdown esxi host after replica job

Post by Vitaliy S. »

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: No registered users and 38 guests