Zvol, Bhyve/Pfsense and config restore

Harry Schmalzbauer freebsd at omnilan.de
Thu Feb 9 15:36:02 UTC 2017

Bezüglich Rajil Saraswat's Nachricht vom 09.02.2017 15:51 (localtime):
>  How can i access the vm filesystem on the host?
>> Which volmode is in use for vmpool/os5 ('zfs get volmode vmpool/os5')?
>> I don't know what patritioning scheme pfsens uses, but 'gpart show
>> /dev/zvol/vmpool/os5' would be of interest.
>> You need volmode "geom" and something like /dev/zvol/vmpool/os5p2 or
>> /dev/zvol/vmpool/os5a for your mount special I guess.
>> -harry
> The volmode was set as default. After changing it to geom, i was able
> to access the zvol and copy the file.
> Thanks for the tip!

Glad to hear you got it working.
'default' references "vfs.zfs.vol.mode":
	sysctl -d vfs.zfs.vol.mode
vfs.zfs.vol.mode: Expose as GEOM providers (1), device files (2) or neither

It's probably modified unintentionally on your host. On the other hand I
remember someone documented that under unclear circumstances, it needs
to be set explicitly to 'geom' even with the sysctl beeing still the
default "1" (=geom).


More information about the freebsd-virtualization mailing list