Veritas Volume Manager 5.0 Administrator's Guide (September 2006)

237Creating volumes
Creating a volume on specific disks
Figure 7-1 Example of using ordered allocation to create a mirrored-stripe volume
For layered volumes, vxassist applies the same rules to allocate storage as for non-
layered volumes. For example, the following command creates a striped-mirror volume
with 2 columns:
# vxassist -b -g mydg -o ordered make strmirvol 10g \
layout=stripe-mirror ncol=2 mydg01 mydg02 mydg03 mydg04
This command mirrors column 1 across disks mydg01 and mydg03, and column 2 across
disks mydg02 and mydg04, as illustrated in Figure 7-2.
Figure 7-2 Example of using ordered allocation to create a striped-mirror volume
Additionally, you can use the
col_switch attribute to specify how to concatenate space
on the disks into columns. For example, the following command creates a mirrored-stripe
volume with 2 columns:
# vxassist -b -g mydg -o ordered make strmir2vol 10g \
layout=mirror-stripe ncol=2 col_switch=3g,2g \
mydg01 mydg02 mydg03 mydg04 mydg05 mydg06 mydg07 mydg08
This command allocates 3 gigabytes from mydg01 and 2 gigabytes from mydg02 to
column 1, and 3 gigabytes from mydg03 and 2 gigabytes from mydg04 to column 2. The
Striped plex
Striped plex
Mirror
Mirrored-stripe
volume
Column 1 Column 2 Column 3
Column 1 Column 2 Column 3
mydg01-01 mydg02-01 mydg03-01
mydg04-01 mydg05-01 mydg06-01
Mirror
Striped-mirror volume
Underlying mirrored volumes
Column 1
Column 1
Column 2
Column 2
mydg01-01
mydg03-01
mydg02-01
mydg04-01
Striped plex