Chcąc usunąć nieużywany dataset na moim TrueNasie otrzymałem błąd dataset is busy

Aby rozwiązać ten problem udało mi się znaleźć wątek na forum TrueNasa dzięki temu poznałem dwa niezbędne polecenia aby sprawdzić co blokuje mój teoretycznie nieużywany dataset przed usunięciem:
# Określenie który proces/procesy używają nasz dataset
grep "$YOUR_DATASET_NAME" /proc/*/mounts
# Lista procesów które blokują nasz datased $PROC_ID bierzemy z powyższego polecenia
ps -aux | grep $PROC_ID
U mnie wyniki wyglądały następująco

root@truenas:~# grep containerVM /proc/*/mounts
/proc/3868005/mounts:dane/containerVM /data/dane/containerVM zfs rw,noatime,xattr,nfs4acl,casesensitive 0 0
root@truenas:~# ps -aux | grep 3868005
root 981498 0.0 0.0 3744 1408 pts/3 S+ 10:03 0:00 grep 3868005
root 3868005 0.9 0.0 1244572 18748 ? Ssl 00:50 5:10 /filebrowser --config /config/filebrowser.json --database /config/filebrowser.db --port 30051 --address 0.0.0.0 --root /data
Okazało się że aplikacja File Browser blokowała ten dataset. Po jej zatrzymaniu usunięcie datasetu przebiegło bezproblemowo.
Gotowe 🙂
Linkografia:
https://www.truenas.com/community/threads/unable-to-delete-datasets-busy.108347/post-795396