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
[-- Attachment #1 --] 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 way of > doing a MBR + BSD label partition and where is it documented? what are the different > bootcodes and when is needed each one?[1] 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? shouldn'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 best option? > I guess that i would need to add the first freebsd-ufs partition starting at 1985 > sector, because 1 MB = 2048 512byte sector, and 63 are reserved for MBR scheme > so 2048 - 63 = 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 it over > gmirror and last sector is used by gpt and gmirror at the same time causing > some warnings[2]. You can create GPT on top of your mirror. It will cause some warnings, but all should work. -- WBR, Andrey V. Elsukov [-- Attachment #2 --] -----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DDBC4A9.7040404>
