12132017Headline:

Veritas volume Manager Advanced Volume Creation using vxmake

Step 1:
Create Sub Disks on appdisk6

bash-3.2# vxmake -g appdg sd appdisk6-01 appdisk6,0,102400
bash-3.2# vxmake -g appdg sd appdisk6-02 appdisk6,102400,102400
bash-3.2# vxmake -g appdg sd appdisk6-03 appdisk6,204800,102400
bash-3.2# vxmake -g appdg sd appdisk6-04 appdisk6,307200,102400

Step2:
Create Sub Disks on appdisk7

bash-3.2# vxmake -g appdg sd appdisk7-01 appdisk7,0,102400
bash-3.2# vxmake -g appdg sd appdisk7-02 appdisk7,102400,102400
bash-3.2# vxmake -g appdg sd appdisk7-03 appdisk7,204800,102400
bash-3.2# vxmake -g appdg sd appdisk7-04 appdisk7,307200,102400

*We can validate the Offset using the following command

ash-3.2# vxdg free appdg
GROUP DISK DEVICE TAG OFFSET LENGTH FLAGS
bash-3.2# vxdg free
GROUP DISK DEVICE TAG OFFSET LENGTH FLAGS
appdg appdisk4 disk_4 disk_4 1433600 597632 –
appdg appdisk5 disk_5 disk_5 1638400 392832 –
appdg appdisk6 disk_6 disk_6 204800 1826432 –
appdg appdisk7 disk_7 disk_7 0 2031232 –

Step3:
Create Plex using appdisk6 and appdisk 7
bash-3.2# vxmake -g appdg plex vol03-01 sd=appdisk6-01,appdisk6-02,appdisk7-01,appdisk7-02

Step4:
Create Plex using appdisk6 and appdisk 7
bash-3.2# vxmake -g appdg plex vol03-02 sd=appdisk6-03,appdisk6-04,appdisk7-03,appdisk7-0

Step5:
Create Volume
bash-3.2# vxmake -g appdg vol advancedvol1 plex=vol03-01
bash-3.2# vxmake -g appdg vol advancedvol2 plex=vol03-02

Step6: Start the Volumes

bash-3.2# vxvol -g appdg start advancedvol1
bash-3.2# vxvol -g appdg start advancedvol2

bash-3.2# vxprint -hg appdg
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
dg appdg appdg – – – – – –

dm appdisk4 disk_4 – 2031232 – – – –
dm appdisk5 disk_5 – 2031232 – – – –
dm appdisk6 disk_6 – 2031232 – – – –
dm appdisk7 disk_7 – 2031232 – – – –

sd appdisk4-02 – ENABLED 409600 – – – –
sd appdisk4-03 – ENABLED 819200 – – – –
sd appdisk5-02 – ENABLED 204800 – – – –
sd appdisk5-05 – ENABLED 614400 – – – –
sd appdisk5-10 – ENABLED 102400 – – – –

v advancedvol1 gen ENABLED 409600 – ACTIVE – –
pl vol03-01 advancedvol1 ENABLED 409600 – ACTIVE – –
sd appdisk6-01 vol03-01 ENABLED 102400 0 – – –
sd appdisk6-02 vol03-01 ENABLED 102400 102400 – – –
sd appdisk7-01 vol03-01 ENABLED 102400 204800 – – –
sd appdisk7-02 vol03-01 ENABLED 102400 307200 – – –

v advancedvol2 gen ENABLED 409600 – ACTIVE – –
pl vol03-02 advancedvol2 ENABLED 409600 – ACTIVE – –
sd appdisk6-03 vol03-02 ENABLED 102400 0 – – –
sd appdisk6-04 vol03-02 ENABLED 102400 102400 – – –
sd appdisk7-03 vol03-02 ENABLED 102400 204800 – – –
sd appdisk7-04 vol03-02 ENABLED 102400 307200 – – –

Step7:
Create the file Sysetm

ash-3.2# mkfs -F vxfs /dev/vx/rdsk/appdg/advancedvol1
version 9 layout
409600 sectors, 204800 blocks of size 1024, log size 1024 blocks
rcq size 1024 blocks
largefiles supported
bash-3.2# mkfs -F vxfs /dev/vx/rdsk/appdg/advancedvol2
version 9 layout
409600 sectors, 204800 blocks of size 1024, log size 1024 blocks
rcq size 1024 blocks
largefiles supported

Step8:
Create the directory and mount the FS.

bash-3.2# mkdir /opt/advancedvol1
bash-3.2# mkdir /opt/advancedvol2
bash-3.2# mount -F vxfs /dev/vx/dsk/appdg/advancedvol1 /opt/advancedvol1
bash-3.2# mount -F vxfs /dev/vx/dsk/appdg/advancedvol2 /opt/advancedvol2

bash-3.2# df | grep -i advance
/opt/advancedvol1 (/dev/vx/dsk/appdg/advancedvol1): 403174 blocks 50396 files
/opt/advancedvol2 (/dev/vx/dsk/appdg/advancedvol2): 403174 blocks 50396 files

What Next

Recent Articles

Leave a Reply

Submit Comment