Bug 127858 - lvdisplay shows wrong LV Size when invoked with --colon option.
lvdisplay shows wrong LV Size when invoked with --colon option.
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: lvm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Milan Broz
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2004-07-14 15:37 EDT by James Puellmann
Modified: 2013-02-28 23:04 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-03-24 07:27:43 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description James Puellmann 2004-07-14 15:37:54 EDT
Description of problem:

Using lvm-1.0.3-15.
lvdisplay command shows correct LV size when invoked with no options.
However, it will always report the LV size to be double the *actual*
LV size when invoked with the "-c" or "--colon" option.

Version-Release number of selected component (if applicable):
Using lvm-1.0.3-15.

How reproducible:

Steps to Reproduce:
1. "lvdisplay -c /path/to/logical/volume"
2. Compare with output from "lvdisplay /path/to/logical/volume"
3. Also check against output of "df /path/to/logical/volume"
Actual results:

[root@host root]# lvdisplay --colon  /dev/vg01/g01v1

Expected results:

[root@host root]# lvdisplay --colon  /dev/vg01/g01v1

Additional info:
Comment 1 István Tóth 2005-06-28 14:24:04 EDT
The exact same problem happens on FC4, with the included lvm2 tools.

The man page of lvdisplay even says that the size should be displayed in kilobytes.

Comment 2 Milan Broz 2006-03-24 07:24:18 EST
With --colon option lvdisplay shows size always in sectors (512 bytes units).

For reporting information about logical volumes in LVM2 use lvs.
For example "lvs --units s" shows size in sectors, "lvs --units m" in megabytes.

Note You need to log in before you can comment on or make changes to this bug.