Setting the attributes of the paths to an enclosure

You can use the vxdmpadm setattr command to set the attributes of the paths to an enclosure or disk array.

The attributes set for the paths are persistent across reboots or product upgrades.

You can set the following attributes:

active

Changes a standby (failover) path to an active path. The following example specifies an active path for an array:

# vxdmpadm setattr path hdisk10 pathtype=active

nomanual

Restores the original primary or secondary attributes of a path. This example restores the path to a JBOD disk:

# vxdmpadm setattr path hdisk20 pathtype=nomanual

nopreferred

Restores the normal priority of a path. The following example restores the default priority to a path:

# vxdmpadm setattr path hdisk16 pathtype=nopreferred

preferred [priority=N]

Specifies a path as preferred, and optionally assigns a priority number to it. If specified, the priority number must be an integer that is greater than or equal to one. Higher priority numbers indicate that a path is able to carry a greater I/O load.

Note:

Setting a priority for path does not change the I/O policy. The I/O policy must be set independently.

This example first sets the I/O policy to priority for an Active/Active disk array, and then specifies a preferred path with an assigned priority of 2:

# vxdmpadm setattr enclosure enc0 \
  iopolicy=priority
# vxdmpadm setattr path hdisk16 pathtype=preferred \
  priority=2

primary

Defines a path as being the primary path for a JBOD disk array. The following example specifies a primary path for a JBOD disk array:

# vxdmpadm setattr path hdisk20 pathtype=primary

secondary

Defines a path as being the secondary path for a JBOD disk array. The following example specifies a secondary path for a JBOD disk array:

# vxdmpadm setattr path hdisk22 \
  pathtype=secondary

standby

Marks a standby (failover) path that it is not used for normal I/O scheduling. This path is used if there are no active paths available for I/O. The next example specifies a standby path for an A/P-C disk array:

# vxdmpadm setattr path hdisk10 \
  pathtype=standby

More Information

Specifying the I/O policy