On Wed, Nov 18, 2015 at 09:49:43PM -0700, Devin Reade wrote:> --On Wednesday, November 18, 2015 11:07:12 PM -0500 Fred Smith > <fredex at fcshome.stoneham.ma.us> wrote: > > >But it isn't at all obvious how one would do a new RAID1 setup in > >Anaconda > > Don't feel bad. The abortion that is the RHEL/CentOS 7 graphical > install interface is far too dumbed-down to be easily usable by anyone > that understands what is going on under the covers. Oh, the irony. > > >Can anyone provide (or give pointers to) a good recipe for doing this? > > A quick google brought up the following link that (looking just at the > disk portion) appears to be mostly correct, and should give you the > magic incantation: > > <http://www.ictdude.com/howto/install-centos-7-software-raid-lvm/> >I've been building C7 VMs with RAID-1 in Virtualbox these last couple of days, to pin down exactly how to do it. based on the link above, but I'm making "real" partitions instead of LVM. The current iteration seems to be running fine, but I had an odd problem when configuring the partitions: for two 10 gig virtual drives, it wouldn't let me use the last gig of space. or maybe it has some other issue on the max partition size,... it seemed to max out at around 9900 MB. This for sure won't do when I build it on real hardware, so I'm wondering if anyone else here has a clue what's going on?? thanks in advance! -- ---- Fred Smith -- fredex at fcshome.stoneham.ma.us ----------------------------- "For him who is able to keep you from falling and to present you before his glorious presence without fault and with great joy--to the only God our Savior be glory, majesty, power and authority, through Jesus Christ our Lord, before all ages, now and forevermore! Amen." ----------------------------- Jude 1:24,25 (niv) -----------------------------
On 11/24/2015 07:35 PM, Fred Smith wrote:> it seemed to max out at around 9900 MB. This for > sure won't do when I build it on real hardware, so I'm wondering if > anyone else here has a clue what's going on??IIRC, Anaconda can't create "raid1" LVM volumes. That is, you can't create LVs that are mirrored across multiple PVs. You can create md RAID1 volumes and make a PV of the resulting RAID volume, though. So I think what you're probably doing is creating 100MB /boot partition, and then two md RAID component partitions of 9900MB.
m.roth at 5-cent.us
2015-Nov-25 15:33 UTC
[CentOS] C7: How to configure raid at install time
Fred Smith wrote:> On Wed, Nov 18, 2015 at 09:49:43PM -0700, Devin Reade wrote: >> --On Wednesday, November 18, 2015 11:07:12 PM -0500 Fred Smith >> <fredex at fcshome.stoneham.ma.us> wrote:<snip>> I've been building C7 VMs with RAID-1 in Virtualbox these last couple > of days, to pin down exactly how to do it. based on the link above, > but I'm making "real" partitions instead of LVM. > > The current iteration seems to be running fine, but I had an odd problem > when configuring the partitions: for two 10 gig virtual drives, it > wouldn't let me use the last gig of space. or maybe it has some other > issue on the max partition size,... it seemed to max out at around > 9900 MB. This for sure won't do when I build it on real hardware, > so I'm wondering if anyone else here has a clue what's going on??Two thoughts: one, as Gordon suggested, it might be making a /boot partition. The other thought is that it might be trying to align the partition optimal. Still, that's usually 1M or 2M, not 1G. Btw, when I manually create partitions, with parted, I use mkpart pri 0.0GB 100% (for data drives). Assuming I've gone in with parted -a opt, it does the right thing. Hope this gives you some ideas. mark
On Tue, Nov 24, 2015 at 10:32:16PM -0800, Gordon Messmer wrote:> On 11/24/2015 07:35 PM, Fred Smith wrote: > >it seemed to max out at around 9900 MB. This for > >sure won't do when I build it on real hardware, so I'm wondering if > >anyone else here has a clue what's going on?? > > IIRC, Anaconda can't create "raid1" LVM volumes. That is, you can't > create LVs that are mirrored across multiple PVs. You can create md > RAID1 volumes and make a PV of the resulting RAID volume, though. > > So I think what you're probably doing is creating 100MB /boot > partition, and then two md RAID component partitions of 9900MB.yeah, you're probably right. but for some reason, Anaconda is still telling me there's a gigabyte of unused space remaining (105x megabytes where i've forgotten what the "x" was.) Might that be because I didn't put swap on both drives (and I think I set up swap as a gig)? should I put swap on both drives? should it be RAID1 also, or just two swap partitions not in any RAID volume? (I remember seeing a somewhat technical article in the last couple of years that talked of a potential corruption issue if one puts swap into a Linux software RAID-1 volume, but no longer recall the details.) -- ---- Fred Smith -- fredex at fcshome.stoneham.ma.us ----------------------------- The Lord detests the way of the wicked but he loves those who pursue righteousness. ----------------------------- Proverbs 15:9 (niv) -----------------------------