Bug#484057: lvm2: df wrong (used+free > total)

Peter Walser peterwalser at yahoo.com
Mon Jun 2 05:58:35 UTC 2008


Package: lvm2
Version: 2.02.35-1
Severity: normal


The total amount displayed by 'df' is bigger than the used+free size:

# df
/dev/mapper/media-media
                      98500188  90164464   3332460  97% /mnt/media

Also gtkdiskfree report the same and tells me that there is plenty of space,
while the disk is full. I beleve that lvm2 reports space wrong, but don't
know where df calculates this.

# lvdisplay
  --- Logical volume ---
  LV Name                /dev/media/media
  VG Name                media
  LV UUID                72wQ7D-Oadm-uAFP-vE0T-o1dc-2zsL-VA3kTt
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                95.43 GB
  Current LE             24430
  Segments               3
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:0

# vgdisplay
  --- Volume group ---
  VG Name               media
  System ID
  Format                lvm2
  Metadata Areas        3
  Metadata Sequence No  6
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               1
  Max PV                0
  Cur PV                3
  Act PV                3
  VG Size               95.43 GB
  PE Size               4.00 MB
  Total PE              24430
  Alloc PE / Size       24430 / 95.43 GB
  Free  PE / Size       0 / 0
  VG UUID               URcQNq-TeZi-1wyY-4Cyn-0a5r-9Oz1-QhHRdc

# pvdisplay
  --- Physical volume ---
  PV Name               /dev/hdd1
  VG Name               media
  PV Size               28.63 GB / not usable 1.73 MB
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              7330
  Free PE               0
  Allocated PE          7330
  PV UUID               3xliVp-VGiW-a85o-geja-HAHk-Z5D7-tygohn

  --- Physical volume ---
  PV Name               /dev/hdc1
  VG Name               media
  PV Size               28.63 GB / not usable 1.73 MB
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              7330
  Free PE               0
  Allocated PE          7330
  PV UUID               iNnlyS-UNxR-vRav-wcby-y0Sq-xLcH-xG4cTl

  --- Physical volume ---
  PV Name               /dev/hdb1
  VG Name               media
  PV Size               38.17 GB / not usable 3.62 MB
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              9770
  Free PE               0
  Allocated PE          9770
  PV UUID               2PI98t-5d5O-truQ-zg6x-diDY-c5oH-nvdRqh


# fdisk -l
Disk /dev/hda: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0e056fea

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1        9667    77650146   83  Linux
/dev/hda2            9668        9733      530145    5  Extended
/dev/hda5            9668        9733      530113+  83  Linux

Disk /dev/hdb: 40.9 GB, 40982151168 bytes
1 heads, 2 sectors/track, 40021632 cylinders
Units = cylinders of 2 * 512 = 1024 bytes
Disk identifier: 0x0001cf88

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               2    40021632    40021631   8e  Linux LVM

Disk /dev/hdc: 30.7 GB, 30750031872 bytes
255 heads, 63 sectors/track, 3738 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00099819

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1               1        3738    30025453+  8e  Linux LVM

Disk /dev/hdd: 30.7 GB, 30750031872 bytes
255 heads, 63 sectors/track, 3738 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0008825e

   Device Boot      Start         End      Blocks   Id  System
/dev/hdd1               1        3738    30025453+  8e  Linux LVM

Disk /dev/dm-0: 102.4 GB, 102466846720 bytes
255 heads, 63 sectors/track, 12457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table




-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages lvm2 depends on:
ii  libc6                        2.7-10      GNU C Library: Shared libraries
ii  libdevmapper1.02.1           2:1.02.24-4 The Linux Kernel Device Mapper use
ii  libreadline5                 5.2-3       GNU readline and history libraries

lvm2 recommends no packages.

-- debconf-show failed





More information about the pkg-lvm-maintainers mailing list