[操作疑難] 可唔可以用1部UPS 同時俾SHUTDOWN SIGNAL 兩部NAS?

S記及Q記各一部,但得一部UPS,型號APC Back-UPS Pro 1200, 有冇得同時俾SHUTDOWN SIGNAL俾佢地?

S記有個功能係 UPS Server,可以經 network 俾另一個 network devices.
但睇返KB 話另一隻 network devices 一定要係 S記

https://www.synology.com/en-glob ... system_hardware_ups

To enable network UPS support:
1) Log into the Synology NAS that is connected to the UPS device (via USB or network). If local UPS support has not been enabled on this Synology NAS yet, please see the section above.
2) On the UPS tab, check the Enable network UPS server box to allow the Synology NAS to relay UPS information to the client Synology NAS.
3) Click the Permitted Synology NAS Devices button.
4) On the window that appears, enter the IP addresses of the other Synology NAS that is using the UPS device, but not connected via USB or the network. Click OK.
5)Click Apply to save settings.

Now the network UPS server can obtain UPS information and relay it to the other Synology NAS that is using the UPS device. Please see the instructions below to enable UPS support on the other Synology NAS.

TOP

最簡單寫個script 每分鐘 ping 10次另一台/router ip(no ups router)。
全loss 就視佢 offline 而跟隨關機。

咁就可以多台機跟隨斷電時進入關機程序。
不過要check清楚個script 正確先好設定startup run

TOP

回覆 3# freefdhk


  請問會唔會有教學?

TOP

Keyword "UPS NUT"

TOP

本帖最後由 freefdhk 於 2019-8-3 12:28 編輯
回覆  freefdhk


  請問會唔會有教學?
yinlocyrus 發表於 2019-8-3 11:58



每10秒 ping 一次 192.168.X.X  .
ping timeout 5次. 就會power off.  
如果只是中間loss 幾個package 有返訊號 reset 個數.

putty ssh 行完正常先好設定做 開機執行.
  1. #!/bin/bash

  2. # 設定 SH 文件權限可執行
  3. #chmod +x NASCheck.sh

  4. # 手動執行文件及參數
  5. #./NASCheck.sh


  6. declare -i m_CountSEC=0


  7. re='^[0-9]+$'
  8. TITLE="Server Monitor "
  9. IP="192.168.1.x"


  10. echo "==================================================="
  11. echo "$TITLE"
  12. echo "Start to Ping $IP "
  13. echo "==================================================="

  14. m_CountSEC=0
  15. while sleep 10; do
  16.         t="$(ping -c 1 ${IP} | sed -ne '/.*time=/{;s///;s/\..*//;p;}')"

  17.         if ! [[ $t =~ $re ]] ; then
  18.                 echo "Time Out"
  19.                 m_CountSEC=${m_CountSEC}+1
  20.         else
  21.                 echo "${t}"
  22.                 m_CountSEC=0
  23.         fi


  24.         if ( (( m_CountSEC >= 5 )) ); then
  25.                 poweroff
  26.                 m_CountSEC=0
  27.         fi
  28. done
複製代碼
re='^[0-9]+$' <-- 個  $ 要改返做 非全形.    FORUM BLOCK左

TOP

多謝咁多位巴打, 研究下先

TOP

本帖最後由 tcbyxo 於 2019-8-5 23:01 編輯

回覆 2# shmilynww

DELETED

TOP

回覆 3# freefdhk

Ching 想請問咁兩部 NAS 都要各自連接在兩個 Router 後面,裝左 UPS 既 NAS 就裝 script ,負責 ping 其他 NAS 連接左個隻 Router ,唔知道我有無理解錯誤 ?

TOP

APC Back-UPS Pro 1200唔係有lan port?
直接叫Synology/QNAP連入UPS得唔得?
https://www.synology.com/en-glob ... system_hardware_ups
http://docs.qnap.com/esnas/2.0.0 ... A-63EE2414D009.html

TOP