1831503 Members
3291 Online
110025 Solutions
New Discussion

lvextend on wrong disk

 
SOLVED
Go to solution
Fernando Boza
Regular Advisor

lvextend on wrong disk

Hi
I have a VG with 4 LUNs.... 2 from storage1 and 2 from storage 2

I have 2 PVG on that VG: PVG0 and PVG1
PVG0 with 2 LUNs from storage1
PVG1 with 2 LUNs from storage2

The LVs are mirrored with PVG0 and PVG1
But, when I run lvextend for any LV... that extend mirror the LV on the same PVG

Any idea?
5 REPLIES 5
Sunny123_1
Esteemed Contributor

Re: lvextend on wrong disk

Hi

Post your lvextend syntax for more details.


Regards
Sunny
Steven E. Protter
Exalted Contributor

Re: lvextend on wrong disk

Shalom,

Because you are not specifying the PVG

lvextend -m 1 < logical volume name >

Prevents this:

lvextend -m 1 /dev/vg01/lvol7 /dev/dsk/c1t1d0

Don't let the command pick the disk you pick it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Torsten.
Acclaimed Contributor

Re: lvextend on wrong disk

Please give us more details:

- the contents of the lvmpvg file
- your complete command line
- a "vgdisplay -v" and "lvdisplay -v" for the items in question

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Fernando Boza
Regular Advisor

Re: lvextend on wrong disk

The LV is already mirrored... I want to extend the size.

lvextend â L 10000 /dev/vgname/lvolname
Patrick Wallek
Honored Contributor
Solution

Re: lvextend on wrong disk

Your allocation policy for this LV should be set to PVG-strict.

If you do an 'lvdisplay /dev/vg?/lv?' (specifying the real LV name) and look at the "Allocation" line, you should see "PVG-strict/distributed". If you don't, you should change it.

# lvchange -s g /dev/vg?/lv?

This option disallows mirrors of the LV to share the same PVG, which is what you want. Have a look at the lvcreate or lvchange man page for information on teh PVG-strict policy.

Now when you do an lvextend, the mirror should be correctly allocated.