Bug 1335057 - Less confusing tool output when PV is not allocatable
Summary: Less confusing tool output when PV is not allocatable
Keywords:
Status: NEW
Alias: None
Product: LVM and device-mapper
Classification: Community
Component: lvm2
Version: 2.02.152
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: LVM Team
QA Contact: cluster-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-11 09:01 UTC by Zdenek Kabelac
Modified: 2023-08-10 15:41 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:
rule-engine: lvm-technical-solution?
rule-engine: lvm-test-coverage?


Attachments (Terms of Use)

Description Zdenek Kabelac 2016-05-11 09:01:05 UTC
Description of problem:

Users are getting confused, when using VGs with not allocatable PVs. 

They try to create a new LV and they get an error about:
"Insufficient free space: XXX extents needed, but only 0 available."
(https://bbs.archlinux.org/viewtopic.php?id=212300)

Also tools like vgs/vgdisplay seems to indicate there could be a lot
of 'FREE' space in a VG - but this space cannot be used for allocation as the PV is already marked as '(u)sed'  (which is relatively recent improvement).

We should consider how to provide better guidance when user hits this case (already seen few cases where users where unaware of using pvchange -xn,
so it's unexpected trouble with not straightforward diagnostic)

vgs/vgdisplay  may possibly provide another 'field'  showing "Allocatable" space (possibly shown only in the case it differs from "Free") 
Maybe error message could show there are 'Free but not Allocatable extents' 
Also consider if the '(U)sed' space is 'Free' - maybe we could shown this space as and 'hidden' LV type ?


Version-Release number of selected component (if applicable):
2.02.152

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:
User should easily deduce the reason for missing space.

Additional info:


Note You need to log in before you can comment on or make changes to this bug.