Boot from LVM2 on RAID1 on 2xRAID5
Hello list,
Apologies if this is a "support" question that doesn't belong on the devel list. (I've been looking into RAID/LVM improvements in grub2 and thought this list might be appropriate, however.)
I have a linux system with 8 disks. I would like to divide them into groups of 4 and create 2 RAID5 arrays; then run a RAID1 array across the two RAID5 arrays; and finally LVM2 on top of the RAID1 array.
Can grub2 boot such a nested configuration? If so, what special steps must I take to install the bootloader? (I'll install the system with grub-legacy using Fedora or another distro, then migrate to grub2.)
For maximum simplicity and elegance, can I avoid a special /boot partition? If not, I suppose I would create a RAID1 across a small partition on all 8 disks for /boot.
Regards,
Richard
Quoted 10 lines · Richard Michael
Hello list,
Apologies if this is a "support" question that doesn't belong on the devel list. (I've been looking into RAID/LVM improvements in grub2 and thought this list might be appropriate, however.)
I have a linux system with 8 disks. I would like to divide them into groups of 4 and create 2 RAID5 arrays; then run a RAID1 array across the two RAID5 arrays; and finally LVM2 on top of the RAID1 array.
Quoted 7 lines
Can grub2 boot such a nested configuration? If so, what special steps must I take to install the bootloader? (I'll install the system with grub-legacy using Fedora or another distro, then migrate to grub2.)
For maximum simplicity and elegance, can I avoid a special /boot partition? If not, I suppose I would create a RAID1 across a small partition on all 8 disks for /boot.
Using a /boot partition is recommended. It should still work without it, but it's less tested.
Signature · 5 lines
Robert Millan <GPLv2> I know my rights; I want my phone call! <DRM> What good is a phone call… if you are unable to speak? (as seen on /.)
Quoted 10 lines · Richard Michael
Hello list,
Apologies if this is a "support" question that doesn't belong on the devel list. (I've been looking into RAID/LVM improvements in grub2 and thought this list might be appropriate, however.)
I have a linux system with 8 disks. I would like to divide them into groups of 4 and create 2 RAID5 arrays; then run a RAID1 array across the two RAID5 arrays; and finally LVM2 on top of the RAID1 array.
Why not use Raid-10 instead of this more complex setup?
Quoted 3 lines
Can grub2 boot such a nested configuration? If so, what special steps must I take to install the bootloader? (I'll install the system with grub-legacy using Fedora or another distro, then migrate to grub2.)
I played around with this myself a little bit. Currently Grub2 only understands the RAID superblock version 0.90. Since this only supports up to 2TB of RAIDs I actually have to partitions on every disk. The first one is part of a RAID-1 with a 0.90 superblock. The other partition is part of a RAID-5 with a 1.0 superblock.
Nevertheless you really should think about setting up a RAID-10 instead. (+ a small /boot RAID-1 partition)
Kind regards,
Mike
Mike,
Quoted 1 line
Why not use Raid-10 instead of this more complex setup?
I don't much about RAID10, and it's an mdadm special case. I felt it was cleaner to just have two separate arrays (well, three..). Also, I need to remove half the array on a regular basis, and rejoin it afterware for resync. I'm going to read about RAID10 and see if I can do that.
Quoted 5 lines
Quoted 4 lines
Can grub2 boot such a nested configuration? If so, what special steps
must I take to install the bootloader? (I'll install the system with grub-legacy using Fedora or another distro, then migrate to grub2.)
Quoted 11 lines
I played around with this myself a little bit. Currently Grub2 only understands the RAID superblock version 0.90.
Since this only supports up to 2TB of RAIDs I actually have to partitions
on every disk. The first one is part of a RAID-1
with a 0.90 superblock. The other partition is part of a RAID-5 with a 1.0
superblock.
Nevertheless you really should think about setting up a RAID-10 instead. (+
a small /boot RAID-1 partition)
Yes, thanks for the tip. I didn't know about 0.90 vs. 1.0 superblock size limitation. (It would be frustrating to discover when I want to go past 2TB!)
It is planned for Grub2 to support booting from 1.0 superblocks?
Regards,
Richard
Quoted 2 lines · Richard Michael
It is planned for Grub2 to support booting from 1.0 superblocks?
Only if/when someone volunteers to work on it.
Signature · 5 lines
Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."