300Administering volumes

Converting between layered and non-layered volumes

inserts a delay of 1000 milliseconds (1 second) between copying each 10- megabyte region:

#vxrelayout -g mydg -o bg,slow=1000,iosize=10m start vol04

The default delay and region size values are 250 milliseconds and 1 megabyte respectively.

To reverse the direction of relayout operation that is currently stopped, specify the reverse keyword to vxrelayout as shown in this example:

#vxrelayout -g mydg -o bg reverse vol04

This undoes changes made to the volume so far, and returns it to its original layout.

If you cancel a relayout using vxtask abort, the direction of the conversion is also reversed, and the volume is returned to its original configuration.

See the vxrelayout(1M) and vxtask(1M) manual pages for more information about these commands. See Managing tasks with vxtask” on page 268 for more information about controlling tasks in VxVM.

Converting between layered and non-layered volumes

The vxassist convert command transforms volume layouts between layered and non-layered forms:

#vxassist [-b] [-g diskgroup] convert volume [layout=layout] \ [convert_options]

Note: If specified, the -boption makes conversion of the volume a background task.

The following conversion layouts are supported:stripe-mirrormirrored-stripe to striped-mirrormirror-stripestriped-mirror to mirrored-stripeconcat-mirrormirrored-concatenated to concatenated-mirrormirror-concatconcatenated-mirror to mirrored-concatenated

Volume conversion can be used before or after performing online relayout to achieve a larger number of transformations than would otherwise be possible. During relayout process, a volume may also be converted into a layout that is intermediate to the one that is desired. For example, to convert a volume from a 4-column mirrored-stripe to a 5-column mirrored-stripe, first use vxassist relayout to convert the volume to a 5-column striped-mirror as shown here:

# vxassist -g mydg relayout vol1 ncol=5