Hi! Brand new to TrueNAS and this is such a breath of fresh air to manage at the dataset level!
I did a zfs rename to move a dataset to a subdirectory:
zfs rename Pool1/Home Pool1/shares/Home
TrueNAS left what looks like an orphaned dataset mount:
root@matrix[/mnt/Pool1]# ls -altr
total 20
drwxr-xr-x 3 root root 3 Oct 9 00:18 ..
drwxr-xr-x 2 root root 2 Oct 9 03:19 Home
drwxrwx--- 2 root root 2 Oct 9 15:08 apps
drwxr-xr-x 2 root root 2 Oct 9 15:24 VMs
drwxrwxr-x 4 squatter common 5 Oct 9 20:53 media
drwxr-xr-x 8 root root 8 Oct 10 03:44 shares
drwxr-xr-x 7 root root 7 Oct 10 03:44 .
the directory is empty:
root@matrix[/mnt/Pool1]# ls -al Home
total 9
drwxr-xr-x 2 root root 2 Oct 9 03:19 .
drwxr-xr-x 7 root root 7 Oct 10 03:44 ..
and I verified my Home dataset is indeed in the right place:
root@matrix[/mnt/Pool1]# /sbin/zfs list | grep Home
Pool1/shares/Home 492G 1.02T 492G /mnt/Pool1/shares/Home
While I realize I could have broken my system, I tried anyways:
root@matrix[/mnt/Pool1]# rmdir Home
rmdir: failed to remove 'Home': Operation not permitted
It’s just cosmetic so I’m not overly concerned but my OCD is kicking in ![]()
Even after a reboot (DXP2800 running SCALE 25.04), the orphaned directory is squatting pretty well ![]()
The Home dataset works fine in its new location.