ClusterLabs / ClusterLabs/resource-agents
When the system has large number of disks(800) , Resource Filesystem start timeout (60s)
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 519
- Forks
- 608
- Avg merge
- 6d 1h
- Merged PRs (30d)
- 7
Description
My system has large number of disks about 800 , Resource Filesystem start timeout,exceed 60s.
I read the resource script ,the problem is found in the partprobe call with no args in the trigger_udev_rules_if_needed function.
[ "$refresh_flag" = "no" ] && return
have_binary partprobe && **partprobe** >/dev/null 2>&1
timeout=${OCF_RESKEY_CRM_meta_timeout:="60000"}
Moreover,my system has more than 20 filesystem.If each filesystem resource needs to call partprobe ,the service startup time will become very long .
I modify the script as follows:
[ "$refresh_flag" = "no" ] && return
have_binary partprobe && **partprobe $tmp ** >/dev/null 2>&1
timeout=${OCF_RESKEY_CRM_meta_timeout:="60000"}
The script is running normally.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Search the resource script for trigger_udev_rules_if_needed and inspect how partprobe is called with no arguments. Compare the reported behavior with the proposed temporary-path invocation, then verify that systems with many disks and filesystem resources no longer exceed the 60-second startup timeout.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100