I’ve been on Dragonfish for awhile now, and would like to delete my old ix-applications dataset. However, I am not able to do so.
Last year, I had some data loss in ix-applications, and spent awhile troubleshooting different methods for recovery. I eventually was able to recover, but I made a mess doing so, and that mess seems to be preventing me from deleting ix-applications.
This thread has more detail on what happened there.
Since that thread, I’ve managed to clean this up a bit more. I was eventually able to delete the Apps/rollback dataset mentioned in that thread, as well as almost everything within Apps/ix-applications. It’s only 576 kb now, and when I cd through it in the shell, all I see is a single chain of empty folders
/mnt/Apps/ix-applications/releases/jellyfin/volumes/ix_volumes/
Which, unsurprisingly, is the directory I was digging around in last year.
When i try deleting the dataset in the truenas gui, i get this error.
[EBUSY] Failed to delete dataset: cannot destroy snapshot Apps/ix-applications/releases/jellyfin/volumes/ix_volumes@64: dataset is busy cannot unmount '/mnt/Apps/ix-applications/releases/jellyfin/volumes': pool or dataset is busy cannot unmount '/mnt/Apps/ix-applications/releases/jellyfin': pool or dataset is busy cannot unmount '/mnt/Apps/ix-applications/releases': pool or dataset is busy cannot unmount '/mnt/Apps/ix-applications': pool or dataset is busy
Truenas’s GUI says there aren’t any snapshots for ix-applications, but when i click “manage snapshots” it does show one for this directory. when i try to delete it, i get this error.
Warning: 1 of 1 snapshots could not be deleted.
*** [EFAULT] cannot destroy 'Apps/ix-applications/releases/jellyfin/volumes/ix_volumes@64': dataset is busy
And i can’t delete any of this it in the shell either.
admin@truenas[~]$ cd /mnt/Apps
admin@truenas[/mnt/Apps]$ sudo rm -R ix-applications
[sudo] password for admin:
rm: cannot remove 'ix-applications/releases/jellyfin/volumes/ix_volumes': Device or resource busy
admin@truenas[~]$ cd ix-applications/releases/jellyfin/volumes
admin@truenas[...pplications/releases/jellyfin/volumes]$ ls
ix_volumes
admin@truenas[...pplications/releases/jellyfin/volumes]$ sudo rm -R ix_volumes
rm: cannot remove 'ix_volumes': Device or resource busy
admin@truenas[...pplications/releases/jellyfin/volumes]$ cd ix_volumes
admin@truenas[.../releases/jellyfin/volumes/ix_volumes]$ ls
admin@truenas[.../releases/jellyfin/volumes/ix_volumes]$ cd .zfs/snapshot
admin@truenas[...yfin/volumes/ix_volumes/.zfs/snapshot]$ ls
64
admin@truenas[...yfin/volumes/ix_volumes/.zfs/snapshot]$ rm -R 64
rm: cannot remove '64': Read-only file system
admin@truenas[...yfin/volumes/ix_volumes/.zfs/snapshot]$ sudo rm -R 64
rm: cannot remove '64/cache': Read-only file system
rm: cannot remove '64/config': Read-only file system
rm: cannot remove '64/transcodes': Read-only file system
admin@truenas[...yfin/volumes/ix_volumes/.zfs/snapshot]$ cd ..
admin@truenas[...ases/jellyfin/volumes/ix_volumes/.zfs]$ sudo rm -R snapshot
rm: cannot remove 'snapshot/64/cache': Read-only file system
rm: cannot remove 'snapshot/64/config': Read-only file system
rm: cannot remove 'snapshot/64/transcodes': Read-only file system
Like i said, ix-applications is down to less than 1 mb, so this isn’t actually a problem. It is annoying though, so i’d like to fix it. Can anyone advise me on how to do so?
Thanks!