Re: [ClusterLabs] How to mount rpc_pipefs on a different mountpoint on RHEL/CentOS 7?
On 31.10.2017 12:58, Ferenc Wágner wrote: > Dennis Jacobfeuerbornwrites: > >> 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. > > Put the new unit file under /etc/systemd/system/x.service.requires to > have x.service require it. I don't get the full picture, but this trick > may help puzzle it together. > It seems the nfsserve resource agent isn't compatible with RHEL/CentOS-7. These systems always mount /var/lib/nfs/rpc_pipefs on boot but the resource agent script actually checks if "/var/lib/nfs" is present in /proc/mounts and if that is the case then it will refuse to start the nfs server thus preventing the fail-over. I honestly have no good idea how to solve this as the mounting of /var/lib/nfs/rpc_pipefs is basically hard-coded into the RHEL/CentOS service files. Regards, Dennis ___ Users mailing list: Users@clusterlabs.org http://lists.clusterlabs.org/mailman/listinfo/users Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org
Re: [ClusterLabs] How to mount rpc_pipefs on a different mountpoint on RHEL/CentOS 7?
Dennis Jacobfeuerbornwrites: > 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. Put the new unit file under /etc/systemd/system/x.service.requires to have x.service require it. I don't get the full picture, but this trick may help puzzle it together. -- Feri ___ Users mailing list: Users@clusterlabs.org http://lists.clusterlabs.org/mailman/listinfo/users Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org
[ClusterLabs] How to mount rpc_pipefs on a different mountpoint on RHEL/CentOS 7?
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 ___ Users mailing list: Users@clusterlabs.org http://lists.clusterlabs.org/mailman/listinfo/users Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org