Thursday, October 10, 2013

How to configure Veritas Volume Manager VxVM 6.0.2

The disks should be discovered by OS before it can be added to Veritas Volume Manager.


1. List the disks detected by VxVM.

# vxdisk -o alldgs list


Eg :

[root@rhel61 ~]# vxdisk -o alldgs list
DEVICE       TYPE            DISK         GROUP        STATUS
sda          auto:none       -            -            online invalid
sdb          auto:none       -            -            online invalid
sdc          auto:cdsdisk    mydg01       mydg         online
sdd          auto:cdsdisk    mydg02       mydg         online
[root@rhel61 ~]#

sda and sbd are not configured / initialized for VxVM; where as sdc and sdd are initialized and added to a disk group.


2. Initialize disks.

vxdisksetup -i [attributes]

# vxdisksetup -i sdc
# vxdisksetup -i emc0_dd1

Initializing a disk will create Privae and Public regions in the disks, Meta data is stored in private region and public reagion is available for general purpose data usage. 32 MB is reserved for private region.


3. Initialize a disk group.

Now its time to create a disk group.

# vxdg init   --> (logicalname=physicalname)

#vxdg init mydg mydg01=sdc


4. Add more disks to disk group.
   
vxdg -g adddisk

# vxdg -g mydg adddisk mydg02=sdd


5. Create a VxVM Volume.

vxassist -g make
# vxassist -g mydg make myvol 1g

This will create a volume "myvol" from the disks available in disk group mydg of 1 GB size.

Also till create volumes :
/dev/vx/dsk// --> Block device --> /dev/vx/dsk/mydg/myvol
/dev/vx/rdsk// --> Character/Raw device --> /dev/vx/rdsk/mydg/myvol



6. Create Filesystem.

mkfs -t vxfs

# mkfs -t vxfs /dev/vx/rdsk/appdg/appvo


7. Mount

mount -t vxfs


# mount -t vxfs /dev/vx/dsk/appdg/appvol /mnt/test

-V -> AIX switch for FS type
-F --> HP-UX and Solaris switch


Now a VxVM volume is ready to use.
--
Jk

No comments:

Post a Comment