[linux-lvm] lvextend Insufficient free space

Bernhard Hoelcker hoelcker at t-online.de
Thu Jan 25 09:03:48 UTC 2007


On 1/11/07, David Tran <davidtt3@???> wrote:
> Thank for your help.
> My pvs:
> linux-server:/ # pvscan
> PV /dev/hdb1 VG gdata lvm2 [111.79 GB / 0 free]
> PV /dev/hde1 VG gdata lvm2 [279.46 GB / 40.00 MB free]
> PV /dev/hdf1 VG gdata lvm2 [153.38 GB / 153.38 GB free] (this is the
> new hd)
> Total: 3 [544.62 GB] / in use: 3 [544.62 GB] / in no VG: 0 [0 ]
> I think that it is enogh free space, because I add one more HD already.
> More over, vgdisplay show it has: Free PE / Size 39276 / 153.42 GB

It looks like i have the same problem:

uname -a
Linux xen0 2.6.18.2-34-xen #1 SMP Mon Nov 27 11:46:27 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux
lvm version
  LVM version:     2.02.13 (2006-10-27)
  Library version: 1.02.12 (2006-10-13)
  Driver version:  4.7.0
  --- Physical volume ---
  PV Name               /dev/md1
  VG Name               mirror
--- Volume group ---
  VG Name               mirror
  Free  PE / Size       2560 / 40,00 GB
--- Logical volume ---
  LV Name                /dev/mirror/data1
  VG Name                mirror
  LV Size                78,02 GB
  Segments               1

lvresize -t -l +100%FREE  /dev/mirror/data1
  Test mode: Metadata will NOT be updated.
  Extending logical volume data1 to 118,02 GB
  Insufficient free space: 7553 extents needed, but only 2560 available

I am using no striped lv. Thank you for any help,

Bernhard

============================================
Here some details:

uname -a
Linux xen0 2.6.18.2-34-xen #1 SMP Mon Nov 27 11:46:27 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux
lvm version
  LVM version:     2.02.13 (2006-10-27)
  Library version: 1.02.12 (2006-10-13)
  Driver version:  4.7.0
