Thursday, September 2, 2010

Veritas DMP & Volume Manager

Veritas DMP & Volume manger are mainly used in Solaris (its does support all flavors of UNIX). DMP supports almost all storage arrays.
Before we actually start using DMP admins 1st need to check to whether the Veritas ASL (Array support Library) for the specific array is installed .

#vxddladm listsupport
The above command will list you all the libraries that are installed and the storage that is being supported. If the specific storage library is not present then get the same from Veritas. Once installed you can check the same with below command

#vxddladm listsupport libname=
It will show you the exact storage model and the controller version that is being supported.

Once the above is done then admin can go ahead with using the disk.

Command to configure the new disk and see the same
#devfsadm
#format

Format the above disk and run
#vxdctl enable
#vxdisk list
Now the new disk is under Veritas and can be used now.

Other primarily use DMP commands
#vxdisk list
#vxdisk path
#vxdmpadm iostat show all


The below commands are used for initializing, creating disk group, volumes and snapshots etc.
#vxdisksetup -i c1t0d0s0
#vxdg init datadg datadg01=c1t0d0s0
#vxdg -g datadg add disk datadg02=c2t0d0s0
#vxassist -g datadg make datavol 10m layout=mirror (can use stripe also)
#mkfs -F vxfs /dev/vx/rdsk/datadg/datavol
#mount -F vxfs /dev/vx/dsk/datadg/datavol /FS

To create a mirror volume
#vxassist -g datadg mirror datavol

To create mirror to a specific disk
#vxassist -g datadg mirror datavol datadg03

To remove a plex that contain subdisk from from disk datadg02
#vxassist -g datadg remove mirror datavol !datadg02

Resizing commands
#vxresize -g datadg datavol 50m
#vxresize -g datadg datavol +50m

Removing a disk
#vxassist -g datadg remove volume datavol
#vxdg -g datadg rmdisk datadg02
#vxdg destroy datadg (for the last disk)

Snapshots
#vxassist -g datadg -b snapstart datavol
#vxassist -g datadg snapshot datavol snapvol

Reassociate
#vxassist -g datadg snapback snapvol

Deassociate
#vxassist -g datadg snapclear snapvol

Destroy
#vxassist -g datadg remove volume snapvol
Checking the size of DG
vxprint -g vg01 -dF "%publen" qwk `BEGIN {s = 0} {s += $1} END {print s/2097152, "GB"}`

No comments: