Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
4.  Administering Global Devices, Disk-Path Monitoring, and Cluster File Systems Administering Disk-Path Monitoring  Previous   Contents   Next 
   
 

ProcedureHow to Monitor a Disk Path

Perform this task to monitor disk paths in your cluster.


Caution! Caution - DPM is not supported on nodes that run versions that were released prior to Sun Cluster 3.1 5/03 software. Do not use DPM commands while a rolling upgrade is in progress. After all nodes are upgraded, the nodes must be online to use DPM commands.


  1. Become superuser on any node in the cluster.

  2. Monitor a disk path by using the scdpm(1M) command.

    # scdpm -m node:disk path

    Refer to Table 4-6 for naming conventions for the node:disk path argument.

  3. Verify that the disk path is monitored.

    # scdpm -p node:all	     

Example--Monitoring a Disk Path on a Single Node

The following example monitors the schost-1:/dev/did/rdsk/d1 disk path from a single node. Only the DPM daemon on the node schost-1 monitors the path to the disk /dev/did/dsk/d1.

# scdpm -m schost-1:d1
# scdpm -p schost-1:d1
	     schost-1:/dev/did/dsk/d1   Ok

Example--Monitoring a Disk Path on All Nodes

The following example monitors the schost-1:/dev/did/dsk/d1 disk path from all nodes. DPM starts on all nodes for which /dev/did/dsk/d1 is a valid path.

# scdpm -m all:/dev/did/dsk/d1
# scdpm -p schost-1:d1
	     schost-1:/dev/did/dsk/d1   Ok	    

Example--Rereading the Disk Configuration From the CCR

The following example forces the daemon to reread the disk configuration from the CCR and prints the monitored disk paths with status.

# scdpm -m all:all 
# scdpm -p all:all
		 schost-1:/dev/did/dsk/d4   Ok
	     schost-1:/dev/did/dsk/d3   Ok
	     schost-2:/dev/did/dsk/d4   Fail
	     schost-2:/dev/did/dsk/d3   Ok
	     schost-2:/dev/did/dsk/d5   Unmonitored
	     schost-2:/dev/did/dsk/d6   Ok

ProcedureHow to Unmonitor a Disk Path

Use this procedure to unmonitor a disk path.


Caution! Caution - DPM is not supported on nodes that run versions that were released prior to Sun Cluster 3.1 5/03 software. Do not use DPM commands while a rolling upgrade is in progress. After all nodes are upgraded, the nodes must be online to use DPM commands.


  1. Become superuser on any node in the cluster.

  2. Determine the state of the disk path to unmonitor.
    # scdpm -p [all:] disk path
    -p

    Prints a detailed listing of the current status of a specified disk path

    [:all]

    Displays all monitored and unmonitored disk paths

  3. On each node, unmonitor the appropriate disk paths.

    # scdpm -u  node:disk path

    Refer to Table 4-6 for naming conventions for the node:disk path argument.

Example--Unmonitoring a Disk Path

The following example unmonitors the schost-2:/dev/did/rdsk/d1 disk path and prints disk paths with status for the entire cluster.

# scdpm -u schost-2:/dev/did/rdsk/d1
# scdpm -p all:all 
	     schost-1:/dev/did/dsk/d4   Ok
	     schost-1:/dev/did/dsk/d3   Ok
	     schost-2:/dev/did/dsk/d4   Fail
	     schost-2:/dev/did/dsk/d3   Ok
	     schost-2:/dev/did/dsk/d1   Unmonitored
	     schost-2:/dev/did/dsk/d6   Ok

ProcedureHow to Print Faulted Disk Paths

Use the following procedure to print the faulted disk paths for a cluster.


Caution! Caution - DPM is not supported on nodes that run versions that were released prior to Sun Cluster 3.1 5/03 software. Do not use DPM commands while a rolling upgrade is in progress. After all nodes are upgraded, the nodes must be online to use DPM commands.


  1. Become superuser on any node in the cluster.

  2. Print the faulted disk paths throughout the cluster.
    # scdpm -p -F node:disk path

    Refer to Table 4-6 for naming conventions for the node:disk path argument.

Example--Printing Faulted Disk Paths

The following example prints faulted disk paths for the entire cluster.

# scdpm -p -F [all:]all
		 schost-1:/dev/did/dsk/d4   Fail
	     schost-1:/dev/did/dsk/d3   Fail
	     schost-2:/dev/did/dsk/d4   Fail
	     schost-2:/dev/did/dsk/d3   Fail
	     schost-2:/dev/did/dsk/d5   Fail
	     schost-2:/dev/did/dsk/d6   Fail

ProcedureHow to Monitor Disk Paths From a File

Use the following procedure to monitor or unmonitor disk paths from a file. The file must list the commands to monitor or unmonitor, the node names, and the disk-path names. Each field of the file should be separated by a column. Format each listing by following the example.

syntax in command file:
[u,m] [node|all]:<[/dev/did/rdsk/]d- | [/dev/rdsk/]c-t-d- | all>

command file entry
u schost-1:/dev/did/rdsk/d5
m schost-2:all


Caution! Caution - DPM is not supported on nodes that run versions that were released prior to Sun Cluster 3.1 5/03 software. Do not use DPM commands while a rolling upgrade is in progress. After all nodes are upgraded, the nodes must be online to use DPM commands.


  1. Become superuser on any node in the cluster.

  2. Monitor the disk paths from a file.
    # scdpm -f filename

  3. Verify the disk paths with status for the cluster.

    # scdpm -p all:all
    	    

Example--Monitor or Unmonitor Disk Paths From a File

The following example monitors or unmonitors disk paths from a file.

# scdpm -f schost_config
# scdpm -p all:all 
	     schost-1:/dev/did/dsk/d4   Ok
	     schost-1:/dev/did/dsk/d3   Ok
	     schost-2:/dev/did/dsk/d4   Fail
	     schost-2:/dev/did/dsk/d3   Ok
	     schost-2:/dev/did/dsk/d5   Unmonitored
	     schost-2:/dev/did/dsk/d6   Ok
 
 
 
  Previous   Contents   Next