|
|
Hello,
I am trying to use cfengine's "miscmounts" section to control the
mount points in a batch cluster.
The actionsequence is set in cfagent.conf to:
actionsequence = (
editfiles
directories
files
copy
links
mountinfo # read what is actually mounted and what should
be
addmounts # add new mount points to /etc/fstab
mountall # mount what is *not* mounted, but should be
tidy
)
The cfagent.conf file imports cf.nfs:
directories:
# make mountpoints
wn::
# LCG stuff
/experiment-software
arc|wn::
# NorduGrid
/home/nordugrid-atlas
/home/nordugrid-cms
/home/nordugrid-lhcb
miscmounts:
arc|wn::
# NorduGrid job spool area
nfs-server:/local2/nordugrid-nfs/nordugrid-atlas
/home/nordugrid-atlas
mode=rw,intr,hard,udp,nolock,noatime,nodev,nosuid
nfs-server:/local2/nordugrid-nfs/nordugrid-cms
/home/nordugrid-cms
mode=rw,intr,hard,udp,nolock,noatime,nodev,nosuid
nfs-server:/local2/nordugrid-nfs/nordugrid-lhcb
/home/nordugrid-lhcb
mode=rw,intr,hard,udp,nolock,noatime,nodev,nosuid
wn::
# VO-specific software is exported to the whole cluster via NFS
nfs-server:/local2/experiment-software
/experiment-software
mode=rw,intr,hard,udp,nolock,noatime,nodev,nosuid
If /etc/fstab entry differs from the one defined in cf.nfs, it tries
to unmount it, fails, and segfaults:
---------------------------------------------------------------------
Checking miscellaneous mountables:
---------------------------------------------------------------------
cfengine:wn22: Removing "/experiment-software" entry from /etc/fstab
to allow update:
cfengine:wn22: ---------------------------------------------------
cfengine:wn22: Unmount filesystem /experiment-software on
adm00.lcg.cscs.ch:/experiment-software
cfengine:wn22: Moved /etc/
fstab_1204040063_Tue_Feb_26_16_34_54_2008_.cfsaved to repository
location /var/cfengine/repository/
_etc_fstab_1204040063_Tue_Feb_26_16_34_54_2008_.cfsaved
Segmentation fault
The entry *is* actually removed from fstab, so on second run
cfengine does no longer crash, but does not mount the directories
either...
(which should happen on "mountall", I gather)
Running cfengine 2.2.3 on Scientific Linux CERN 4.6:
# cfagent --version
GNU cfengine 2.2.3
Free Software Foundation 1994-
Donated by Mark Burgess, Faculty of Engineering,
Oslo University College, Norway
This program is covered by the GNU Public License and may be
copied free of charge. No warranty is implied.
# lsb_release -a
LSB Version: :core-3.0-ia32:core-3.0-noarch:graphics-3.0-
ia32:graphics-3.0-noarch
Distributor ID: ScientificCERNSLC
Description: Scientific Linux CERN SLC release 4.6 (Beryllium)
Release: 4.6
Codename: Beryllium
Thanks in advance for any help!
Riccardo
|
|