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.

Powering Down Unraid - Please post Methods and How to - Possible Addon

Featured Replies

Powering Down Unraid can be a real hassle. Especially with the lights out and everything UPS beeping...

 

Im wishing for a button to fast shutdown clean - But i cant seem to figure out how to do this as it doesnt seem to work consistantly or in a timeley fashon - I have 2 Unraid Pro Boxes 12 Drives each, one 12 TB and the other 18TB

 

by using Telnet - I can use the Powerdoen script to shutdown - This works good on NAS1 - But NAS2 just refuses to shut down no matter what i do. And PS-AX is a lousy way to try and figure out what is going on.

 

The web interface at :8080 is a nice step in the right dirrection - But this interface is only avail 15 min or so in to a boot, if its available at all. No easy way to bring it up either if it isnt started.

 

There is always the power button - but JEEZ there should be SOME way to quickly and cleanly shut down in no more than a few minutes. RIGHT? Help. My Unraid 2 is refusing to respond to a "stop" and its been 10 min

i dont expect it will shutdown at all. Didnt after waiting all night.

 

And yet, seems to be working. No parity errors. Just wont shut the #@#@#@ DOWN WHEN ASKED NICELEY.

 

Please Post any and all suggestions, wishes, ETC -

 

Also i finally stuffed a second 1500 UPS in the rack, so each server would have its own UPS subsystem SINCE THERE ARE NO INSTRUCTIONS ON HOW TO CASCADE POWER SHUTDOWN FROM UPS on 2 UNRAID SERVERS without using 2 UPS units....... <sigh> - Its Sooo close to being perfect ! Go Team Go.... - Why i bought pro!

Will add a 3rd unit as soon as i see the first 2 finally getting stable for the long term.

Are you using the PowerDown package installed from unMenu?  That seems to be capable of shutting the system down cleanly where the default PowerDown will hang when a disk won't unmount because of outstanding activity or open files.

 

If the new PowerDown doesn't become available quickly enough from the auto_install, then I guess it could be installed separately, by adding a line to the 'go' script.

 

Oh, and I, too, would be interested to know how to cascade the powerdown across machines sharing the same UPS!

  • Author

Yea, using the menu system - but it does not start up in any predictable fashon.

I get the MAIN menu but rarely if ever get the :8080 unmenu interface (Which denys me access to that method)

 

How can I do a shutdown that properly kills all shares and allows the NAS to unmount everything and power down.

 

Also - The consoles (Video Kbd and Mouse) never give me a command prompt. (Either NAS) I see activity, but never get a prompt. Oh and without Unmenu, log access requires painful command line interaction.. since i have to look up in detail anything command line. All i have is MAIN and Telnet via Terminal Window

How can I do a shutdown that properly kills all shares and allows the NAS to unmount everything and power down.

 

Use the command : <powerdown> in a telnet session.

what version of Unraid and what version of unmenu?  I've never had an issue with the unmenu webpage not being available.

Are you using the PowerDown package installed from unMenu?  That seems to be capable of shutting the system down cleanly where the default PowerDown will hang when a disk won't unmount because of outstanding activity or open files.

True, the built-in powerdown will NOT stop the array or power it down if any disk is busy.  You MUST install the WeeboTech powerdown package for the APC package in unMENU to work.  It specifically invokes it.

Oh, and I, too, would be interested to know how to cascade the powerdown across machines sharing the same UPS!

I just added that feature to the apcupsd package in unMENU.  You can specify the machine actually monitoring the UPS.  Use the "Check-for-unMENU Updates" on the User-Scripts" page to get the newer version.

 

Here I have "tower2" configured to monitor "tower"  The UPS is connected to "tower" and it already is network capable. Nothing needs to change there.

2meb81g.jpg

 

I can even use the System Info page on tower2 to get remote status.

sblk7t.jpg

 

Have fun.   

Joe L.

 

PS.

From what I understand, there is APC software downloadable for your laptop.  It too can monitor the network, even if you are running "windows," and shut itself saving the batteries when power is lost.

 

 

How can I do a shutdown that properly kills all shares and allows the NAS to unmount everything and power down.

 

Use the command : <powerdown> in a telnet session.

That will get the unRAID built-in powerdown command.  It will wait forever for disks to be not busy.  It will not shut down the server or power it off if any disk in the protected array is busy.

 

To get the WeeboTech's version (assuming you install it) you must use the full path to the command:

/sbin/powerdown

Use the command : <powerdown> in a telnet session.

