tknx Posted March 13, 2023 Share Posted March 13, 2023 I have seen a couple of messages around this, but no real answer.. My array can't be stopped, when I try I get the following repeated in console: Mar 13 10:25:35 Tower root: rmdir: failed to remove '/mnt/user': Device or resource busy Mar 13 10:25:35 Tower emhttpd: shcmd (370295): exit status: 1 Mar 13 10:25:35 Tower emhttpd: shcmd (370297): /usr/local/sbin/update_cron Mar 13 10:25:35 Tower emhttpd: Retry unmounting user share(s)... Mar 13 10:25:40 Tower emhttpd: shcmd (370298): umount /mnt/user Mar 13 10:25:40 Tower root: umount: /mnt/user: target is busy. Mar 13 10:25:40 Tower emhttpd: shcmd (370298): exit status: 32 Mar 13 10:25:40 Tower emhttpd: shcmd (370299): rmdir /mnt/user Diagnostics attached. My questions: 1. How do I shut down my system safely right now - ideally without needing a parity run? 2. How do I fix this on a permanent basis? tower-diagnostics-20230313-1026.zip Quote Link to comment
JorgeB Posted March 13, 2023 Share Posted March 13, 2023 There's no universal answer, 17 minutes ago, tknx said: failed to remove '/mnt/user': Device or resource busy This means something is using that mount point and Unraid cannot unmount it, just having for example an SSH session opened to /mnt/user will cause that. Quote Link to comment
tknx Posted March 13, 2023 Author Share Posted March 13, 2023 OK So when I run root@Tower:~# mount | grep "/mnt/user", I get the following: shfs on /mnt/user type fuse.shfs (rw,nosuid,nodev,noatime,user_id=0,group_id=0,default_permissions,allow_other) I have no idea what that means Quote Link to comment
Solution tknx Posted March 13, 2023 Author Solution Share Posted March 13, 2023 OK, diagnosed it. Posting for posterity: lsof | grep /mnt/user Got a random bash process: bash 21148 root cwd DIR 0,56 4096 648799827764686976 /mnt/user/media/anime-movies kill -9 21148 it shut down. No idea what process that was... maybe an open session somewhere. Quote Link to comment
itimpi Posted March 13, 2023 Share Posted March 13, 2023 5 hours ago, tknx said: OK So when I run root@Tower:~# mount | grep "/mnt/user", I get the following: shfs on /mnt/user type fuse.shfs (rw,nosuid,nodev,noatime,user_id=0,group_id=0,default_permissions,allow_other) I have no idea what that means That is the part of Unraid that supports the User Share capability. Quote Link to comment
tknx Posted March 14, 2023 Author Share Posted March 14, 2023 1 hour ago, itimpi said: That is the part of Unraid that supports the User Share capability. So that is a bug right? That it didn’t kill shares on shutdown? Quote Link to comment
itimpi Posted March 14, 2023 Share Posted March 14, 2023 6 hours ago, tknx said: So that is a bug right? That it didn’t kill shares on shutdown? Not necessarily. I thought you found you had a bash shell running with the current directory being on the array. That WOULD stop the array from shutting down correctly. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.