bug-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

umount bug?


From: Robert Shaw
Subject: umount bug?
Date: Mon, 05 Feb 2001 16:07:54 -0700

Mark,

When I add something to the unmount section to make sure something isn't
mounted on a system, it properly unmounts it, and removes the directory,
but it isn't removing the entry from the /etc/vfstab file. Here's the
outputs I see:

cf:arizona2: Unmounting arizona:/export/pack
cf:arizona2: Removing directory arizona:/export/pack
cf:arizona2: Edited file /etc/vfstab 

It says it edited the /etc/vfstab, but the file is unchanged after this.

Specs:
cfengine 1.6.2
Solaris 2.6 on Sparc

Basically, I use automount for my home directories and a software setup
called SEPP, but I handle the rest in the vfstab file. I can't seem to
make it work right to be able to add/delete mounts properly. Here's what
I tried:

...
     actionsequence = (
...
        mountall
        mountinfo
        unmount
        addmounts
        mountall
...
     )
...
miscmounts:
   group1::
      arizona:/export/local    /usr/local    mode=rw
   group2::
      arizona:/export/pack     /usr/pack     mode=rw

unmount:
   group1::
       arizona:/export/pack
   group2::
       arizona:/export/local

So as I change the hosts in group1 to group2 the mounts move to a new
setup. I'm doing this to allow slow migration with little pain. But I
can't seem to get the unmount to properly cleanup after itself in the
/etc/vfstab file.

The only work-around I can find would be to insert a editfiles step.
This will work, but is not desirable since the unmount should have
already done that.

Please help.

Thanks!!
-Robert





reply via email to

[Prev in Thread] Current Thread [Next in Thread]