InstallFilesNewOS

From T2B Wiki
Revision as of 12:28, 26 August 2015 by Maintenance script (talk | contribs) (Created page with " === Install files for a new OS === ==== SL5 OS ==== *Connect to quattorrepository.begrid.be *Each directory under /data/html/begrid/install corresponds to an OS+architectu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Install files for a new OS

SL5 OS

  • Connect to quattorrepository.begrid.be
  • Each directory under /data/html/begrid/install corresponds to an OS+architecture :
ls -al /data/html/begrid/install/
...
drwxr-xr-x.  3 apache apache      4096 Nov 18  2010 sl440-x86_64
drwxr-xr-x.  4 apache apache      4096 Nov 17  2010 sl450-i386
drwxr-xr-x.  4 apache apache      4096 Nov 18  2010 sl500-i386
drwxr-xr-x.  5 apache apache      4096 Nov 18  2010 sl500-x86_64
...
  • Let's we want the install files for SL53 64 bits :
cd /data/html/begrid/install/
mkdir sl530-x86_64
nohup rsync -avSH --delete --exclude=build --exclude=contrib --exclude=isolinux --exclude=RHupdates --exclude=RPM-GPG-KEYs --exclude=sites --exclude=SL.documentation --exclude=updates rsync://rsync.scientificlinux.org/scientific/53/x86_64/ /data/html/begrid/install/sl530-x86_64/
  • The directory must be owned by apache :
chown -R apache:apache /data/html/begrid/install/sl530-x86_64

SL6 OS

The procedure is the same as the one for SL5 OS, except for the rsync. Let's say we want the install files for SL63 64 bits :

cd /data/html/begrid/install/
mkdir sl630-x86_64
nohup rsync -avkSH --delete rsync://rsync.scientificlinux.org/scientific/6.3/x86_64/os/ /data/html/begrid/install/sl630-x86_64/

PXE files for a new OS

  • Log in on the Quattor client.
  • Let's say you want to add support for SL53 64 bits :
mkdir /osinstall/nbp/sl530_x86_64
cd /osinstall/nbp/sl530_x86_64
wget ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/scientific-linux/53/x86_64/images/pxeboot/initrd.img
wget ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/scientific-linux/53/x86_64/images/pxeboot/vmlinuz

Generation of OS PAN templates

As an example, we will show how to generate OS templates for SL64 :

  • Log in as root on the Quattor repository.
  • In /root/quattor_os_templates, you will find the directories external and misc, containing the tools to generate the templates. These directories were obtained by doing :
cd /root/quattor_os_templates
svn co https://svn.lal.in2p3.fr/LCG/QWG/SCDB/trunk/utils/misc
svn co https://svn.lal.in2p3.fr/LCG/QWG/SCDB/trunk/external
In the same location, you must also create the directory where to put the PAN templates :
mkdir -p /root/quattor_os_templates/sl64_templates/rpms
Very important : the path of this last directory must end with "rpms".
  • Copy the file comps.dtd to the repodata directory of the OS installation files :
cp /usr/share/doc/comps-extras-17.8/comps.dtd /data/html/begrid/install/sl640-x86_64/repodata/
  • Go to the misc directory and make sure that the the scripts that will be used have the "x" permission :
chmod u+x buildOSTemplates
chmod u+x *.pl
  • Run the following command :
./buildOSTemplates --compsdir repodata --compsxml comps-sl6-x86_64.xml --debug --rpmdir Packages --scdbroot /root/quattor_os_templates /data/html/begrid/install/sl640-x86_64 /root/quattor_os_templates/sl64_templates/rpms

You can file useful information on this page : https://wiki.nikhef.nl/grid/Installing_updates:_OS,_CAs,_Quattor,_VL-e


Template:TracNotice