Skip to contentSkip to conversation

shutdown of filesystems and quorum

Ocfs2-devel Joel Becker 2 participants 4 messages Sep 28, 2005 OCFS2

lore
Share & tools
lore
#0 lore raw

I just realized. Even with _netdev, we have a problem on Red
Hat. Normally, we assume that netfs will start up our _netdev filesystems and umount them on shutdown. But what about filesystems that aren't in /etc/fstab? What about filesystems that are noauto? I'm not sure what netfs does with noauto on shutdown, but I'm certain it has no idea about OCFS2 filesystems that aren't in /etc/fstab. It knows about nfs/gfs/etc, because it hardcodes those fs types. But it only tracks OCFS2 filesystems via the /etc/fstab entries.
What does this mean? Even with /etc/init.d/netfs, any
filesystem that isn't in /etc/fstab will not be umounted before the network is stopped. So every other node mounting that filesystem will see:

o network connection went away
o heartbeat is still alive
=> Ergo, make a quorum decision, perhaps killing myself.

Yuk.
What should we do? Try to persuade Red Hat to add OCFS2 as an
explicit type in netfs (means we don't even need to tell our customers _netdev anymore)? That doesn't help sles/debian. We have a script for sles. Maybe use that everywhere?
What are your thoughts?

Joel

Signature · 8 lines
"Reality is merely an illusion, albeit a very persistent one."
        - Albert Einstien

Joel Becker
Principal Software Developer
Oracle
E-mail: [email protected]
Phone: (650) 506-8127
#1 lore raw

umount script should look at /etc/mtab and not /etc/fstab.

netfs looks at /etc/mtab or /proc/mounts depending on the version.

Quoted 27 lines · Joel Becker

I just realized. Even with _netdev, we have a problem on Red
Hat. Normally, we assume that netfs will start up our _netdev filesystems and umount them on shutdown. But what about filesystems that aren't in /etc/fstab? What about filesystems that are noauto? I'm not sure what netfs does with noauto on shutdown, but I'm certain it has no idea about OCFS2 filesystems that aren't in /etc/fstab. It knows about nfs/gfs/etc, because it hardcodes those fs types. But it only tracks OCFS2 filesystems via the /etc/fstab entries.
What does this mean? Even with /etc/init.d/netfs, any
filesystem that isn't in /etc/fstab will not be umounted before the network is stopped. So every other node mounting that filesystem will see:

o network connection went away
o heartbeat is still alive
=> Ergo, make a quorum decision, perhaps killing myself.

Yuk.
What should we do? Try to persuade Red Hat to add OCFS2 as an
explicit type in netfs (means we don't even need to tell our customers _netdev anymore)? That doesn't help sles/debian. We have a script for sles. Maybe use that everywhere?
What are your thoughts?

Joel

#2 lore raw
Quoted 3 lines · Sunil Mushran

umount script should look at /etc/mtab and not /etc/fstab.

netfs looks at /etc/mtab or /proc/mounts depending on the version.

And how many hand-mounted OCFS2 filesystems have _netdev in the
options? Oh, we force it? I guess that works.

Joel

Signature · 9 lines
"I always thought the hardest questions were those I could not answer.
 Now I know they are the ones I can never ask."
			- Charlie Watkins

Joel Becker
Principal Software Developer
Oracle
E-mail: [email protected]
Phone: (650) 506-8127
#3 lore raw

and oh btw, netfs should look at /etc/mtab as _netdev is not something the kernel understands.

Quoted 16 lines · Joel Becker
Quoted 5 lines · Sunil Mushran

umount script should look at /etc/mtab and not /etc/fstab.

netfs looks at /etc/mtab or /proc/mounts depending on the version.

And how many hand-mounted OCFS2 filesystems have _netdev in the
options? Oh, we force it? I guess that works.

Joel