When vg insufficient lv:lvol0 will crearte by default

Bug #1871317 reported by HYSong
6
This bug affects 1 person
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/shy-test-pool1
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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.