lvs --sort=devices does not sort properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lvm2 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Description: Ubuntu 22.04.1 LTS
Release: 22.04
lvm2:
Installed: 2.03.11-2.1ubuntu4
Candidate: 2.03.11-2.1ubuntu4
Version table:
*** 2.03.11-2.1ubuntu4 500
500 http://
100 /var/lib/
expected output:
Path Devices
/dev/
/dev/
/dev/
/dev/
/dev/
/dev/
/dev/
/dev/vg0/lvol0 /dev/md9(0)
/dev/vg0/lvol1 /dev/md11(0)
/dev/vg0/lvol2 /dev/md11(471860)
actual output is incorrect and inconsistent, apparently varying w/list of fields to display:
% sudo lvs -o lv_path,devices --sort=devices
Path Devices
/dev/
/dev/
/dev/vg0/lvol1 /dev/md11(0)
/dev/
/dev/
/dev/
/dev/vg0/lvol2 /dev/md11(471860)
/dev/
/dev/
/dev/vg0/lvol0 /dev/md9(0)
% sudo lvs -o lv_path,
Path LSize Devices
/dev/
/dev/vg0/lvol1 1.80t /dev/md11(0)
/dev/
/dev/
/dev/vg0/lvol0 7.13t /dev/md9(0)
/dev/
/dev/
/dev/
/dev/vg0/lvol2 128.00g /dev/md11(471860)
/dev/
if memory serves, this worked as expected in xenial/16.04.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: lvm2 2.03.11-2.1ubuntu4
ProcVersionSign
Uname: Linux 5.15.0-48-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
CasperMD5CheckR
Date: Fri Feb 3 14:48:50 2023
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/zsh
SourcePackage: lvm2
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
mtime.conffile.