Skip to contentSkip to conversation

Insufficient suitable allocatable extents for logical volume

linux-lvm Ron Johnson 2 participants 2 messages Apr 24, 2011 – Jul 8, 2011

lore
Share & tools
lore
#0 lore raw

Why does this happen? I think it has something to do with the fact that I set the lv to striped.

TIA,
Ron

# lvm version
  LVM version:     2.02.54(1) (2009-10-26)
  Library version: 1.02.39 (2009-10-26)
  Driver version:  4.17.0

(Yes, I know it's old. Blame Ubuntu)

# vgdisplay data_vg
  --- Volume group ---
  VG Name               data_vg
  System ID
  Format                lvm2
  Metadata Areas        12
  Metadata Sequence No  6
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               0
  Max PV                0
  Cur PV                12
  Act PV                12
  VG Size               5.46 TiB
  PE Size               8.00 MiB
  Total PE              715392
  Alloc PE / Size       476928 / 3.64 TiB
  Free  PE / Size       238464 / 1.82 TiB
  VG UUID               NPgp1H-6kkG-c4wL-KNyT-AVoh-Frlb-4nvfiT
# lvextend -v -l+100%FREE data_vg/data_lv
    Finding volume group data_vg
  Using stripesize of last segment 8.00 MiB
    Archiving volume group "data_vg" metadata (seqno 6).
  Extending logical volume data_lv to 5.46 TiB
  Insufficient suitable allocatable extents for logical volume data_lv: 
238464 more required
# lvextend -v -l+50%FREE data_vg/data_lv
    Finding volume group data_vg
  Using stripesize of last segment 8.00 MiB
    Archiving volume group "data_vg" metadata (seqno 6).
  Extending logical volume data_lv to 4.55 TiB
  Insufficient suitable allocatable extents for logical volume data_lv: 
119232 more required
# lvextend -v -l+10%FREE data_vg/data_lv
    Finding volume group data_vg
  Using stripesize of last segment 8.00 MiB
  Rounding size (500774 extents) down to stripe boundary size for 
segment (500768 extents)
    Archiving volume group "data_vg" metadata (seqno 6).
  Extending logical volume data_lv to 3.82 TiB
  Insufficient suitable allocatable extents for logical volume data_lv: 
23840 more required
Signature · 4 lines
"Neither the wisest constitution nor the wisest laws will secure
the liberty and happiness of a people whose manners are universally
corrupt."
Samuel Adams, essay in The Public Advertiser, 1749
#1 lore raw

2011/4/24 Ron Johnson <[email protected]>:

Quoted 5 lines

Why does this happen?  I think it has something to do with the fact that I set the lv to striped.

TIA,
Ron

From Red Hat's LVM Administrator's Guide:
"Striped logical volumes can be extended by concatenating another set of devices onto the end of
the first set. In order extend a striped logical volume, however, there must be enough free space on
the underlying physical volumes that make up the volume group to support the stripe. For example,
if you have a two-way stripe that uses up an entire volume group, adding a single physical volume
to the volume group will not enable you to extend the stripe. Instead, you must add at least two
physical volumes to the volume group."

So yes, the fact that you set the LV to stripped matters. Read the
manual http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/pdf/Logical_Volume_Manager_Administration/Red_Hat_Enterprise_Linux-6-Logical_Volume_Manager_Administration-en-US.pdf,
it contains a section on extending striped logical volumes.

Regards,
Paweł