September 15Sep 15 Hello everyone, recently I ran into a problem. When I check the /mnt/user/domain directory, I find that the virtual machine directories I deleted before (such as "DM") are still there.I tried to use the rm -r DM command to delete it, but it prompted me device or resource busy . After checking multiple times, I found through mount | grep DM that Unraid mounted vdisk1.img under the DM directory at cache/domains/DM/vdisk1.img, which caused me to be unable to delete it.After I used umount /mnt/user/domains/DM/vdisk1.img to unmount it, I was able to delete the DM folder. Just when I thought the problem was solved, I found that once I restarted the array, unraid would automatically create the /mnt/user/domains/DM directory and /mnt/user/domains/DM/vdisk1.img file, and continue to mount it at the original location, even though I had already deleted the DM VM. I checked the files under boot, but couldn't find how to delete the mount settings.After using unraid, I created 8 virtual machines and deleted them all, and 4 of the virtual machines had the above situation. I want to ask what caused this situation?Thanks for everyone's help!
September 15Sep 15 Author Just now, trurl said:Is that folder a ZFS dataset?Yes, the domains folder is on a ZFS-based file system
September 15Sep 15 Author 4 minutes ago, JorgeB said:Post the output from zfs list -t allThanks a lot for help.zfs list -t allNAME USED AVAIL REFER MOUNTPOINTcache 331G 2.23T 71.4M /mnt/cachecache/Code 215K 2.23T 215K /mnt/cache/Codecache/Photos 293M 2.23T 293M /mnt/cache/Photoscache/Public 4.25G 2.23T 4.25G /mnt/cache/Publiccache/Videos 163K 2.23T 163K /mnt/cache/Videoscache/appdata 204G 2.23T 204G /mnt/cache/appdatacache/domains 51.6G 2.23T 24.4G /mnt/cache/domainscache/domains/Debian 140K 2.23T 140K /mnt/cache/domains/Debiancache/domains/DownloadMachine 140K 2.23T 140K /mnt/cache/domains/DownloadMachinecache/domains/DownloadMachineD 9.44G 2.23T 9.44G /mnt/cache/domains/DownloadMachineDcache/domains/GameMachine 140K 2.23T 140K /mnt/cache/domains/GameMachinecache/domains/GameServer 17.7G 2.23T 17.7G /mnt/cache/domains/GameServercache/isos 13.8G 2.23T 13.8G /mnt/cache/isoscache/system 57.1G 2.23T 57.1G /mnt/cache/systemcache/domains/Debian cache/domains/DownloadMachine etc. are the virtual machine directories mentioned above.
September 15Sep 15 Community Expert Solution They are zfs datasets, you need to use zfs destroy, e.g.:zfs destroy cache/domains/DownloadMachineIf there are snapshots or clones, you will need to use -r or -R, it will tell you when runing the command above.
September 15Sep 15 Author 20 minutes ago, JorgeB said:They are zfs datasets, you need to use zfs destroy, e.g.:zfs destroy cache/domains/DownloadMachineIf there are snapshots or clones, you will need to use -r or -R, it will tell you when runing the command above.All right, thank you!
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.