6.5. Disabling Resources of a Clustered Service for Maintenance
cluster.conffile to have hierarchical resources (similar to a dependency tree) to disable a resource in a service without disabling other resources within that service.
cluster.conffile, a service uses a MySQL database and ext3-formatted filesystem resources.
<resources> <mysql config_file="/etc/my.cnf" name="mysql-resource" shutdown_wait="0"/> <fs device="/dev/sdb1" force_fsck="0" force_unmount="1" fsid="9349" fstype="ext3" mountpoint="/opt/db" name="SharedDisk" self_fence="0"/> </resources> <service name="ha-mysql"> <fs ref="SharedDisk"> <mysql ref="mysql-resource"/> </fs> </service>
clusvcadm -Z ha-mysql
rg_test test /etc/cluster/cluster.conf stop mysql mysql-resource
rg_test test /etc/cluster/cluster.conf start mysql mysql-resource
clusvcadm -U ha-mysql
rg_testutility will stop all instances of a resource on a given node, potentially causing undesired results if multiple services on a single node are sharing the same resource. Do not perform these steps on resources that have multiple instances within the
cluster.conffile. In such cases, it is usually necessary to disable the service for maintenance.