160 likes | 185 Views
Hands-On Session: Operating System Installation and Configuration. Regional SEE-GRID-SCI Training for Site Administrators Institute of Physics Belgrade March 5-6, 2009. Vladimir Slavnic Institute of Physics, Belgrade Serbia slavnic@scl.rs.
E N D
Hands-On Session:Operating System Installation and Configuration Regional SEE-GRID-SCI Training for Site Administrators Institute of Physics Belgrade March 5-6, 2009 Vladimir Slavnic Institute of Physics, Belgrade Serbia slavnic@scl.rs The SEE-GRID-SCI initiative is co-funded by the European Commission under the FP7 Research Infrastructures contract no. 211338
OS Scientific linux 4.7 (Beryllium) Fermi National Accelerator Laboratory and the European Organization for Nuclear Research (CERN) Compatible with and based on Red Hat Enterprise Linux
Installation methods • Manual (interactive) • Via kickstart • Installation sources • CD-Rom • Hard disk • NFS • FTP • HTTP
Installation steps 1/3 • TCP/IP configuration • (DHCP or static address) • Installation type • custom • Manual disk partitioning - usually create: • /boot • / • swap
Installation steps 2/3 • Boot loader – grub is our choice • usually no password and installed in MBR • Network configuration • Hostname configuration • Firewall • SELinux
Installation steps 3/3 • Language Support • Time Zone • Root password • Package selection
Configuration 1/7 • Set default init level - 3 • Set NTP • ntp.conf • ntp.drift • ntp.drift.TEMP scp demo:ntp.conf /etc touch /etc/ntp.drift touch /etc/ntp.drift.TEMP chown ntp:ntp /etc/ntp.drift* chkconfig ntpd on /etc/init.d/ntpd start
Configuration 2/7 • Remove existing java packages rpm –qa | grep java rpm –e <packages> • Add scl repos • Disable sl repos • Get scl repos: wget http://rpm.scl.rs/yum.conf/scl-jpackage.repo wget http://rpm.scl.rs/yum.conf/scl.repo wget -N -nd -r -l1 -Ascl-sl* http://rpm.scl.rs/yum.conf/ (or one by one: wget http://rpm.scl.rs/yum.conf/scl-sl.repo) yum update
Configuration 3/7 • Disable yum nightly update chkconfig yum off • Install java yum install java-1.5.0-sun-devel • Install and configure scl-scripts yum install scl-scripts config files in /opt/scl/etc/
Configuration 4/7 • Create SSH keys for exchange ssh-keygen -t rsa -N "" -q -f /root/.ssh/id_rsa; ssh-keygen -t dsa -N "" -q -f /root/.ssh/id_dsa • Copy public keys (.pub) to authorized_keys file cat /root/.ssh/*.pub
Configuration 5/7 • Get scl-lcg-ca.repo wget http://rpm.scl.rs/yum.conf/scl-lcg-ca.repo • Install lcg-CA yum install lcg-CA
Configuration 6/7 • Get specific node gLite repos WN example: wget http://rpm.scl.rs/yum.conf/scl-glite-WN.repo wget http://rpm.scl.rs/yum.conf/scl-glite-TORQUE_client.repo • Install packages yum install torque-2.3.6-1cri.slc4 yum install torque-mom-2.3.6-1cri.slc4.i386.i386 yum install glite-WN yum install glite-TORQUE_client yum install mpiexec yum install lcg-CA
Configuration 7/7 • Get host certificates if needed and copy them to • /etc/grid-security/ • Get configuration files (site-info.def and others) • Configure node with YAIM • Add NFS exports on specific nodes • Ready to go!