GEOM_PART: zvol/pond/xxx was automatically resized, every boot

Andrey V. Elsukov ae at FreeBSD.org
Tue Feb 28 12:07:46 UTC 2017


On 28.02.2017 13:00, Andriy Gapon wrote:
> This is quite annoying as I have to do gpart commit after each reboot to make my
> zvols usable.
> 
> To add some data:
>> gpart show zvol/pond/raidz0
> =>      63  10485697  zvol/pond/raidz0  MBR  (5.0G)
>         63  10485697                    - free -  (5.0G)
> 
> The zvol actually has whole-disk ZFS on it, which uses zfsboot for booting.
> In other words, the first block of the zvol is the first block of zfsboot binary.

Hi Andriy,

I think the attached (untested) patch can help.

-- 
WBR, Andrey V. Elsukov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zvol.diff
Type: text/x-patch
Size: 763 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20170228/e6614cd4/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 553 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20170228/e6614cd4/attachment.sig>


More information about the freebsd-geom mailing list