Can anyone help me with why I can’t destroy a now empty pool after migrating to SCALE from CORE?
I have two pools. tank
and backup
. The latter is on the same server to replicate to as backup. As I am making config changes, stopped the automatic replication and deleted all snapshots on this pool. It should be empty, but there appear to be ghosts…
root@bosnas[/mnt/backup]# ll
total 31
drwxr-xr-x 10 root 9 Jan 14 16:26 ./
drwxr-xr-x 5 root 5 Feb 2 12:14 ../
drwxr-xr-x 7 80 8 Nov 16 2014 .freenas/
drwxrwxrwx 1 root 0 Feb 10 08:14 .zfs/
drwxr-xr-x 2 root 2 Dec 29 2021 apps/
drwxr-xr-x 2 root 2 Dec 29 2021 bin/
drwxr-xr-x 2 root 2 Dec 29 2021 iocage/
drwxr-xr-x 2 root 2 Jan 14 16:26 ix-applications/
drwxr-xr-x 2 root 2 Dec 29 2021 media/
drwxr-xr-x 2 root 2 Jan 26 2023 timemachine/
These appear to be read only filesystems
root@bosnas[/mnt/backup]# rm -rf *
zsh: sure you want to delete all 6 files in /mnt/backup [yn]? y
rm: cannot remove 'apps': Read-only file system
rm: cannot remove 'bin': Read-only file system
rm: cannot remove 'iocage': Read-only file system
rm: cannot remove 'ix-applications': Read-only file system
rm: cannot remove 'media': Read-only file system
rm: cannot remove 'timemachine': Read-only file system
If I try to remount as read-write I get
root@bosnas[/mnt/backup]# mount -o remount,rw backup
filesystem 'backup' cannot be mounted due to invalid option 'nfs4acl'.
linux thinks only 256k is used
root@bosnas[/mnt/backup]# df -ah --total /mnt/backup
Filesystem Size Used Avail Use% Mounted on
backup 13T 256K 13T 1% /mnt/backup
total 13T 256K 13T 1% -
but zfs thinks it’s 622M
root@bosnas[/mnt/backup]# zfs list backup
NAME USED AVAIL REFER MOUNTPOINT
backup 622M 12.9T 256K /mnt/backup
and, yes, I checked there are no snapshots
root@bosnas[/mnt/backup]# zfs list -t snapshot backup
no datasets available
If I try to Export/disconnect pool: backup
via the UI, (with or without checking the destroy option) I get an error
[EFAULT] cannot unmount '/mnt/backup': pool or dataset is busy
So before I go behind the UI’s back and zpool destroy -f backup
I thought I’d ask if anyone has any ideas. Where’d my 622M go? Is it just ZFS overhead?
How do I blow away the readonly filesystems?
Thanks