I'm seeing this error during reinstallation of a host using LVM.
It seems that the LVM output defaults to using 'human-readable' as unit size,
which according to the man page of pvs may use '<' as rounding indicator.
Setting LVM to use a fixed unit for formatting, seems to fix the problem:
Linux::LVM->units('b');
Output of Linux::LVM and the other commands without specifying units.
vg_info:
access = read/write
act_pv = 1
alloc_pe = 70679
alloc_pe_size = <276.09
alloc_pe_size_unit = GiB
cur_lv = 3
cur_pv = 1
free_pe = 713
free_pe_size = <2.79
free_pe_size_unit = GiB
max_lv = 0
max_pv = 0
open_lv = 3
pe_size = 4.00
pe_size_unit = MiB
status = resizable
total_pe = 71392
uuid = GohWCB-pv6z-WpWq-RM7t-00IZ-m1Wl-vEGw4z
vg_size = <278.88
vg_size_unit = GiB
vgname = vg00
root@box:~# pvs
PV VG Fmt Attr PSize PFree
/dev/sda5 vg00 lvm2 a-- <278.88g <2.79g
root@box:~# vgdisplay
--- Volume group ---
VG Name vg00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 15
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 1
Act PV 1
VG Size <278.88 GiB
PE Size 4.00 MiB
Total PE 71392
Alloc PE / Size 70679 / <276.09 GiB
Free PE / Size 713 / <2.79 GiB
VG UUID GohWCB-pv6z-WpWq-RM7t-00IZ-m1Wl-vEGw4z
root@box:~# pvdisplay
--- Physical volume ---
PV Name /dev/sda5
VG Name vg00
PV Size <278.88 GiB / not usable 1.29 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 71392
Free PE 713
Allocated PE 70679
PV UUID GkAOGb-7lAp-W26O-rDlt-6cB4-UhNd-UJHmNE
On Thu, 27 Sep 2018 13:27:06 +0200 Thomas Lange
<la...@informatik.uni-koeln.de> wrote:
> >>>>> On Wed, 26 Sep 2018 12:43:44 +0200, Michael Schaller
<mi...@google.com> said:
>
> > %vg_info = {
> > 'cur_lv' => '2',
> > 'cur_pv' => '1',
> > 'pe_size_unit' => 'MiB',
> > 'vg_size' => '<476.22',
> > 'uuid' => 'ysNZ48-CfAf-AZOr-bU5o-sUIp-IYw5-FtJtcr',
> > 'act_pv' => '1',
> > 'max_pv' => '0',
> > 'status' => 'resizable',
> > 'total_pe' => '121912',
> > 'open_lv' => '2',
> > 'vgname' => 'dhcp-100-105-1-216-vg',
> > 'alloc_pe_size_unit' => 'GiB',
> > 'max_lv' => '0',
> > 'vg_size_unit' => 'GiB',
> > 'access' => 'read/write',
> > 'pe_size' => '4.00',
> > 'alloc_pe_size' => '<476.22',
> > 'alloc_pe' => '121912'
> > };
> I wonder where this '<476.22' comes from?
> What's the output of vgs, vgdisplay, pvdisplay?
> It the output of those commands doe not have the '<' in it, it may be
> a problem in the Linux::LVM Perl library.
>
> --
> regards Thomas
>
>