Re: [r222277] Strange GEOM, bsdlabel and ZFS behavior

From: Eir Nym <eirnym_at_gmail.com>
Date: Thu, 9 Jun 2011 11:31:38 +0400
On 9 June 2011 10:45, Eir Nym <eirnym_at_gmail.com> wrote:
> On 8 June 2011 23:12, Vladislav V. Prodan <universite_at_ukr.net> wrote:
>> 08.06.2011 17:54, Eir Nym wrote:
>>>
>>> On 8 June 2011 16:10, Vladislav V. Prodan<universite_at_ukr.net>  wrote:
>>>>
>>>> 08.06.2011 11:10, Eir Nym wrote:
>>>>>
>>>>> gpart show is work now, but not when I load zfs into memory and try to
>>>>> add zpool into.
>>>>>
>>>>> and when I'll boot gpart says 'GEOM: ada0s1a invalid disklabel'
>>>>
>>>> Output:
>>>> gpart show ada0
>>>>
>>> #gpart show ada0
>>> =>         63  1250263665  ada0  MBR  (596G)
>>>           63   411807627     1  freebsd  (196G)
>>>    411807690          54        - free -  (27k)
>>>    411807744      202752     2  !239  (99M)
>>>    412010496      204800     3  ntfs  [active]  (100M)
>>>    412215296   838045696     4  ntfs  (399G)
>>>   1250260992        2736        - free -  (1.3M)
>>> #gpart show ada0s1
>>> =>         0  411807627  ada0s1  BSD  (196G)
>>>           0  402653247       1  freebsd-zfs  (192G)
>>>   402653247    9154380       2  freebsd-swap  (4.4G)
>>>
>>>>
>>
>> gpart modify -i 1 -l disk0 ada0s1
> gpart: Invalid argument
>
> after recreate ada0s1 there gpart shows 4 GEOMs with BSD partitioning
> (numbers are same as above):
> ada0s1
> ada0s1
> ada0s1c
> ada0s1c
>
>
> ----------------------
> If I create BSD scheme with old good bsdlabel(8): (numbers are written
> by hands to minimize reboot count)
> #gpart delete -i 1 ada0s1
> #gpart delete -i 2 ada0s1
> #gpart destroy ada0s1
> #bsdlabel -w ada0s1
> #gpart show ada0s1
> => 0 411807627 ada0s1 BSD (196G)
>  0 16 -free - (8.0k)                                     ---> used by
> BSDLabel data
>  16 411807611 1 !0 (196G)                          ---> ada0s1a
>
> and this label is correct.
>
> I think that GEOM part create and add commands must add some gap
> before partitions for any schemes and bug is here.
>

http://www.freebsd.org/cgi/query-pr.cgi?pr=157723
http://www.freebsd.org/cgi/query-pr.cgi?pr=157724

>> and after reboot try:
>> zpool create tank /dev/gpt/disk0
>>
>>
>
>
>>
>>
>> --
>> Vladislav V. Prodan
>> VVP24-UANIC
>> +380[67]4584408
>> +380[99]4060508
>> vlad11_at_jabber.ru
>> _______________________________________________
>> freebsd-current_at_freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>>
>
Received on Thu Jun 09 2011 - 05:32:00 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:14 UTC