Friday, April 20, 2007

Veritas Volume Manager - Setup

Veritas Volume Manager allows you to add more disk
space to existing servers.

It could be by way of storage device like EMC
or an additional Hardisk.

Assuming that we need to create filesystems intended for
an Application and:


We have 9 disks, c0t0d1 through ....................c0t0d9.

First Check if Veritas Volume Manager has seen the Disks
that you have attached :
#vxdisk -o alldgs list

if not, try the following, and then repeat the previous step:

#devfsadm

#vxdctl initdmp

#vxdctl enable

This should be able to detect disks into VVM.


Steps for setting up storage - Veritas Volume Manager

1) It is important to create a diskgroup, so that VVM can be
moved to a different hosts.

Disk Groups includes filesystems/disks of the applcations.
Commands (vxdiskadd or vxdg).

#vxdg init diskgroup diskname=device

example:
#vxdg init ABCdg ABCdg01=c0t0d1


2) Creating Volumes with vxassist:

# vxassist -g diskgroup make vol_name size

example:

#vxassist -g ABCdg make ABC01 8g

Note: Understanding the contents of the /etc/default/vxassist file is important, especially when striping disks.

3) Creating a VXFS filesystem:

#mkfs -F vxfs -o bsize=8192,largefiles /dev/vx/rdsk/ABCdg/ABC01

4) Mounting the VXFS file system.

Creating and mounting filesystems go hand in hand. You must be certain that any special flags set at creation time are reflected in /etc/vfstab, or on the command line if there is no entry in vfstab for your filesystem.

mount -F vxfs -o largefiles /dev/vx/dsk/ABCdg/ABC01 /u03/oradata/ABC

Please check this link for more reference ...
http://www.blight.com/~rick/veritas/cheat.html

Note : In Case of emergency if you need to move your entire VVM to a
different host then vxdg 'deport' and 'import' commands to
migrate an entire vxvm disk group to another host.


PS : I have VVM pdf , complete summary of commands ,
let me know if interested, I can send it across.




No comments: