Date: Tue, 24 May 2011 18:46:01 +0400 From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: Victor Balada Diaz <victor@bsdes.net> Cc: stable@freebsd.org Subject: Re: gpart usage Message-ID: <4DDBC4A9.7040404@FreeBSD.org> In-Reply-To: <20110524132028.GE1291@equilibrium.bsdes.net> References: <20110524132028.GE1291@equilibrium.bsdes.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DDBC4A9.7040404>