Discussion:
[Nut-upsuser] NUT support for multi-OS environment
Michael Wagener (Amoebasys)
2014-07-29 12:31:51 UTC
Permalink
Hi All:



I am interested at looking at NUT to manage shutdown response to power
outages more efficiently.



Presently I have an APC SmartUPS 1500 which connects to a "server" using
a USB connection, from where I run a shutdown batch file for our server
environment.



Currently I have 3 boxes running XCP with a number of servers on them, a
XenServer box with a number of MS servers on it, along with an internet
gateway server and a PBX.



The load on my UPS is around 40% and I have around 10 minutes of
run-time in which to shut down all of my boxes. At the moment, because
some of the server apps are quite heavy, the shutdown time is not
sufficient because of shutdown time delays, and the batch file being
sequential, meaning that it executes a command, waits for a response and
moves on to the next command.



I would like to be able to issue a shotgun command to my VM boxes, etc.,
simultaneously, as the UPS run-time will then probably be sufficient.



I would appreciate comment on whether or not I can achieve this, along
with any additional guidance that you may feel would be good to have.



Thanks.

-Michael



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140729/c9ce6387/attachment.html>
Philippe Marzouk
2014-08-04 13:58:14 UTC
Permalink
Post by Michael Wagener (Amoebasys)
I am interested at looking at NUT to manage shutdown response to power
outages more efficiently.
Presently I have an APC SmartUPS 1500 which connects to a "server" using
a USB connection, from where I run a shutdown batch file for our server
environment.
Currently I have 3 boxes running XCP with a number of servers on them, a
XenServer box with a number of MS servers on it, along with an internet
gateway server and a PBX.
The load on my UPS is around 40% and I have around 10 minutes of
run-time in which to shut down all of my boxes. At the moment, because
some of the server apps are quite heavy, the shutdown time is not
sufficient because of shutdown time delays, and the batch file being
sequential, meaning that it executes a command, waits for a response and
moves on to the next command.
I would like to be able to issue a shotgun command to my VM boxes, etc.,
simultaneously, as the UPS run-time will then probably be sufficient.
I would appreciate comment on whether or not I can achieve this, along
with any additional guidance that you may feel would be good to have.
This is exactly the kind of scenarios NUT was written for.
You have one host connected to the UPS, the other hosts have the "upsmon"
daemon active and shutdown automatically when the UPS is on low battery.

Philippe
Michael Wagener (Amoebasys)
2014-08-04 14:52:51 UTC
Permalink
Hi Philippe:

Thanks for replying - that sounds good - I started playing the other day - must finish :)

Cheers.
-Michael?

-----Original Message-----
From: Nut-upsuser [mailto:nut-upsuser-bounces+michaelw=amoebasys.biz at lists.alioth.debian.org] On Behalf Of Philippe Marzouk
Sent: 04 August 2014 15:58
To: nut-upsuser at lists.alioth.debian.org
Subject: Re: [Nut-upsuser] NUT support for multi-OS environment
Post by Michael Wagener (Amoebasys)
I am interested at looking at NUT to manage shutdown response to power
outages more efficiently.
Presently I have an APC SmartUPS 1500 which connects to a "server"
using a USB connection, from where I run a shutdown batch file for our
server environment.
Currently I have 3 boxes running XCP with a number of servers on them,
a XenServer box with a number of MS servers on it, along with an
internet gateway server and a PBX.
The load on my UPS is around 40% and I have around 10 minutes of
run-time in which to shut down all of my boxes. At the moment,
because some of the server apps are quite heavy, the shutdown time is
not sufficient because of shutdown time delays, and the batch file
being sequential, meaning that it executes a command, waits for a
response and moves on to the next command.
I would like to be able to issue a shotgun command to my VM boxes,
etc., simultaneously, as the UPS run-time will then probably be sufficient.
I would appreciate comment on whether or not I can achieve this, along
with any additional guidance that you may feel would be good to have.
This is exactly the kind of scenarios NUT was written for.
You have one host connected to the UPS, the other hosts have the "upsmon"
daemon active and shutdown automatically when the UPS is on low battery.

Philippe
Charles Lepple
2014-08-09 23:11:21 UTC
Permalink
I would like to be able to issue a shotgun command to my VM boxes, etc., simultaneously, as the UPS run-time will then probably be sufficient.
As Philippe mentioned, hosts running upsmon all get the shutdown signal simultaneously. In the NUT documentation, the machine with the UPS is the master, and all of the other systems are slaves. In your case, if one of the slave VMs wedges itself, you want the master to eventually time out, and shut everything down. See 'HOSTSYNC' in upsmon.conf:

http://www.networkupstools.org/docs/man/upsmon.conf.html

Also, if you find out any specifics on running NUT with XCP or XenServer, please let us know. We don't have much documentation on virtual environments, but it certainly is an area where NUT would fit well.
--
Charles Lepple
clepple at gmail
Loading...