Recovering data from previous FreeNAS Bhyve ZVOLs?

victorhooi

Contributor
Joined
Mar 16, 2012
Messages
184
Hi,

I have a machine running FreeNAS 11.2-U3.

I have a 6-drive ZFS pool on the machine.

I previously had some Bhyve instances setup on this machine - however, I can't see them now, so I suspect at some point I had to reinstall FreeNAS and I'm simply re-imported the ZFS pool.

When I do "zfs list", I see two lines ("freenas-torrent-manual and freenas-torrent-ne8r4s) which I believe are the zvols associated with those Bhyve VMs:
Code:
datastore-naulty-place/documents                                         7.13T  6.60T  7.13T  /mnt/datastore-naulty-place/documents
datastore-naulty-place/freenas-torrent-manual                             581G  6.90T   272G  -
datastore-naulty-place/freenas-torrent-ne8r4s                            1.33T  6.65T  1.29T  -
datastore-naulty-place/iocage                                            4.49M  6.60T  3.65M  /mnt/datastore-naulty-place/iocage
datastore-naulty-place/iocage/download                                    141K  6.60T   141K  /mnt/datastore-naulty-place/iocage/download
datastore-naulty-place/iocage/images                                      141K  6.60T   141K  /mnt/datastore-naulty-place/iocage/images
datastore-naulty-place/iocage/jails                                       141K  6.60T   141K  /mnt/datastore-naulty-place/iocage/jails
datastore-naulty-place/iocage/log                                         141K  6.60T   141K  /mnt/datastore-naulty-place/iocage/log
datastore-naulty-place/iocage/releases                                    141K  6.60T   141K  /mnt/datastore-naulty-place/iocage/releases
datastore-naulty-place/iocage/templates                                   141K  6.60T   141K  /mnt/datastore-naulty-place/iocage/templates
datastore-naulty-place/photos                                             310G  6.60T   310G  /mnt/datastore-naulty-place/photos
datastore-naulty-place/software                                           798M  6.60T   798M  /mnt/datastore-naulty-place/software
datastore-naulty-place/synology                                          5.58T  6.60T  5.58T  /mnt/datastore-naulty-place/synology
datastore-naulty-place/videos                                             419G  6.60T   419G  /mnt/datastore-naulty-place/videos

From memory, they should be running Ubuntu 18.10.

Firstly - is there some way I can confirm from the above that these are indeed ZVOLs, and that they are Bhyve VM disks?

Secondly, is there some way I can re-create a new Bhyve instance to use those disks, or even just read data from those disks to recover it?

Thanks,
Victor
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
Three ways to list your zvols:

zfs list -t volume
zfs get type | grep volume
ls -l /dev/zvol/datastore-naulty-place/*

Use the wizard to create a new Bhyve VM choosing your existing zvol. You could either boot the VM from an Ubuntu ISO in rescue mode, or boot it directly. It doesn't seem like a good idea to have large amounts of data only available inside a VM. Have the VM mount a dataset on your pool via NFS or SMB, and store your data on your pool.
 
Top