Forskjell mellom versjoner av «Computing System Administration»

Fra mn/fys/epf
Hopp til: navigasjon, søk
(Ny side: === Getting ATLAS releases to work on RHEL5 x86_64 nodes === *For pacman: Install http://ftp.scientificlinux.org/linux/scientific/51/i386/SL/openssl097a-0.9.7a-9.i386.rpm <br>*To satisfy …)
 
Linje 1: Linje 1:
 
=== Getting ATLAS releases to work on RHEL5 x86_64 nodes  ===
 
=== Getting ATLAS releases to work on RHEL5 x86_64 nodes  ===
  
*For pacman: Install http://ftp.scientificlinux.org/linux/scientific/51/i386/SL/openssl097a-0.9.7a-9.i386.rpm <br>*To satisfy some packages, especially event generation: &lt;tt&gt;yum install libgfortran-4.1.2-44.el5.i386&lt;/tt&gt; <br>*You need to install blas: &lt;tt&gt;yum install blas.i386&lt;/tt&gt; and &lt;tt&gt;yum install blas-devel.i386&lt;/tt&gt; <br>*To get /usr/lib/libreadline.so.4 (also needed for 32-bit Linux) do &lt;tt&gt;rpm -ivh&lt;/tt&gt; http://linuxsoft.cern.ch/cern/slc5X/i386/SL/compat-readline43-4.3-3.i386.rpm <br>*You need 32-bit gcc 3.4 (also needed for 32-bit Linux): &lt;tt&gt;yum install compat-gcc-34&lt;/tt&gt; <br>*You need 32-bit g++ 3.4 (also needed for 32-bit Linux): &lt;tt&gt;yum install compat-gcc-34-c++&lt;/tt&gt;<br>
+
*For pacman: Install http://ftp.scientificlinux.org/linux/scientific/51/i386/SL/openssl097a-0.9.7a-9.i386.rpm  
 +
*To satisfy some packages, especially event generation: &lt;tt&gt;yum install libgfortran-4.1.2-44.el5.i386&lt;/tt&gt;  
 +
*You need to install blas: &lt;tt&gt;yum install blas.i386&lt;/tt&gt; and &lt;tt&gt;yum install blas-devel.i386&lt;/tt&gt;  
 +
*To get /usr/lib/libreadline.so.4 (also needed for 32-bit Linux) do &lt;tt&gt;rpm -ivh&lt;/tt&gt; http://linuxsoft.cern.ch/cern/slc5X/i386/SL/compat-readline43-4.3-3.i386.rpm  
 +
*You need 32-bit gcc 3.4 (also needed for 32-bit Linux): &lt;tt&gt;yum install compat-gcc-34&lt;/tt&gt;  
 +
*You need 32-bit g++ 3.4 (also needed for 32-bit Linux): &lt;tt&gt;yum install compat-gcc-34-c++&lt;/tt&gt;<br>
  
 
<br>  
 
<br>  
Linje 7: Linje 12:
 
=== Getting the I686-SLC5-GCC43 kits to validate (and run) on RHEL5  ===
 
=== Getting the I686-SLC5-GCC43 kits to validate (and run) on RHEL5  ===
  
*Install the pacman kit for gcc43, see https://twiki.cern.ch/twiki/bin/view/Atlas/RPMCompatSLC5#Run_SLC4_32bit_binaries_on_SLC5 <br>*You probably need to &lt;tt&gt;ln -s /usr/lib/libg2c.so.0.0.0 /usr/lib/libg2c.so&lt;/tt&gt; <br>*You probably need to &lt;tt&gt;ln -s /usr/lib/gcc/x86_64-redhat-linux/3.4.6/libgcc_s_32.so /lib/libgcc_s_32.so&lt;/tt&gt;
+
*Install the pacman kit for gcc43, see https://twiki.cern.ch/twiki/bin/view/Atlas/RPMCompatSLC5#Run_SLC4_32bit_binaries_on_SLC5  
 +
*You probably need to &lt;tt&gt;ln -s /usr/lib/libg2c.so.0.0.0 /usr/lib/libg2c.so&lt;/tt&gt;  
 +
*You probably need to &lt;tt&gt;ln -s /usr/lib/gcc/x86_64-redhat-linux/3.4.6/libgcc_s_32.so /lib/libgcc_s_32.so&lt;/tt&gt;
  
 
<br>  
 
<br>  
Linje 33: Linje 40:
 
=== Installing VirtualBox  ===
 
=== Installing VirtualBox  ===
  
*Download and install the appropriate rpm from http://download.virtualbox.org/virtualbox <br>*Remove the new line with &lt;tt&gt;vboxusers&lt;/tt&gt; from &lt;tt&gt;/etc/group&lt;/tt&gt; <br>*Add the host's username to the vboxusers group, e.g.
+
*Download and install the appropriate rpm from http://download.virtualbox.org/virtualbox  
 +
*Remove the new line with &lt;tt&gt;vboxusers&lt;/tt&gt; from &lt;tt&gt;/etc/group&lt;/tt&gt;  
 +
*Add the host's username to the vboxusers group, e.g.
  
 
&lt;tt&gt;echo vboxusers:x:15522:esbenlu &amp;gt;&amp;gt; /etc/group &lt;br&gt;echo vboxusers:x:15522:esbenlu &amp;gt;&amp;gt; /etc/group.local &amp;lt;/t&amp;gt;&lt;/tt&gt;  
 
&lt;tt&gt;echo vboxusers:x:15522:esbenlu &amp;gt;&amp;gt; /etc/group &lt;br&gt;echo vboxusers:x:15522:esbenlu &amp;gt;&amp;gt; /etc/group.local &amp;lt;/t&amp;gt;&lt;/tt&gt;  
Linje 45: Linje 54:
 
=== Installing ARC client on RHEL5 boxes (as superuser)  ===
 
=== Installing ARC client on RHEL5 boxes (as superuser)  ===
  
*See http://download.nordugrid.org/repos.html <br>*Typical /etc/yum.repos.d/nordugrid:
+
*See http://download.nordugrid.org/repos.html  
 +
*Typical /etc/yum.repos.d/nordugrid:
  
 
&lt;tt&gt;[nordugrid] name=NorduGrid - $basearch - stable&lt;/tt&gt;  
 
&lt;tt&gt;[nordugrid] name=NorduGrid - $basearch - stable&lt;/tt&gt;  
Linje 53: Linje 63:
 
&lt;tt&gt;baseurl=http://download.nordugrid.org/repos/redhat/$releasever/$basearch/stable enabled=1 gpgcheck=1 gpgkey=http://download.nordugrid.org/RPM-GPG-KEY-nordugrid &lt;/tt&gt;  
 
&lt;tt&gt;baseurl=http://download.nordugrid.org/repos/redhat/$releasever/$basearch/stable enabled=1 gpgcheck=1 gpgkey=http://download.nordugrid.org/RPM-GPG-KEY-nordugrid &lt;/tt&gt;  
  
*&lt;tt&gt;yum groupinstall "ARC Client"&lt;/tt&gt; to install the client s/w <br>*&lt;tt&gt;yum install nordugrid-arc-ca-utils&lt;/tt&gt; to install the missing Certificate Authority utilities <br>*&lt;tt&gt;/opt/nordugrid/sbin/grid-update-crls&lt;/tt&gt; to jumpstart the first update of the [http://searchsecurity.techtarget.com/sDefinition/0,,sid14_gci803160,00.html Certificate Revocation Lists] - after that there is a cron that does the job automatically.
+
*&lt;tt&gt;yum groupinstall "ARC Client"&lt;/tt&gt; to install the client s/w  
 +
*&lt;tt&gt;yum install nordugrid-arc-ca-utils&lt;/tt&gt; to install the missing Certificate Authority utilities  
 +
*&lt;tt&gt;/opt/nordugrid/sbin/grid-update-crls&lt;/tt&gt; to jumpstart the first update of the [http://searchsecurity.techtarget.com/sDefinition/0,,sid14_gci803160,00.html Certificate Revocation Lists] - after that there is a cron that does the job automatically.
  
 
<br>  
 
<br>  
Linje 59: Linje 71:
 
=== Installing an ATLAS software release  ===
 
=== Installing an ATLAS software release  ===
  
*Decide where to install the software - this is the "repository". <br>*The install script is here: http://koherens.uio.no/atlas/install/installPacmanKit.sh. Download it somewhere and &lt;tt&gt;chmod u+x&lt;/tt&gt; it. <br>*A typical installation looks like&lt;br&gt;&lt;tt&gt;&lt;/tt&gt;
+
*Decide where to install the software - this is the "repository".  
 +
*The install script is here: http://koherens.uio.no/atlas/install/installPacmanKit.sh. Download it somewhere and &lt;tt&gt;chmod u+x&lt;/tt&gt; it.  
 +
*A typical installation looks like&lt;br&gt;&lt;tt&gt;&lt;/tt&gt;
  
 
&lt;tt&gt;mkdir {root of the software repository}/atlas/software/releases/15.2.0&lt;br&gt;&lt;/tt&gt;&lt;tt&gt;cd {root of the software repository}/atlas/software/releases/15.2.0&lt;br&gt;&lt;/tt&gt;  
 
&lt;tt&gt;mkdir {root of the software repository}/atlas/software/releases/15.2.0&lt;br&gt;&lt;/tt&gt;&lt;tt&gt;cd {root of the software repository}/atlas/software/releases/15.2.0&lt;br&gt;&lt;/tt&gt;  
Linje 67: Linje 81:
 
&lt;tt&gt;../installPacmanKit.sh 15.2.0 I686-SLC4-GCC34-OPT {runtimedir}&lt;/tt&gt;  
 
&lt;tt&gt;../installPacmanKit.sh 15.2.0 I686-SLC4-GCC34-OPT {runtimedir}&lt;/tt&gt;  
  
*The &lt;tt&gt;{runtimedir}&lt;/tt&gt; is set in &lt;tt&gt;/etc/arc.conf&lt;/tt&gt;. The &lt;tt&gt;I686-SLC4-GCC34-OPT&lt;/tt&gt; downloads a kit built for this platform (which is the only one fully supported for the moment - SLC4 is RHEL4/CentOS 4-compatible, kits for x86_64 and RHEL5 are under development). <br>*If your OS is 64-bit there may be some missing 32-bit libraries, my "favorites" are from the blas, libgfortran and libf2c packages. The first thing I will do is run a kit validation, e.g. &lt;tt&gt;./KVsubmit nordugris.uit.no 15.2.0&lt;/tt&gt; which will send a grid job to validate the kit (&lt;tt&gt;KVsubmit&lt;/tt&gt; is in http://koherens.uio.no/atlas/install/KVsubmit if you want to try it yourself).
+
*The &lt;tt&gt;{runtimedir}&lt;/tt&gt; is set in &lt;tt&gt;/etc/arc.conf&lt;/tt&gt;. The &lt;tt&gt;I686-SLC4-GCC34-OPT&lt;/tt&gt; downloads a kit built for this platform (which is the only one fully supported for the moment - SLC4 is RHEL4/CentOS 4-compatible, kits for x86_64 and RHEL5 are under development).  
 +
*If your OS is 64-bit there may be some missing 32-bit libraries, my "favorites" are from the blas, libgfortran and libf2c packages. The first thing I will do is run a kit validation, e.g. &lt;tt&gt;./KVsubmit nordugris.uit.no 15.2.0&lt;/tt&gt; which will send a grid job to validate the kit (&lt;tt&gt;KVsubmit&lt;/tt&gt; is in http://koherens.uio.no/atlas/install/KVsubmit if you want to try it yourself).
  
 
=== ATLAS VO Registration and Management  ===
 
=== ATLAS VO Registration and Management  ===
  
 
[https://lcg-voms.cern.ch:8443/vo/atlas/vomrs?path=/RootNode&action=execute This site] is used for registering atlas VO grid resource users and for managing information about their affiliation with the ATLAS VO and their permissions regarding use of grid resources.<br>
 
[https://lcg-voms.cern.ch:8443/vo/atlas/vomrs?path=/RootNode&action=execute This site] is used for registering atlas VO grid resource users and for managing information about their affiliation with the ATLAS VO and their permissions regarding use of grid resources.<br>

Revisjonen fra 28. sep. 2009 kl. 16:19

Getting ATLAS releases to work on RHEL5 x86_64 nodes


Getting the I686-SLC5-GCC43 kits to validate (and run) on RHEL5


Installing root and enabling the xrootd service (needed for proof)

  • on RHEL5 x86_64 systems: (gcc 4.3 is too advanced for UiO desktops)

<tt>tar -xvzf /mn/kvant/hep/linux/root/root_v5.22.00.Linux-slc5-gcc3.4.tar.gz -C /opt</tt>

  • Assume standard setup is on default system (e.g. scalar.uio.no) and $node is the node you want to install on. Of course if you are logged on to $node all the ssh'ing is not needed

<tt>scp /etc/sysconfig/xrootd $node:/etc/sysconfig/ <br>scp /etc/xpd.cf $node:/etc/ <br>scp /etc/rc.d/init.d/xrootd $node:/etc/rc.d/init.d/ </tt><br><tt>ssh $node chkconfig --add xrootd <br>ssh $node chkconfig --level 35 xrootd on</tt>

  • Note, xrootd runs under read account (as of May 2009)

<tt>ssh $node mkdir /var/log/xrootd <br>ssh $node chown read:fysepf /var/log/xrootd</tt>

  • Edit /etc/xpd.cf and restart xrootd to add a worker node.
    *Redistribute /etc/cpd.cf as well (have to find a simpler but reliable system for this

<tt>/sbin/service xrootd start</tt>


Installing VirtualBox

  • Download and install the appropriate rpm from http://download.virtualbox.org/virtualbox
  • Remove the new line with <tt>vboxusers</tt> from <tt>/etc/group</tt>
  • Add the host's username to the vboxusers group, e.g.

<tt>echo vboxusers:x:15522:esbenlu &gt;&gt; /etc/group <br>echo vboxusers:x:15522:esbenlu &gt;&gt; /etc/group.local &lt;/t&gt;</tt>

  • Finalize the vbox setup:

<tt>/etc/init.d/vboxdrv setup</tt>


Installing ARC client on RHEL5 boxes (as superuser)

<tt>[nordugrid] name=NorduGrid - $basearch - stable</tt>

  1. <tt>http://download.nordugrid.org/repos/redhat/el5/x86_64/stable/</tt>

<tt>baseurl=http://download.nordugrid.org/repos/redhat/$releasever/$basearch/stable enabled=1 gpgcheck=1 gpgkey=http://download.nordugrid.org/RPM-GPG-KEY-nordugrid </tt>

  • <tt>yum groupinstall "ARC Client"</tt> to install the client s/w
  • <tt>yum install nordugrid-arc-ca-utils</tt> to install the missing Certificate Authority utilities
  • <tt>/opt/nordugrid/sbin/grid-update-crls</tt> to jumpstart the first update of the Certificate Revocation Lists - after that there is a cron that does the job automatically.


Installing an ATLAS software release

<tt>mkdir {root of the software repository}/atlas/software/releases/15.2.0<br></tt><tt>cd {root of the software repository}/atlas/software/releases/15.2.0<br></tt>

  • If you download the install script in <tt>{root of the software repository}/atlas/software/releases/</tt> then you do <tt><br></tt>

<tt>../installPacmanKit.sh 15.2.0 I686-SLC4-GCC34-OPT {runtimedir}</tt>

  • The <tt>{runtimedir}</tt> is set in <tt>/etc/arc.conf</tt>. The <tt>I686-SLC4-GCC34-OPT</tt> downloads a kit built for this platform (which is the only one fully supported for the moment - SLC4 is RHEL4/CentOS 4-compatible, kits for x86_64 and RHEL5 are under development).
  • If your OS is 64-bit there may be some missing 32-bit libraries, my "favorites" are from the blas, libgfortran and libf2c packages. The first thing I will do is run a kit validation, e.g. <tt>./KVsubmit nordugris.uit.no 15.2.0</tt> which will send a grid job to validate the kit (<tt>KVsubmit</tt> is in http://koherens.uio.no/atlas/install/KVsubmit if you want to try it yourself).

ATLAS VO Registration and Management

This site is used for registering atlas VO grid resource users and for managing information about their affiliation with the ATLAS VO and their permissions regarding use of grid resources.