Don't you also need an rpm on the server ?
Just a thought.
Barry.
On Fri, 30 Apr 2004, Chris Williams wrote:
> Date: Fri, 30 Apr 2004 12:24:35 +0100
> From: Chris Williams <[log in to unmask]>
> Reply-To: Testbed Support for GridPP member institutes
> <[log in to unmask]>
> To: [log in to unmask]
> Subject: Problem Re: Adding an experiment directory to LCG.
>
> Hello,
>
> Ive followed these steps but I am getting an error when recompiling the
> worker node profile:
>
> can't locate default file: autofs-1
> (/root/LCG-2_0_0/source/redhat73-cfg.h:65
> /root/LCG-2_0_0/source/redhat73-cfg.h:123
> /root/LCG-2_0_0/source/redhat73-cfg.h:132
> /root/LCG-2_0_0/source/redhat73-cfg.h:141
> /root/LCG-2_0_0/source/redhat73-cfg.h:149
> /root/LCG-2_0_0/source/redhat73-cfg.h:156
> /root/LCG-2_0_0/source/redhat73-cfg.h:244
> /root/LCG-2_0_0/source/redhat73-cfg.h:265
> /root/LCG-2_0_0/source/redhat73-cfg.h:303
> /root/LCG-2_0_0/source/redhat73-cfg.h:342
> /root/LCG-2_0_0/source/redhat73-cfg.h:350
> /root/LCG-2_0_0/source/redhat73-cfg.h:356
> /root/LCG-2_0_0/source/redhat73-cfg.h:398
> /root/LCG-2_0_0/source/redhat73-cfg.h:418
> /root/LCG-2_0_0/source/redhat73-cfg.h:428
> /root/LCG-2_0_0/source/redhat73-cfg.h:437
> /root/LCG-2_0_0/source/redhat73-cfg.h:446
> /root/LCG-2_0_0/source/redhat73-cfg.h:459
> /root/LCG-2_0_0/source/edgcfg-cfg.h:4
> /root/LCG-2_0_0/source/lcgcfg-cfg.h:4
> /root/LCG-2_0_0/source/pbs-client-cfg.h:19
> /root/LCG-2_0_0/source/rm-cfg.h:9
> /root/LCG-2_0_0/source/WorkerNode-cfg.h:51
> /root/LCG-2_0_0/source/WorkerNode-cfg.h:68
> /root/LCG-2_0_0/source/WorkerNode-cfg.h:78
> /root/LCG-2_0_0/source/WorkerNode-cfg.h:90 wn-cfg.h:4)
>
> I have added edg-lcfg-autofs-1.0.3-edg1 to WorkerNode-rpm.h but I must
> be missing something somewhere. Any ideas?
>
> Regards
>
> Chris Williams
>
> On Thu, 29 Apr 2004, Steve Traylen wrote:
>
> > Hi
> >
> > For some reason there is a piece of configuration
> > completly missing from the LCG install guide and profiles.
> > This is an area where experiments can write software
> > to in a shared area.
> >
> > The easiest solution for this is to define an area on the SE say
> >
> > /experiment-software/alice
> > /experiment-software/atlas
> > ...
> >
> > that is automounted on the WNs.
> >
> > Users locate this area since
> > VO_ATLAS_SW_DIR=/experiment-software/atlas
> >
> > is defined in the the jobs profile.
> >
> > Cambridge and Imperial allready have this area setup.
> >
> > This is how to do it with LCFG. If you are doing it by hand
> > that is just an excercise for the reader.
> >
> > 1) In you site-cfg.h you should have the following.
> >
> > #define EXPERIMENT /experiment-software
> > #define WN_AREA_ALICE EXPERIMENT/alice
> > #define WN_AREA_ATLAS EXPERIMENT/atlas
> > #define WN_AREA_CMS EXPERIMENT/cms
> > #define WN_AREA_LHCB EXPERIMENT/lhcb
> > #define WN_AREA_DTEAM EXPERIMENT/dteam
> >
> > The first line is an extra value to add.
> >
> > 2) On the SE you must now create these directories. You do that
> > by adding the following to its profile.
> >
> > #ifdef SE_VO_ALICE
> > EXTRA(dirperm.ents) alicesw
> > dirperm.path_alicesw EXPERIMENT/alice
> > dirperm.owner_alicesw alicesgm:alice
> > dirperm.type_alicesw d
> > #endif
> >
> > #ifdef SE_VO_ATLAS
> > EXTRA(dirperm.ents) atlassw
> > dirperm.path_atlassw EXPERIMENT/atlas
> > dirperm.owner_atlassw atlassgm:atlas
> > dirperm.type_atlassw d
> > #endif
> >
> > #ifdef SE_VO_CMS
> > EXTRA(dirperm.ents) cmssw
> > dirperm.path_cmssw EXPERIMENT/cms
> > dirperm.owner_cmssw cmssgm:cms
> > dirperm.type_cmssw d
> > #endif
> >
> > #ifdef SE_VO_LHCB
> > EXTRA(dirperm.ents) lhcbsw
> > dirperm.path_lhcbsw EXPERIMENT/lhcb
> > dirperm.owner_lhcbsw lhcbsgm:lhcb
> > dirperm.type_lhcbsw d
> > #endif
> >
> > #ifdef SE_VO_DTEAM
> > EXTRA(dirperm.ents) dteamsw
> > dirperm.path_dteamsw EXPERIMENT/dteam
> > dirperm.owner_dteamsw dteamsgm:dteam
> > dirperm.type_dteamsw d
> > #endif
> >
> > 3) Now you must nfs export this area by again adding your SE's profile
> >
> > EXTRA(profile.components) nfs
> > profile.version_nfs 1
> > boot.level_nfs 2
> > EXTRA(boot.services) nfs
> > client.reconfig_nfs start
> >
> > /* Export the File System */
> > EXTRA(nfs.exports) experiment
> > nfs.fs_experiment EXPERIMENT
> > nfs.options_experiment SITE_NFS_ACL_FROM_SE
> >
> > Reboot the SE after recompiling the profiles.
> >
> > 4) We now want to automount this onto each of the WNs by adding the
> > following their your profiles, putting this in a common file and including
> > it of course makes sense.
> >
> > EXTRA(profile.components) autofs
> > profile.version_autofs 1
> > EXTRA(boot.services) autofs
> > boot.level_autofs 2
> > client.reconfig_autofs start
> >
> > EXTRA(dirperm.ents) experiment
> > dirperm.path_experiment EXPERIMENT
> > dirperm.owner_experiment root:root
> > dirperm.type_experiment d
> >
> > EXTRA(autofs.maps) experiment
> > autofs.path_experiment EXPERIMENT
> > autofs.options_experiment -rw,intr,noquota,nosuid,noatime
> >
> > #ifdef SE_VO_ALICE
> > EXTRA(autofs.map_experiment) alice
> > autofs.path_experiment_alice SE_HOSTNAME:EXPERIMENT/alice
> > autofs.key_experiment_alice alice
> > #endif
> >
> > #ifdef SE_VO_ATLAS
> > EXTRA(autofs.map_experiment) atlas
> > autofs.path_experiment_atlas SE_HOSTNAME:EXPERIMENT/atlas
> > autofs.key_experiment_atlas atlas
> > #endif
> >
> > #ifdef SE_VO_CMS
> > EXTRA(autofs.map_experiment) cms
> > autofs.path_experiment_cms SE_HOSTNAME:EXPERIMENT/cms
> > autofs.key_experiment_cms cms
> > #endif
> >
> > #ifdef SE_VO_LHCB
> > EXTRA(autofs.map_experiment) lhcb
> > autofs.path_experiment_lhcb SE_HOSTNAME:EXPERIMENT/lhcb
> > autofs.key_experiment_lhcb lhcb
> > #endif
> >
> > #ifdef SE_VO_DTEAM
> > EXTRA(autofs.map_experiment) dteam
> > autofs.path_experiment_dteam SE_HOSTNAME:EXPERIMENT/dteam
> > autofs.key_experiment_dteam dteam
> > #endif
> >
> >
> > 5) Unfortuantly LCG in their wisdom decided to remove the autofs lcfg object
> > from WNs. So you must add, to the rpm list for WNs
> >
> > edg-lcfg-autofs-1.0.3-edg1
> >
> > 6) Recompile the profiles for the WNs and reboot them.
> >
> >
> > 7) Afterwards on a WN check you can
> >
> > cd /experiment-software/atlas
> >
> > for example.
> >
> > If all is well the area will be automounted.
> >
> > Good luck.
> >
> >
> >
> > --
> >
> > Steve Traylen
> > [log in to unmask]
> > http://www.gridpp.ac.uk/
> >
>
> --
> -----------------------------------------------------------------------
> Chris Williams
> Tel/Fax : +44 (0)207 8825054
> Department of Physics
> Queen Mary College, Mile End Road, London, E1 4NS
> -----------------------------------------------------------------------
>
---------------------------------------------------------
Dr Barry MacEvoy
High Energy Physics Group
Imperial College London
Blackett Laboratory
Prince Consort Road Tel: 020 7594 7802
LONDON SW7 2BZ Mobile: 07767 323871
England Fax: 020 7823 8830
---------------------------------------------------------
|