1833832 Members
2107 Online
110063 Solutions
New Discussion

Re: lvextend problem

 
Darren Poh_1
Frequent Advisor

lvextend problem

I run into the this error when i tried to lvextend -m 1 /dev/vgglb /dev/dsk/cztydx

lvextend: Not enough free physical extents available.

this vg is use to have a mirror but this mirror is broken when we vgreduce the disk.

now we trying to mirror it again but runs into the error shown above.
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: lvextend problem

lvdisplay -v

You will probably see the logical volume is set to contiguous and you don't have enough contiguous space on the disk to accomodate it.

Or your split of the original mirror is sittin g on the target disk taking up space.

If its a contiguity issue

lvchange -C n

If the old mirror copy is in the way.

lvremove -f

A backup is prudent prior to taking any action.

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
Rick Garland
Honored Contributor

Re: lvextend problem

Can you do the lvextend without the mirror?

Is it possible that the mirror disk you are using is smaller than the original disk?

If true, you would not have enough PEs available.
Darren Poh_1
Frequent Advisor

Re: lvextend problem

how do i go back to doing lvremove? and how can i get back the old lvol?
Geoff Wild
Honored Contributor

Re: lvextend problem

Do a vgdisplay -v /dev/vgglb

You need to specify the lvol - not the vg when doing a lvextend...


The vgdisplay will show you your lvols and how much space is available on the disks in the vg...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Rick Garland
Honored Contributor

Re: lvextend problem

If you have already done the lvremove, that LV is gone. To get the LV back you would need to recreate it.

lvcreate and lvextend