Kickstart para instalar nó de um Rack do zero.

Description

Este kickstart serve para instalar o nó de um rack do zero
[root@sprace ~]# more /export/linux/kickstart/ks_instalar.cfg
#Generated by Kickstart Configurator
#platform=x86, AMD64, or Intel EM64T

#System  language
lang en_SG
#Language modules to install
langsupport en_SG
#System keyboard
keyboard us-acentos
#System mouse
mouse
#Sytem timezone
timezone America/Sao_Paulo
#Root password
rootpw --iscrypted $1$96lpAZKJ$RpfvtqR8nP9AHrScGgjQM.
#Reboot after installation
reboot
#Install OS instead of upgrade
install
#Use NFS installation Media
nfs --server=192.168.1.200  --dir=/export/linux/SL_44_i386/
#System bootloader configuration
bootloader --location=mbr
#Partition clearing information
clearpart --all --initlabel
#Disk partitioning information
part /boot --fstype ext3 --size 100 --asprimary
part / --fstype ext3 --size 12288 --asprimary
part /var --fstype ext3 --size 4096
part swap --size 4096 --asprimary
part /tmp --fstype ext3 --size 2048
part /scratch --fstype ext3 --size 1 --grow
#System authorization infomation
auth  --useshadow  --enablemd5  --enablenis --nisdomain grid --nisserver 192.168.1.150
#Network information
#network --bootproto=dhcp --device=eth1
#Firewall configuration
firewall --disabled
#XWindows configuration information
xconfig --depth=24 --resolution=1024x768 --defaultdesktop=GNOME --card="ATI Radeon (generic)" --videoram=16384 --hsync=30.0-70.0 --vsync=50.0-160.0
#Package install information
%packages --resolvedeps
@ base-x
@ gnome-desktop
@ editors
@ engineering-and-scientific
@ graphics
@ server-cfg
@ mail-server
@ development-tools
@ admin-tools
@ system-tools
@ compat-arch-development
@ legacy-software-development
@ compat-arch-support
-octave
-pvm
-units
kernel-smp
kernel
grub
-samba-client
-lam
kernel-module-openafs-2.6.9-42.0.3.ELsmp
#kernel-smp-unsupported
-lapack
-blas
%post
/sbin/chkconfig yum off
/sbin/chkconfig iiim off
/sbin/chkconfig ccsd off
/sbin/chkconfig pcmcia off
/sbin/chkconfig cups off
/sbin/chkconfig kudzu off
#Em FNODE coloque o primeiro nó do rack para acertar o physical view do gmond
RACK=4; FNODE=55;
mkdir /teste;
mount -t nfs 192.168.1.200:/export /teste;
cd /teste;
cp ntp.conf /etc/.;
cp hosts /etc/hosts;
cp nsswitch.conf /etc/.;
cp step-tickers /etc/ntp/.;
cp condor1 /etc/init.d/condor;
cp gmond.conf  /etc/.;
mkdir /root/.ssh; chmod 600 /root/.ssh;cp authorized_keys /root/.ssh/.; mv /etc/resolv.conf /etc/resolv.conf.old;echo domain
grid|cat>>/etc/resolv.conf; echo nameserver 192.168.1.150| cat >>/etc/resolv.conf; echo nameserver 143.107.128.17| cat>>/etc/resolv.conf; echo nameserver 200.136.80.4| cat >>/etc/resolv.conf;mv /etc/sysconfig/network /etc/sysconfig/network.old;NNAME=`ifconfig eth1 | grep Bcast |cut -c31- | cut -d " " -f1`; echo NETWORKING=yes| cat>>/etc/sysconfig/network; echo HOSTNAME=node${NNAME}| cat >>/etc/sysconfig/network; echo GATEWAY=192.168.1.150| cat>>/etc/sysconfig/network; echo NISDOMAIN=grid|cat>>/etc/sysconfig/network;service gpm stop; chkconfig gpm off;echo root: root@spg00.grid|cat>>/etc/aliases; chkconfig sendmail on;mv /etc/sysconfig/network-scripts/ifcfg-eth1 /etc/sysconfig/network-scripts/ifcfg-eth1.bak; cat /etc/sysconfig/network-scripts/ifcfg-eth1.bak| sed -e "/BOOTPROTO=dhcp/d"| sed -e "/ONBOOT=no/d"|  sed -e "/HWADDR/d"|cat >> /etc/sysconfig/network-scripts/ifcfg-eth1; rm /etc/sysconfig/network-scripts/ifcfg-eth1.bak;echo ONBOOT=yes|cat>>/etc/sysconfig/network-scripts/ifcfg-eth1;MACADDR=`ifconfig eth1 | grep HWaddr| cut -c39-`; echo HWADDR=${MACADDR}|cat>>/etc/sysconfig/network-scripts/ifcfg-eth1;echo BROADCAST=192.168.1.255|cat>>/etc/sysconfig/network-scripts/ifcfg-eth1;IP=`ifconfig eth1 | grep Bcast |cut -c21- | cut -d "
" -f1`;echo IPADDR=${IP}|cat>>/etc/sysconfig/network-scripts/ifcfg-eth1 ;echo NETMASK=255.255.255.0|cat>>/etc/sysconfig/network-scripts/ifcfg-eth1; echo NETWORK=192.168.1.0| cat >> /etc/sysconfig/network-scripts/ifcfg-eth1; echo storage:/raid0 /raid0 nfs rw,addr=192.168.1.100 0 0 |cat >>/etc/mtab; echo spg00:/home /home nfs rw,addr=192.168.1.150 0 0 |cat >>/etc/mtab ; echo spg00:/OSG /OSG nfs rw,addr=192.168.1.150 0 0 |cat >>/etc/mtab; echo "spg00:/home  /home           nfs     defaults        0 0"|cat >>/etc/fstab;echo "spg00:/OSG   /OSG            nfs     defaults        0 0"| cat>>/etc/fstab;echo "storage:/raid0
       /raid0          nfs     defaults 0 0"|cat >>/etc/fstab;mkdir /OSG; mkdir /raid0;chkconfig ntpd on;echo ypserver 192.168.1.150|cat>>/etc/yp.conf;chkconfig ypbind on;mkdir /usr/local/opt;ln -s /OSG /usr/local/opt/OSG;ln -s /raid0/OSG /usr/local/share/OSG;mkdir /scratch/condor;mkdir /scratch/OSG;chmod a+rw /scratch/OSG; chown condor:condor /scratch/condor; ln -s /usr/local/opt/OSG/condor/etc/condor_config /scratch/condor/condor_config; cd /scratch/condor; touch condor_config.local; mkdir execute log spool;useradd -d /scratch/condor -u 521 condor;chown condor condor_config.local execute log spool;chkconfig --add condor;let RANK=NNAME-FNODE;echo location \"'$RACK','$RANK',0\"| cat >>/etc/gmond.conf;groupadd -g 104 ganglia;useradd -d /var/lib/ganglia -s /bin/false -g ganglia -u 107 ganglia ;rpm -ivh /teste/ganglia-monitor-core-gmond-2.5.4-8.i386.rpm;cd /;umount
/teste; rm -rf /teste;

Updates

Fulano em dd/mm/aaaa

Coloca o que fez.

Ciclano em dd/mm/aaaa

Mais comentarios

-- MarcoAndreFerreiraDias - 03 Jul 2007

Topic revision: r1 - 2007-07-03 - MarcoAndreFerreiraDias
 

This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback

antalya escort bursa escort eskisehir escort istanbul escort izmir escort