ClusterLabs / ClusterLabs/resource-agents

When the system has large number of disks(800) , Resource Filesystem start timeout (60s)

Open
#1,727 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.