Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jun 2011 10:45:04 +0400
From:      Eir Nym <eirnym@gmail.com>
To:        "Vladislav V. Prodan" <universite@ukr.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: [r222277] Strange GEOM, bsdlabel and ZFS behavior
Message-ID:  <BANLkTikjKVeqJmxvd%2BSs6DdDVxxOa7Ryeg@mail.gmail.com>
In-Reply-To: <4DEFC9A7.90304@ukr.net>
References:  <BANLkTi=ypA6X1kzNpP8mYLgnP8kvC390vA@mail.gmail.com> <4DEF66D0.6010307@ukr.net> <BANLkTin1rv-q8U71D3iyV4Nb5BHTvcJv5A@mail.gmail.com> <4DEFC9A7.90304@ukr.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8 June 2011 23:12, Vladislav V. Prodan <universite@ukr.net> wrote:
> 08.06.2011 17:54, Eir Nym wrote:
>>
>> On 8 June 2011 16:10, Vladislav V. Prodan<universite@ukr.net> =C2=A0wrot=
e:
>>>
>>> 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
>> =3D> =C2=A0 =C2=A0 =C2=A0 =C2=A0 63 =C2=A01250263665 =C2=A0ada0 =C2=A0MB=
R =C2=A0(596G)
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 63 =C2=A0 411807627 =C2=A0 =C2=A0 1 =
=C2=A0freebsd =C2=A0(196G)
>> =C2=A0 =C2=A0411807690 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A054 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0- free - =C2=A0(27k)
>> =C2=A0 =C2=A0411807744 =C2=A0 =C2=A0 =C2=A0202752 =C2=A0 =C2=A0 2 =C2=A0=
!239 =C2=A0(99M)
>> =C2=A0 =C2=A0412010496 =C2=A0 =C2=A0 =C2=A0204800 =C2=A0 =C2=A0 3 =C2=A0=
ntfs =C2=A0[active] =C2=A0(100M)
>> =C2=A0 =C2=A0412215296 =C2=A0 838045696 =C2=A0 =C2=A0 4 =C2=A0ntfs =C2=
=A0(399G)
>> =C2=A0 1250260992 =C2=A0 =C2=A0 =C2=A0 =C2=A02736 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0- free - =C2=A0(1.3M)
>> #gpart show ada0s1
>> =3D> =C2=A0 =C2=A0 =C2=A0 =C2=A0 0 =C2=A0411807627 =C2=A0ada0s1 =C2=A0BS=
D =C2=A0(196G)
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0 =C2=A0402653247 =C2=A0 =C2=A0 =C2=
=A0 1 =C2=A0freebsd-zfs =C2=A0(192G)
>> =C2=A0 402653247 =C2=A0 =C2=A09154380 =C2=A0 =C2=A0 =C2=A0 2 =C2=A0freeb=
sd-swap =C2=A0(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
=3D> 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.

> and after reboot try:
> zpool create tank /dev/gpt/disk0
>
>


>
>
> --
> Vladislav V. Prodan
> VVP24-UANIC
> +380[67]4584408
> +380[99]4060508
> vlad11@jabber.ru
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org=
"
>



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