UnixPedia : HPUX / LINUX / SOLARIS: VXVM
Showing posts with label VXVM. Show all posts
Showing posts with label VXVM. Show all posts

Friday, April 25, 2014

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



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.

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.

Thursday, March 27, 2014

VXVM :Create a volume group and a File system under Vxvm

Create a volume group and a File system under Vxvm
Overview
Create a volume group and a File system under Vxvm
Procedures
1.    Initialize disks to be used with VxVM by running the vxdisksetup command only on the
primary system.
# /etc/vx/bin/vxdisksetup -i c5t0d0
2.    Create the disk group to be used with the vxdg command only on the primary system.
# vxdg init logdata c5t0d0
3.    Verify the configuration.
# vxdg list
4.    Use the vxassist command to create the logical volume.
a.       # vxassist -g logdata make logfile 2048m
5.    Verify the configuration.
             # vxprint -g logdata
6.     Make the filesystem.
             # newfs -F vxfs /dev/vx/rdsk/logdata/logfile
7.     Create a directory to mount the volume group.
             # mkdir /logs
8.     Mount the volume group.
# mount /dev/vx/dsk/logdata/logfile /logs
9.     Check if file system exits, then unmount the file system.
# umount /logs
Keywords
Vxdg,vxvm,vxassit