Вы находитесь на странице: 1из 18

Initializing the physical disks.

(Bringing the physical disks into VxVMs control)

Following output shows that there are no disks under VxVMs control and no Volumes are configured. bash-3.00# vxdisk list DEVICE c0d0s2 c0d1s2 c2t0d0s2 c2t1d0s2 c2t2d0s2 c2t3d0s2 c2t4d0s2 TYPE auto:none auto:none auto:none auto:none auto:none auto:none auto:none DISK GROUP STATUS online invalid online invalid online invalid online invalid online invalid online invalid online invalid

bash-3.00# /opt/VRTS/bin/vxdisksetup -i c2t0d0 bash-3.00# vxdisk list DEVICE c0d0s2 c0d1s2 c2t0d0s2 c2t1d0s2 c2t2d0s2 c2t3d0s2 c2t4d0s2 TYPE auto:none auto:none DISK GROUP STATUS online invalid online invalid online online invalid online invalid online invalid online invalid

auto:cdsdisk auto:none auto:none auto:none auto:none -

bash-3.00# /opt/VRTS/bin/vxdisksetup -i c2t1d0 bash-3.00# /opt/VRTS/bin/vxdisksetup -i c2t2d0

bash-3.00# /opt/VRTS/bin/vxdisksetup -i c2t3d0 bash-3.00# /opt/VRTS/bin/vxdisksetup -i c2t4d0

The following output shows that there are now five VxVM disks. Online means that they are under VxVMs control but they are not part of any disk group. bash-3.00# vxdisk list DEVICE c0d0s2 c0d1s2 c2t0d0s2 c2t1d0s2 c2t2d0s2 c2t3d0s2 c2t4d0s2 TYPE auto:none auto:none DISK GROUP STATUS online invalid online invalid online online online online online

auto:cdsdisk auto:cdsdisk auto:cdsdisk auto:cdsdisk auto:cdsdisk -

Creating a new Disk group pavidg with the first VxVM disk .
bash-3.00# vxdg init pavidg pavidg01=c2t0d0 bash-3.00# vxdg list NAME pavidg STATE enabled,cds ID 1277936732.20.solnode1

bash-3.00# vxdisk list DEVICE c0d0s2 c0d1s2 c2t0d0s2 TYPE auto:none auto:none DISK GROUP STATUS online invalid online invalid pavidg online

auto:cdsdisk pavidg01

c2t1d0s2 c2t2d0s2 c2t3d0s2 c2t4d0s2

auto:cdsdisk auto:cdsdisk auto:cdsdisk auto:cdsdisk -

online online online online

Adding other four VxVM disks to the newly created dik group pavidg bash-3.00# vxdg -g pavidg adddisk pavidg02=c2t1d0 bash-3.00# vxdg -g pavidg adddisk pavidg03=c2t2d0 bash-3.00# vxdg -g pavidg adddisk pavidg04=c2t3d0 bash-3.00# vxdg -g pavidg adddisk pavidg05=c2t4d0 bash-3.00# vxdisk list DEVICE c0d0s2 c0d1s2 c2t0d0s2 c2t1d0s2 c2t2d0s2 c2t3d0s2 c2t4d0s2 TYPE auto:none auto:none DISK GROUP STATUS online invalid online invalid pavidg pavidg pavidg pavidg pavidg online online online online online

auto:cdsdisk pavidg01 auto:cdsdisk pavidg02 auto:cdsdisk pavidg03 auto:cdsdisk pavidg04 auto:cdsdisk pavidg05

Removing a VxVM disk from the Disk group pavidg bash-3.00# vxdg -g pavidg rmdisk pavidg05 bash-3.00# vxdisk list DEVICE c0d0s2 TYPE auto:none DISK GROUP STATUS online invalid

c0d1s2 c2t0d0s2 c2t1d0s2 c2t2d0s2 c2t3d0s2 c2t4d0s2

auto:none

online invalid pavidg pavidg pavidg pavidg online online online online online

auto:cdsdisk pavidg01 auto:cdsdisk pavidg02 auto:cdsdisk pavidg03 auto:cdsdisk pavidg04 auto:cdsdisk -

Creating Volumes using vxassist command


Different types of Volume Layouts. 1. 2. 3. 4. Concatenated Volume ( Single Plex) Striped Volume ( Single Plex) RAID 5 Volume Mirrored Volumes ( Dual Plexes) Mirror-concat ( Raid 0+1) ( Non-Layered) Mirror-stripe ( Raid 0+1) ( Non-Layered) Concat-mirror (Raid 1+0) (Layered) Stripe-mirrror (Raid 1+0) (Layered)

1. Concatenated Volume ( Single Plex)


It is simple concatenated volume where it has got one plex with one or more sub disks in it and concatenates across them.

Volume- pavivol Plex pavivol01 SD - pavidg01-01

