Comments (5)
Hi,
I had the same problem.
I think , bottom causes of this problem are below.
-
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)
^^^^^^ -
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.
I made a patch of nfsserver RA for solve cause 1.
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.
Many thanks for the report and the patch! @Sov1et , can you please try with the new nfsserver RA.
from resource-agents.
@Sov1et did you get around to testing this? Can we close the issue?
from resource-agents.
Looks like this has been fixed.
from resource-agents.
Related Issues (20)
- mysql: variable master_host empty on slave reboot
- Are awsvip and awseip still supported resources agents for RHEL HA? HOT 2
- awsvip versus AWS Policy HOT 3
- nothing provides /bin/ps needed by resource-agents-4.11.0 HOT 1
- WARNING: Can't get <node-name> xlog location. HOT 6
- ZFS promotion not working HOT 10
- Occasional false positive "down" reports from IPv6addr "monitor" action
- ZFS can't migrate to other node (cannot open pool: no such pool) HOT 2
- ERROR: LXC container name not set! HOT 23
- How to use the parameter of monitor_script?
- Unable to get metadata for resource agent 'stonith:fence_watchdog' (SyntaxError:JSON.parse:unexpected character at line 1) HOT 2
- master-pgsql attribute disappear HOT 1
- AWS Pacemaker awsvip failing with different errors HOT 4
- Resource agent - AWS Lambda support HOT 2
- Postfix RA continuously fails validate check HOT 1
- iSCSITarget - don't create default portal HOT 4
- resource-agents/heartbeat/ZFS - '-f' to option HOT 1
- "ocf : heartbeat : docker" does not exists in resource-agent v4.10 HOT 1
- How can I create a galera resource with two nodes?
- Filesystem in RHEL9.3 takes considerably longer to complete its stop operation compared to RHEL9.2. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from resource-agents.