[Pacemaker] heartbeat/nfsserver: is_bound function no longer works with current linux kernel

Eberhard Kuemmerle E.Kuemmerle at fz-juelich.de
Thu Feb 9 12:41:33 UTC 2012


Hi,

my nfsserver resource is configured like that:

primitive nfs ocf:heartbeat:nfsserver \
         params nfs_shared_infodir="/server/nfs_infodir"

With older kernels, the bind mount produced by ocf:heartbeat:nfsserver
and the mount of the base filesystem looked like that in /etc/mtab:

/dev/mapper/server on /server type ext4
(rw,relatime,user_xattr,acl,barrier=1,data=ordered)
/server/nfs_infodir on /var/lib/nfs type none ...

and the is_bound function in ocf:heartbeat:nfsserver worked fine.
But with newer kernels (now I use Opensuse 12.1, kernel 3.1.9) the
mounts look like that:

/dev/mapper/server on /server type ext4
(rw,relatime,user_xattr,acl,barrier=1,data=ordered)
/dev/mapper/server on /var/lib/nfs type ext4
(rw,relatime,user_xattr,acl,barrier=1,data=ordered)

and the is_bound function cannot identify it's mount.

More information can be found in /proc/self/mountinfo:

  /    /server rw,relatime - ext4 /dev/mapper/server
rw,user_xattr,acl,barrier=1,data=ordered
  /nfs_infodir    /var/lib/nfs rw,relatime - ext4 /dev/mapper/server
rw,user_xattr,acl,barrier=1,data=ordered

Here, it is visible that only the subdirectory nfs_infodir is mounted on
/var/lib/nfs.
Perhaps, that information should be used in is_bound.

Regards,
   Eberhard


-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------

Kennen Sie schon unsere app? http://www.fz-juelich.de/app




More information about the Pacemaker mailing list