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.

Slow Shutdown

Featured Replies

Sometimes when I shutdown my array it takes forever to actually shutdown then it sometimes stops responding, and I can not tell what the state of the server is in. Then I usually power it off and it does a parity check on the way up.  I am getting the following in the syslog and wonder if someone could tell me what the server is doing?

 

Mar 28 22:51:40 Tower emhttp: shcmd (235): umount /mnt/user >/dev/null 2>&1

Mar 28 22:51:40 Tower emhttp: _shcmd: shcmd (235): exit status: 1

Mar 28 22:51:40 Tower emhttp: shcmd (236): rmdir /mnt/user >/dev/null 2>&1

Mar 28 22:51:40 Tower emhttp: _shcmd: shcmd (236): exit status: 1

Mar 28 22:51:40 Tower emhttp: Retry unmounting user share(s)...

 

Thanks

Joe

Sometimes when I shutdown my array it takes forever to actually shutdown then it sometimes stops responding, and I can not tell what the state of the server is in. Then I usually power it off and it does a parity check on the way up.  I am getting the following in the syslog and wonder if someone could tell me what the server is doing?

 

Mar 28 22:51:40 Tower emhttp: shcmd (235): umount /mnt/user >/dev/null 2>&1

Mar 28 22:51:40 Tower emhttp: _shcmd: shcmd (235): exit status: 1

Mar 28 22:51:40 Tower emhttp: shcmd (236): rmdir /mnt/user >/dev/null 2>&1

Mar 28 22:51:40 Tower emhttp: _shcmd: shcmd (236): exit status: 1

Mar 28 22:51:40 Tower emhttp: Retry unmounting user share(s)...

 

Thanks

Joe

 

Normally when the array will not stop it is becuase some addon has an open file and it is preventing the disk from being unmounted.  You should install the powerdown script package.  When run, it will close down processes that have open files and allow the server to stop normally and then the machine to shutdown.  This prevents the parity checks on reboot.

  • Author

Thanks.  I did install that script and the last few times it did work but not the 2nd to last time.  I used it last night and will see this evening if it wants a parity check again.

Joe

next time he doesn't want to shutdown...

telnet in and run this

 

fuser -mv /mnt/disk* /mnt/user/*

 

it will give you an idea what is preventing unraid to unmount the disks

if it is something not important then you can do

 

Kill -9 pid

 

where pid is the nummer of the process that is keeping the disk busy

 

hope this helps

  • Author

Thanks.  I will put this in my unraid notes file to try next time.

Joe

Thanks.  I will put this in my unraid notes file to try next time.

Joe

I think that is bad advice.  Rather than use kill -9, use instead first

kill pid

 

The -9 signal cannot be caught or acted on by the process you are terminating.  It forcably terminates a process. You are asking for corrupted files if you use the -9 option. 

 

It you just use "kill pid" it will send a termination signal to the process you are terminating that will allow it to clean up any files it might need to before it then terminates itself.  This is VERY important with processes such as databases, etc.

 

Only if you cannot kill a process without the -9 option, should you then you can give it a try with it.

 

Joe L.

  • Author

Ok.  so I would

 

to find out what is going on:

fuser -mv /mnt/disk* /mnt/user/*

 

Then

kill pid

 

then

Kill -9 pid

 

Joe

You should maybe first figure out what's keeping files open first and address that. For example, I have some buttons in unMENU I use to shut down the processes when I stop my array.

 

Peter

  • Author

For example, I have some buttons in unMENU I use to shut down the processes when I stop my array.

 

Please explain.

 

Joe A

For example, I have some buttons in unMENU I use to shut down the processes when I stop my array.

Please explain.

 

Joe A

 

Do you have any packages installed via unMenu?  If so then most will create a button on the User Scripts page that can be used and should be used to stop the service before attempting to stop the array.

For example, I have some buttons in unMENU I use to shut down the processes when I stop my array.

 

Please explain.

 

Joe A

 

There's a Stop Python button I use to shutdown Python. Python is used in the program sabnzbd. Simply clicking Stop Array in unAID Main will not unmount the cache disk being used by Python (sabnzbd).

 

You might be able to find someone else who has written something specifically for your application that sounds like is not shutting down.

Normally what I do is if I see a script I think is kinda interesting I copy it and put it in my /boot/scripts/ folder I thought that bit of code was interesting. Sure its not as slick as a push button, but its a lot better than trying to remember what I saw or what to type.

 

so I created a whatisrunning

fuser -mv /mnt/disk* /mnt/user/*

 

So now I just login and type /boot/scripts/whatisrunning

Normally what I do is if I see a script I think is kinda interesting I copy it and put it in my /boot/scripts/ folder I thought that bit of code was interesting. Sure its not as slick as a push button, but its a lot better than trying to remember what I saw or what to type.

 

so I created a whatisrunning

fuser -mv /mnt/disk* /mnt/user/*

 

So now I just login and type /boot/scripts/whatisrunning

 

Once you have the output from that command, then what do you do with the information?

Ok.  so I would

 

to find out what is going on:

fuser -mv /mnt/disk* /mnt/user/*

 

Then

kill pid

 

then

Kill -9 pid

 

Joe

  • Author

It worked.  This last time my #7 disk would not unmount.  I ran the commands and found that Twonky was still running on D7.  I killed the process and it shut down fine.  That was fun.  Thanks

BTW..What does command fuser -mv /mnt/disk* /mnt/user/*  mean?

 

Joe

...I created a whatisrunning

fuser -mv /mnt/disk* /mnt/user/*

 

So now I just login and type /boot/scripts/whatisrunning

 

Is it sensible to add '/mnt/cache' to the fuser command, if you have a cache drive?

Is it sensible to add '/mnt/cache' to the fuser command, if you have a cache drive?

 

Yes.  That will catch other activity.  In my case I use hidden folders on the cache drive to hold / run some other applications such as a UPnP server and it will pick up the PIDs for that application.

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.