Search This Blog

Sunday, April 6, 2014

Create a volume with a striped layout

To create a striped Volume:
Syntax: # vxassit –g <dg_name> make <vol_name> <size> layout=stripe ncols=<num_columns> stripeunit=<size> <disk_media_name>

Few other examples:
# vxassist –g acctdg make payvol 2g layout=stripe ncol=3 !acctdg04
# vxassist –g acctdg make expvol 2g layout=stripe ncol=3 stripeunit=64k acctdg01 acctdg02 acctdg03

id17ux5dev# vxassist -g testdg make testvol 10g layout=stripe ncols=2 alloc=disk01 disk02

id17ux5dev# vxprint testvol
Disk group: testdg

TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
v  testvol      fsgen        ENABLED  20971520 -        ACTIVE   -       -
pl testvol-01   testvol      ENABLED  20971520 -        ACTIVE   -       -
sd disk01-01    testvol-01   ENABLED  10485760 0        -        -       -
sd disk02-01    testvol-01   ENABLED  10485760 0        -        -       -

Here i have given a command to create a volume of 10 GB ncols=2 which creates a two subdisk of 5 GB.
Here each subdisk is created of 5g which is describes that it is striped layout.

id17ux5dev# vxassist -g testdg make testvol 500m layout=stripe ncols=2 stripeunit=64b alloc=disk01 disk02
id17ux5dev# vxprint testvol
Disk group: testdg

TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
v  testvol      fsgen        ENABLED  1024000  -        ACTIVE   -       -
pl testvol-01   testvol      ENABLED  1024000  -        ACTIVE   -       -
sd disk01-01    testvol-01   ENABLED  512000   0        -        -       -
sd disk02-01    testvol-01   ENABLED  512000   0        -        -       -

or

rd17ux4dev# vxassist -g testdg make stripe_mirror 500M layout=stripe disk01 disk02
rd17ux4dev# vxprint -th stripe_mirror
Disk group: testdg

V  NAME         RVG/VSET/CO  KSTATE   STATE    LENGTH   READPOL   PREFPLEX UTYPE
PL NAME         VOLUME       KSTATE   STATE    LENGTH   LAYOUT    NCOL/WID MODE
SD NAME         PLEX         DISK     DISKOFFS LENGTH   [COL/]OFF DEVICE   MODE
SV NAME         PLEX         VOLNAME  NVOLLAYR LENGTH   [COL/]OFF AM/NM    MODE
SC NAME         PLEX         CACHE    DISKOFFS LENGTH   [COL/]OFF DEVICE   MODE
DC NAME         PARENTVOL    LOGVOL
SP NAME         SNAPVOL      DCO
EX NAME         ASSOC        VC                       PERMS    MODE     STATE
SR NAME         KSTATE

v  stripe_mirror -           ENABLED  ACTIVE   1024000  SELECT    stripe_mirror-01 fsgen
pl stripe_mirror-01 stripe_mirror ENABLED ACTIVE 1024000 STRIPE   2/128    RW
sd disk01-01    stripe_mirror-01 disk01 0      512000   0/0       TagmaStore-USP0_1 ENA
sd disk02-01    stripe_mirror-01 disk02 0      512000   1/0       TagmaStore-USP1_0 ENA

rd17ux4dev# mkfs -V vxfs /dev/vx/rdsk/testdg/stripe_mirror
    version 7 layout
    1024000 sectors, 512000 blocks of size 1024, log size 1024 blocks
    largefiles supported


rd17ux4dev# mount -V vxfs /dev/vx/dsk/testdg/stripe_mirror /test

No comments:

Post a Comment