I have a ZFS filesystem from TrueNAS that was stored on a ESXi VM (I know, bad idea). I am planning to migrate to a dedicated NAS server (TrueNAS Mini) but am unable to access the data in the pool. I have already deleted the ESXi host.
I have installed Ubuntu onto the PC that ESXi was previously installed onto, which has access to the disk, solely for the purpose of getting the data from the ZFS pool. This will be rebuilt as a XEN host without NAS (which will be on the aforementioned server)
The pool was a single disk.
I have mounted the vmfs file system in ubuntu under /mnt/vmfs using
I can browse the vmfs and can see the -flat.vmdk and .vmdk files containing the ZFS filesystem. These are named NAS001-flat.vmdk and NAS001.vmdk. I then attached the ZFS filesystem to /dev/ndb1 using the following command:
However I am unable to import the pool using
Is there a way to access the data in the ZFS filesystem, as I would like to back up, and then import into the new TrueNAS server. Just importing the disk won't work due to the wrapper VMFS filesystem.
I have installed Ubuntu onto the PC that ESXi was previously installed onto, which has access to the disk, solely for the purpose of getting the data from the ZFS pool. This will be rebuilt as a XEN host without NAS (which will be on the aforementioned server)
The pool was a single disk.
I have mounted the vmfs file system in ubuntu under /mnt/vmfs using
sudo vmfs-fuse /dev/sda1 /mnt/vmfs
I can browse the vmfs and can see the -flat.vmdk and .vmdk files containing the ZFS filesystem. These are named NAS001-flat.vmdk and NAS001.vmdk. I then attached the ZFS filesystem to /dev/ndb1 using the following command:
sudo modprobe nbd
sudo qemu-nmd -r -c /dev/nbd1 /mnt/vmfs/NAS001/NAS001-flat.vmdk
now shows the ZFS filesystem on device /dev/nbd1p2 as type FreeBSD ZFS.sudo fdisk -l
shows the pool assudo zpool import
pool001 ONLINE
nbd1p2 ONLINE
However I am unable to import the pool using
I receive the following error message:zpool import pool001 -f
cannot import 'pool001': permission denied
Destroy and re-create the pool from a backup source
Is there a way to access the data in the ZFS filesystem, as I would like to back up, and then import into the new TrueNAS server. Just importing the disk won't work due to the wrapper VMFS filesystem.