From owner-freebsd-current@FreeBSD.ORG Thu Jun 9 07:32:00 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED968106566B for ; Thu, 9 Jun 2011 07:31:59 +0000 (UTC) (envelope-from eirnym@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 718718FC0A for ; Thu, 9 Jun 2011 07:31:59 +0000 (UTC) Received: by bwz12 with SMTP id 12so1529918bwz.13 for ; Thu, 09 Jun 2011 00:31:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=oqZkuZXbUfkybUlLFN7ehNMUwQX8BcKZWrNcNBuAv6o=; b=YaDHJeaz3MkyNmKe9IAJI3G8q9Us12WBfQ88F79Suk+KLuF5/buQsNyxqhl2+K+yRD 591pYR/csK56v5qDnclVdigT2o176lZ1ffVOYzkU+wbrgvNSSeSSubRzUYNVSwBabzfQ R7ozDJIwKAbfvbPVLZbLWp36n9JfR39dh++uA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=a5elUWpCG9BLFOf0/vQP4qZ846CokCtylG03UeIv10PdxiTLYnjCqId/I+cwW3djxp X7+EtoiCM2qO6dBp68Gbx69JJVDxX+1+z2/Mpef1yrvriHyG7SLujI/iw5mWGSCWdFhA ykPHSfXVI088YS8FSwfK4DfFsbEGjvQ7tU5ow= Received: by 10.204.19.19 with SMTP id y19mr362116bka.164.1307604718161; Thu, 09 Jun 2011 00:31:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.15.74 with HTTP; Thu, 9 Jun 2011 00:31:38 -0700 (PDT) In-Reply-To: References: <4DEF66D0.6010307@ukr.net> <4DEFC9A7.90304@ukr.net> From: Eir Nym Date: Thu, 9 Jun 2011 11:31:38 +0400 Message-ID: To: "Vladislav V. Prodan" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: [r222277] Strange GEOM, bsdlabel and ZFS behavior X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2011 07:32:00 -0000 On 9 June 2011 10:45, Eir Nym wrote: > On 8 June 2011 23:12, Vladislav V. Prodan wrote: >> 08.06.2011 17:54, Eir Nym wrote: >>> >>> On 8 June 2011 16:10, Vladislav V. Prodan =C2=A0wro= te: >>>> >>>> 08.06.2011 11:10, Eir Nym wrote: >>>>> >>>>> gpart show is work now, but not when I load zfs into memory and try t= o >>>>> 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=A0M= BR =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= =A0ntfs =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=A0B= SD =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=A0free= bsd-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) > =C2=A00 16 -free - (8.0k) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 ---> used by > BSDLabel data > =C2=A016 411807611 1 !0 (196G) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0---> 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=3D157723 http://www.freebsd.org/cgi/query-pr.cgi?pr=3D157724 >> 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.or= g" >> >