resource-agents icon indicating copy to clipboard operation
resource-agents copied to clipboard

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

Open peixubin opened this issue 3 years ago • 1 comments

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.

peixubin avatar Dec 12 '21 06:12 peixubin

Does this also work if the device is not yet known? Like if a fs is just created from another node on shared storage.

oalbrigt avatar Jan 04 '22 11:01 oalbrigt