Shutdown esxi host after replica job

VMware specific discussions

Shutdown esxi host after replica job

Veeam Logoby v&rsolutions » Mon 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.
v&rsolutions
Novice
 
Posts: 8
Liked: 2 times
Joined: Fri May 02, 2014 4:55 am
Full Name: V&R Soltions

Re: Shutdown esxi host after replica job

Veeam Logoby Vitaliy S. » Mon 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?
Vitaliy S.
Veeam Software
 
Posts: 19539
Liked: 1097 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: Shutdown esxi host after replica job

Veeam Logoby v&rsolutions » Mon 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.
v&rsolutions
Novice
 
Posts: 8
Liked: 2 times
Joined: Fri May 02, 2014 4:55 am
Full Name: V&R Soltions

Re: Shutdown esxi host after replica job

Veeam Logoby skrause » Mon Jun 27, 2016 8:56 pm

Have you tried using VMware's power management?
Steve Krause
Veeam Certified Architect
skrause
Expert
 
Posts: 296
Liked: 45 times
Joined: Mon Dec 08, 2014 2:58 pm
Full Name: Steve Krause

Re: Shutdown esxi host after replica job

Veeam Logoby v&rsolutions » Mon 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?
v&rsolutions
Novice
 
Posts: 8
Liked: 2 times
Joined: Fri May 02, 2014 4:55 am
Full Name: V&R Soltions

Re: Shutdown esxi host after replica job

Veeam Logoby Vitaliy S. » Tue 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.
Vitaliy S.
Veeam Software
 
Posts: 19539
Liked: 1097 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: Shutdown esxi host after replica job

Veeam Logoby v&rsolutions » Thu 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.
v&rsolutions
Novice
 
Posts: 8
Liked: 2 times
Joined: Fri May 02, 2014 4:55 am
Full Name: V&R Soltions

Re: Shutdown esxi host after replica job

Veeam Logoby Vitaliy S. » Thu Jun 30, 2016 5:05 pm

Ok, in this case try to use this script example > https://www.vmware.com/support/develope ... MHost.html
Vitaliy S.
Veeam Software
 
Posts: 19539
Liked: 1097 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov


Return to VMware vSphere



Who is online

Users browsing this forum: Google [Bot] and 13 guests