GithubHelp home page GithubHelp logo

Comments (5)

higashik avatar higashik commented on July 19, 2024

Hi,

I had the same problem.

I think , bottom causes of this problem are below.

  1. Keyword for grep in unbind_tree() , "rpc_pipefs on /var/lib/nfs/rpc_pipefs" has not worked.
    Because mount command displays rpc_pipefs like below.

    sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
    ^^^^^^

  2. rpcidmapd service will start automatically by nfsd init script (/etc/init.d/nfs).
    But nfsd init script does not stop the rpcidmapd service(with RHEL5/6).
    In addition, rpcidmapd service use /var/lib/nfs/rpc_pipefs.
    So , rpcidmapd continue to use /var/lib/nfs/rpc_pipefs , and an error occurs.

I have confirmed these with RHEL5/6.

I am making patch like below for solve cause 1.

@@ -161,8 +183,8 @@ bind_tree ()

 unbind_tree ()
 {
-   if `mount | grep -q "rpc_pipefs on /var/lib/nfs/rpc_pipefs"`; then
-       umount /var/lib/nfs/rpc_pipefs
+   if `mount | grep -q " on $rpcpipefs_umount_dir"`; then
+       umount -t rpc_pipefs $rpcpipefs_umount_dir
    fi
    if is_bound $fp /var/lib/nfs; then
        umount /var/lib/nfs

I was expect device name from Keyword for grep and add type with -t option.
$rpcpipefs_umount_dir is a new variable , default is /var/lib/nfs/rpc_pipefs.


For solve cause 2 , I've added new LSB resource for control the rpcidmapd service.

my crm nfsd and rpcidmapd part :

group grpNfs \
    prmExNfs \
    prmFsNfs1 \
    prmIpNfs \
    prmNfs \
    prmInitRpcidmapd
(snip)
primitive prmNfs ocf:heartbeat:nfsserver \
    params \
        nfs_init_script="/etc/init.d/nfs" \
        nfs_notify_cmd="/usr/sbin/sm-notify" \
        nfs_shared_infodir="/export/nfs" \
        nfs_ip="192.168.100.12" \
    op start interval="0s" timeout="60s" on-fail="restart" \
    op monitor interval="10s" timeout="60s" on-fail="restart" \
    op stop interval="0s" timeout="60s" on-fail="fence"

primitive prmInitRpcidmapd lsb:rpcidmapd \
    meta \
        migration-threshold="2" \
    op start interval="0s" timeout="60s" on-fail="restart" \
    op monitor interval="10s" timeout="60s" on-fail="restart" \
    op stop interval="0s" timeout="60s" on-fail="fence"

In my environment It work well with these.

I think Lazy unmount work well too, but it is better to deal with the root cause.

Thanks,
Kazuhiko HIGASHI

from resource-agents.

higashik avatar higashik commented on July 19, 2024

I made a patch of nfsserver RA for solve cause 1.

#123

P.S.
This patch also has another purpose of keeping rpc_pipefs local (e.g. /var/lib/nfs/rpc_pipefs -> /var/lib/rpc_pipefs ).
So I added a new parameter for specify a mount point of the rpc_pipefs.

from resource-agents.

dmuhamedagic avatar dmuhamedagic commented on July 19, 2024

Many thanks for the report and the patch! @Sov1et , can you please try with the new nfsserver RA.

from resource-agents.

dmuhamedagic avatar dmuhamedagic commented on July 19, 2024

@Sov1et did you get around to testing this? Can we close the issue?

from resource-agents.

dmuhamedagic avatar dmuhamedagic commented on July 19, 2024

Looks like this has been fixed.

from resource-agents.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.