Hi list, Here is a bug report on novell bugzilla (https://bugzilla.novell.com/show_bug.cgi?id=456280) that mount point inside node A can be removed from node B. The problem is, node B does not know an empty dir is be using as mount point on another node. Is there any solution to return -EBUSY when a dir is be using as mount point on another node ? Thanks in advance. -- Coly Li SuSE Labs
On Fri, Feb 13, 2009 at 04:09:19AM +0800, Coly Li wrote:> Hi list, > > Here is a bug report on novell bugzilla (https://bugzilla.novell.com/show_bug.cgi?id=456280) that > mount point inside node A can be removed from node B.Can't access the bug.> The problem is, node B does not know an empty dir is be using as mount point on another node. Is > there any solution to return -EBUSY when a dir is be using as mount point on another node ?This is a good question. As of right now, we don't have a way to do it. Joel -- "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: joel.becker at oracle.com Phone: (650) 506-8127
Sunil Mushran
2009-Feb-12 22:19 UTC
[Ocfs2-devel] mount point is not unique among all nodes
The bug refers to a heartbeat2 issue. So your qs is: Mount a ocfs2 vol on two nodes, A & B. Then on node A, create a directory on the ocfs2 vol and then mount a local filesystem on that dir. Then remove that dir on node B. While I have not tested this, it will be a problem. We are relying on vfs_rmdir() to call d_mountpoint(dentry) to nak the unlink. But it is obviously not cluster-aware. File a bugzilla. We'll have to think about a solution. Coly Li wrote:> Hi list, > > Here is a bug report on novell bugzilla (https://bugzilla.novell.com/show_bug.cgi?id=456280) that > mount point inside node A can be removed from node B. > > The problem is, node B does not know an empty dir is be using as mount point on another node. Is > there any solution to return -EBUSY when a dir is be using as mount point on another node ? > > Thanks in advance. >