Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Aug 2014 17:23:26 +0200
From:      Nikolay Denev <ndenev@gmail.com>
To:        Marat Bakeev <hawara@hawara.com>
Cc:        freebsd-virtualization@freebsd.org
Subject:   Re: VirtIo errors inside VM with UFS-in-zvol
Message-ID:  <CA%2BP_MZGP_4Lxn6rNc2x5kba_TtGG2OA5gC-hCe6gKOaB398oNw@mail.gmail.com>
In-Reply-To: <53FC8DD9.4010202@hawara.com>
References:  <CAOb7DXGpDb1fALsLzbfAYk-9nQUoV5wWF9VJQwNDMQ2ZhBPkPg@mail.gmail.com> <CA%2BP_MZHvzuwZuvfNJBb6s3hJEcUKZx56-Zc9RPpXgOs8SUuN%2BQ@mail.gmail.com> <53FB2662.7090501@hawara.com> <53FB856A.4090900@freebsd.org> <CA%2BP_MZHwvSqthrJMjBvF2rw31EfjtMkZhLqFOB9-zpcuhU3jYw@mail.gmail.com> <53FBAA8A.40908@freebsd.org> <53FC8DD9.4010202@hawara.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Aug 26, 2014 at 3:38 PM, Marat Bakeev <hawara@hawara.com> wrote:
>
> On 26/08/2014 09:28, Allan Jude wrote:
>>>
>>> Thanks Peter,
>>>
>>> That would be volmode=dev, correct?
>>
>> You want: vfs.zfs.vol.mode=2
>>
>> in /boot/loader.conf
>>
>> It is my understanding that the sysctl must be set BEFORE the pool is
>> imported to work correctly.
>
> What is the difference between property 'volmode=dev', and the sysctl?
> When do I need to use the sysctl, and when do one needs to use the
> volmode=dev?
>
> Either of them must be set in the host system, of course?
>
> _______________________________________________
> freebsd-virtualization@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> To unsubscribe, send any mail to
> "freebsd-virtualization-unsubscribe@freebsd.org"

To me it looks like you should not use the sysctl if you are using the
zvols on the host systems for anything that expects them to be GEOM
providers, e.g. mounting as UFS volumes, etc. as this will hide them
from GEOM.
For now I've set it to "dev" via the zfs property only for the zvols
that I either export as iscsi or use for bhyve virts.
Flipping the property has the effect of gpt partitions of the zvol
disappearing and appearing again in /dev/zvol/..., while the system is
running,
while as Allan mentioned, setting the sysctl does not seem to affect
zvols that are on already imported pool.

--Nikolay



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BP_MZGP_4Lxn6rNc2x5kba_TtGG2OA5gC-hCe6gKOaB398oNw>