Operating System - HP-UX
1753259 Members
4772 Online
108792 Solutions
New Discussion юеВ

problem trying to lvextend a FS part of a strict VG

 
SOLVED
Go to solution
Prashant Zanwar_4
Respected Contributor
Solution

Re: problem trying to lvextend a FS part of a strict VG

You are having distributed policy. You have to turn off the distributed allocation policy and then extend your LV.
lvchange -D n

Do lvextend and then again turn on distributed policy. It requires PVG strict policy.

Hope above helps
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Sundar_7
Honored Contributor

Re: problem trying to lvextend a FS part of a strict VG

As I noted, allocation policy for the LV is distributed.

I believe these are the following new PVs you have added to the volume group

PV Name /dev/dsk/c57t11d0
PV Name /dev/dsk/c69t11d0 Alternate Link
PV Status available
Total PE 3472
Free PE 3472
Autoswitch On

PV Name /dev/dsk/c69t11d1
PV Name /dev/dsk/c57t11d1 Alternate Link
PV Status available
Total PE 3472
Free PE 3472
Autoswitch On

PV Name /dev/dsk/c63t11d2
PV Name /dev/dsk/c75t11d2 Alternate Link
PV Status available
Total PE 3472
Free PE 3472
Autoswitch On

PV Name /dev/dsk/c75t11d3
PV Name /dev/dsk/c63t11d3 Alternate Link
PV Status available
Total PE 3472
Free PE 3472
Autoswitch On

PV Name /dev/dsk/c57t11d4
PV Name /dev/dsk/c69t11d4 Alternate Link
PV Status available
Total PE 3472
Free PE 3472
Autoswitch On

PV Name /dev/dsk/c69t11d5
PV Name /dev/dsk/c57t11d5 Alternate Link
PV Status available
Total PE 3472
Free PE 3472
Autoswitch On

PV Name /dev/dsk/c63t11d6
PV Name /dev/dsk/c75t11d6 Alternate Link
PV Status available
Total PE 3472
Free PE 3472
Autoswitch On

PV Name /dev/dsk/c75t11d7
PV Name /dev/dsk/c63t11d7 Alternate Link
PV Status available
Total PE 3472
Free PE 3472
Autoswitch On

PV Name /dev/dsk/c57t12d0
PV Name /dev/dsk/c69t12d0 Alternate Link
PV Status available
Total PE 3472
Free PE 3472
Autoswitch On

PV Name /dev/dsk/c69t12d1
PV Name /dev/dsk/c57t12d1 Alternate Link
PV Status available
Total PE 3472
Free PE 3472
Autoswitch On


As could be seen in the lvdisplay, LV is distributed across 4 PVs. Now to be able to increase the LV, you must add 4 PVs to the PVG group PVG1.

# vi /etc/lvmpvg
PVG name pvg1

PV Name /dev/dsk/c57t2d0
PV Name /dev/dsk/c69t2d1
PV Name /dev/dsk/c63t2d2
PV Name /dev/dsk/c75t2d3
PV Name /dev/dsk/c57t11d0
PV Name /dev/dsk/c63t11d6
PV Name /dev/dsk/c75t11d6 PV Name /dev/dsk/c75t11d7
PV Name /dev/dsk/c63t11d7 PV Name /dev/dsk/c57t12d0
PV Name /dev/dsk/c69t12d0 PV Name /dev/dsk/c69t12d1
PV Name /dev/dsk/c57t12d1

Now try lvextend

Also remember, you should not add the primary link to one PVG and the alternate link of the same PV to a different PVG. That is not going to confuse LVM but will defintely confuse you :-)
Learn What to do ,How to do and more importantly When to do ?
Prashant Zanwar_4
Respected Contributor

Re: problem trying to lvextend a FS part of a strict VG

you can also use while changing back to distributed policy lvchange -D f
Thanks
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Mark Harshman_1
Regular Advisor

Re: problem trying to lvextend a FS part of a strict VG

ok...but i dont really want to add 4 more disks to each PVG. I dont want to increase it that much. So.. if i turn off distributed allocation, then extend the LV, then turn distributed allocation back on, can i do that so i only have to add one PV? thanks to all.
Never underestimate the power of stupid people in large groups
Prashant Zanwar_4
Respected Contributor

Re: problem trying to lvextend a FS part of a strict VG

You can do it. Dont allow any writes that time. You may just unmount the file system this time.

Thanks
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Prashant Zanwar_4
Respected Contributor

Re: problem trying to lvextend a FS part of a strict VG

I would further suggest keep backup also.

Thanks
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Prashant Zanwar_4
Respected Contributor

Re: problem trying to lvextend a FS part of a strict VG

Did you do it any further.

And please do not forget to assign points :-)

Take your time...whenever done just remember to post summary..

Thanks
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Mark Harshman_1
Regular Advisor

Re: problem trying to lvextend a FS part of a strict VG

i took the easy way out and just created a new mountpoint and PVG. thanks to all.
Never underestimate the power of stupid people in large groups