I have a host at home with 2 x 1TB SATA disks. I don't necessarily need the redundancy on this box, but I thought since I was bothering to get my PXE and kickstart working at home I may as well figure this out as well...
-- excerpt from kicksart profile --
# Clear the Master Boot Record
zerombr
# Remove ALL partitions
clearpart --all --initlabel --drives=sda,sdb
# Install the bootloader in the MBR
bootloader --location=mbr --driveorder=sda,sdb
part /boot/efi --fstype=efi --size=500 --ondisk=sda
part /boot/efi-dummy --fstype=ext4 --size=500 --ondisk=sdb
# You cannot define a specific partition ('onpart') if you use 'clearpart'
part raid.sda2 --asprimary --fstype="raid" --ondisk=sda --size=512
part raid.sdb2 --asprimary --fstype="raid" --ondisk=sdb --size=512
part raid.sda3 --asprimary --fstype="raid" --ondisk=sda --size=51200 --grow
part raid.sdb3 --asprimary --fstype="raid" --ondisk=sdb --size=51200 --grow
raid /boot --device=0 --fstype="ext4" --level=RAID1 raid.sda2 raid.sdb2
raid pv.01 --device=1 --fstype="physical volume (LVM)" --level=RAID1 raid.sda3 raid.sdb3
volgroup vg_rhelkvm01 --pesize=32768 pv.01
logvol / --fstype=ext4 --name=lv_root --vgname=vg_rhelkvm01 --size=51200
logvol swap --name=lv_swap --vgname=vg_rhelkvm01 --size=7896
-- excerpt from kicksart profile --
# Clear the Master Boot Record
zerombr
# Remove ALL partitions
clearpart --all --initlabel --drives=sda,sdb
# Install the bootloader in the MBR
bootloader --location=mbr --driveorder=sda,sdb
part /boot/efi --fstype=efi --size=500 --ondisk=sda
part /boot/efi-dummy --fstype=ext4 --size=500 --ondisk=sdb
# You cannot define a specific partition ('onpart') if you use 'clearpart'
part raid.sda2 --asprimary --fstype="raid" --ondisk=sda --size=512
part raid.sdb2 --asprimary --fstype="raid" --ondisk=sdb --size=512
part raid.sda3 --asprimary --fstype="raid" --ondisk=sda --size=51200 --grow
part raid.sdb3 --asprimary --fstype="raid" --ondisk=sdb --size=51200 --grow
raid /boot --device=0 --fstype="ext4" --level=RAID1 raid.sda2 raid.sdb2
raid pv.01 --device=1 --fstype="physical volume (LVM)" --level=RAID1 raid.sda3 raid.sdb3
volgroup vg_rhelkvm01 --pesize=32768 pv.01
logvol / --fstype=ext4 --name=lv_root --vgname=vg_rhelkvm01 --size=51200
logvol swap --name=lv_swap --vgname=vg_rhelkvm01 --size=7896
Comments
Post a Comment