lvdisplay --maps
  --- Logical volume ---
  LV Name                /dev/nomirror/xen-dom0
  VG Name                nomirror
  LV UUID                NvpDf7-yOZM-VhKM-AiY5-PR1i-CLEm-5dQELt
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                1,00 GB
  Current LE             64
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:8
   
  --- Segments ---
  Logical extent 0 to 63:
    Type		linear
    Physical volume	/dev/hdc6
    Physical extents	0 to 63
   
   
  --- Logical volume ---
  LV Name                /dev/nomirror/xen-dom1
  VG Name                nomirror
  LV UUID                mps0tV-WabP-NUa9-5NXx-maSy-y6Gl-9zF46o
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                2,00 GB
  Current LE             128
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:9
   
  --- Segments ---
  Logical extent 0 to 127:
    Type		linear
    Physical volume	/dev/hdc6
    Physical extents	64 to 191
   
   
  --- Logical volume ---
  LV Name                /dev/nomirror/xen-dom2
  VG Name                nomirror
  LV UUID                ZLSE2F-uDUg-aha7-dQGa-56Uh-eSBZ-DuVJud
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                2,00 GB
  Current LE             128
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:10
   
  --- Segments ---
  Logical extent 0 to 127:
    Type		linear
    Physical volume	/dev/hdc6
    Physical extents	192 to 319
   
   
  --- Logical volume ---
  LV Name                /dev/xen/dom0
  VG Name                xen
  LV UUID                PKuPka-ZYLk-A05p-HRpN-0kCt-NaKT-f8uCSi
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5,00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:3
   
  --- Segments ---
  Logical extent 0 to 1279:
    Type		linear
    Physical volume	/dev/dm-2
    Physical extents	0 to 1279
   
   
  --- Logical volume ---
  LV Name                /dev/xen/swap0
  VG Name                xen
  LV UUID                SmSAeK-5acl-34y1-xsqg-ct39-uViK-wBhu6f
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4,50 GB
  Current LE             1152
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:4
   
  --- Segments ---
  Logical extent 0 to 1151:
    Type		linear
    Physical volume	/dev/dm-2
    Physical extents	1280 to 2431
   
   
  --- Logical volume ---
  LV Name                /dev/xen/dom1_xenadmin
  VG Name                xen
  LV UUID                haSdts-9rK4-tTFr-liMc-UdnF-dshy-VF2E3c
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                10,00 GB
  Current LE             2560
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:5
   
  --- Segments ---
  Logical extent 0 to 2559:
    Type		linear
    Physical volume	/dev/dm-2
    Physical extents	2432 to 4991
   
   
  --- Logical volume ---
  LV Name                /dev/xen/backup
  VG Name                xen
  LV UUID                aWiNtP-exZ3-W7ek-y39S-ZIfr-VLuU-Htl659
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                20,00 GB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:6
   
  --- Segments ---
  Logical extent 0 to 5119:
    Type		linear
    Physical volume	/dev/dm-2
    Physical extents	4992 to 10111
   
   
  --- Logical volume ---
  LV Name                /dev/xen/data
  VG Name                xen
  LV UUID                485oi3-VNrW-pdZm-nBUQ-wQer-iIlz-OqAbYH
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                30,00 GB
  Current LE             7680
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:7
   
  --- Segments ---
  Logical extent 0 to 7679:
    Type		linear
    Physical volume	/dev/dm-2
    Physical extents	10112 to 17791
   
   
  --- Logical volume ---
  LV Name                /dev/mirror/root
  VG Name                mirror
  LV UUID                k3AhUV-knRG-Jm9h-qgyd-O81p-p5w0-Hd8Ij2
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                10,00 GB
  Current LE             640
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:11
   
  --- Segments ---
  Logical extent 0 to 639:
    Type		linear
    Physical volume	/dev/md1
    Physical extents	0 to 639
   
   
  --- Logical volume ---
  LV Name                /dev/mirror/var
  VG Name                mirror
  LV UUID                45I0C7-NKPg-IaSz-4rcm-Q2Eu-X06j-7BgL5U
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                5,00 GB
  Current LE             320
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:12
   
  --- Segments ---
  Logical extent 0 to 319:
    Type		linear
    Physical volume	/dev/md1
    Physical extents	640 to 959
   
   
  --- Logical volume ---
  LV Name                /dev/mirror/usr_local
  VG Name                mirror
  LV UUID                uCC90y-R80M-OcvK-GqsK-UkMj-DBN6-RJrUUz
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                5,00 GB
  Current LE             320
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:13
   
  --- Segments ---
  Logical extent 0 to 319:
    Type		linear
    Physical volume	/dev/md1
    Physical extents	960 to 1279
   
   
  --- Logical volume ---
  LV Name                /dev/mirror/tmp
  VG Name                mirror
  LV UUID                hq1Qxo-ISyb-deNQ-53XY-Sj2Y-DHas-tdvdDD
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                3,00 GB
  Current LE             192
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:14
   
  --- Segments ---
  Logical extent 0 to 191:
    Type		linear
    Physical volume	/dev/md1
    Physical extents	1280 to 1471
   
   
  --- Logical volume ---
  LV Name                /dev/mirror/home
  VG Name                mirror
  LV UUID                OHheEX-yag2-eFwJ-uN7S-3gpo-52Uz-yh0ISE
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                5,00 GB
  Current LE             320
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:15
   
  --- Segments ---
  Logical extent 0 to 319:
    Type		linear
    Physical volume	/dev/md1
    Physical extents	1472 to 1791
   
   
  --- Logical volume ---
  LV Name                /dev/mirror/data1
  VG Name                mirror
  LV UUID                3AUXNd-w7ws-X0hb-nhWB-KNd2-XFF8-Nuiqig
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                78,02 GB
  Current LE             4993
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:16
   
  --- Segments ---
  Logical extent 0 to 4992:
    Type		linear
    Physical volume	/dev/md1
    Physical extents	1792 to 6784
   
   
pvdisplay
  --- Physical volume ---
  PV Name               /dev/hdc6
  VG Name               nomirror
  PV Size               37,28 GB / not usable 10,03 MB
  Allocatable           yes 
  PE Size (KByte)       16384
  Total PE              2385
  Free PE               2065
  Allocated PE          320
  PV UUID               zw68YW-MKEf-gTH6-jc5g-EO2U-OhlB-oVSxq3
   
  --- Physical volume ---
  PV Name               /dev/hdd6
  VG Name               nomirror
  PV Size               37,28 GB / not usable 10,03 MB
  Allocatable           yes 
  PE Size (KByte)       16384
  Total PE              2385
  Free PE               2385
  Allocated PE          0
  PV UUID               xOR6E7-4g7y-38EK-IPST-kEpd-VkKT-l9AlIg
   
  --- Physical volume ---
  PV Name               /dev/dm-2
  VG Name               xen
  PV Size               230,88 GB / not usable 1,50 MB
  Allocatable           yes 
  PE Size (KByte)       4096
  Total PE              59104
  Free PE               41312
  Allocated PE          17792
  PV UUID               Q1zRYC-b2Ks-3ztt-mOLn-um8r-jYSz-zACCOk
   
  --- Physical volume ---
  PV Name               /dev/md1
  VG Name               mirror
  PV Size               146,03 GB / not usable 14,56 MB
  Allocatable           yes 
  PE Size (KByte)       16384
  Total PE              9345
  Free PE               2560
  Allocated PE          6785
  PV UUID               rZEwPw-SpLS-bkAb-frgA-hmQa-dCfy-qsUZYc
   
