Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Feb 2017 16:35:59 +0100
From:      Harry Schmalzbauer <freebsd@omnilan.de>
To:        Rajil Saraswat <rajil.s@gmail.com>
Cc:        freebsd-virtualization@freebsd.org
Subject:   Re: Zvol, Bhyve/Pfsense and config restore
Message-ID:  <589C8C5F.7060904@omnilan.de>
In-Reply-To: <CAFoaQoCf5hEzd_jx_z4EpgMHJOsXKu7KfR-mDkJnKsTP_q3VpQ@mail.gmail.com>
References:  <101c40b4-55fe-20ec-6ed0-ff77df9d2618@gmail.com> <589C6CF9.3020707@omnilan.de> <CAFoaQoCf5hEzd_jx_z4EpgMHJOsXKu7KfR-mDkJnKsTP_q3VpQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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).

-harry



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?589C8C5F.7060904>