1834197 Members
2622 Online
110065 Solutions
New Discussion

Re: lvm mirror extend

 
Nguyen Anh Tien
Honored Contributor

lvm mirror extend

Hi
I have 02 VA7400 Called P_VA (Primary VA) and B_VA(Backup VA) (P_VA and B_VA located on 2 campus)
On P_VA I created LUN1: size= 1GB.
B_VA also has one LUN named LUN1:size= 1GB
In server LUN1 of P_VA display as c13t0d1 and LUN1 of B_VA c16t0d1.
I create vg01 contains
-----

[trn1:/] vgdisplay -v vg01
PV Name /dev/dsk/c13t0d1
PV Status available
Total PE 255
Free PE 255
Autoswitch On

PV Name /dev/dsk/c16t0d1
PV Status available
Total PE 255
Free PE 255
Autoswitch On
------
Then Create lvora size=800M on vg01and then mirror it on /dev/dsk/c16t0d1

[trn1:/] lvextend –m 1 /dev/vg01/lvora /dev/dsk/c16t0d1
[trn1:/]mount /dev/vg01/lvora /oracle

I install oracle on /oracle so i exceed 90%. And I create 01 LUN (size 10GB. Called c13t0d2) on P_VA and 01LUN (size 10GB cal c16t0d2) on B_VA., then pvcreate, add them to vg01.

NOW I WANT TO ASK THIS QUESTIONG?
When i take “lvextend –L 150M /dev/vg01/lvora vg01” command. How mirror extend to pv now??? I have tested on our system It automaticall extend on both pv like below- It means each lv choose one other lv to extend. But I need document of HP said about this feature to make sure? Any one can give me??
--- Logical volumes ---
LV Name /dev/vg01/lv001
LV Status available/syncd
LV Size (Mbytes) 1200
Current LE 300
Allocated PE 600
Used PV 4


--- Physical volumes ---
PV Name /dev/dsk/c13t0d1
PV Status available
Total PE 255
Free PE 0
Autoswitch On

PV Name /dev/dsk/c16t0d21
PV Status available
Total PE 255
Free PE 0
Autoswitch On

PV Name /dev/dsk/c13t0d2
PV Status available
Total PE 255
Free PE 210
Autoswitch On

PV Name /dev/dsk/c16t0d2
PV Status available
Total PE 255
Free PE 210
Autoswitch On
HP is simple
5 REPLIES 5
steven Burgess_2
Honored Contributor

Re: lvm mirror extend

Hello

Are you saying you want an official document that explains the allocation procedure when you extend your mirrors ?

When you initially created the lvol what options did you supply ?

Can you post an lvdisplay (without -v) output

Regards

Steve
take your time and think things through
Nguyen Anh Tien
Honored Contributor

Re: lvm mirror extend

Right. I need HP offical document.
HP is simple
SureshKumar_2
Valued Contributor

Re: lvm mirror extend

Hi Tian,

When you extend/reduce the size of mirrored volume, it will affect on PVs included in VG (extend), and PVs configured for LV (reduce).

In your scenario, you had the mirror setup in c13/c16-d1.

you have extended you VG to c13/c16-d2.

When you say lvextend, to extend the size of lvora, LVM will automatically allocated the space from the free-pool of VG. since lvora is the Mirrored volume, lvm has allotted from two different PVs.

Please refer the following URLs for more details on LVM & Mirror disk.

http://docs.hp.com/en/B9106-90015/ch04s03.html
http://docs.hp.com/en/6054/Limits_wp.htm

Suresh
Things are very easy, when u know about it...
Nguyen Anh Tien
Honored Contributor

Re: lvm mirror extend

thanks!
HP is simple
Nguyen Anh Tien
Honored Contributor

Re: lvm mirror extend

Thank all.
I have found a solution myself!!
HP is simple