Bug 150481 - Stopping of filesystem service fails with certain devices
Summary: Stopping of filesystem service fails with certain devices
Alias: None
Product: Red Hat Cluster Suite
Classification: Retired
Component: rgmanager (Show other bugs)
(Show other bugs)
Version: 4
Hardware: All Linux
Target Milestone: ---
Assignee: Lon Hohberger
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2005-03-07 15:41 UTC by Derek Anderson
Modified: 2009-04-16 20:16 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-05-06 20:45:36 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Derek Anderson 2005-03-07 15:41:56 UTC
Description of problem:
Thanks to Ion Alberdi <ialberdi@histor.fr> for pointing this out.

The umount command does not work with all device types, as it is being
deprecated, according to the umount man page.  So if you are using,
for example, CLVMD block devices and one of these is used in an fs
service, that service will fail to stop.

The reason the service fails to stop is umount won't work with this
type of device:

[root@link-11 cluster]# mount | grep VG3
/dev/VG3/LV3 on /mnt/gfs3 type ext3 (rw)
[root@link-11 cluster]# umount /dev/VG3/LV3
umount: /dev/VG3/LV3: not mounted
[root@link-11 cluster]# umount /mnt/gfs3
[root@link-11 cluster]#

By changing line 821 of /usr/share/cluster/fs.sh from:
umount $dev
umount $mp

The service will now stop properly.  Haven't scoured the script yet,
so there may well be other places that need to be changed.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:

Comment 1 Lon Hohberger 2005-03-07 16:05:36 UTC
Ah, an artifact of 5-year-old mount/umount code ;)

Comment 2 Lon Hohberger 2005-03-07 16:06:21 UTC
Er, why will 'mount' work but not 'umount' ?

Comment 3 Lon Hohberger 2005-03-07 17:22:43 UTC
Fixed in CVS

Comment 4 Lon Hohberger 2005-03-07 17:44:06 UTC
Needs to follow symlinks in status portion so that we can compare
multiple possible outputs of mount(1).

(Don't forget to watch for symlink loops.)


fstab has: 

which is a symlink to:

The latter is what mount(1) reports.

Comment 5 Lon Hohberger 2005-03-07 17:57:57 UTC
Derek noted that we should run down symlinks in the output of mount too.

Comment 6 Lon Hohberger 2005-03-07 19:53:16 UTC
Fixes in CVS.

a. Walks symlinks / does findfs / whatever for specifed device
b. Figures out if mount output is a symlink and traces it for each
"device" output from mount(1).

fs.sh should work with symlinks specified, UUID=<foo>, LABEL=<foo>,
and directly-specified devices (e.g. /dev/sda1) now, even if the
output of mount(1) doesn't directly match what was specified in
cluster.conf (as long as the final device matches...).

Comment 7 Lon Hohberger 2005-05-06 20:45:36 UTC
These have been fixed in CVS for some time; closing

Note You need to log in before you can comment on or make changes to this bug.