bash-3.00# vxassist -g pavidg make pavivol 1g layout=nostripe bash-3.00# vxprint Disk group: pavidg TY NAME dg pavidg ASSOC pavidg KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0 -

dm pavidg01 dm pavidg02 dm pavidg03 dm pavidg04

c2t0d0s2 c2t1d0s2 c2t2d0s2 c2t3d0s2

4112128 4112128 4112128 4112128 -

v pavivol

fsgen

ENABLED 2097152 ENABLED 2097152 -

ACTIVE ACTIVE -

pl pavivol-01 pavivol

sd pavidg01-01 pavivol-01 ENABLED 2097152 0

Now lets remove this volume and create a new volume of bigger size and see howmany disks it uses.

bash-3.00# vxassist -g pavidg remove volume pavivol bash-3.00# vxassist -g pavidg make pavivol 3g layout=nostripe bash-3.00# vxprint Disk group: pavidg TY NAME dg pavidg ASSOC pavidg KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0 -

dm pavidg01 dm pavidg02 dm pavidg03 dm pavidg04

c2t0d0s2 c2t1d0s2 c2t2d0s2 c2t3d0s2

4112128 4112128 4112128 4112128 -

v pavivol

fsgen

ENABLED 6291456 ENABLED 6291456 -

ACTIVE ACTIVE -

pl pavivol-01 pavivol

sd pavidg01-01 pavivol-01 ENABLED 4112128 0

sd pavidg02-01 pavivol-01 ENABLED 2179328 4112128 -

Specifying disks from which the volume has to take the subdisks. bash-3.00# vxassist -g pavidg make pavivol 3g layout=nostripe pavidg01 pavidg03 bash-3.00# vxprint Disk group: pavidg

TY NAME dg pavidg

ASSOC pavidg -

KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0 -

dm pavidg01 dm pavidg02 dm pavidg03 dm pavidg04

c2t0d0s2 c2t1d0s2 c2t2d0s2 c2t3d0s2

4112128 4112128 4112128 4112128 -

v pavivol

fsgen

ENABLED 6291456 ENABLED 6291456 -

ACTIVE ACTIVE -

pl pavivol-01 pavivol

sd pavidg01-01 pavivol-01 ENABLED 4112128 0

sd pavidg03-01 pavivol-01 ENABLED 2179328 4112128 -

2. Striped Volume ( Single Plex)


It is simple striped volume where it has got one plex with two or more sub disks in it and stripes across them. We can also specify the number of columns ( stripes) and the stripe size where the default stripe size is 16K.

Volume- pavivol Plex pavivol01 Subdisk Subdisk

bash-3.00# vxassist -g pavidg make pavivol 2g layout=stripe bash-3.00# vxprint Disk group: pavidg TY NAME dg pavidg ASSOC pavidg KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0 -

dm pavidg01 dm pavidg02 dm pavidg03 dm pavidg04

c2t0d0s2 c2t1d0s2 c2t2d0s2 c2t3d0s2

4112128 4112128 4112128 4112128 -

v pavivol

fsgen

ENABLED 4194304 ENABLED 4194304 -

ACTIVE ACTIVE -

pl pavivol-01 pavivol

sd pavidg01-01 pavivol-01 ENABLED 2097152 0

sd pavidg02-01 pavivol-01 ENABLED 2097152 0

Lets remove this volume and create a bigger one and also specify the number of stripes. bash-3.00# vxassist -g pavidg make pavivol 3g layout=stripe ncol=3 pavidg01 pavidg03 pavidg04 bash-3.00# vxprint Disk group: pavidg TY NAME dg pavidg ASSOC pavidg KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0 -

dm pavidg01 dm pavidg02 dm pavidg03 dm pavidg04

c2t0d0s2 c2t1d0s2 c2t2d0s2 c2t3d0s2

4112128 4112128 4112128 4112128 -

v pavivol

fsgen

ENABLED 6291456 ENABLED 6291456 -

ACTIVE ACTIVE -

pl pavivol-01 pavivol

sd pavidg01-01 pavivol-01 ENABLED 2097152 0 sd pavidg03-01 pavivol-01 ENABLED 2097152 0 sd pavidg04-01 pavivol-01 ENABLED 2097152 0

3. RAID 5 Volume

Volume- pavivol Plex 1 pavivol01 Subdisk Subdisk Subdisk Plex2 pavivol02 Subdisk

bash-3.00# vxassist -g pavidg make pavivol 2g layout=raid5 bash-3.00# vxprint Disk group: pavidg TY NAME dg pavidg dm pavidg01 dm pavidg02 dm pavidg03 dm pavidg04 ASSOC pavidg KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0 4112128 4112128 4112128 4112128 -

c2t0d0s2 c2t1d0s2 c2t2d0s2 c2t3d0s2

