Commands such as 'lvextend' fail with 'Insufficient free space' errors, despite the VG containing enough free space for the operation.
Issue
- When creating or extending an LV, the operation fails with
Insufficient free spaceerrors, even though the VG and its PVs report aVFreevalue that should be large enough for the operation:
# pvs
PV VG Fmt Attr PSize PFree
/dev/sdX VG_NAME lvm2 u-- 4.00t 512.00g
# vgs
VG #PV #LV #SN Attr VSize VFree
VG_NAME 1 1 0 wz--n- 4.00t 512.00g
# lvextend -L +500G /dev/VG_NAME/LV_NAME -r
Insufficient free space: 128000 extents needed, but only 0 available
- The error is logged even if the logical volume is a basic linear volume, or when there are enough available PVs in the volume group to properly extend a striped logical volume.
Environment
- Red Hat Enterprise Linux
- LVM2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.