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/
|