v pavivol raid5 ENABLED 4194304 ACTIVE pl pavivol-01 pavivol ENABLED 4194304 ACTIVE sd pavidg01-01 pavivol-01 ENABLED 2097152 0 sd pavidg02-01 pavivol-01 ENABLED 2097152 0 sd pavidg03-01 pavivol-01 ENABLED 2097152 0 pl pavivol-02 pavivol ENABLED 2880 LOG sd pavidg04-01 pavivol-02 ENABLED 2880 0 -

4.a . Mirror-concat Volume ( RAID 0+1) Unlayered


This layout has got two plexes where both are mirrored. These plexes have one or more sub disks and concatenates across them. The concatenated plexes can contain subdisks of different sizes. Fig : for second output.

Volume - pavivol Plex1 pavivol01 Plex2 pavivol02

SubDisk1 - pavidg01-01 Subdisk2 - pavidg03-01

SubDisk1 - pavidg02-01 SubDisk2 - pavidg04-01

bash-3.00# vxassist -g pavidg make pavivol 500m layout=mirror-concat bash-3.00# vxprint Disk group: pavidg TY NAME dg pavidg dm pavidg01 dm pavidg02 dm pavidg03 dm pavidg04 ASSOC pavidg KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0 4112128 4112128 4112128 4112128 -

c2t0d0s2 c2t1d0s2 c2t2d0s2 c2t3d0s2

v pavivol fsgen ENABLED 1024000 ACTIVE pl pavivol-01 pavivol ENABLED 1024000 ACTIVE sd pavidg01-01 pavivol-01 ENABLED 1024000 0 pl pavivol-02 pavivol ENABLED 1024000 ACTIVE sd pavidg02-01 pavivol-02 ENABLED 1024000 0 -

bash-3.00# vxassist -g pavidg remove volume pavivol bash-3.00# vxassist -g pavidg make pavivol 2g layout=mirror-concat bash-3.00# vxprint Disk group: pavidg TY NAME dg pavidg dm pavidg01 dm pavidg02 dm pavidg03 dm pavidg04 ASSOC pavidg KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0 4112128 4112128 4112128 4112128 -

c2t0d0s2 c2t1d0s2 c2t2d0s2 c2t3d0s2

v pavivol fsgen ENABLED 4194304 ACTIVE pl pavivol-01 pavivol ENABLED 4194304 ACTIVE sd pavidg01-01 pavivol-01 ENABLED 4112128 0 sd pavidg03-01 pavivol-01 ENABLED 82176 4112128 pl pavivol-02 pavivol ENABLED 4194304 ACTIVE sd pavidg02-01 pavivol-02 ENABLED 4112128 0 sd pavidg04-01 pavivol-02 ENABLED 82176 4112128 -

4.b Mirror-stripe Volume ( RAID 0+1) Unlayered


This layout has got two plexes where both are mirrored. These plexes have two or more plexes and stripes across them. The striped plexes can consist of different numbers of subdisks but make sure the sizes of both the plexes are same.

Volume - pavivol Plex1 pavivol01 Plex2 pavivol02

bash-3.00# vxassist -g pavidg make pavivol 500m layout=mirror-stripe bash-3.00# vxprint Disk group: pavidg TY NAME dg pavidg ASSOC pavidg KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0 -

dm pavidg01 dm pavidg02 dm pavidg03 dm pavidg04

c2t0d0s2 c2t1d0s2 c2t2d0s2 c2t3d0s2

4112128 4112128 4112128 4112128 -

v pavivol

fsgen

ENABLED 1024000 ENABLED 1024000 -

ACTIVE ACTIVE -

pl pavivol-01 pavivol

sd pavidg01-01 pavivol-01 ENABLED 512000 0 sd pavidg02-01 pavivol-01 ENABLED 512000 0

pl pavivol-02 pavivol

ENABLED 1024000 -

ACTIVE -

sd pavidg03-01 pavivol-02 ENABLED 512000 0 sd pavidg04-01 pavivol-02 ENABLED 512000 0

bash-3.00# vxassist -g pavidg make pavivol 2g layout=mirror-stripe pavidg03 pavidg04 VxVM vxassist ERROR V-5-1-1065 Too few disks for striping; at least 4 disks are needed

4.c Concat-Mirror Volume ( RAID 1+0) - Layered Volume


This layout contains a single plex consisting of one or more sub volumes. Each subvolume has two concatenated plexes (mirrors) which consists of one or more sub disks. Fig : For second output

Top Level Volume - pavivol Top Plex - pavivol-03


SubVolume1 pavivol-S01

SubVolume 2 pavivol-S02

Sec Level Volume - pavivol-L01

Sec Level Volume - pavivol-L02

Plex1
SD

Plex2 SD

Plex1 SD

Plex2 SD

