Skip to contentSkip to conversation

/etc/init.d/cman unmounts configfs unconditionally

Cluster-devel Joel Becker 1 participant 1 message Jul 31, 2008

lore
Share & tools
lore
#0 lore raw

There is more than one user of configfs. When you run "/etc/init.d/cman stop", the script unmounts configfs even if there are other users. This is unexpected (and antisocial, really) behavior.

In o2cb.init, we do it like this:

    # Only unmount configfs if there are no other users
    if [ -z "$(ls -1 "$(configfs_path)")" ]
    then 
        unmount_filesystem "configfs" "$(configfs_path)"
        if_fail $?
    fi   

Joel

Signature · 9 lines
Life's Little Instruction Book #207

	"Swing for the fence."

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127