Hi, Already solved this issue. I have to change allocation of PE from cont. to next free. After that no problems extending logical volume. Thanks.
On Tue, Jun 15, 2004 at 11:13:33AM +0300, Alexei Chetroi wrote: > Date: Tue, 15 Jun 2004 11:13:33 +0300 > From: Alexei Chetroi <[EMAIL PROTECTED]> > User-Agent: Mutt/1.5.5.1+cvs20040105i > To: Debian Users List <[EMAIL PROTECTED]> > Subject: extending logical volume > > > Hi, > > I was using LVM for a while, and now trying to extend some volume > without any success. Don't understand why? > Here is logical volume: > > lexa:/home/lex# vgdisplay > --- Volume group --- > VG Name system > VG Access read/write > VG Status available/resizable > VG # 0 > MAX LV 256 > Cur LV 3 > Open LV 3 > MAX LV Size 255.99 GB > Max PV 256 > Cur PV 1 > Act PV 1 > VG Size 14.99 GB > PE Size 4 MB > Total PE 3838 > Alloc PE / Size 3812 / 14.89 GB > Free PE / Size 26 / 104 MB > VG UUID H3i4aT-d7cL-iAub-gaWY-7Qbe-N3rF-5QO714 > > and phisical group > lexa:/home/lex# pvdisplay /dev/ide/host0/bus0/target0/lun0/part5 > --- Physical volume --- > PV Name /dev/ide/host0/bus0/target0/lun0/part5 > VG Name system > PV Size 15 GB [31455207 secs] / NOT usable 4.19 MB [LVM: > 142 KB] > PV# 1 > PV Status available > Allocatable yes > Cur LV 3 > PE Size (KByte) 4096 > Total PE 3838 > Free PE 26 > Allocated PE 3812 > PV UUID xiI1Yj-tc1Y-HPkP-XMvA-izNT-ecOH-8HJ5Lz > > Both have 26 free extents, but when trying to extend /dev/system/usr > it complains that not enough free extents are found: > lexa:/home/lex# lvextend -l +1 -v /dev/system/usr > /dev/ide/host0/bus0/target0/lun0/part5 > lvextend -- checking for physical volume paths on command line > lvextend -- checking for valid logical volume path > lvextend -- locking logical volume manager > lvextend -- checking existence of logical volume "/dev/system/usr" > lvextend -- checking for active logical volume "/dev/system/usr" > lvextend -- reading volume group data of volume group "system" from > disk(s) > lvextend -- checking physical volume > "/dev/ide/host0/bus0/target0/lun0/part5" against volume group > lvextend -- getting index of logical volume "/dev/system/usr" in volume > group "system" > lvextend -- getting status of "/dev/system/usr" from VGDA in kernel > lvextend -- extending logical volume "/dev/system/usr" to 1.50 GB > lvextend -- setting up logical volume "/dev/system/usr" for extend > lvextend -- not enough free/allocatable physical extents to extend > logical volume "/dev/system/usr" > > Where am I wrong? Could this operation be performed on an active > logical volume? > > > Thanks in advance! > > -- > Alexei Chetroi > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]