02.12.2015 Views

Network UPS Tools User Manual

Network UPS Tools User Manual

Network UPS Tools User Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Network</strong> <strong>UPS</strong> <strong>Tools</strong> <strong>User</strong> <strong>Manual</strong> 31 / 84<br />

As an added bonus, this means you can move a running server from one <strong>UPS</strong> to another (for maintenance purpose for example)<br />

without bringing it down since the minimum power will be provided at all times.<br />

The MINSUPPLIES line tells upsmon that we need at least 2 power supplies to be receiving power from a good <strong>UPS</strong> (on line or<br />

on battery, just not on battery and low battery).<br />

Note<br />

we could have used a Power Value of 1 for both <strong>UPS</strong>, and MINSUPPLIES set to 1 too. These values are purely arbitrary, so you<br />

are free to use your own rules. Here, we have linked these values to the number of power supplies that each <strong>UPS</strong> is feeding<br />

(2).<br />

6.5.2 Multiple <strong>UPS</strong> shutdowns ordering<br />

If you have multiple <strong>UPS</strong>es connected to your system, chances are that you need to shut them down in a specific order. The goal<br />

is to shut down everything but the one keeping upsmon alive at first, then you do that one last.<br />

To set the order in which your <strong>UPS</strong>es receive the shutdown commands, define the sdorder value in your ups.conf.<br />

[bigone]<br />

driver = usbhid-ups<br />

port = auto<br />

sdorder = 2<br />

[littleguy]<br />

driver = mge-shut<br />

port = /dev/ttyS0<br />

sdorder = 1<br />

[misc]<br />

driver = blazer_ser<br />

port = /dev/ttyS1<br />

sdorder = 0<br />

The order runs from 0 to the highest number available. So, for this configuration, the order of shutdowns would be misc, littleguy,<br />

and then bigone.<br />

Note<br />

If you have a <strong>UPS</strong> that shouldn’t be shutdown when running upsdrvctl shutdown, set the sdorder to -1.<br />

6.5.3 Other redundancy configurations<br />

There are a lot of ways to handle redundancy and they all come down to how many power supplies, power cords and independent<br />

<strong>UPS</strong> connections you have. A system with a 1:1 cord:supply ratio has more wires stuffed behind it, but it’s much easier to move<br />

things around since any given <strong>UPS</strong> drives a smaller percentage of the overall power.<br />

More information can be found in the NUT user manual, and the various user manual pages.<br />

7 Advanced usage and scheduling notes<br />

upsmon can call out to a helper script or program when the device changes state. The example upsmon.conf has a full list of<br />

which state changes are available - ONLINE, ONBATT, LOWBATT, and more.<br />

There are two options, that will be presented in details:<br />

• the simple approach: create your own helper, and manage all events and actions yourself,<br />

• the advanced approach: use the NUT provided helper, called upssched.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!