Lsb resource is not listed in `pcs resource list`
Environment
- Red Hat Enterprise Linux (RHEL) 9 with High Availability Add-on
- Pacemaker
Issue
- After running pcs resource list, LSB resource is not listed
Resolution
-
According to KCS: Can an LSB-compliant script be used as a resource in Pacemaker clusters? it is mentioned that the LSB script should be copied to the
/etc/init.d/directory. -
However, since RHEL 9, it is required to copy the script to the
/etc/rc.d/init.ddirectory.
Root Cause
- From RHEL 9 onwards, init.d directory location has been updated to
/etc/rc.d/init.dfrom/etc/init.d/
Diagnostic Steps
- Run command
pcs resource list | grep "lsb:script_name" - If the script is not displayed in the above command's output, then check if script exists under
/etc/rc.d/init.ddirectory. - If script is not at location
/etc/rc.d/init.d, then copy the script on mentioned location and re-run commandpcs resource list | grep "lsb:script_name"
SBR
Product(s)
Components
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.