vgdisplay
  --- Volume group ---
  VG Name               nomirror
  System ID             
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  14
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               0
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               74,53 GB
  PE Size               16,00 MB
  Total PE              4770
  Alloc PE / Size       320 / 5,00 GB
  Free  PE / Size       4450 / 69,53 GB
  VG UUID               RlRH66-9BdX-oI0I-X30z-V3fA-M09j-o2jXdf
   
  --- Volume group ---
  VG Name               xen
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  7
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                5
  Open LV               3
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               230,88 GB
  PE Size               4,00 MB
  Total PE              59104
  Alloc PE / Size       17792 / 69,50 GB
  Free  PE / Size       41312 / 161,38 GB
  VG UUID               m6DWFg-NNBX-5fbZ-b8XY-0ud5-fKLE-Rtt4bi
   
  --- Volume group ---
  VG Name               mirror
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  12
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                6
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               146,02 GB
  PE Size               16,00 MB
  Total PE              9345
  Alloc PE / Size       6785 / 106,02 GB
  Free  PE / Size       2560 / 40,00 GB
  VG UUID               IEu2nW-7tg5-iSyq-mU8Y-89Sr-yEsI-vpZu7f
   
lvdisplay
  --- Logical volume ---
  LV Name                /dev/nomirror/xen-dom0
  VG Name                nomirror
  LV UUID                NvpDf7-yOZM-VhKM-AiY5-PR1i-CLEm-5dQELt
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                1,00 GB
  Current LE             64
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:8
   
  --- Logical volume ---
  LV Name                /dev/nomirror/xen-dom1
  VG Name                nomirror
  LV UUID                mps0tV-WabP-NUa9-5NXx-maSy-y6Gl-9zF46o
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                2,00 GB
  Current LE             128
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:9
   
  --- Logical volume ---
  LV Name                /dev/nomirror/xen-dom2
  VG Name                nomirror
  LV UUID                ZLSE2F-uDUg-aha7-dQGa-56Uh-eSBZ-DuVJud
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                2,00 GB
  Current LE             128
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:10
   
  --- Logical volume ---
  LV Name                /dev/xen/dom0
  VG Name                xen
  LV UUID                PKuPka-ZYLk-A05p-HRpN-0kCt-NaKT-f8uCSi
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5,00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:3
   
  --- Logical volume ---
  LV Name                /dev/xen/swap0
  VG Name                xen
  LV UUID                SmSAeK-5acl-34y1-xsqg-ct39-uViK-wBhu6f
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4,50 GB
  Current LE             1152
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:4
   
  --- Logical volume ---
  LV Name                /dev/xen/dom1_xenadmin
  VG Name                xen
  LV UUID                haSdts-9rK4-tTFr-liMc-UdnF-dshy-VF2E3c
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                10,00 GB
  Current LE             2560
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:5
   
  --- Logical volume ---
  LV Name                /dev/xen/backup
  VG Name                xen
  LV UUID                aWiNtP-exZ3-W7ek-y39S-ZIfr-VLuU-Htl659
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                20,00 GB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:6
   
  --- Logical volume ---
  LV Name                /dev/xen/data
  VG Name                xen
  LV UUID                485oi3-VNrW-pdZm-nBUQ-wQer-iIlz-OqAbYH
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                30,00 GB
  Current LE             7680
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:7
   
  --- Logical volume ---
  LV Name                /dev/mirror/root
  VG Name                mirror
  LV UUID                k3AhUV-knRG-Jm9h-qgyd-O81p-p5w0-Hd8Ij2
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                10,00 GB
  Current LE             640
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:11
   
  --- Logical volume ---
  LV Name                /dev/mirror/var
  VG Name                mirror
  LV UUID                45I0C7-NKPg-IaSz-4rcm-Q2Eu-X06j-7BgL5U
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                5,00 GB
  Current LE             320
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:12
   
  --- Logical volume ---
  LV Name                /dev/mirror/usr_local
  VG Name                mirror
  LV UUID                uCC90y-R80M-OcvK-GqsK-UkMj-DBN6-RJrUUz
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                5,00 GB
  Current LE             320
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:13
   
  --- Logical volume ---
  LV Name                /dev/mirror/tmp
  VG Name                mirror
  LV UUID                hq1Qxo-ISyb-deNQ-53XY-Sj2Y-DHas-tdvdDD
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                3,00 GB
  Current LE             192
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:14
   
  --- Logical volume ---
  LV Name                /dev/mirror/home
  VG Name                mirror
  LV UUID                OHheEX-yag2-eFwJ-uN7S-3gpo-52Uz-yh0ISE
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                5,00 GB
  Current LE             320
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:15
   
  --- Logical volume ---
  LV Name                /dev/mirror/data1
  VG Name                mirror
  LV UUID                3AUXNd-w7ws-X0hb-nhWB-KNd2-XFF8-Nuiqig
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                78,02 GB
  Current LE             4993
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:16
   
lvresize -t -l +100%FREE  /dev/mirror/data1
  Test mode: Metadata will NOT be updated.
  Extending logical volume data1 to 118,02 GB
  Insufficient free space: 7553 extents needed, but only 2560 available


-- 

Bernhard Hölcker

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20070125/ff71c4f8/attachment.sig>


More information about the linux-lvm mailing list