All pastes #880859 Raw Edit

Something

public text v1 · immutable
#880859 ·published 2008-01-29 21:29 UTC
rendered paste body
# This is our disk setup specific to a 2 disk mirrored setup

#Partition clearing information, clear hda and hdb
#This config file assumes a two disk mirrored setup
clearpart --all --initlabel --drives=hda,hdb

#Disk partitioning information

# Create the partitions on the first disk
# root partition
part raid.10 --size=4000 --ondisk=hda
# boot partition
part raid.11 --size=500 --ondisk=hda
# swap partition
part raid.12 --size=2000 --ondisk=hda
# everything else for the lvm physical volume
part raid.13 --size=1 --grow --ondisk=hda

# Create the partitions on the second disk
# root partition
part raid.20 --size=4000 --ondisk=hdb
# boot partition
part raid.21 --size=500 --ondisk=hdb
# swap partition
part raid.22 --size=2000 --ondisk=hdb
# Raid the rest for the LVM physical volume
part raid.23 --size=1 --grow --ondisk=hdb

# Now RAID it all together
raid / --fstype ext3 --device md0 --level=RAID1 raid.10 raid.20
raid /boot --fstype ext3 --device md1 --level=RAID1 raid.11 raid.21
raid swap --fstype swap --device md2 --level=RAID1 raid.12 raid.22
# Make the rest an LVM physical volume
raid pv.01 --fstype ext3 --device md3 --level=RAID1 raid.13 raid.23

# Now setup the logical volumes
volgroup sysvg pv.01
logvol /var    --vgname=sysvg  --size=2000     --name=var
logvol /usr    --vgname=sysvg  --size=2000     --name=usr
logvol /home   --vgname=sysvg  --size=2000     --name=home
# --grow will expand /dj to use all remaining disk space
#logvol /dj     --vgname=sysvg  --size=4000     --n