Quantcast

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

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Andriy Gapon

I updated a system that was running a half year old head before that.
Now on every reboot I see messages like:

GEOM_PART: zvol/pond/raidz0 was automatically resized.
  Use `gpart commit zvol/pond/raidz0` to save changes or `gpart undo
zvol/pond/raidz0` to revert them

I have done "gpart commit", but on the next reboot I still see the same message.
That didn't happen with the older FreeBSD.

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.

Please advise.
Thank you.
--
Andriy Gapon
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-geom
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Andrey V. Elsukov-2
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

zvol.diff (937 bytes) Download Attachment
signature.asc (565 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Andriy Gapon
On 28/02/2017 14:05, Andrey V. Elsukov wrote:

> 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.


The patch does help.
Thank you very much!

--
Andriy Gapon
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-geom
To unsubscribe, send any mail to "[hidden email]"
Loading...