bash-3.00# vxassist -g pavidg make pavivol 500m layout=concat-mirror bash-3.00# vxprint Disk group: pavidg TY NAME dg pavidg ASSOC pavidg KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0 -

dm pavidg01 dm pavidg02 dm pavidg03 dm pavidg04

c2t0d0s2 c2t1d0s2 c2t2d0s2 c2t3d0s2

4112128 4112128 4112128 4112128 -

v pavivol

fsgen

ENABLED 1024000 ENABLED 1024000 -

ACTIVE ACTIVE -

pl pavivol-03 pavivol

sv pavivol-S01 pavivol-03 ENABLED 1024000 0

v pavivol-L01 fsgen

ENABLED 1024000 -

ACTIVE ACTIVE -

pl pavivol-P01 pavivol-L01 ENABLED 1024000 sd pavidg01-02 pavivol-P01 ENABLED 1024000 0 pl pavivol-P02 pavivol-L01 ENABLED 1024000 sd pavidg02-02 pavivol-P02 ENABLED 1024000 0

ACTIVE -

With bigger size, here it creates two sub volumes in the top level volume.

bash-3.00# vxassist -g pavidg remove volume pavivol bash-3.00# vxassist -g pavidg make pavivol 2g layout=concat-mirror bash-3.00# vxprint Disk group: pavidg TY NAME dg pavidg ASSOC pavidg KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0 -

dm pavidg01 dm pavidg02 dm pavidg03 dm pavidg04

c2t0d0s2 c2t1d0s2 c2t2d0s2 c2t3d0s2

4112128 4112128 4112128 4112128 -

v pavivol

fsgen

ENABLED 4194304 ENABLED 4194304 -

ACTIVE ACTIVE -

pl pavivol-03 pavivol

sv pavivol-S01 pavivol-03 ENABLED 4112128 0

sv pavivol-S02 pavivol-03 ENABLED 82176 4112128 -

v pavivol-L01 fsgen

ENABLED 4112128 -

ACTIVE ACTIVE -

pl pavivol-P01 pavivol-L01 ENABLED 4112128 sd pavidg01-02 pavivol-P01 ENABLED 4112128 0 pl pavivol-P02 pavivol-L01 ENABLED 4112128 sd pavidg02-02 pavivol-P02 ENABLED 4112128 0

ACTIVE -

v pavivol-L02 fsgen

ENABLED 82176 -

ACTIVE ACTIVE -

pl pavivol-P03 pavivol-L02 ENABLED 82176 sd pavidg03-02 pavivol-P03 ENABLED 82176 0 pl pavivol-P04 pavivol-L02 ENABLED 82176 sd pavidg04-02 pavivol-P04 ENABLED 82176 0

ACTIVE -

4.c Stripe-Mirror Volume ( RAID 1+0) - Layered Volume


This layout contains a single plex consisting of two or more sub volumes. Each subvolume has two plexes (mirrors) which consists of one or more sub disks. The difference between striped mirror and concat mirror is that the top level plex is striped here rather than concatenated. Eachh mirrored subvolume must have the same number if disks.

Top Level Volume

Top Plex - pavivol-03


SV SV

pavivol

Sec Level Volume - pavivol-L01

Sec Level Volume - pavivol-L01

Plex 1 SD

Plex 2 SD

Plex 1 SD

Plex 2 SD

bash-3.00# vxassist -g pavidg make pavivol 500m layout=stripe-mirror bash-3.00# vxprint Disk group: pavidg

TY NAME dg pavidg

ASSOC pavidg -

KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0 -

dm pavidg01 dm pavidg02 dm pavidg03 dm pavidg04

c2t0d0s2 c2t1d0s2 c2t2d0s2 c2t3d0s2

4112128 4112128 4112128 4112128 -

v pavivol

fsgen

ENABLED 1024000 ENABLED 1024000 -

ACTIVE ACTIVE -

pl pavivol-03 pavivol

sv pavivol-S01 pavivol-03 ENABLED 512000 0 sv pavivol-S02 pavivol-03 ENABLED 512000 0

v pavivol-L01 fsgen

ENABLED 512000 -

ACTIVE ACTIVE -

pl pavivol-P01 pavivol-L01 ENABLED 512000 sd pavidg01-02 pavivol-P01 ENABLED 512000 0 pl pavivol-P02 pavivol-L01 ENABLED 512000 sd pavidg03-02 pavivol-P02 ENABLED 512000 0

ACTIVE -

v pavivol-L02 fsgen

ENABLED 512000 -

ACTIVE ACTIVE -

pl pavivol-P03 pavivol-L02 ENABLED 512000 sd pavidg02-02 pavivol-P03 ENABLED 512000 0 pl pavivol-P04 pavivol-L02 ENABLED 512000 sd pavidg04-02 pavivol-P04 ENABLED 512000 0

ACTIVE -

Вам также может понравиться