Veritas
www.cuddletech.com
§veritas objects
•disk
•vm disk(dm)
•sub disk(sd)
•plex(pl)
•volumn(v): is a container; resides in /dev/vx/rdsk/mysol
§Create Veritas objects
•vxmake
•vxassist
§Layouts
§Advanced features
•dynamic multi-pathing(dmp)
•hot spares
•dirty region logging(drl)
•snapshotting
§vxmake
•Initialize disk
/usr/sbin/vxdiskadmin
-list
-1 (initialize)
-2 (encapsulate)
•Print info
/usr/sbin/vxprint
vxprint -hrt
•Make subdisk
vxmake sd disk01-01 disk01,0,17678493
•Make plex
vxmake plex dataplex1
•Add subdisks to plex
vxsd assoc dataplex1 disk01-01 disk02-01 disk03-01 disk04-01
•Make a volumn
vxmake -U fsgen vol datavol plex=dataplex1
•Start a volumn
vxvol start datavol
•Create fs
newfs /dev/vx/dsk/datavol
•Mount fs
mount /dev/vx/dsk/datavol /vxrocks
•Make a stripped volumns
vxmake plex vol01-01 layout=stripe ncolumn=4 stwidth=32k sd=disk01-01,disk02-01,disk03-01,disk04-01
§vxassist
•Add all disks in controler c1 to disk group cuddledg:
#vxdiskadd c1
•Rename disks
#vxedit -g cuddledg rename cuddled01 cuddle-f0
•Mak a simple volume
#vxassist -g cuddledq -U fsgen make simplevol 4g
•Make a fs
#newfs /dev/vx/rdsk/cuddledg/simplevol
#mkdir /simple_vol
#mount -F ufs /dev/vx/dsk/cuddledg/simplevol simple_vol
•Make a striped volume
#vxassist -g cuddledg -U fsgen make stripevol 40g layout=stripe
#vxassist -g cuddledg -U fsgen make stripevol 40g layout=stripe stwidth=128k ncolumn=5 cuddle-f0 cuddle-f1 cuddle-f2 cuddle-f3 cuddle-f4
•RAID1
#vxassist -U fsgen -g cuddledg make mirrorvol3 10g layout=mirror-concact
•or
#vxassist -g cuddledg -U fsgen make stripevol 10g layout=stripe
#vxassist -g cuddledg mirror stripevol
•RAID0+1
#vxassist -g cuddledg -U fsgen make raid01-test 10g layout=mirror-stripe ncolumns=3 stwidth=64k nmirror=2
•RAID5
#vxassist -g cuddledg -U fsgen make raid5vol 4g layout=raid5
#vxassist -g cuddledg -U fsgen make raid5vol 4g layout=raid5 ncolumns=3 cuddle-f0 cuddle-f1 cuddle-f2 cuddle-f3
•Volums resizing
#vxassist -g cuddledg maxgrow raid5vol
#vxassist -g cuddledg maxgrow raid5vol cuddle-f0 cuddle-f1 cuddle-f2
#vxassist -g cuddledg growto raid5vol 35356672
#…qrowby…
#..shrinkto…
#…shrinkby…
#relayout