[linux-lvm] Problem extending a LV

Heinz J. Mauelshagen Mauelshagen at sistina.com
Tue May 29 21:10:02 UTC 2001


Carsten,

sorry, you can't extend a striped LV like this today :-(
Will be enhanced in a later release.


On Tue, May 29, 2001 at 11:33:54AM +0200, Carsten Balzer wrote:
> Hi
> 
> I have a strange problem with kernel 2.2.19 an lvm-tools 0.9.1_beta7.
> 
> I have a existing VG with 2 80GB disks containing one 160GB LV.
> I added a additional 80GB disk and wanted to extend the LV. But that
> didn't
> work.
> 
> seven:/ # pvdisplay /dev/hdf1
> --- Physical volume ---
> PV Name               /dev/hdf1
> VG Name               NVolGroup
> PV Size               76.34 GB / NOT usable 3.22 MB [LVM: 306 KB]
> PV#                   3
> PV Status             available
> Allocatable           yes
> Cur LV                0
> PE Size (KByte)       4096
> Total PE              19541
> Free PE               19541
> Allocated PE          0
> PV UUID               o593Dd-Uo4Z-Hv1Z-yTI0-QtYy-p0Wq-a4XL3q
> 
> seven:/ # vgdisplay
> --- Volume group ---
> VG Name               NVolGroup
> VG Access             read/write
> VG Status             available/resizable
> VG #                  0
> MAX LV                256
> Cur LV                1
> Open LV               1
> MAX LV Size           255.99 GB
> Max PV                256
> Cur PV                3
> Act PV                3
> VG Size               229 GB
> PE Size               4 MB
> Total PE              58623
> Alloc PE / Size       39082 / 152.66 GB
> Free  PE / Size       19541 / 76.33 GB
> VG UUID               lHyDca-e7yA-4Rkt-keGF-uJHY-YCRk-3qqw7N
> 
> seven:/ # lvdisplay /dev/NVolGroup/nVol
> --- Logical volume ---
> LV Name                /dev/NVolGroup/nVol
> VG Name                NVolGroup
> LV Write Access        read/write
> LV Status              available
> LV #                   1
> # open                 1
> LV Size                152.66 GB
> Current LE             39082
> Allocated LE           39082
> Stripes                2
> Stripe size (KByte)    16
> Allocation             next free
> Read ahead sectors     120
> Block device           58:0
> 
> If I try to extend the LV with:
> lvextend -L+78164M /dev/NVolGroup/nVol
> then I get:
> lvextend -- rounding size 240119808 KB to stripe boundary size 240123904
> KB
> lvextend -- only 19541 free physical extents in volume group "NVolGroup"
> 
> Next try with: lvextend -l+19541 /dev/NVolGroup/nVol
> lvextend -- rounding size 240119808 KB to stripe boundary size 240123904
> KB
> lvextend -- only 19541 free physical extents in volume group "NVolGroup"
> 
> Where is the error?
> 
> Gruß
>   Carsten
> 
> --
> "Who the fuck is General Failure and why is he reading my disk?"
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

-- 

Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen at Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



More information about the linux-lvm mailing list