March 13, 20233 yr 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
March 13, 20233 yr Community Expert 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.
March 13, 20233 yr Author 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
March 13, 20233 yr Author Solution 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.
March 13, 20233 yr Community Expert 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.
March 14, 20233 yr Author 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?
March 14, 20233 yr Community Expert 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.
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.