To identify the plex of the RAID-5 log, use the following command:
# vxprint [-g
diskgroup] -ht
volume
where volume is the name of the RAID-5 volume. For a RAID-5 log, the output lists a plex with a STATE
field entry of LOG
.
To dissociate and remove a RAID-5 log and any associated subdisks from an existing volume, use the following command:
# vxplex [-g
diskgroup] -o rm dis
plex
For example, to dissociate and remove the log plex volraid-02
from volraid
in the disk group, mydg
, use the following command:
# vxplex -g mydg -o rm dis volraid-02
You can also remove a RAID-5 log with the vxassist
command, as follows:
# vxassist [-g
diskgroup] remove log
volume
[nlog=
n
]
By default, the vxassist
command removes one log. Use the optional attribute nlog=
n
to specify the number of logs that are to remain after the operation completes.
Note
When removing the log leaves the volume with less than two valid logs, a warning is printed and the operation is not allowed to continue. The operation may be forced by additionally specifying the -f
option to vxplex
or vxassist.