You are on page 1of 14

LCFG Installation

Steve Traylen. LCFG A tool for installation and configuration.


UK HEP SYSMAN, RAL. 22nd April 2002.

22nd April 2002

Steve Traylen, RAL,

s.m.traylen@rl.ac.uk

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.

22nd April 2002

Steve Traylen, RAL,

s.m.traylen@rl.ac.uk

LCFG Server Components.


DHCP Server
Software
Provides network information.
Manages the rpm repository and machine profiles.

NFS Server Web Server

Serves RPM repository. Server XML machine profiles.

22nd April 2002

Steve Traylen, RAL,

s.m.traylen@rl.ac.uk

How LCFG Works in One Slide. Config files


LCFG Config Files
/etc/shadow /etc/services /etc/group /etc/inetd.conf /etc/passwd /etc/hosts.allow +inet.services +inet.allow telnet login ftp ftp sshd Read telnet login Load ALLOWED_NETWORKS rdxprof ldxprof HTTP+inet.allow_telnet Profile Profile +inet.allow_login ALLOWED_NETWORKS ALLOWED_NETWORKS +inet.allow_ftp <inet>

XML profiles

Web Server XML Profile mickey:x:999:20::/home/Mickey:/bin/tcsh in.rlogind : 192.168., 192.135.30.


.... in.telnetd : 192.168., 192.135.30. .... in.ftpd : 192.168., 192.135.30. sshd : ALL

Make XML Profile

+inet.allow_sshd ALL <allow cfg:template="allow_$ tag_$ daemon_$"> Object Component +inet.daemon_sshd yes <allow_RECORD cfg:name="telnet"> ..... <allow>192.168., 192.135.30.</allow>

Profile Generic

Local cache +auth.users </allow_RECORD> inet myckey auth

+auth.userhome_mickey ..... +auth.usershell_mickey </auth>

/home/mickey LCFG Objects /bin/tcsh

Server
Abstract configuration parameters for all nodes stored in a central repository

<user_RECORD cfg:name="mickey">

<userhome>/home/MickeyMouseHome</userhome>

Client nodes

A collection </user_RECORD>

<usershell>/bin/tcsh</usershell>

of agents read configuration parameters and either generate traditional config files or directly manipulate various services

Enrico Ferro, INFN-LNL

Documentation
Server installation guide from WP4
http://datagrid.in2p3.fr/distribution/datagrid/wp4/documentati on

Testbed installation guide using LCFG from WP6 http://www.lnl.infn.it/datagrid/wp4-install LCFG Extras, experiances from RAL. http://www.gridpp.ac.uk/tb-support/lcfgextras/
22nd April 2002

Steve Traylen, RAL,

s.m.traylen@rl.ac.uk

Software Installation
Install a plain Redhat 6.2. Directory /opt/local requires 4-6 gigabytes. Apply Redhats 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.
22nd April 2002

Steve Traylen, RAL,

s.m.traylen@rl.ac.uk

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.


22nd April 2002

Steve Traylen, RAL,

s.m.traylen@rl.ac.uk

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/.
22nd April 2002

Steve Traylen, RAL,

s.m.traylen@rl.ac.uk

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

22nd April 2002

Steve Traylen, RAL,

s.m.traylen@rl.ac.uk

Compile Machine Profile

Compile gppui profile with


/usr/sbin/mkxprof v A gppui.

Common errors include:


File not found. Undefined attributes. Duplicate values.

22nd April 2002

Steve Traylen, RAL,

s.m.traylen@rl.ac.uk

10

Verify RPM Lists


Located in /opt/local/linux/6.2/rpmcfg. One per node type, CE-rpm , UI-rpm, NMrpm, 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.

22nd April 2002

Steve Traylen, RAL,

s.m.traylen@rl.ac.uk

11

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.
22nd April 2002

Steve Traylen, RAL,

s.m.traylen@rl.ac.uk

12

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 22nd April changes. 2002 13 Steve Traylen, RAL, s.m.traylen@rl.ac.uk

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.


22nd April 2002

Steve Traylen, RAL,

s.m.traylen@rl.ac.uk

14

You might also like