March 29, 201115 yr 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
March 29, 201115 yr 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.
March 29, 201115 yr 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
March 29, 201115 yr 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
March 29, 201115 yr 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.
March 29, 201115 yr 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
March 29, 201115 yr 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
March 29, 201115 yr 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
March 29, 201115 yr 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.
March 29, 201115 yr 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.
March 29, 201115 yr 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
March 29, 201115 yr 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?
March 29, 201115 yr 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
April 2, 201115 yr 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
April 2, 201115 yr fuser displays the PIDs of processes using the specified files or file systems. Says here.... http://linuxcommand.org/man_pages/fuser1.html
April 2, 201115 yr ...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?
April 2, 201115 yr 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.