UnixPedia : HPUX / LINUX / SOLARIS: VXVM: How to create Striped Volume in veritas Volume manager.

Friday, April 25, 2014

VXVM: How to create Striped Volume in veritas Volume manager.



How to create Striped Volume in veritas Volume manager.
Overview
How to create Striped Volume in veritas Volume manager
Procedures
1> For creating Stripedvolume in Veritas Volume manager we will require minimum Two Disks.
2> First Step is to initialize both Disl into VXVM using below Command.
# cd /etc/vx/bin
#./vxdisksetup –i sde format=sliced
#./vxdisksetup –i sdf format=sliced
3> After initilizing the disk in error status will become online.
4> Now initialize the first to create a Disk Group using below command
# vxdg init newdg newdg01 =sde cds=off
Use below command to see the output
[root@myserver /]vxdisk list
DEVICE TYPE DISK GROUP STATUS
sda auto:none - - online invalid
sdb auto:none - - online invalid
sdc auto:none - - online invalid
sdd auto:none - - online invalid
sde auto:sliced newdg01 newdg online
Now create a volume using vxassist command. We are not creating subdisk and plex manulally
as there may be confussion in naming conventions and also we have to be more precise while
creating the plex and subdisk. Vxassist command will directly create subdisk, plex and volume.
Kinldy see the command below.
# vxassist -g newdg make newvol01 100M layout=striped
5> Below command will display the Details of the created volume
# vxprint –g newdg –htq new newvol01
v newvol01 - ENABLED ACTIVE 4096000 SELECT newvol01-01 fsgen
pl newvol01-01 newvol01 ENABLED ACTIVE 4096000 STRIPE 2/128 RW
sd newdg01-01 newvol01-01 newdg01 0 2048000 0/0 sde ENA
sd newdg02-01 newvol01-01 newdg02 0 2048000 1/0 sdf ENA
6> Make the format the file system using below command
# mkfs –t vxfs /dev/vx/rdsk/newdg/newcol01
7> Make the mount pouint using below command
#mkdir /new2
8> Mount the filesystem using below command
# mount –t vxfs /dev/vx/dsk/newdg/newcol01 /new2
Keywords.
Vxdg,vxprint,vxstat,vxtask,vxassist.

No comments:

Post a Comment