![](/images/new-backgrounds/1284928/284928145x1.webp)
Using the Peripheral Status Monitor
Configuring MC/ServiceGuard Package Dependencies with the PSM
Configuring Package Dependencies by Editing the Configuration File
You can also add PSM package dependencies by editing the package configuration file in /etc/cmcluster/pkg.ascii. See the Managing MC/ServiceGuard for details on modifying this file.
When using the MC/ServiceGuard commands (e.g., cmapplyconf) to specify the use of the PSM Resource Monitor, the section of the package configuration file that has the keyword “RESOURCE_NAME” must be uncommented and set to the value of the resource name of interest. The PSM has a different resource path name for hardware resource being monitored.
For example, assume you want to create a dependency on a SCSI disk that has a resource path of /storage/status/disks/default/10_0_5.0.0. You want to use a polling interval of 10 seconds and identify UP as the only state that will not cause failover. The following entry would be added to the configuration file to add a package dependency for this disk:
RESOURCE_NAME /storage/status/disks/default/10_0_5.0.0
RESOURCE_POLLING_INTERVAL 10
RESOURCE_UP_VALUE =UP
Chapter 4 | 73 |