Presentation is loading. Please wait.

Presentation is loading. Please wait.

22nd April 2002 Steve Traylen, RAL, 1 LCFG Installation Steve Traylen. LCFG – A tool for installation and configuration. UK HEP SYSMAN,

Similar presentations


Presentation on theme: "22nd April 2002 Steve Traylen, RAL, 1 LCFG Installation Steve Traylen. LCFG – A tool for installation and configuration. UK HEP SYSMAN,"— Presentation transcript:

1

2 22nd April 2002 Steve Traylen, RAL, s.m.traylen@rl.ac.uk 1 LCFG Installation Steve Traylen. LCFG – A tool for installation and configuration. UK HEP SYSMAN, RAL. 22 nd April 2002.

3 22nd April 2002 Steve Traylen, RAL, s.m.traylen@rl.ac.uk 2 About LCFG Started at Edinburgh 9 years ago by Alastair Scobie and Paul Anderson. Installs an RPM based Linux system and configures it. Each machine defined by exactly one profile. Management also possible; the main difference to Kickstart type methods.

4 22nd April 2002 Steve Traylen, RAL, s.m.traylen@rl.ac.uk 3 LCFG Server Components. DHCP Server Provides network information. Software Manages the rpm repository and machine profiles. NFS Server Serves RPM repository. Web Server Server XML machine profiles.

5 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 +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.... Enrico Ferro, INFN-LNL How LCFG Works in One Slide.

6 22nd April 2002 Steve Traylen, RAL, s.m.traylen@rl.ac.uk 5 Documentation Server installation guide from WP4 http://datagrid.in2p3.fr/distribution/datagrid/wp4/documentati on http://datagrid.in2p3.fr/distribution/datagrid/wp4/documentati on Testbed installation guide using LCFG from WP6 http://www.lnl.infn.it/datagrid/wp4-install http://www.lnl.infn.it/datagrid/wp4-install LCFG Extras, experiances from RAL. http://www.gridpp.ac.uk/tb-support/lcfg- extras/ http://www.gridpp.ac.uk/tb-support/lcfg- extras/

7 22nd April 2002 Steve Traylen, RAL, s.m.traylen@rl.ac.uk 6 Software Installation Install a plain Redhat 6.2. Directory /opt/local requires 4-6 gigabytes. Apply Redhat’s updates except for RPM v4. Install edg-updaterep-1.0.1.rpm. Review ` man updaterep ` and /etc/updaterep.conf. Running /usr/sbin/updaterep grabs everything. Install RPMs in documentation.

8 22nd April 2002 Steve Traylen, RAL, s.m.traylen@rl.ac.uk 7 Prepare NFS Directory /opt/local/linux contains all the RPMS and rpm lists. Add /opt/local/linux *(ro) to /etc/exports. LCFG clients use an NFS mounted root file system at install time located at /opt/local/linux/installroot/6.2 RPM list for root file system is /opt/local/linux/6.2/rpmcfg/installroot Run make installroot to build the root fs /opt/local/linux/installroot.

9 22nd April 2002 Steve Traylen, RAL, s.m.traylen@rl.ac.uk 8 Fetch Machine Profiles and RPM Lists Maintained in CVS as module edg-release. CVS tag of edg-release is the overall version of datagrid software, e.g. 1.0, 1.1, 1.1.2 - 1.2 Set up CVS as described and check out the current release: cvs checkout –r v1_1_4 edg-release. Profiles: cp edg-release/source/* /var/obj/conf/profile/source/. RPM lists: cp edg-release/rpmcfg/* /opt/local/linux/6.2/rpmcfg/.

10 22nd April 2002 Steve Traylen, RAL, s.m.traylen@rl.ac.uk 9 Customise Machine Profile Located in /var/obj/conf/profile/source. Edit site-cfg.h => globus.conf, info-mds.conf, gdmp.conf and others. Files testbed001 - testbed004 are sample UI, CE, SE and WN. Rename one, e.g. gppui. Edit gppui ; hostname and hardware. +update.modlist eepro100 +update.mod_eepro100 alias eth0 eepro100 +update.rootpwd hj%4aJkf\k45

11 22nd April 2002 Steve Traylen, RAL, s.m.traylen@rl.ac.uk 10 Compile Machine Profile Compile gppui profile with /usr/sbin/mkxprof –v –A gppui. Common errors include:  File not found.  Undefined attributes.  Duplicate values.

12 22nd April 2002 Steve Traylen, RAL, s.m.traylen@rl.ac.uk 11 Verify RPM Lists Located in /opt/local/linux/6.2/rpmcfg. One per node type, CE-rpm, UI-rpm, NM- rpm, RB-rpm, SE-rpm and WN-rpm. Use make create TARGET=CE-rpm. Common errors:  File not found.  Missing RPMS caused by update in the lists or updates in available RPMS.

13 22nd April 2002 Steve Traylen, RAL, s.m.traylen@rl.ac.uk 12 Install Clients Boot floppy disk provided. Boot procedure: –Kernel boots. –Broadcast for network values. –Mount NFS root file system, init=/etc/dcsrc, download machine profile. –Partition and format hard disk. –Mount hard disk, install RPMS. –Install MBR with LILO. –Reboot, configure according to profile, reboot.

14 22nd April 2002 Steve Traylen, RAL, s.m.traylen@rl.ac.uk 13 LCFG, What Is Good? Configuration is modular so similar machines are easy. Configuration can be modified. –Converting a CE to an SE, less than a minute. –Installing and backing out is possible. Snap shot of configuration is available including all the tiny incremental changes.

15 22nd April 2002 Steve Traylen, RAL, s.m.traylen@rl.ac.uk 14 LCFG, What is Bad? Adds a whole new layer of configuration. –Sysadmins have to learn to configure /etc/resolv.conf again. –A software developer knows how to configure /etc/edg/info-mds.conf but not /var/obj/conf/profile/source/ComputingElement.h. Security problems: host authentication is weak, no shadow passwords.


Download ppt "22nd April 2002 Steve Traylen, RAL, 1 LCFG Installation Steve Traylen. LCFG – A tool for installation and configuration. UK HEP SYSMAN,"

Similar presentations


Ads by Google