Hi,
Got a synology nas with a ups connected. In the NAS OS there is an option to let the NAS act as UPS server (btw APC can provide the same function when equipped with a network card). This function makes it possible to connect two NASes on one UPS. The UPS is then connect via USB to one NAS. The USB connected NAS will broadcast it's status on the network. The second NAS it watching the UPS server status (Being the first NAS acting as UPS server) and when the first one signals a power failure the second nas will also shutdown.
edit: Here is a post for a regular pi https://www.domoticz.com/forum/viewtopic.php?t=2266
Would it be possible to let PcP watch for the status of the UPS server and perform a clean shutdown when there is a power failure? If the PcP pi is then physically powered by the UPS there is no problem with the runtime of the UPS.
How to boot the pi again is another thing, will it respond to a wol packet?
Results 1 to 7 of 7
-
2019-05-03, 01:30 #1
- Join Date
- May 2017
- Posts
- 588
would it be possible to shutdown lms/pi with network ups server
Last edited by edwin2006; 2019-05-03 at 02:15.
SqueezeBoxes: 1x Transporter (Living room) 1x SB2 (shed), 1x Radio (Kitchen), 1x Boom (Dining room), 1x piCorePlayer (jacuzzi), 1x piCorePlayer (Garden) 1x OSMC + Squeezelite (Movie room), 1x Touch (Study 2), few spare unit's
Server: LMS on Pi3 7.9.1. on PcP 3.21
Network: AVM Fritzbox, Netgear Smart Switch 24p, 3x Ubiquity
-
2019-05-31, 23:50 #2
- Join Date
- Apr 2013
- Location
- UK
- Posts
- 1,314
I'm not sure of anything NAS specific but Linux has the "nut" package. One machine acts as the nut server for a given ups and any number of client machines can subscribe to shutdown events if power reserve runs low. This would require a Linux machine (possibly the pi) to be connected directly via USB. It may also support the ethernet connection option but I never investigated that.
Transcoded from Matt's brain by Tapatalk--
Hardware: 3x Touch, 1x Radio, 2x Receivers, 1 HP Microserver NAS with Debian+LMS 7.9.0
Music: ~1300 CDs, as 450 GB of 16/44k FLACs. No less than 3x 24/44k albums..
-
2019-06-01, 02:32 #3
-
2019-06-01, 02:41 #4
- Join Date
- May 2017
- Posts
- 588
WOL can be solved. You could let the Ups do a full shutdown before runtime ends. When power comes up the pi gets power again and will perform a normal boot.
Will nut work on an pcp? If so, how to install and config?
I could let the synology nas act as Ups server.SqueezeBoxes: 1x Transporter (Living room) 1x SB2 (shed), 1x Radio (Kitchen), 1x Boom (Dining room), 1x piCorePlayer (jacuzzi), 1x piCorePlayer (Garden) 1x OSMC + Squeezelite (Movie room), 1x Touch (Study 2), few spare unit's
Server: LMS on Pi3 7.9.1. on PcP 3.21
Network: AVM Fritzbox, Netgear Smart Switch 24p, 3x Ubiquity
-
2019-06-01, 03:31 #5
-
2019-06-01, 04:09 #6
- Join Date
- Apr 2005
- Location
- UK/London
- Posts
- 1,879
-
2019-06-03, 12:25 #7
- Join Date
- Apr 2013
- Location
- UK
- Posts
- 1,314
It contains upsd amongst other components..
Transcoded from Matt's brain by Tapatalk--
Hardware: 3x Touch, 1x Radio, 2x Receivers, 1 HP Microserver NAS with Debian+LMS 7.9.0
Music: ~1300 CDs, as 450 GB of 16/44k FLACs. No less than 3x 24/44k albums..