[CentOS] Manual Paritioning with fdisk

Martin Hamant mh at accelance.fr
Tue Apr 12 12:21:42 UTC 2005


On Tue, 12 Apr 2005 08:12:43 -0400
Gerald Waugh <gwaugh at frontstreetnetworks.com> disait:

> On Tue, 2005-04-12 at 07:00 -0400, Joshua Baker-LePain wrote:
> 
> > 1) Setting up software RAIDs is really easy if you kickstart.  This
> > is the  partitioning section from one of my ks.cfg files that sets
> > up a fully  mirrored system on a box with 2 IDE drives (hda and
> > hdc):
> > 
> > clearpart --all
> > 
> > part raid.01 --size=6144 --ondisk=hda --asprimary
> > part raid.11 --size=6144 --ondisk=hdc --asprimary
> > part raid.02 --size=4096 --ondisk=hda
> > part raid.12 --size=4096 --ondisk=hdc
> > part raid.03 --size=8192 --ondisk=hda
> > part raid.13 --size=8192 --ondisk=hdc
> > part raid.04 --size=1024 --ondisk=hda
> > part raid.14 --size=1024 --ondisk=hdc
> > part raid.05 --size=1024 --ondisk=hda
> > part raid.15 --size=1024 --ondisk=hdc
> > part raid.06 --size=1024 --grow --ondisk=hda
> > part raid.16 --size=1024 --grow --ondisk=hdc
> > 
> > raid / --level=1 --device=md0 raid.01 raid.11
> > raid /usr/local --level=1 --device=md1 raid.02 raid.12
> > raid /home --level=1 --device=md2 raid.03 raid.13
> > raid /tmp --level=1 --device=md3 raid.04 raid.14
> > raid swap --level=1 --device=md4 raid.05 raid.15
> > raid /var --level=1 --device=md5 raid.06 raid.16
> > 
> > 2) If you use grub, by default a system missing the non-primary boot
> > drive  (i.e., if hda in the above system died) won't boot.  There
> > are tricks out  there to get a boot sector on the secondary boot
> > drive.  *However*, if you  use LILO, you can tell it that
> > 'boot=/dev/md0' and it will automatically  make both drives
> > bootable.
> 
> I see, never used kickstart, 
> I did see anaconda.ks.cfg in root when an install is completed.
> So I guess one could edit anaconda.ks.cfg as one sees fit.
> 
> Not sure how to use it though. I suspect at the install 'boot' prompt
> I should enter some command.
> 

Hello Gerald,

Look at "kickstart" section on the RHEL documentation !
http://www.centos.org/docs/4/html/rhel-sag-en-4/

-- 
Martin



More information about the CentOS mailing list