Koozali.org: home of the SME Server

Can I get NUT to shutdown after backup that is going, finish

pearless

Can I get NUT to shutdown after backup that is going, finish
« on: April 06, 2007, 08:48:08 AM »
If my UPS (a Compaq T2400h) signals a power failure to NUT, if SME is backing up to tape, can I get it wait until the backup is finished (is it has enough power in the UPS) or will it just force a shutdown???

I have read the network ups tool (NUT) documents and I am not sure how this can be achieved (if at all) with SME.

Any ideas?
Cheers Douglas.

Offline jfarschman

  • *
  • 406
  • +0/-0
Can I get NUT to shutdown after backup that is going, finish
« Reply #1 on: April 06, 2007, 05:26:28 PM »
It stricks me that NUT is either off or on.  It's it's one it is on... it will do it's job.

Are you saying that you have power failures during backups?

Quote
If my UPS (a Compaq T2400h) signals a power failure to NUT


If so... fix the power or the UPS.... or accept that you just aren't going to get a good backup that night.  This is a strange problem.
Jay Farschman
ICQ - 60448985
jay@hitechsavvy.com

pearless

Can I get NUT to shutdown after backup that is going, finish
« Reply #2 on: April 07, 2007, 12:28:34 AM »
I am more after the ability for a backup to continue to completion before NUT shuts down the server, as my UPS has quite some capacity, rather than just forcing a shutdown no matter what the server is doing.  

Does NUT wait until low battery before shutting down SME (can this be configured?) as I notice that my UPS uses upscode2 and using NUT to query the unit I notice that I can see the load, expected run time, etc and given that the backup logs contain how long a backup took last time, perhaps a script could be written to control when the shutdown can occur?

I currently have the UPS on a debian system that I am experimenting on until I better understand the UPS by hand configuring NUT and participating in the NUT forums...

Cheers Douglas.

Quote from: "jfarschman"
It stricks me that NUT is either off or on.  It's it's one it is on... it will do it's job.

Are you saying that you have power failures during backups?

Quote
If my UPS (a Compaq T2400h) signals a power failure to NUT


If so... fix the power or the UPS.... or accept that you just aren't going to get a good backup that night.  This is a strange problem.

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Can I get NUT to shutdown after backup that is going, finish
« Reply #3 on: April 07, 2007, 01:23:53 AM »
Perhaps you want shut-down at low-batt not on-batt.

However, if say a backup starts 30 seconds before low battery is reached then the backup will be interrupted.

Perhaps if the on-batt condition could be checked prior to starting a backup.

Have you tried it with SMEServer yet ?
Regards,
William

IF I give advise.. It's only if it was me....