Todd Benivegna
2020-Aug-14 01:01 UTC
[Nut-upsuser] Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
Not much in the way of configuration…. I’m pretty sure I’ve got it correct. -- Todd Benivegna // todd at benivegna.com On Aug 13, 2020, 8:54 PM -0400, Manuel Wolfshant <wolfy at nobugconsulting.ro>, wrote:> On August 14, 2020 3:46:05 AM GMT+03:00, Todd Benivegna <todd at benivegna.com> wrote: > > So I finally got a test in after I changed my RPi to the master and > > everything else (including my Synology) to slaves. Before I did that > > though, I timed the shutdown of my Synology since it is the slowest > > slave to shutdown. It took 40 seconds to shutdown, so I changed > > HOSTSYNC in upsmon.conf on the master (“Proton”) to 60. I then did a > > test ("sudo upsmon -c fsd”). The slaves shutdown, then eventually the > > master, but the Synology never powered down and the UPS powered off > > which cut the power to it while it was still on. Anyone know what the > > heck is going on? > Beside the ups mngmnt software ( after Roger's analysis I refuse to call it "nut" any more) on the Synology being a POS ? > Assuming you did configure correctly the client on the Synology, I guess that probably they reimplemented the slave part just as well as the server.. > > I wonder how difficult it would be to rip off their modifications and revert to a.standard, functional nut. > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser at alioth-lists.debian.net > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200813/25180b63/attachment-0001.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2020-08-13 at 8.56.22 PM.png Type: image/png Size: 81506 bytes Desc: not available URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200813/25180b63/attachment-0001.png>
Manuel Wolfshant
2020-Aug-14 01:34 UTC
[Nut-upsuser] Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
On August 14, 2020 4:01:17 AM GMT+03:00, Todd Benivegna <todd at benivegna.com> wrote:>Not much in the way of configuration…. I’m pretty sure I’ve got it >correct. >We have a saying here "do not force it, use a bigger hammer". Just setup a timer on proton triggered by LB (or whenever you seem fit , like "5 more minutes of power left" ). When activated, have a script connect via ssh to the NAS and kindly ask it to shutdown (i.e "ssh admin at Synoligy poweroff'). Far from elegant but saves the data.
Todd Benivegna
2020-Aug-14 01:38 UTC
[Nut-upsuser] Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
> We have a saying here "do not force it, use a bigger hammer". > Just setup a timer on proton triggered by LB (or whenever you seem fit , like "5 more minutes of power left" ). When activated, have a script connect via ssh to the NAS and kindly ask it to shutdown (i.e "ssh admin at Synoligy poweroff').I’d do that, but I have no idea how to write scripts or setup the trigger…. -- Todd Benivegna // todd at benivegna.com On Aug 13, 2020, 9:34 PM -0400, Manuel Wolfshant <wolfy at nobugconsulting.ro>, wrote:> On August 14, 2020 4:01:17 AM GMT+03:00, Todd Benivegna <todd at benivegna.com> wrote: > > Not much in the way of configuration…. I’m pretty sure I’ve got it > > correct. > > > > We have a saying here "do not force it, use a bigger hammer". > Just setup a timer on proton triggered by LB (or whenever you seem fit , like "5 more minutes of power left" ). When activated, have a script connect via ssh to the NAS and kindly ask it to shutdown (i.e "ssh admin at Synoligy poweroff'). > > Far from elegant but saves the data. > > > > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser at alioth-lists.debian.net > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200813/622a189f/attachment.html>
Manuel Wolfshant
2020-Aug-14 01:44 UTC
[Nut-upsuser] Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
On August 14, 2020 4:34:17 AM GMT+03:00, Manuel Wolfshant <wolfy at nobugconsulting.ro> wrote:>On August 14, 2020 4:01:17 AM GMT+03:00, Todd Benivegna ><todd at benivegna.com> wrote: >>Not much in the way of configuration…. I’m pretty sure I’ve got it >>correct. >> > >We have a saying here "do not force it, use a bigger hammer". >Just setup a timer on proton triggered by LB (or whenever you seem fit >, like "5 more minutes of power left" ). When activated, have a script >connect via ssh to the NAS and kindly ask it to shutdown (i.e "ssh >admin at Synoligy poweroff'). > >Far from elegant but saves the data.Actually I thought another ugly hack which replaces the ssh command. If you have netcat or if bash on the synology knows about /dev/tcp it is easy to write a daemon-like script which lustens on a specific port and triggers a shutdown when receiving a command from a script launched when needed on proton.
Seemingly Similar Threads
- Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
- Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
- Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
- Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
- Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)