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

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

 



Pablo Iranzo Gómez wrote:
	¿Can you send me your ks file?

	Regards
	Pablo

El lun, 03-03-2008 a las 17:25 +0200, Rudi Ahlers escribió:
tep installtype does not exist
16:52:32 WARNING : step complete does not exist
16:52:32 WARNING : step complete does not exist
16:52:32 WARNING : step complete does not exist
16:52:33 INFO    : moving (1) to step regkey
16:52:33 INFO    : moving (1) to step partitionobjinit
16:52:33 INFO : no initiator set ------------------------------------------------------------------------

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list
I've modified it a bit, with a less complex layout (in fact, the sample layout from the PDF - Kickstart tricks)

The ks_raid is the full RAID kickstart file, and the ks_xen is my original kickstart file, before I tried to incorporate the RAID setup

--

Kind Regards
Rudi Ahlers
CEO, SoftDux

Web:   http://www.SoftDux.com
Check out my technical blog, http://blog.softdux.com for Linux or other technical stuff, or visit http://www.WebHostingTalk.co.za for Web Hosting stugg

# Kickstart file automatically generated by anaconda.

install
cdrom
#interactive
lang en_US.UTF-8
keyboard us
network --device eth0 --bootproto static --ip 192.168.10.10 --netmask 255.255.255.0 --gateway 192.168.10.5 --nameserver 192.168.10.5 --hostname gimbli.softdux.com
#network --device eth1 --onboot no --bootproto dhcp --hostname gimbli.softdux.com
rootpw --iscrypted $1$PCfN/uRk$lI/TG0P6vxBvw3kCIKVGy0

firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --disabled
timezone Africa/Johannesburg
bootloader --location=mbr --driveorder=sda
#driverdisk=r1000-2.6.18_8.img


# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --all
part /boot --fstype ext3 --size=150 --ondisk=sda
part swap --size=1500 --ondisk=sda
part /bkp --fstype ext3 --size=100 --grow --ondisk=sdb
part / --fstype ext3 --size=100 --grow --ondisk=sda


###################
# non RAID config
###################
#clearpart --all
part /boot	--fstype ext3 --size=150  --ondisk=sda
part swap 		      --size=2048 --ondisk=sda
part pv.01 	--fstype ext3 --size=100  --grow --ondisk=sda


# LVM configuration so that we can resize /, /var and /usr/ later
logvol /     	        --vgname=sysvg  --size=3072     --name=root
logvol /usr		--vgname=sysvg  --size=8192     --name=usr
logvol /tmp		--vgname=sysvg	--size=1024	--name=tmp
logvol /var		--vgname=sysvg	--size=8192	--name=var	
logvol /home            --vgname=sysvg  --size=20480	--name=home
if [ pv.02 ]; then
logvol /bck		--vgname=pv.02  --size=1 --grow --name=bck
fi
#logvol /home	        --vgname=sysvg  --size=1 --grow --name=home

reboot
%packages --nobase
#@dialup
#openssh-server
#bash
#@virtualization

wget
#lynx
#mutt
#links
ftp
#mlocate
#mrtg
#man
#bzip2
#groff
-aspell
-aspell-en
-bluez-utils
-gpm
-finger
-irda-utils
-isdn4k-utils
-logwatch
-ppp
-rdate
-rdist
-rp-pppoe
-rsh
-wvdial
-ypbind
-yp-tools

%post
# Disabled Services
chkconfig cpuspeed off
chkconfig iptables off
/sbin/chkconfig sendmail off
/usr/sbin/adduser -m -G users lordmerlin
echo "siloam123" | passwd lordmerlin
mkdir -p /etc/system-info
date --iso-8601=minutes > /etc/system-info/install-date
echo "method=kickstart version=1 revision=1" > /etc/system-info/install-method

exec < /dev/tty3 > /dev/tty3
 
echo
echo
echo "######################################"
echo "					    "
echo " Downloading the latest cPanel releas "
echo "					    "
echo "######################################"
echo
echo 

mkdir /home/cpins
cd /home/cpins
#wget http://layer1.cpanel.net/latest

echo
echo
echo "######################################"
echo "                                      "
echo " Busy installing cPanel.......	    "
echo "                                      "
echo "######################################"
echo
echo


sh latest 


echo
echo
echo "######################################"
echo "                                      "
echo " The latest cPanel has been installed "
echo "                                      "
echo "######################################"
echo
echo


# Kickstart file automatically generated by anaconda.

install
cdrom
#interactive
lang en_US.UTF-8
keyboard us
network --device eth0 --bootproto static --ip 192.168.10.10 --netmask 255.255.255.0 --gateway 192.168.10.5 --nameserver 192.168.10.5 --hostname gimbli.softdux.com
#network --device eth1 --onboot no --bootproto dhcp --hostname gimbli.softdux.com
rootpw R0otP4ss!23

firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --disabled
timezone Africa/Johannesburg
bootloader --location=mbr --driveorder=sda
#driverdisk --source=/r1000-2.6.18_8.img

#driverdisk --source=cdrom:/r1000-2.6.18_8.img

zerombr yes
clearpart --all 

#%include /tmp/partinfo
%pre
# Determine how many number/type/size of drives we have
set $(list-harddrives)
let numd=$#/2 # This will provide the total # of drives
d1=$1 # This is the device of disk 1
d2=$3 # This is the device of disk 2, etc.
S1=$2 # This is the size of disk 1
S2=$4 # This is the size of disk 2, etc.

# This would be a partition scheme for two or more drives
if [ $numd -ge 2 ] ; then 
cat << EOF >> /tmp/partinfo 
part pv.01 --size=1 --grow --fstype=ext3 --ondisk=$d1 volgroup volgrp01 pv.01 
part pv.02 --size=1 --grow --fstype=ext3 --ondisk=$d2 volgroup volgrp02 pv.02 #HOWEVER_YOU_WANT_TO_PARTITION 
EOF
else
cat << EOF >> /tmp/partinfo part pv.01 --size=1 --grow --fstype=ext3 --ondisk=$d1 volgroup volgrp01
pv.01 #HOWEVER_YOU_WANT_TO_PARTITION 
EOF
fi

%include /tmp/partinfo


#reboot
%packages --nobase
#openssh-server
#bash
#@virtualization

wget
#lynx
#mutt
#links
ftp
#mlocate
#mrtg
#man
#bzip2
#groff
-aspell
-aspell-en
-bluez-utils
-gpm
-finger
-irda-utils
-isdn4k-utils
-logwatch
-ppp
-rdate
-rdist
-rp-pppoe
-rsh
-wvdial
-ypbind
-yp-tools



%post
#Disabled Services
/sbin/chkconfig cpuspeed off
/sbin/chkconfig iptables off
/sbin/chkconfig sendmail off
mkdir -p /etc/system-info
date --iso-8601=minutes > /etc/system-info/install-date
echo "method=kickstart version=1 revision=1" > /etc/system-info/install-method

exec < /dev/tty3 > /dev/tty3
 
chvt 3
echo
echo
echo "######################################"
echo "					    "
echo " Downloading the latest cPanel releas "
echo "					    "
echo "######################################"
echo
echo 

mkdir /home/cpins
cd /home/cpins
#wget http://layer1.cpanel.net/latest

echo
echo
echo "######################################"
echo "                                      "
echo " Busy installing cPanel.......	    "
echo "                                      "
echo "######################################"
echo
echo


sh latest 


echo
echo
echo "######################################"
echo "                                      "
echo " The latest cPanel has been installed "
echo "                                      "
echo "######################################"
echo
echo



# Kickstart file automatically generated by anaconda.

install
cdrom
#interactive
lang en_US.UTF-8
keyboard us
network --device eth0 --bootproto static --ip 192.168.10.10 --netmask 255.255.255.0 --gateway 192.168.10.5 --nameserver 192.168.10.5 --hostname gimbli.softdux.com
#network --device eth1 --onboot no --bootproto dhcp --hostname gimbli.softdux.com
rootpw --iscrypted $1$PCfN/uRk$lI/TG0P6vxBvw3kCIKVGy0

firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --disabled
timezone Africa/Johannesburg
bootloader --location=mbr --driveorder=sda
#driverdisk --source=/mnt/source/r1000-2.6.18_8.img

#driverdisk --source=cdrom:/r1000-2.6.18_8.img

zerombr yes
clearpart --all 

#%include /tmp/partinfo
%pre
# Determine how many number/type/size of drives we have
set $(list-harddrives)
let numd=$#/2 # This will provide the total # of drives
d1=$1 # This is the device of disk 1
d2=$3 # This is the device of disk 2, etc.
d3=$5
d4=$7
d5=$9
S1=$2 # This is the size of disk 1
S2=$4 # This is the size of disk 2, etc.
S3=$6
S4=$8
S5=$10


# This would be a partition scheme for three or more drives
if [ $numd -ge 3 ] ; then
cat << EOF >> /tmp/partinfo
part raid.11    --size 200      --asprimary     --ondrive=$d1
part raid.12    --size 2048     --asprimary     --ondrive=$d1
part raid.13    --size 1 --grow                 --ondrive=$d1

part raid.21    --size 200      --asprimary     --ondrive=$d2
part raid.22    --size 2048     --asprimary     --ondrive=$d2
part raid.23    --size 1 --grow                 --ondrive=$d2

