[ClusterLabs] How to mount rpc_pipefs on a different mountpoint on RHEL/CentOS 7?

Dennis Jacobfeuerborn dennisml at conversis.de
Tue Oct 31 06:46:08 EDT 2017


Hi,
I'm trying to create a redundant NFS system but hit a problem with the
way the nfs packages on RHEL/CentOS 7 handle the sunrpc mount point.

I put /var/lib/nfs on its own redudant drbd device but on a failover the
nfsserver resource agent complains that something is already mounted
below /var/lib/nfs which would be the rpc_pipefs mountpoint.

The problem is that mount units don't really support drop-ins because
the "Where" directive must match the filename of the unit file. As a
result I'm in a situation where I cannot rename/modify the nfs-utils
supplied unit file as this would break things after an update, I cannot
mask the unit as that would prevent the nfs services from starting and
even if that could be worked around if I create a new unit file for the
new file the services would not depend on it so it wouldn't get
automatically mounted when they start.

What I want to express is "instead of mounting sunrpc on
/var/lib/nfs/rpc_pipefs mount it on /var/lib/rpc_pipefs" but I cannot
see a good way to do this.

Any ideas?

Regards,
  Dennis




More information about the Users mailing list