You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Previously, we have used pvdisplay --reportformat json to gather information about LVMs on a host. After moving to Alma Linux 9 this no longer works, although the lvmreport man page claims that it should.
$ sudo lvdisplay --reportformat json
--- Logical volume ---
LV Path /dev/almalinux/swap
LV Name swap
VG Name almalinux
LV UUID gJbgHN-YWDp-Yl08-czwY-0mDN-ecM1-iPNGDy
LV Write Access read/write
LV Creation host, time OPSLSALMA93001, 2023-12-14 12:43:23 +0000
LV Status available
# open 2
LV Size 5.00 GiB
Current LE 1280
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 4096
Block device 253:1
--- Logical volume ---
LV Path /dev/almalinux/root
LV Name root
VG Name almalinux
LV UUID s5rLbo-jBZe-76Oh-m8nj-3Dvz-1RTE-TCmjuq
LV Write Access read/write
LV Creation host, time OPSLSALMA93001, 2023-12-14 12:43:23 +0000
LV Status available
# open 1
LV Size <44.00 GiB
Current LE 11263
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 4096
Block device 253:0
Workaround
Use the lvs command instead of lvdisplay.
The text was updated successfully, but these errors were encountered:
The pvdisplay does not use reporting infrastructure unlike pvs/vgs/lvs/lvm fullreport. Actually, the --reportformat should not be allowed with *display commands at all. If it worked before, maybe it just switched to pvs automatically. But if you want proper reporting and with JSON format, please use the pvs/vgs/lvs. The *display commands are supposed to have only a single human-readable format.
Version
OS: Alma Linux 9.3
Description
Previously, we have used
pvdisplay --reportformat json
to gather information about LVMs on a host. After moving to Alma Linux 9 this no longer works, although thelvmreport
man page claims that it should.Workaround
Use the
lvs
command instead oflvdisplay
.The text was updated successfully, but these errors were encountered: