Veritas Volume Manager 4.1 Administrator's Guide (HP-UX 11i v3, February 2007)

Performing Online Relayout
258 VERITAS Volume Manager Administrators Guide
Specifying a Plex for Relayout
Any layout can be changed to RAID-5 if there are sufficient disks and space in the disk
group. If you convert a mirrored volume to RAID-5, you must specify which plex is to be
converted. All other plexes are removed when the conversion has finished, releasing their
space for other purposes. If you convert a mirrored volume to a layout other than RAID-5,
the unconverted plexes are not removed. You can specify the plex to be converted by
naming it in place of a volume:
# vxassist [-g diskgroup] relayout plex [layout=layout] \
[relayout_options]
Tagging a Relayout Operation
If you want to control the progress of a relayout operation, for example to pause or reverse
it, use the -t option to vxassist to specify a task tag for the operation. For example, this
relayout is performed as a background task and has the tag myconv:
# vxassist -b -g fsgrp -t myconv relayout vol04 layout=raid5 ncol=4
See the following sections, “Viewing the Status of a Relayout” on page 258 and
Controlling the Progress of a Relayout on page 259, for more information about tracking
and controlling the progress of relayout.
Viewing the Status of a Relayout
Online relayout operations take some time to perform. You can use the vxrelayout
command to obtain information about the status of a relayout operation. For example, the
command:
# vxrelayout -g mydg status vol04
might display output similar to this:
STRIPED, columns=5, stwidth=128--> STRIPED, columns=6, stwidth=128
Relayout running, 68.58% completed.
In this example, the reconfiguration of a striped volume from 5 to 6 columns is in
progress, and is just over two-thirds complete.
See the vxrelayout(1M) manual page for more information about this command.
If you specified a task tag to vxassist when you started the relayout, you can use this
tag with the vxtask command to monitor the progress of the relayout. For example, to
monitor the task tagged as myconv, enter:
# vxtask monitor myconv