How
to create mirrored Volume in veritas Volume manager.
Overview
|
How to create mirrored Volume in
veritas Volume manager
|
Procedures
|
1> For creating mirrored volume
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
5> Now add second disk to diskgroup
newdg using below command.
# vxdg -g newdg adddisk newdg02
=sdf
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
sdf auto:sliced newdg02 newdg online
6> 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 newcol01
100M layout=mirror
7> Below command will display the
Details of the created volume
#vxprint –g newdg –htq new newcol01
8> Command to check if volume is
startable or now use below command
#vxinfo –g newdg (newdg is name of
the diskgroup).
9> Make the format the file
system using below command
# mkfs –t vxfs
/dev/vx/rdsk/newdg/newcol01
10> Make the mount pouint using
below command
#mkdir /new1
11> Mount the filesystem using
below command
# mount –t vxfs
/dev/vx/dsk/newdg/newcol01 /new1
|
Keywords.
|
Vxdg,vxprint,vxstat,vxtask,vxassist.
|
No comments:
Post a Comment