Travis' Veritas Examples

These notes were taken during my week long Veritas' foundation class in Aug of 2005.

Remove a Disk Group Volume

vxedit -g dga -rf rm vol01

Destroy a Disk Group

vxdg destroy dga

Create an 8 disk Disk Group

vxdg init dga dga00=c1t2d0
vxdg -g dga adddisk dga01=c1t2d1
vxdg -g dga adddisk dga02=c1t2d2
vxdg -g dga adddisk dga03=c1t2d3
vxdg -g dga adddisk dga04=c1t2d4
vxdg -g dga adddisk dga05=c1t2d5
vxdg -g dga adddisk dga06=c1t2d6
vxdg -g dga adddisk dga07=c1t2d7

Displaying info

vxprint -g dga -htr
vxdisk list 
vxdisk -o alldgs list

Create a new volume

vxassist -g dgA make vol1 20m layout=mirror-stripe ncol=2

# Remove a volume

vxassist -g dgA remove volume vol1

Find new devices

devfsadm  # Solaris
prtvtoc cxtxdx  # Solaris - to ensure we can talk to the disk
blockdev        # Linux - to ensure we can talk to the disk
vxdctl enable
vxdisk list

Multipathing

Show the multiple paths for disk

vxdisk list device-name

Turn on/off multipathing

vxdiskadm

List controllers,enclosure, and dmp info

vxdmpadm listctlr all
vxdmpadm getsubpaths ctlr=c1
vxdmpadm getsubpaths dmpnodename=c1t3d0s2
vxdmpadm listenclosure all

Show DMP I/O stats

vxdmpadm iostat start
vxdmpadm iostat reset
vxdmpadm iostat show all

Use fp to generate some I/O

fp /dev/vx/rdsk/dga/vol-test 2075648 32 99999 rw

Change DMP policy

vxdmpadm getattr enclosure Hitachi iopolicy
vxdmpadm setattr enclosure Hitachi iopolicy=round-robin

Kernel

cat /kernel/drv/vxdmp.conf 

Disk Recoveries

Failed concatination disk

disk powered off and back on

devfsadm			# tell the os to 
vxdctl enable			# tell VM to re-find the disk
vxreattach			# tell VM to re-attach the disk to the DG
vxmend -g dga fix stale test-01	# 
vxmend -g dga fix clean test-01
vxrecover -s

Starting a volume on one plex/mirror when all mirrors are stale

vxmend -g dga off test-02
vxmend -g dga off test-03
vxmend -g dga fix clean test-01
vxmend -g dga start test

Managing VX tasks

vxtask monitor
vxtask set slow=100 task_name  	# slows down task
vxtask abort task_name		# stops a task
vxtask pause task_name
vxtask resume task_name
 
/var/www/sites/dokuwiki/data/pages/notes/unix/veritas/travis.txt · Last modified: 2009/04/11 22:23 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki