Description of problem: The OS installer needs to know how much space will be freed up in a vg by removing a given lv from it. It is fairly convoluted process determining the total amount of vg space consumed by an lv that uses striping or mirroring or any of the raid segment types. It would be nice to have an option to 'lvs -o ...' that would show the total of vg space used by each lv. The units do not matter much to me. Given a mirrored, striped, or raid lv, the total space consumption would be output instead of having to use 'lvs -a' and scraping mimage, mlog, &c and combining them to calculate the total space usage. The current method requires too much knowledge of lvm implementation details to be appropriate for anaconda/blivet.
Additional info: this is a critical piece for adding support for various lvm segment types to anaconda/blivet.
The total amount of physical space used by an LV is NOT necessarily the same as the amount of space that would be freed if the LV was removed. Some LVs share space with others and in those cases it's not possible to calculate an amount of space that would be released - expect some double-counting. We'll work through each type of LV and see what totals we can usefully provide.