Download presentation
Presentation is loading. Please wait.
Published byNickolas Lawrence Modified over 8 years ago
2
E. Ferro, CNAF, april 2002 1 Enrico Ferro INFN-LNL Installation of a LCFG server
3
E. Ferro, CNAF, april 2002 2 What is a LCFG server? Currently it is a: –DHCP server: provides the basic network configuration during the automatic installation –NFS server: provides the RPMs required to install the clients and the RPM lists via NFS –HTTP server: the configuration of the nodes is distributed with a web server. All these functionalities can be splitted (e.g. using an existing DHCP server)
4
E. Ferro, CNAF, april 2002 3 A collection of agents read configuration parameters and either generate traditional config files or directly manipulate various services Abstract configuration parameters for all nodes stored in a central repository ldxprof Load Profile Generic Component Profile Object rdxprof Read Profile LCFG Objects Local cache Client nodes Web Server HTTP XML Profile LCFG Config Files Make XML Profile Server How LCFG works in 1 slide +inet.services telnet login ftp +inet.allow telnet login ftp sshd +inet.allow_telnet ALLOWED_NETWORKS +inet.allow_login ALLOWED_NETWORKS +inet.allow_ftp ALLOWED_NETWORKS +inet.allow_sshd ALL +inet.daemon_sshd yes..... +auth.users myckey +auth.userhome_mickey /home/mickey +auth.usershell_mickey /bin/tcsh +inet.services telnet login ftp +inet.allow telnet login ftp sshd +inet.allow_telnet ALLOWED_NETWORKS +inet.allow_login ALLOWED_NETWORKS +inet.allow_ftp ALLOWED_NETWORKS +inet.allow_sshd ALL +inet.daemon_sshd yes..... +auth.users myckey +auth.userhome_mickey /home/mickey +auth.usershell_mickey /bin/tcsh Config files 192.168., 192.135.30...... /home/MickeyMouseHome /bin/tcsh 192.168., 192.135.30...... /home/MickeyMouseHome /bin/tcsh XML profiles Profile Object inet auth /etc/services /etc/inetd.conf /etc/hosts.allow in.telnetd : 192.168., 192.135.30. in.rlogind : 192.168., 192.135.30. in.ftpd : 192.168., 192.135.30. sshd : ALL /etc/hosts.allow in.telnetd : 192.168., 192.135.30. in.rlogind : 192.168., 192.135.30. in.ftpd : 192.168., 192.135.30. sshd : ALL /etc/shadow /etc/group /etc/passwd.... mickey:x:999:20::/home/Mickey:/bin/tcsh.... /etc/passwd.... mickey:x:999:20::/home/Mickey:/bin/tcsh....
5
E. Ferro, CNAF, april 2002 4 Before... Get the server installation guide from: http://datagrid.in2p3.fr/distribution/datagrid/wp4/documentation Get the WP6 testbed installation guide with LCFG from http://www.lnl.infn.it/datagrid/wp4-install Get installation software is present in: http://datagrid.in2p3.fr/distribution/datagrid/wp4/
6
E. Ferro, CNAF, april 2002 5 1. Packages to install in the server Your LCFG server should be installed with RedHat 6.2 with NFS server support. Install all the updates you want but not the rpm- 4.0 Get the packages listed in the Server Installation Guide at 2.2 and install them in your LCFG server. Use always the latest version available.
7
E. Ferro, CNAF, april 2002 6 2. Solve RPM compatibility LCFG uses a feature that was present in the first versions: this feature is no more supported. It is necessary to install a patched rpm package: –rpm -F --force rpm-3.0.5-9.6x.1.edg.i386.rpm –rpm -F --force rpm-devel-3.0.5-9.6x.1.edg.i386.rpm –rpm -F --force rpm-build-3.0.5-9.6x.1.edg.i386.rpm Rebuild the RPM database: –rpm --rebuilddb
8
E. Ferro, CNAF, april 2002 7 3. DHCP server Install the dhcp server provided with RedHat: –rpm -ivh dhcp-2.0-5.rpm Create an empty leases file: –touch /var/state/dhcp/dhcpd.leases Create /etc/dhcpd.conf as described in section 3.1 of the "Server Installation Guide" Start the DHCP server –/etc/rc.d/init.d/dhcpd start
9
E. Ferro, CNAF, april 2002 8 4. HTTP server The directory /var/obj/conf/profile/web is used by LCFG tools to publish the configuration of the nodes –ln -s /var/obj/conf/profile/web /home/httpd/html Apache server should start at boot time: –/sbin/chkconfig --add htttpd To start it now: –/etc/rc.d/init.d/httpd start
10
E. Ferro, CNAF, april 2002 9 5. /etc/services These ports are used by LCFG to send notifications and to get ack from the clients. Add these lines /etc/services: –lcfg 732/udp –lcfgack 733/udp
11
E. Ferro, CNAF, april 2002 10 6. RPM repositories All the repositories used by LCFG are located in /opt/local/linux/6.2/RPMS/. Create the directories as described in –http://www.lnl.infn.it/datagrid/wp4-install/ Fill the repositories with the RPM from –http://datagrid.in2p3.fr/distribution A tool was done by Steve Traylen to simplify the download process: –http://www.gridpp.ac.uk/tb-support/lcfg- extra/createRepository.sh.txt –http://www.gridpp.ac.uk/tb-support/lcfg-extra/Makefile- genheaders.txt
12
E. Ferro, CNAF, april 2002 11 7. Create the installroot The installroot is a reduced Linux filesystem mounted via NFS during the first installation. To create the installroot: –cd /opt/local/linux/installrootmake create
13
E. Ferro, CNAF, april 2002 12 8. Export directories via NFS You have to export via NFS the RPM repositories, the RPM lists and the installroot. Add this line to /etc/exports –/opt/local/linux/ *(ro,no_root_squash) Start the NFS server –/etc/rc.d/init.d/nfs start
14
E. Ferro, CNAF, april 2002 13 9. Download latest RPM lists From: –http://datagrid.in2p3.fr/cgi-bin/cvsweb.cgi/edg-release/rpmlist Download latest LCFG RPM lists and put them into: –/opt/local/linux/6.2/rpmcfg
15
E. Ferro, CNAF, april 2002 14 10. Download latest LCFG resources From: –http://datagrid.in2p3.fr/cgi-bin/cvsweb.cgi/edg-release/source/ Download latest LCFG resource files and put them into: –/var/obj/conf/profile/source
16
E. Ferro, CNAF, april 2002 15 11. Customize your resources In theory only site-cfg.h. These resources are for a site with –1 CE –1 SE –1 WN –1 UI
17
E. Ferro, CNAF, april 2002 16 12. Get the boot disk Download the disk image –http://www.lnl.infn.it/datagrid/wp4- install/packages/disk_images/boot_nfs_25032002.img Write the disk image into a diskette Boot from the diskette to start the installation
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.