FreeNAS NUT Slave and not master?

5,525

Solution 1

The original poster may have found an answer by now, but just for the sake of others who visit this thread, NUT master/slave is merely a matter of configuration. Install NUT per the appropriate OS then configure one, and only one, machine to the master. The others will be set as slaves and provided the ip address of the master.

Check out this link: http://www.networkupstools.org/

Solution 2

The FreeNAS GUI have the option of running nut as master or slave, so it should be no problem setting it up.

The problem comes when you have multiple (redundant) UPS'es, the GUI does not handle that well.

You could configure nut yourself, and either chflags schg /etc/local/nut/* to keep the freenas gui to mess with the config files. Or change nut_prefix to /usr/local.myown in /etc/rc.conf.local and have the nut config files in /usr/local.myown/nut

As usual, the GUI is useful and easy, but if you really want to do serious stuff, you must use CLI.

Share:
5,525

Related videos on Youtube

Luma
Author by

Luma

Updated on September 17, 2022

Comments

  • Luma
    Luma almost 2 years

    I have 2x FreeNAS servers and one UPS.

    The First FreeNAS server has the NUT stuff configured, running and working just fine.

    Is there a way to configure my second freeNAS server to be a slave to the first FreeNAS server like I can do with other linux machines?

    thanks.

  • Luma
    Luma over 13 years
    Hi Arenstar, I think you did not read or understand my question properly. I am not talking about master/slave of DATA, I am talking about Master Slave of NUT which is a utility to manage your battery backup. One server is normally the battery backup Master and has the UPS plugged into it (usb or serial) then the other machines (slaves) are told to shut down by the Master if the ups goes on battery.
  • Arenstar
    Arenstar over 13 years
    Ahh.. can you please rephrase the question??? Cause from what you wrote it sounds like you want redundancy if a server was to absolutely fail..
  • Luma
    Luma over 13 years
    it is actually pretty clear, in the subject I specify NUT and in the question I specify one UPS and one NUT Master and one NUT slave. Not sure how much clearer you want it to be.