itâs been a few weeks - the unit has been rebooted several times for upgrades and hardware changes and the pool has since been scrubbed. still getting the same error:
$ sudo rmdir /mnt/Pool1/Home
rmdir: failed to remove '/mnt/Pool1/Home': Operation not permitted
$ sudo lsof /mnt/Pool1/Home
$ sudo nfs4xdr_getfacl /mnt/Pool1/Home
nfs4xdr_getfacl: Failed to get NFSv4 ACL
$ sudo zfs list | grep Home
Pool1/shares/Home 506G 1.02T 495G /mnt/Pool1/shares/Home
how do we find out what else TrueNAS believes /mnt/Pool1/Home is used for?
It might be immutable directory. Depending on circumstances we will create immutable directory when dataset is unmounted to prevent people writing into the mountpoint of a ZFS dataset and then âlosingâ their data when the dataset is mounted over the path.
Never had that issue. Therefore I can only give some generic troubleshotting/diagnostic commands that I would try. Have you checked the mount table like this:
mount | grep /mnt/pool/foo
There shouldnât be anything mounted there, but maybe check to make sure.
It would be interesting to know if maybe the dataset is read-only or something.
Can you try if you can create files in /mnt/pool and /mnt/pool/foo. Something like:
touch /mnt/pool/test
touch /mnt/pool/foo/test
And remove them afterwards.
Readonly state can be tested with: /sbin/zfs get readonly pool
I think mount would also show ro for /mnt/pool if it were mounted read-only.