Creating a volume with vxmake

In this example, I create a 26 GB concatenated volume named EZTK-NEW using disks in disk group dg15. The volume consists of 3 plexes (3 copies of the data). Each plex is composed of two 13 GB subdisks.

1. Identify disks in disk group dg15 that have enough free space to create a 13 GB subdisk.

# vxdg -g dg15 free
DISK         DEVICE       TAG          OFFSET    LENGTH    FLAGS
S-f0         c1t0d0s2     c1t0d0       35302304  61256     -
S-f1         c1t1d0s2     c1t1d0       35302304  61256     -
S-f2         c1t2d0s2     c1t2d0       35302304  61256     -
S-f3         c1t3d0s2     c1t3d0       35302304  61256     -
S-f4         c1t4d0s2     c1t4d0       35302304  61256     -
S-f6         c1t6d0s2     c1t6d0       35302304  61256     -
S-f9         c1t9d0s2     c1t9d0       17062152  18301408  -
S-f10        c1t10d0s2    c1t10d0      20973112  14385736  -

The LENGTH column displays the number of free sectors on the disk (each sector is 512 bytes). Although not displayed here, disks b1-r2, b1-r9, b1-f4, b1-f6, b2-f4, and b2-r2 have enough free space to create 13 GB subdisks.

2. Create the subdisks.

Syntax:
# vxmake sd subdisk diskname,offset,length

Plex one:
# vxmake -g dg15 sd b1-r2-01 b1-r2,0,13g

# vxmake -g dg15 sd b1-r9-01 b1-r9,0,13g

Plex two:
# vxmake -g dg15 sd b1-f4-01 b1-f4,6582664,13g

# vxmake -g dg15 sd b1-f6-01 b1-f6,0,13g

Plex three:
# vxmake -g dg15 sd b2-f4-01 b2-f4,6582664,13g

# vxmake -g dg15 sd b2-r2-01 b2-r2,0,13g

3. Create the three plexes and associate the subdisks with them.

Syntax:
# vxmake plex plex sd=subdisk1[,subdisk2,...]

Plex one named EZTK-P01:
# vxmake -g dg15 plex EZTK-NEW-P01 sd=b1-r2-01,b1-r9-01

Plex two named EZTK-P02:
# vxmake -g dg15 plex EZTK-NEW-P02 sd=b1-f4-01,b1-f6-01

Plex three named EZTK-P03:
# vxmake -g dg15 plex EZTK-NEW-P03 sd=b2-f4-01,b2-r2-01

4. Create the volume consisting of the three plexes.

Creating volume EZTK-NEW composed of plexes EZTK-P01, EZTK-P02, and EZTK-P03:

# vxmake -g dg15 -U gen vol EZTK-NEW
plex=EZTK-NEW-P01,EZTK-NEW-P02,EZTK-NEW-P03

5. Initialize the volume.

# vxvol start EZTK-NEW

The volume has been created. Before you are able to mount this volume as a file system, you will have to create a file system (UFS or vxfs) using newfs.

Back to brandonhutchinson.com.
Last modified: 08/14/2003