[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: grub on ZRaid2



Hi,

On 21/10/13 02:25, Klaus Melchior wrote:
> On Mon, 21 Oct 2013 00:18:13 +0200, Robert Millan wrote:
>> Debian installer always creates zpools within MSDOS partitions, in order
>> to leave room for embedding. If you created a full-disk pool, GRUB
>> doesn't support this setup AFAIK.
> 
> What is a MSDOS partition?

It's a partition, on a disk having an MSDOS partition table.  For ZFS it
will also need to be an MSDOS Primary partition.  Primary partitions are
typically numbered 1 to 4.

> Is partman-base able to create MSDOS partitions for a ZRAID?

Yes, you can choose the partition table type by selecting the "adaN...
Generic IDE" row for each disk.

If using MSDOS, partman will automatically leave space before the first
partition for the bootloader embedding area.  And to avoid Bug #651624:
 you should also try to leave 1MiB or more free space at the end of the
disk - if you have 1999998 MB space then try to create a 1999997 MB ZFS
partition.  Check in partman that there is "FREE SPACE" still shown.

Actually I would leave as much as 256MiB space at the end of each disk,
in case you have problems and want to create a separate /boot partition
later.

Here is an example of a disk having three MSDOS Primary partitions:
https://wiki.debian.org/Debian_GNU/kFreeBSD/Tips#Example


Or instead, you could use GPT partitions.  Actually I would recommend
them for large (>=2TB) drives.  If using GPT, first create a tiny 1MiB
BIOS Boot partition (for GRUB), then create the ZFS partition which
could use 100% of the remaining space.  You will want to do the same on
each disk, and later tell GRUB to install bootcode onto all disks.

Regards,
-- 
Steven Chamberlain
steven@pyro.eu.org


Reply to: