298Administering volumes

Performing online relayout

Specifying a non-default layout

You can specify one or more relayout options to change the default layout configuration. Examples of these options are:

ncol=number

Specifies the number of columns.

ncol=+number

Specifies the number of columns to add.

ncol=-number

Specifies the number of colums to remove.

stripeunit=size

Specifies the stripe width.

See the vxassist(1M) manual page for more information about relayout options.

The following are some examples of using vxassist to change the stripe width and number of columns for a striped volume in the disk group dbaseg:

#vxassist -g dbaseg relayout vol03 stripeunit=64k ncol=6

#vxassist -g dbaseg relayout vol03 ncol=+2

#vxassist -g dbaseg relayout vol03 stripeunit=128k

The next example changes a concatenated volume to a RAID-5 volume with four columns:

#vxassist -g fsgrp relayout vol04 layout=raid5 ncol=4

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 -toption 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 299 and Controlling the progress of a relayout” on page 299, for more information about tracking and controlling the progress of relayout.