Storage Operations – VxVM vs RHEL LVM2

 

Storage Operation

VXVM

RHEL LVM2

Installation and Configuration

Installed using Veritas installer

Installed as part of standard build via rpm

Scan for new devices

vxdctl enable

vgscan

Print list of volumes

vxprint -v

lvdisplay -C

Print current config (detailed)

vxdg list

vgdisplay

 

list volume group information

display volume group information

 

vxdisk list

pvdisplay

 

list disk information

display physical disk information

 

vxprint -l

lvdisplay

 

display detailed volume information

display logical volume information

Create new volume group

vxdg init GROUP01 DISK01

pvcreate /dev/mapper/mpath0

 

create diskgroup GROUP01 with device DISK01

vgcreate GROUP01 /dev/mapper/mpath0

 

 

first initialise disk for LVM use, then create group GROUP1 on that disk

 

   

Modify a volume group

vxdg -g GROUP01 adddisk DISK=emcpowerxxx

vgextend GROUP01 /dev/mapper/mpath1

 

add the LUN emcpowerxxx to group GROUP01 with name DISK

extend group GROUP01 with disk /dev/mapper/mpath1

Split or Join disk groups

vxdg join GROUP1 GROUP2

vgmerge GROUP1 GROUP2

 

join GROUP2 to GROUP1

join GROUP1 to GROUP1

 

vxdg split GROUP1 GROUP2 VOL01

vgsplit GROUP1 GROUP2 VOL01

 

split object VOL01 from GROUP1 into a new group GROUP2

split object VOL01 from GROUP1 into a new group GROUP2

Create new volume

vxassist -g group make TESTVOL 10g

lvcreate –size 10G –name VOL01 GROUP01

 

creates simple volume on single device

create a 10GB volume VOL01 in volume group GROUP01

 

vxassist -g GROUP01 make VOL01 10g layout=stripe stripeunit=128k ncol=4 DEV01 DEV02 DEV03 DEV04

lvcreate -i 4 -I 32 –size 10G –name VOL01 GROUP01

 

creates striped volume VOL01 on four devices DEV01..4

create a 10GB striped volume VOL01 in volume group GROUP01

Extend a volume

vxresize -g GROUP01 VOL01 40g

lvextend –size 40G /dev/GROUP01/VOL01

 

extend volume VOL01 in volume group GROUP01 to 40gb

extend volume VOL01 in volume group GROUP01 to 40gb

Delete a volume

vxedit -g GROUP01 -rf rm VOL01

lvremove GROUP01/VOL01

 

remove volume VOL01 in group GROUP01

remove volume VOL01 in group GROUP01

Deport a volume group

vxdg -g GROUP01 deport

vgexport GROUP01

 

deports volume group GROUP01

deports volume group GROUP01

Start volumes in a volume group

vxvol -g GROUP01 startall

vgchange -a y GROUP01

 

starts all volumes in group GROUP01

make volumes in group GROUP01 available to the kernel

Stop volumes in a volume group

vxvol -g GROUP01 stopall

vgchange -a n GROUP01

 

stop all volumes in GROUP01

make volumes in group GROUP01 unavailable

Stop volume

vxvol -g GROUP01 stop VOL01

lvchange -an /dev/GROUP01/VOL01

 

stop volume VOL01 in group GROUP01

stop volume VOL01 in group GROUP01

Start volume

vxvol -g GROUP01 start VOL01

lvchange -ay /dev/GROUP01/VOL01

 

start VOL01 in GROUP01

start VOL01 in GROUP01

Device/Volume Statistics

vxstat -g GROUP01 -v VOL01 -i5

iostat-i 5

 

stats for volume VOL01 in disk group GROUP01 at intervals of 5 seconds

use iostat and filter for appropriate device

Ramdev

Ramdev

I have started unixadminschool.com ( aka gurkulindia.com) in 2009 as my own personal reference blog, and later sometime i have realized that my leanings might be helpful for other unixadmins if I manage my knowledge-base in more user friendly format. And the result is today's' unixadminschool.com. You can connect me at - https://www.linkedin.com/in/unixadminschool/

13 Responses

  1. Kiran says:

    It’s a Clinical sheet and good one…

  2. santosh says:

    good one and useful with comparison between solaris & linux.

  3. Yogesh Raheja says:

    Thanks Santosh!.

  4. Marco says:

    Thanks for your high quality IT site

    Cheers
    Marco

  5. Yogesh Raheja says:

    @thanks Marco and Most welcome!..

  6. Thanks for this comparison between linux and solaris. very interesting article!

  7. selvyn says:

    As the article states it”s a comparison between veritas volume manager and linux lvm. Veritas volume manager is not limited to Solaris but is also used on AIX and Linux as well.

  1. September 17, 2015

    […] Read – Comparing the VxVM with RHEL LVM2 […]

  2. July 22, 2016

    […] Read – Comparing the VxVM with RHEL LVM2 […]

  3. July 22, 2016

    […] – EMC VMAX + POWERPATH / MPxIO + VxVM Read – SAN Storage Migration – Solaris with VxVM Read – Storage Operations – VxVM vs RHEL LVM2 Read – Solaris host level SAN migration from […]

What is in your mind, about this post ? Leave a Reply

Close
  Our next learning article is ready, subscribe it in your email

What is your Learning Goal for Next Six Months ? Talk to us