[CentOS] Centos 7 and Software Raid Minimal Install

Wed Jun 1 19:10:37 UTC 2016
Tru Huynh <tru at centos.org>

On Wed, Jun 01, 2016 at 12:25:17PM -0500, Matt wrote:
> I am trying to install Centos 7 on a couple 4TB drives with software
> raid.  In the Supermicro bios I set UEFI/BIOS boot mode to legacy.  I
> am using the Centos 7 minimal install ISO flashed to a USB thumb
> drive.
> 
> So I do custom drive layout something like this using sda and sdb.
> 
> Create /boot as 512 MB XFS raid1 array.
> 
> Create SWAP as 32 GB SWAP raid1 array.
> 
> Create / on 3.xxx TB XFS raid1 array.
> 
> I then get error.
> 
> "Your BIOS-based system needs a special partition to boot from a GPT
> disk label.  To countinue, please create a 1MiB 'biosboot' type
> partition."
> 
> I cannot seem to create the biosboot partition so it is mirrored to
> both drives for redundancy.  Any ideas how to do this?  I want
> everything mirrored to both drives.

This is the relevant part of a kickstart of a raid1 setup I have used 2 weeks
ago for a 3 members RAID1 on 6 TB hard disks (legacy boot, no UEFI).

<snip>
clearpart --all --drives=sda,sdb,sdc --initlabel

#initial setup only
#------------------
part biosboot.a --fstype=biosboot --size=1 --ondisk=sda
part biosboot.b --fstype=biosboot --size=1 --ondisk=sdb
part biosboot.c --fstype=biosboot --size=1 --ondisk=sdc
part raid.1a --size=1500   --asprimary --ondisk=sda
part raid.1b --size=1500   --asprimary --ondisk=sdb
part raid.1c --size=1500   --asprimary --ondisk=sdc
part raid.2a --size=32000  --asprimary --ondisk=sda --grow
part raid.2b --size=32000  --asprimary --ondisk=sdb --grow
part raid.2c --size=32000  --asprimary --ondisk=sdc --grow

#initial setup only
#------------------
raid /boot --fstype ext4 --level=RAID1 raid.1a raid.1b raid.1c --device=md0
raid pv.raid1 --level=RAID1 raid.2a raid.2b raid.2c --device=md1
volgroup raid1 pv.raid1
logvol /     --vgname=raid1 --size=16000 --name=root --fstype=xfs
logvol /home --vgname=raid1 --size=1000 --name=home --fstype=xfs
logvol swap  --vgname=raid1 --size=1000 --name=swap --fstype=swap
</snip>

Just adapt for 2 members and you partionning of choice.

Tru

-- 
Tru Huynh 
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xBEFA581B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20160601/07655cce/attachment-0005.sig>