Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Using APC to shutdown nas

Featured Replies

I've got everything almost setup, but was wanting to check I was doing the basic things like shutting down/re-booting my nas properly.

 

1) using ap to shutdown nas

I installed apc after it recommended, i dont have a ups but the /sbin/powerdown command was really easy to use. So just to confirm, I dont need to stop the array, just run the command and thats it? Here is the output:

 

Tower login: root
Linux 3.4.36-unRAID.
root@Tower:~# /sbin/powerdown
Capturing information to syslog. Please wait...
version[21712]: Linux version 3.4.36-unRAID (root@Develop) (gcc version 4.4.4 (GCC) ) #1 SMP Wed Mar 20 12:54:40 PDT 2013
ls: cannot access /dev/hd[a-z]: No such file or directory
ls: cannot access /dev/hd[a-z]: No such file or directory
status[21765]: State: STARTED
status[21765]: D#           Model / Serial          Status         Device
status[21765]: 0                  /                 DISK_DSBL_NP   rdevName.
status[21765]: 1                  /                 DISK_OK        sdd
status[21765]: 2                  /                 DISK_OK        sdc
status[21765]: 3                  /                 DISK_NP        rdevName.
status[21765]: 4                  /                 DISK_NP        rdevName.
status[21765]: 5                  /                 DISK_NP        rdevName.
status[21765]: SMART overall health assessment
ls: cannot access /dev/hd[a-z]: No such file or directory
status[21765]: /dev/sda: smartctl 5.40 2010-10-16 r3189 [i486-slackware-linux-gnu] (local build)
status[21765]: Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
status[21765]: SMART overall-health self-assessment test result: PASSED
status[21765]: /dev/sdb: smartctl 5.40 2010-10-16 r3189 [i486-slackware-linux-gnu] (local build)
status[21765]: Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
status[21765]: SMART overall-health self-assessment test result: PASSED
status[21765]: /dev/sdc: smartctl 5.40 2010-10-16 r3189 [i486-slackware-linux-gnu] (local build)
status[21765]: Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
status[21765]: SMART overall-health self-assessment test result: PASSED
status[21765]: /dev/sdd: smartctl 5.40 2010-10-16 r3189 [i486-slackware-linux-gnu] (local build)
status[21765]: Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
status[21765]: Device is in STANDBY mode, exit(2)
status[21765]: /dev/sde: smartctl 5.40 2010-10-16 r3189 [i486-slackware-linux-gnu] (local build)
status[21765]: Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
status[21765]: /dev/sde: Unknown USB bridge [0x0781:0x540e (0x010)]
status[21765]: Smartctl: please specify device type with the -d option.
status[21765]: Use smartctl -h to get a usage summary
status[21765]: No active PIDS on the array
Removing old syslog: /boot/logs/syslog-20130409-120444.txt
Saving current syslog: /boot/logs/syslog-20130415-114632.txt
-rwxrwxrwx 1 root root 247587 2013-04-15 11:46 /boot/logs/syslog-20130415-114632.txt
  adding: syslog.txt (deflated 87%)

Broadcast message from root (pts/0) (Mon Apr 15 11:46:32 2013):

The system is going down for system halt NOW!
root@Tower:~#

 

 

2) Rebooting

If the above command is ok, is there a reboot equivalent?

 

Thanks

  • Author

sorry to bump my own post, just worried that i might be corrupting my data if Im not using apc correctly

If you don't have a UPS how do you think apcupsd is going to benefit you?

  • Author

Is there a chance I have done any damage to my data? I was under the impression that the acp plugin shutdown the server better than the web interface (it saved me trying to get figure out how to get those shutdown scripts installed).

The powerdown script (which is what the apcupsd plugin uses) is available as a stand-alone package within unmenu.

Is there a chance I have done any damage to my data? I was under the impression that the acp plugin shutdown the server better than the web interface (it saved me trying to get figure out how to get those shutdown scripts installed).

 

You've been misinformed. There is no reason not to shut down or reboot from the web gui other than you can't access the web gui. Install the powerdown script and you will then be able to shutdown or reboot the array from the terminal.

 

If you're worry about your data having been corrupted run a parity check.

You've been misinformed. There is no reason not to shut down or reboot from the web gui other than you can't access the web gui.

 

Perhaps not misinformed ... the powerdown script has a very distinct advantage over the web gui- it will do its best to stop active processes which can prevent the web gui stop/shutdown from completing.

You've been misinformed. There is no reason not to shut down or reboot from the web gui other than you can't access the web gui.

 

Perhaps not misinformed ... the powerdown script has a very distinct advantage over the web gui- it will do its best to stop active processes which can prevent the web gui stop/shutdown from completing.

 

lsof | grep "/mnt/user"

 

Majority of the time that lists stuff that's screwing up, then, from there you can work out what you need to end.

 

I do concur that typing "powerdown" is a lot easier than finding & ending processes, however.

  • Author

@ Auto

Thanks for the command, I have a txt file with a bunch of handy tips...always good to find out another.

 

@ mrow

Cool, cheers for the tip...I never knew I could do that haha!

 

 

Another user helped me find out what was holding up my array from shutting down, turned out to be sab log files on my cache drive. Weird. But after reading your posts, i now think I misread the other guys post (which sunk in after reading peterb's comment haha)

 

/sbin/powerdown always works for me but you may have to install it. You can install it from unMenu and I think it is included in apcupsd plugin.

 

I was just setting up my nas box at the time and was already installing plugins so I zoned in on the apc plugin for some reason. I know realise unMenu would have been a better choice. How do i go about removing/uninstalling apc if I can get unMenu working on 5.0-rc12a?

@Auto Thanks for the command, I have a txt file with a bunch of handy tips...always good to find out another.

 

You should really learn what they do, then you'd:-

A. Be able to memorize them easily

B. Be able to modify them for what you require.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.