Veritas Cookbook

Set up disk for veritas

/usr/lib/vxvm/bin/vxdisksetup -i emc0_01ec

Add disk to existing diskgroup and maintain existing disk names

 vxdg -g QZUCRINSI312_sybdg01 adddisk disk_01ec=emc0_01ec


Check by how much the volume would grow

 
vxassist -g diskGroup  maxgrow vol_sybdg01 alloc="disk_01ec disk_01ed disk_01ee disk_01ef disk_01f0 disk_01fa disk_01fb disk_01fc"

will print something like : 15019741184

Grow the volume

/usr/lib/vxvm/bin/vxresize -g diskGroup  vol_sybdg01 15019741184 disk_01ec disk_01ed disk_01ee disk_01ef disk_01f0 disk_01fa disk_01fb disk_01fc
 
 
 
 

Growing a stiped disc layout

- 64GB stripes , one single LUN of 512GB given to you to use :(


vxprint -g ORAVOL1_dg -hrt
<sniped>
v  oradata02    -            ENABLED  ACTIVE   536876032 SELECT  oradata02-01 fsgen
pl oradata02-01 oradata02    ENABLED  ACTIVE   536876032 STRIPE  4/128    RW
sd disk670-01   oradata02-01 disk670  0        134219008 0/0      c2t50060E800571A447d670 ENA
sd disk671-01   oradata02-01 disk671  0        134219008 1/0      c2t50060E800571A447d671 ENA
sd disk672-01   oradata02-01 disk672  0        134219008 2/0      c2t50060E800571A447d672 ENA
sd disk673-01   oradata02-01 disk673  0        134219008 3/0      c2t50060E800571A447d673 ENA

we see we have a stripe , if you just try to all a block of storage to it veritas will error
vxassist maxsize shows a value , but maxgrow does not :(
the reason is you must maintain the coloum count on the stripe! in this case 4
(the storqe we have is also bigger than the 64GB lun size used before)
the solution is to create many subdisks :
 
vxdg -g ORAVOL1_dg adddisk disk701=c2t50060E801531B302d508s2
vxmake -g ORAVOL1_dg sd disk701-01 disk701 len=134219008 offset=0
vxmake -g ORAVOL1_dg sd disk701-02 disk701 len=134219008 offset=134219008
vxmake -g ORAVOL1_dg sd disk701-03 disk701 len=134219008 offset=268438016
vxmake -g ORAVOL1_dg sd disk701-03 disk701 len=134219008 offset=402657024
... USW

vxsd -g ORAVOL1_dg -l 0 assoc oradata02-01 disk701-01
vxsd -g ORAVOL1_dg -l 1 assoc oradata02-01 disk701-02
vxsd -g ORAVOL1_dg -l 2 assoc oradata02-01 disk701-03
vxsd -g ORAVOL1_dg -l 3 assoc oradata02-01 disk701-04
... USW
use vxassist maxgrow now to workout the value to put in the the resize

/usr/lib/vxvm/bin/vxresize -g ORAVOL1_dg oradata06  1610240000
now we have :
v  oradata02    -            ENABLED  ACTIVE   1610240000 SELECT  oradata02-01 fsgen
pl oradata02-01 oradata02    ENABLED  ACTIVE   1610240000 STRIPE  4/128    RW
sd disk670-01   oradata02-01 disk670  0        134219008 0/0      c2t50060E800571A447d670 ENA
sd disk701-01   oradata02-01 disk701  0        134219008 0/134219008 c2t50060E800571A447d741 ENA
sd disk701-05   oradata02-01 disk701  671095040 134121984 0/268438016 c2t50060E800571A447d741 ENA
sd disk671-01   oradata02-01 disk671  0        134219008 1/0      c2t50060E800571A447d671 ENA
sd disk701-02   oradata02-01 disk701  134219008 134219008 1/134219008 c2t50060E800571A447d741 ENA
sd disk701-06   oradata02-01 disk701  402657024 96256   1/268438016 c2t50060E800571A447d741 ENA
sd disk701-07   oradata02-01 disk701  805217024 134025728 1/268534272 c2t50060E800571A447d741 ENA
sd disk672-01   oradata02-01 disk672  0        134219008 2/0      c2t50060E800571A447d672 ENA
sd disk701-03   oradata02-01 disk701  268438016 134219008 2/134219008 c2t50060E800571A447d741 ENA
sd disk701-08   oradata02-01 disk701  402753280 134121984 2/268438016 c2t50060E800571A447d741 ENA
sd disk673-01   oradata02-01 disk673  0        134219008 3/0      c2t50060E800571A447d673 ENA
sd disk701-04   oradata02-01 disk701  536876032 134219008 3/134219008 c2t50060E800571A447d741 ENA
sd disk701-09   oradata02-01 disk701  939242752 134121984 3/268438016 c2t50060E800571A447d741 ENA
 
 
 

Use Excel for disk planning!

(see attached)
 
 
 
Ĉ
Gavin Reid,
Feb 23, 2014, 11:38 PM
Comments