part raid.31    --size 200      --asprimary     --ondrive=$d3
part raid.32    --size 2048     --asprimary     --ondrive=$d3
part raid.33    --size 1 --grow                 --ondrive=$d3

raid /boot      --fstype ext3 --device md0 --level=RAID1 raid.11 raid.21 raid.31 --spare=1
raid swap       --fstype swap --device md1 --level=RAID1 raid.12 raid.22 raid.32 --spare=1
raid pv.01      --fstype ext3 --device md2 --level=RAID1 raid.13 raid.23 raid.33 --spare=1

logvol /                --vgname=sysvg  --size=3072     --name=root
logvol /usr             --vgname=sysvg  --size=8192     --name=usr
logvol /tmp             --vgname=sysvg  --size=1024     --name=tmp
logvol /var             --vgname=sysvg  --size=8192     --name=var
logvol /home            --vgname=sysvg  --size=20480    --name=home
logvol /bck             --vgname=pv.02  --size=1 --grow --name=bck

EOF
elif [ $numd - ge 2 ]; then
cat << EOF >> /tmp/partinfo
part /boot     --fstype ext3 --size=150  --ondisk=$d1
part swap                    --size=4092 --ondisk=$d1,$d2
part pv.01     --fstype ext3 --size=100  --grow --ondisk=$d1
part pv.02     --fstype ext3 --size=100  --grow --ondisk=$d2

logvol /                --vgname=sysvg  --size=3072     --name=root
logvol /usr             --vgname=sysvg  --size=8192     --name=usr
logvol /tmp             --vgname=sysvg  --size=1024     --name=tmp
logvol /var             --vgname=sysvg  --size=8192     --name=var
logvol /home            --vgname=sysvg  --size=20480    --name=home

EOF
else
cat << EOF >> /tmp/partinfo
part /boot     --fstype ext3 --size=150  --ondisk=$d1
part swap                    --size=4092 --ondisk=$d1
part pv.01     --fstype ext3 --size=100  --grow --ondisk=$d1

logvol /                --vgname=sysvg  --size=3072     --name=root
logvol /usr             --vgname=sysvg  --size=8192     --name=usr
logvol /tmp             --vgname=sysvg  --size=1024     --name=tmp
logvol /var             --vgname=sysvg  --size=8192     --name=var
logvol /home            --vgname=sysvg  --size=20480    --name=home

EOF
fi

part
%include /tmp/partinfo
part /boot     --fstype ext3 --size=150  --ondisk=$d1
part swap                    --size=4092 --ondisk=$d1,$d2
part pv.01     --fstype ext3 --size=100  --grow --ondisk=$d1
part pv.02     --fstype ext3 --size=100  --grow --ondisk=$d2

# LVM configuration so that we can resize /, /var and /usr/ later
logvol /                --vgname=sysvg  --size=3072     --name=root
logvol /usr             --vgname=sysvg  --size=8192     --name=usr
logvol /tmp             --vgname=sysvg  --size=1024     --name=tmp
logvol /var             --vgname=sysvg  --size=8192     --name=var
logvol /home            --vgname=sysvg  --size=20480    --name=home
#logvol /bck             --vgname=pv.02  --size=1 --grow --name=bck



#reboot
%packages --nobase
#@dialup
#openssh-server
#bash
#@virtualization

wget
#lynx
#mutt
#links
ftp
#mlocate
#mrtg
#man
#bzip2
#groff
-aspell
-aspell-en
-bluez-utils
-gpm
-finger
-irda-utils
-isdn4k-utils
-logwatch
-ppp
-rdate
-rdist
-rp-pppoe
-rsh
-wvdial
-ypbind
-yp-tools


%post
# Disabled Services
chkconfig cpuspeed off
chkconfig iptables off
/sbin/chkconfig sendmail off
/usr/sbin/adduser -m -G users lordmerlin
echo "siloam123" | passwd lordmerlin
mkdir -p /etc/system-info
date --iso-8601=minutes > /etc/system-info/install-date
echo "method=kickstart version=1 revision=1" > /etc/system-info/install-method

exec < /dev/tty3 > /dev/tty3
 
 
chvt 3
echo
echo
echo "######################################"
echo "					    "
echo " Downloading the latest cPanel releas "
echo "					    "
echo "######################################"
echo
echo 

mkdir /home/cpins
cd /home/cpins
#wget http://layer1.cpanel.net/latest

echo
echo
echo "######################################"
echo "                                      "
echo " Busy installing cPanel.......	    "
echo "                                      "
echo "######################################"
echo
echo


sh latest 


echo
echo
echo "######################################"
echo "                                      "
echo " The latest cPanel has been installed "
echo "                                      "
echo "######################################"
echo
echo



_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list

[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux