From owner-freebsd-stable@FreeBSD.ORG Tue May 24 14:46:08 2011 Return-Path: Delivered-To: stable@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id 6C195106566B for ; Tue, 24 May 2011 14:46:08 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from [127.0.0.1] (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 8BCA2150F71; Tue, 24 May 2011 14:46:07 +0000 (UTC) Message-ID: <4DDBC4A9.7040404@FreeBSD.org> Date: Tue, 24 May 2011 18:46:01 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.17) Gecko/20110429 Thunderbird/3.1.10 MIME-Version: 1.0 To: Victor Balada Diaz References: <20110524132028.GE1291@equilibrium.bsdes.net> In-Reply-To: <20110524132028.GE1291@equilibrium.bsdes.net> X-Enigmail-Version: 1.1.2 OpenPGP: id=10C8A17A Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig8D28162DEE97DD6314863528" Cc: stable@freebsd.org Subject: Re: gpart usage X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2011 14:46:08 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8D28162DEE97DD6314863528 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On 24.05.2011 17:20, Victor Balada Diaz wrote: > Ie, no 16 sector offset in it. So my question is... What's the proper w= ay of > doing a MBR + BSD label partition and where is it documented? what are = the different > bootcodes and when is needed each one?[1]=20 gptboot is used for GPT scheme. It should be written to the partition with type "freebsd-boot". And it searches in the GPT table partitions with type "freebsd-ufs" to boot from. gptzfsboot is also used for GPT, but it searches ZFS pools on the partitions with type "freebsd-zfs". zfsboot is used for MBR and BSD schemes to boot from ZFS. > also, how do i know about offsets each partitioning scheme needs? shoul= dn't GEOM > take care of it without user needing to know anything about it? Usually you do not need to know anything about offsets. > If i wanted to also align partition to 1 MB offsets so i can get better= performance > with advanced format drives and RAID controllers, what would be the bes= t option? > I guess that i would need to add the first freebsd-ufs partition starti= ng at 1985 > sector, because 1 MB =3D 2048 512byte sector, and 63 are reserved for M= BR scheme > so 2048 - 63 =3D 1985. Is this right or i'm mistaken in something? Yes, you are right. > Seems that gpart man page only documents doing it with GPT and doesn't = talk > about alignment constraints, but i can't use GPT because i want to do i= t over > gmirror and last sector is used by gpt and gmirror at the same time cau= sing > some warnings[2]. You can create GPT on top of your mirror. It will cause some warnings, but all should work. --=20 WBR, Andrey V. Elsukov --------------enig8D28162DEE97DD6314863528 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iQEcBAEBAgAGBQJN28StAAoJEAHF6gQQyKF6+XkIAKO8RQwY0Sg1Hzb1RtRbhcjF c204b6qVhFBmjvkEWXRHk2W3ejoYW58pIhy3Rw9z7Rj0QDzM8CCmm1yVQvecWcic P8eb++YZ8mlJU0SFeNmBIFBMiqytYvsJ5gNOeZhw3vpySLo8LA+mJQs9NV/V7GOc d1NOq+jAp7EpjVaBTJp+FeLwmaczu4P3MTfbLu7MGUdNLpdOQ8SOziv+rtGXKTb+ SjyC3vhg+pQbhPoqJGNYJOEG0oWtX19A2XAYpbgwkTssbP0pRLhxPXcXmE3WyfHW ao2bZeKjydQ6bZ0Jw+Sn3gmOTKiGRqshV5j5PDdqgl+EwOENza6TIgCOEaDeqlk= =ZVQt -----END PGP SIGNATURE----- --------------enig8D28162DEE97DD6314863528--