Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Fwd: Re: miscmounts woes]

17 views
Skip to first unread message

Ed Brown

unread,
Aug 25, 2004, 5:17:04 PM8/25/04
to help-c...@gnu.org
(forgot to copy list...)

Ulrich Habel

unread,
Aug 25, 2004, 5:45:26 PM8/25/04
to help-c...@gnu.org
> I don't believe 'miscmounts' goes into your actionsequence. Instead,
> use 'addmounts' (to edit /etc/fstab and create mountpoints as described
> in your 'miscmounts:' section), and 'mountall' (to check if they are
> mounted, and mount them if they are not.)
>
> I would add that while this apparently does the right thing, we also see
> errors of this nature every time cfengine runs:
>
> cfengine:: Warning the file system /foo seems to be in /etc/fstab
> cfengine:: already, but I was not able to mount it.
> cfengine:: Check the exports file on host somehost? Check for file with
> same name as dir?
>
> though everything is mounted fine, and /etc/fstab is correct.

It works! It simply works this way. The error which is thrown is somewhat
ugly. addmount is used to automatically edit the fstab and add the nfs
mountpoint and to mount the nfs filesystem. All the samples are using
the sequence mountall, addmount, mountall. The second mountall seems
to be misplaced if addmount does the mounting of the missing
filesystems, right?

In order to show the context I will include the correct cfagent.conf
file below.

@mark: this is documentated in a strange way. If I am writing a small
explanation to the miscmount section and contribute a small sample to
it, will you include it in the documentation?


Cheers

Uli

===== Working cfagent.conf =====

control:

actionsequence = (
mountall
addmounts
)


[....config stuff....]


miscmounts:

server.example.com:/mnt/nfs /mnt/nfs-test mode=ro


Ralph Angenendt

unread,
Aug 25, 2004, 5:50:00 PM8/25/04
to help-c...@gnu.org
Ed Brown wrote:
> cfengine:: Warning the file system /foo seems to be in /etc/fstab
> cfengine:: already, but I was not able to mount it.
> cfengine:: Check the exports file on host somehost? Check for file with
> same name as dir?
>
> though everything is mounted fine, and /etc/fstab is correct.

This error message is totally unclear to me.

I used "addmounts" as the only command in action sequence. If the
mountpoint isn't defined in /etc/fstab, addmounts adds it and keeps
quiet about it.

If I run cfagent -v for the second time, addmounts(!) throws "your" error
message. If I understood addmounts correctly, it doesn't try to mount
the filesystem, but only checks if all mountables are in /etc/fstab and
adds them if not.

mountall then mounts the filesystem just fine.

I haven't the faintest idea, why *addmounts* throws this message.

Regards,

Ralph
--
Ralph Angenendt......ra@br-online.de | .."Text processing has made it possible
Bayerischer Rundfunk...HA-Multimedia | ....to right-justify any idea, even one
Rundfunkplatz 1........80300 München | .which cannot be justified on any other
Tl:089.5900.16023..Fx:089.5900.16240 | ..........grounds." -- J. Finnegan, USC

Glen Trudgett

unread,
Aug 25, 2004, 11:20:41 PM8/25/04
to help-c...@gnu.org
Hi all,

We are currently setting up our cfengine software. We seem to be having some strange behaviour
with regards to the sysadm directive. We have found that the mailing address prepends "cfengine@"
onto the front of a define mail address. The output is as follows, with the anomaly in bold red.
Have we made a fundamental mistake somewhere? We have looked closely at examples and checked the reference
guide, but to no avail. Is this a bug?

Glen



---------------------------------------------------------------------
Starting server
---------------------------------------------------------------------

cfpopen(/var/cfengine/bin/cfagent -z)
Got cfengine SMTP server as (smtp.networks.mgmt.det)
Got cfengine sysadm variable (ITLinu...@det.nsw.edu.au)
Got fully qualified name (hdlw1.itbcorpweb.det.nsw.edu.au.unix.mgmt.det)
Got IP (153.107.38.61)
Got max lines (-1)
Defaulting to max lines (100)
cfpclose(pp)
cfpopen - Waiting for process 7872
No schedule defined in cfagent.conf, defaulting to Min00_05
Appending [Min00_05]
------------------------------------------------------------------

  LocalExec at Thu Aug 26 13:19:10 2004

------------------------------------------------------------------
cfpopen(/var/cfengine/bin/cfagent)
cfpclose(pp)
cfpopen - Waiting for process 7874
Closing fp
Comparing files  /var/cfengine/outputs/previous with
/var/cfengine/outputs/cf_hdlw1_itbcorpweb_det_nsw_edu_au_unix_mgmt_det_Thu_Aug_26_13_19_10_2004_
ChecksumFile(m,/var/cfengine/outputs/previous)
ChecksumFile(m,/var/cfengine/outputs/cf_hdlw1_itbcorpweb_det_nsw_edu_au_unix_mgmt_det_Thu_Aug_26_13_19_10_2004_)
Mailing results of
(/var/cfengine/outputs/cf_hdlw1_itbcorpweb_det_nsw_edu_au_unix_mgmt_det_Thu_Aug_26_13_19_10_2004_) to (ITLinu...@det.nsw.edu.au)
Looking up hostname smtp.networks.mgmt.det

Connecting...
Nothing to send .. waiting for opening
220 dirac.networks.mgmt.det. ESMTP Sendmail 8.12.5+Sun/8.12.5; Thu, 26
Aug 2004 13:20:17 +1000 (EST)
HELO hdlw1.itbcorpweb.det.nsw.edu.au.unix.mgmt.det
SENT(52)->HELO hdlw1.itbcorpweb.det.nsw.edu.au.unix.mgmt.det
250 dirac.networks.mgmt.det. Hello hdlw1.unix.mgmt.det [192.168.16.13],
pleased to meet you
MAIL FROM: <cfengine@ITLinux-Adminn...@det.nsw.edu.au>
SENT(52)->MAIL FROM: <cfengine@ITLinux-Adminn...@det.nsw.edu.au>
553 5.1.3 <cfengine@ITLinux-Adminn...@det.nsw.edu.au>... Invalid route
address
cfexecd: Cannot mail to ITLinu...@det.nsw.edu.au.
**********************************************************************
This message is intended for the addressee named and may contain
privileged information or confidential information or both. If you
are not the intended recipient please delete it and notify the sender.
**********************************************************************
0 new messages