Bug#761676: lvm2: lvs output format too long wraps on standard sized terminals

Zdenek Kabelac zkabelac at redhat.com
Thu Mar 10 22:59:49 UTC 2016


On Mon, 15 Sep 2014 11:12:17 -0600 Bob Proulx <bob at proulx.com> wrote:
> Package: lvm2
> Version: 2.02.111-1
> Severity: normal
>
> Since the latest update the "lvs" command now emits output lines that
> are so long that they wrap on standard sized terminals.
>
> For example previously:
>
> # lvs
>   LV   VG   Attr     LSize   Pool Origin Data%  Move Log Copy%  Convert
>   audio v1   -wi-ao---- 100.00g
>   bak1  v1   -wi-ao---- 140.00g
>   chrt  v1   -wi-ao----  30.00g
>   home  v1   -wi-ao---- 202.26g
>   lcl   v1   -wi-ao----  93.13g
>   lcl2  v1   -wi-ao---- 123.83g
>   root  v1   -wi-ao----  16.00g
>   srv   v1   -wi-ao----  18.62g
>   swap  v1   -wi-ao----   7.45g
>   test  v1   -wi-a----- 100.00m
>   var   v1   -wi-ao----   5.59g
>
> Now with 2.02.111-1 this output includes trailing whitespace out to
> column 83 causing each line to wrap in an unpleasant way.
>
> # lvs
>   LV    VG   Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
>
>   audio v1   -wi-ao---- 100.00g
>
>   bak1  v1   -wi-ao---- 140.00g
>
>   chrt  v1   -wi-ao----  30.00g
>
>   home  v1   -wi-ao---- 202.26g
>
>   lcl   v1   -wi-ao----  93.13g
>
>   lcl2  v1   -wi-ao---- 123.83g
>
>   root  v1   -wi-ao----  16.00g
>
>   srv   v1   -wi-ao----  18.62g
>
>   swap  v1   -wi-ao----   7.45g
>
>   test  v1   -wi-a----- 100.00m
>
>   var   v1   -wi-ao----   5.59g
>
> This makes the output more difficult to read than before.


see the 'lvm.conf'    report { compact_output = 1 }

I'd consider the problem as solved...
Please close

Regards

Zdenek



More information about the pkg-lvm-maintainers mailing list