Creating and administering subdisks

Dissociating subdisks from plexes

221

Dissociating subdisks from plexes

To break an established connection between a subdisk and the plex to which it belongs, the subdisk is dissociated from the plex. A subdisk is dissociated when the subdisk is removed or used in another plex. To dissociate a subdisk, use the following command:

#vxsd [-g diskgroup] [-o force] dis subdisk

For example, to dissociate a subdisk named mydg02-01from the plex with which it is currently associated in the disk group, mydg, use the following command:

#vxsd -g mydg dis mydg02-01

You can additionally remove the dissociated subdisks from VxVM control using the following form of the command:

#vxsd [-g diskgroup] -o rm dis subdisk

Caution: If the subdisk maps a portion of a volume’s address space, dissociating it places the volume in DEGRADED mode. In this case, the dis operation prints a warning and must be forced using the -o force option to succeed. Also, if removing the subdisk makes the volume unusable, because another subdisk in the same stripe is unusable or missing and the volume is not DISABLED and empty, the operation is not allowed.

Removing subdisks

To remove a subdisk, use the following command:

#vxedit [-g diskgroup] rm subdisk

For example, to remove a subdisk named mydg02-01from the disk group, mydg, use the following command:

#vxedit -g mydg rm mydg02-01

Changing subdisk attributes

Caution: Change subdisk attributes with extreme care.

The vxedit command changes attributes of subdisks and other VxVM objects. To change subdisk attributes, use the following command:

#vxedit [-gdiskgroup] set attribute=value ... subdisk ...

Subdisk fields that can be changed using the vxedit command include:

name

Page 220
Image 220
HP Veritas Volume Manager 5.0 -UX 11i v3 Dissociating subdisks from plexes, Removing subdisks, Changing subdisk attributes