That will get the unRAID built-in powerdown command.  It will wait forever for disks to be not busy.  It will not shut down the server or power it off if any disk in the protected array is busy.

 

To get the WeeboTech's version (assuming you install it) you must use the full path to the command:

/sbin/powerdown

Clean Powerdown
Currently Installed. Will be automatically Re-Installed upon Re-Boot.
Description:	 Primary purpose is to provide graceful shutdown of the environment when called from scripts or via command line.
Sets ctrl-alt-del to do powerdown instead of reboot 

The lime-technology stock version of powerdown will be renamed as unraid_powerdown if it exists.

 

I thought that this description, taken from unMenu, meant that 'problem' would be avoided?

 

Use the command : <powerdown> in a telnet session.

That will get the unRAID built-in powerdown command.  It will wait forever for disks to be not busy.  It will not shut down the server or power it off if any disk in the protected array is busy.

 

To get the WeeboTech's version (assuming you install it) you must use the full path to the command:

/sbin/powerdown

Clean Powerdown
Currently Installed. Will be automatically Re-Installed upon Re-Boot.
Description:	 Primary purpose is to provide graceful shutdown of the environment when called from scripts or via command line.
Sets ctrl-alt-del to do powerdown instead of reboot 

The lime-technology stock version of powerdown will be renamed as unraid_powerdown if it exists.

 

I thought that this description, taken from unMenu, meant that 'problem' would be avoided?

 

It would, if it was installed.  The original statement did not indicate it was.

I have a "powerdown-now-damnit" script that will check for and close all open files, including loopback mounted devices... it was the "super-shutdown" script in unraidWeb.

 

I intend to port that to an unRAID 5.0 plugin.

Hi: Joe L

 

Great reponse with the screen shots. It would make a good how to.

 

The WeeboTech's version you are referring to is that: powerdown-1.02-noarch-unRAID.tgz ?

 

Thanks for all your (and others) great work here on the forum.

I thought that this description, taken from unMenu, meant that 'problem' would be avoided?

 

It would, if it was installed.  The original statement did not indicate it was.

 

Well, I kind of inferred that the powerdown package was installed since the original poster talks of purchasing a second UPS because there were 'no instructions on how to cascade power shutdown'.

The WeeboTech's version you are referring to is that: powerdown-1.02-noarch-unRAID.tgz ?

Yes, it is.  Installing it is necessary for the unMENU apcupsd package to function properly.
  • Author

Discovered FTP access is wide open in the default UNRAID install !! - This is why i couldnt shut down !!!!

(Please See the new post on this and add comments there, many thanks)

 

Will add the weebotech stuff and appreciate the comments on proper setup of the UPS

 

One more shutdown question - I also have a MAC plugged into the ups - Any way to also get a mac or a PC to shut down as well as the NAS's ? This would make everything PERFECT power and shutdown wise.

 

Many Many thanks for the excellent comments - You Guys ROCK !!

Discovered FTP access is wide open in the default UNRAID install !! - This is why i couldnt shut down !!!!

(Please See the new post on this and add comments there, many thanks)

 

Will add the weebotech stuff and appreciate the comments on proper setup of the UPS

 

One more shutdown question - I also have a MAC plugged into the ups - Any way to also get a mac or a PC to shut down as well as the NAS's ? This would make everything PERFECT power and shutdown wise.

 

Many Many thanks for the excellent comments - You Guys ROCK !!

I know apcupsd is available for the PC and MAC from http://www.apcupsd.com/.

 

Just set them to monitor the Ethernet port at tower:3551

See this post: http://lime-technology.com/forum/index.php?topic=1528.msg27123#msg27123  Remember to have them shut down before the server if they are powered by the same UPS.

 

I'm guessing that another computer, could monitor the smart ups, and shut down automatically, even if it was actually powered from another (non-smart) ups?

 

I may give this a try later - I have a WinXP system powered from a dumb ups.

  • 3 weeks later...

Maybe a bit off-topic, but I am considering powering down my unraid when I expect periods of no use.  I can hard-wire a home theater controller relay into the CPU's reset switch in order to boot unraid, but I'm not sure how I can safely power down unraid through a remote control.  I have 2 conceptual ideas, but do not know if either is possible, so I'm hoping someone can point me in the right direction.

 

1) In Windows, you can configure the front panel reset switch to hibernate, sleep, or shutdown.  Is there any way to configure Linux to initiate a power down sequence in response to the front panel reset switch being pressed?

 

or 2) Have a script on another Windows box send a power down command to unraid.  I could then have that Windows script triggered remotely.

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.