Go to main content

Administering an Oracle® Solaris Cluster 4.4 Configuration

Exit Print View

Updated: November 2019
 
 

How to Monitor Disk Paths From a File

Use the following procedure to monitor or unmonitor disk paths from a file.

To change your cluster configuration by using a file, you must first export the current configuration. This export operation creates an XML file that you can then modify to set the configuration items you are changing. The instructions in this procedure describe this entire process.

The phys-schost# prompt reflects a global-cluster prompt. Perform this procedure on a global cluster.

This procedure provides the long forms of the Oracle Solaris Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical.

  1. Assume the root role or a role that provides solaris.cluster.modify authorization on any node in the cluster.
  2. Export your device configuration to an XML file.
    # cldevice export -o configurationfile
    –o configurationfile

    Specify the file name for your XML file.

  3. Modify the configuration file so that device paths are monitored.

    Find the device paths that you want to monitor, and set the monitored attribute to true.

  4. Monitor the device paths.
    # cldevice monitor -i configurationfile
    –i configurationfile

    Specify the file name of the modified XML file.

  5. Verify that device path is now monitored.
    # cldevice status
Example 51  Monitoring Disk Paths From a File

In the following example, the device path between the node phys-schost–2 and device d3 is monitored by using an XML file. The deviceconfig XML file shows that the path between phys-schost–2 and d3 is not currently monitored.

Export the current cluster configuration
# cldevice export -o deviceconfig
<?xml version="1.0"?>
<!DOCTYPE cluster SYSTEM "/usr/cluster/lib/xml/cluster.dtd">
<cluster name="brave_clus">
…
<deviceList readonly="true">
<device name="d3" ctd="c1t8d0">
<devicePath nodeRef="phys-schost-1" monitored="true"/>
<devicePath nodeRef="phys-schost-2" monitored="false"/>
</device>
</deviceList>
</cluster>

Monitor the path by setting the monitored attribute to true
<?xml version="1.0"?>
<!DOCTYPE cluster SYSTEM "/usr/cluster/lib/xml/cluster.dtd">
<cluster name="brave_clus">
…
<deviceList readonly="true">
<device name="d3" ctd="c1t8d0">
<devicePath nodeRef="phys-schost-1" monitored="true"/>
<devicePath nodeRef="phys-schost-2" monitored="true"/>
</device>
</deviceList>
</cluster>

Read the file and turn on monitoring
# cldevice monitor -i deviceconfig

Verify that the device is now monitored
# cldevice status

See Also

For more detail about exporting a cluster configuration and using the resulting XML file to set a cluster configuration, see the cluster(8CL) and the clconfiguration(7CL) man pages.