jacquesgalore Posted May 13, 2023 Share Posted May 13, 2023 Hi all - I'm encountering an odd error. I have a share called `Time Machine - Jacques` located on `/mnt/disk1/`. I am trying to delete it, but unraid will not allow it: What happens: If you try to Delete, rename or change in the GUI it "processes" but nothing happens Krusader will not let you delete In the terminal, `rm -rf <directory>` returns "Cannot remove device or resource busy" Details: There is nothing in the share (confirmed in terminal using ls -alh) The permissions are identical to other shares (confirmed in terminal) There are no processes running (confirmed using lsof | grep) There are no loops running on it (confirmed using losetup) I've run in Safe Mode and stopped all Containers and VMs Disk Check ran and came back normal Questions: Ideas or recommendations? Can I delete without mounting the array? Thanks Quote Link to comment
jacquesgalore Posted May 14, 2023 Author Share Posted May 14, 2023 I have been able to delete this now (once) via umount, but now the share re-appears every time I reboot. The same thing happens with renames and any settings. Upon reboot, the "Time Machine - Jacques" is back. Quote Link to comment
jacquesgalore Posted May 14, 2023 Author Share Posted May 14, 2023 This appears to be the root of the issue in the boot logs. May 14 07:10:34 Carlino unassigned.devices: Mounting 'Auto Mount' Remote Shares... May 14 07:10:39 Carlino unassigned.devices: Using Gateway '192.168.50.1' to Ping Remote Shares. May 14 07:10:45 Carlino emhttpd: shcmd (530): rmdir '/mnt/user/Time Machine - Jacques' May 14 07:10:45 Carlino shfs: /usr/sbin/zfs destroy -r disk1/Time Machine - Jacques May 14 07:10:45 Carlino shfs: error: retval 2 attempting 'zfs destroy' May 14 07:10:45 Carlino root: rmdir: failed to remove '/mnt/user/Time Machine - Jacques': Device or resource busy Quote Link to comment
Solution jacquesgalore Posted May 14, 2023 Author Solution Share Posted May 14, 2023 I was able to solve this by: 1. Unmounting the share 2. Using `zfs destroy -r` instead of `rm -rf` It appears that `rm -rf` is "queueing" the command but upon boot the changes are not successful. By using zfs directly I was able to circumvent this. 1 Quote Link to comment
Verpz Posted May 16, 2023 Share Posted May 16, 2023 I have the same issue, how do I unmount the share? Quote Link to comment
Verpz Posted May 16, 2023 Share Posted May 16, 2023 I get an error saying it is already unmounted. Still says device or resource is busy Quote Link to comment
bouis Posted January 22 Share Posted January 22 I have the same issue (apparently) but it's a pool and can't be accessed (as far as I know) without mounting the array. 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.