Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Uninterruptible Power Supply - Soft shutdown with an auto boot

  1. #1
    Join Date
    Sep 2008
    Beans
    101

    Uninterruptible Power Supply - Soft shutdown with an auto boot

    Hi, I was looking at buying an Uninterruptible Power Supply for my Ubuntu Server. I've had some troubles with losing data when my server crashes before. An Uninterruptible Power Supply will fix this problem, but instead of letting my computer hang on a bit longer, I'd like to find a UPS that would soft shutdown my server. It would also be great if it could reboot my server when the power comes back on, but if that isn't possible that's fine. I've read in some places that a auto-boot when the power comes back on can be accomplished by configuring your bios, but how would this effect my UPS. Also, what size UPS should I be looking at if all I want to do is have enough power to shutdown my server?

    Thanks for all the help,
    Jump For Joy

  2. #2
    Join Date
    Nov 2007
    Location
    Pacific Northwest woods
    Beans
    2,019
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Uninterruptible Power Supply - Soft shutdown with an auto boot

    Check the APC line .. they have a software driven shutdown that will do the job for your un-attended equipment .. and they are the cleanest of the UPS units as far as the output power. BUT, they are not CHEAP and the batteries need to be replaced about once every 3 years or so and THOSE ALSO are not cheap. An APC 1400 will deliver almost 1 KVA for an hour before it runs out of go juice .. if you have the shutdown set up .. that is plenty of time to run your programs out and soft shut down.

  3. #3
    Join Date
    Sep 2008
    Beans
    101

    Re: Uninterruptible Power Supply - Soft shutdown with an auto boot

    Awesome, thanks. I'm looking at the APC Back-UPS ES 8 Outlet 550VA 120V. It looks solid and like it will last long enough. I'm a little worried that I won't be able to run the software correctly on ubuntu though. I found the apcupsd package for ubuntu that should take care of the soft shutdowns and reboots. But I'm not sure if configuring my UPS on a windows computer (via the software APC provides to adjust max voltage and the alarm settings) would allow it to stay configured when working with Ubuntu. I was also wondering if the warning messages (low power and battery problems) could be broadcasted across my Ubuntu server, seeing as how that feature is added by the software that only runs on Windows and Mac OSX.

    Thanks for you help,
    JumpForJoy

  4. #4
    Join Date
    Sep 2008
    Beans
    101

    Re: Uninterruptible Power Supply - Soft shutdown with an auto boot

    Ok. I've bought the UPS from APC. It everything works great except rebooting after the power goes out. I charged the UPS then unplugged it. After letting the battery die and watching the server shut itself down, I waited. No matter how long I waited though, my server never rebooted. I've set my bios to turn my computer on after A/C power dies, but my UPS shutsdown via halt. I'm also using apcupsd to run all this stuff.

  5. #5
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Uninterruptible Power Supply - Soft shutdown with an auto boot

    That is normal. It won't power the machine back on after an outage automatically because the battery needs to charge. If the power went out again while the battery was changing, the machine could power off unexpectedly.

    The BIOS setting only makes the machine power on if it was on when the power went out.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  6. #6
    Join Date
    Sep 2008
    Beans
    101

    Re: Uninterruptible Power Supply - Soft shutdown with an auto boot

    Hm, ok. How would one go about allowing it to reboot after the power comes back on. I set "RETURNCHARGE 15" which I though is all I needed to do to allow the UPS to restart the computer when it has a charge of 15%. Is there something else that has to be set up? Also, Ubuntu help says:
    Code:
    Optionally, if you want your computer to reboot after a power fail, you must edit the /etc/init.d/halt due a bug that it has. You must change the poweroff="-p" with poweroff=""
    but removing the -p causes halt to not work and instead leave my computer with half the stuff turned off, ie. the power light and monitor on with the harddrives spun down.

    Thanks for your help,
    Jump for Joy

  7. #7
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Uninterruptible Power Supply - Soft shutdown with an auto boot

    Not sure. If the machine supports Wake on LAN, you could use that to wake it up, but you'd have to do it manually.

    I've never had the machine power itself back on automatically after a power outage. I've always had to turn it on myself.

    The reason for that is the same as my previous post: It can't check to see if the power is back on when the PC is powered off, since there is no communication between the UPS and the PC.
    Last edited by CharlesA; December 4th, 2010 at 01:10 AM.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  8. #8
    Join Date
    Sep 2008
    Beans
    101

    Re: Uninterruptible Power Supply - Soft shutdown with an auto boot

    ah ok. I'll take a look into wake on LAN, but the line from the Ubuntu apcupsd help page makes me think that it can be done. Anyone else have any suggestions, I'm puzzled?

    Thanks,
    JumpForJoy

  9. #9
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Uninterruptible Power Supply - Soft shutdown with an auto boot

    Keep in mind that sometimes the help pages, or wiki have outdated info.

    Check out the manual over here: http://www.apcupsd.com/
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  10. #10
    Join Date
    Sep 2008
    Beans
    101

    Re: Uninterruptible Power Supply - Soft shutdown with an auto boot

    Hm, ok. That website also give similar information here. I've gone through all those steps except the remove -p one, which crashes halt. Perhaps I'm missing something with how to remove -p? Do you know which line you remove it from in /etc/apcupsd/apcupsd.conf?

    Thanks for the help,
    JumpForJoy

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •