[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: how do I detect the HDD's on the system?



	Hi!

	%include /tmp/part-include

	%pre
set $(list-harddrives)
let numd=$#/2 # Número de discos
d1=$1 # 1st HDD drive
S1=$2 # 1st HDD size

DISCO=$d1

echo "clearpart --drives=$DISCO --all --initlabel" >> /tmp/part-include
echo "part /boot --fstype ext3 --size=100 --ondisk=$DISCO" >> /tmp/part-include
echo "part pv.100000 --size=1 --grow --ondisk=$DISCO" >>  /tmp/part-include
echo "volgroup VolGroup --pesize=32768 pv.100000" >> /tmp/part-include
echo "logvol swap --fstype swap --name=Swap --vgname=VolGroup --size=2047" >> /tmp/part-include
echo "logvol  / --fstype ext3 --name=root --vgname=VolGroup --size=1024" >> /tmp/part-include
echo "logvol /home --fstype ext3 --size=1024 --name=home --vgname=VolGroup" >> /tmp/part-include
echo "logvol /tmp --fstype ext3 --size=1024 --name=tmp --vgname=VolGroup" >> /tmp/part-include
echo "logvol /usr --fstype ext3 --size=3000 --name=usr --vgname=VolGroup" >> /tmp/part-include
echo "logvol /opt --fstype ext3 --size=12000 --name=opt --vgname=VolGroup" >> /tmp/part-include
echo "part /opt/iso --fstype vfat --size=4410 --ondisk=$DISCO" >> /tmp/part-include


	But with your intended partitioning layout and required "conditionals"
to automatically setup raid as expressed in previous posts on this
thread

	Regards
	Pablo



El vie, 29-02-2008 a las 09:46 +0200, Rudi Ahlers escribió:
> Pablo Iranzo Gómez wrote:
> > 	Does this work fine for you?
> >
> > set $(list-harddrives)
> > let numd=$#/2 # HDD NUM
> > d1=$1 # 1st HDD Device
> > S1=$2 # 1st HDD Size (and so on)
> >
> > 	Then you can start defining partitions based on the detection maade
> > with a %pre script
> >
> > 	Regards
> > 	Pablo
> >
> >
> >
> > El vie, 29-02-2008 a las 00:39 +0200, Rudi Ahlers escribió:
> >   
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> >   
> Where / how do I use that?
> 
-- 

Pablo Iranzo Gómez (Pablo Iranzo redhat com)
RHCE/Global Profesional Services Consultant Spain
Phone: +34 645 01 01 49 (CET/CEST)
GnuPG KeyID: 0xFAD3CF0D
---
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain
Dirección Registrada: Red Hat S.L., C/ Velazquez 63, Madrid 28001, Spain
Inscrita en el Reg. VolGroupntil de Madrid – C.I.F. B82657941

Attachment: signature.asc
Description: Esta parte del mensaje está firmada digitalmente


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]