When vg insufficient lv:lvol0 will crearte by default
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lvm2 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
It will create a default LV named lvol0,
when executing 'lvcreate -T -L <lv_size> --poolmetadatasize <pool_metadata_size >'
and the sum of lv_size and pool_metadata_size larger than vg_size.
I think it no use to create a LV named lvol0 when insufficient error occurred.
=======
$vgs
VG #PV #LV #SN Attr VSize VFree
test-vg1 1 0 0 wz--n- 5.00g 5.00g
$lvcreate -T -L 4864m --poolmetadatasize 1024 test-vg1/
Volume group "test-vg1" has insufficient free space (1023 extents): 1216 required.
$lvs -a
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
lvol0 test-vg1 -wi------- 1.00g