----- Original Message -----
From: "Enrico Tagliavini"
<enrico.tagliavini(a)gmail.com>
To: devel(a)ovirt.org
Sent: Thursday, May 8, 2014 1:15:15 PM
Subject: [ovirt-devel] GFS2 mount via symlink problem
The storage is mounted twice, first by the gfs2 init script and then
by ovirt. As you can see even if both ovirt and gfs2 init script used
the /dev/mapper/name symlink, in proc mounts there is the real device
specified, the one the symlink is pointing to.
I have no clue why only GFS2 does that (at least ext* FS are not,
didn't checked anything else TBO, I have only ext* FS on other LVM
volumes on the same system).
In this case oVirt fails to check if the FS is mounted, since there is
no entry in /proc/mounts matching the device name specified (the
/dev/mapper/name one). I my example above I already applied a fix for
that, so it is actually working.
I've submitted a fix to ovirt gerrit, see [2], [3] and [4] (the latter
is a unit test for checking gfs2). Note that [2] alone is not correct,
it needs [3] as well to not break some other setup.
My suggestion is to squash the two patches if the first one is breaking
the branch (they're not very large and it makes sense to keep the entire
change together).
That said I still think this should be handled by ovirt. It
doesn't
really matter if in /proc/mounts you have the symlink or the real
device, it is the same mount
+1 to support this, after all we have to handle the fact that in some
cases the symlinks may be resolved.
--
Federico