Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-18-2006, 09:55 AM   #1
LQ Newbie
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
Disk space reporting inconsistencies, lvm/df


I added a new 40GB PV to my VG and thought I'd done it all right but to me there seems to be an inconsistency between what lvm says is the disk space and what df says.

PV /dev/sda2   VG VolGroup00   lvm2 [68.38 GB / 0    free]
PV /dev/sdb    VG VolGroup00   lvm2 [68.50 GB / 0    free]
PV /dev/hdc2   VG VolGroup00   lvm2 [37.12 GB / 0    free]
PV /dev/hdb1   VG VolGroup00   lvm2 [37.22 GB / 0    free]
PV /dev/hdd1   VG VolGroup00   lvm2 [37.22 GB / 0    free]
PV /dev/hde1   VG VolGroup00   lvm2 [37.25 GB / 0    free]
Total: 6 [285.69 GB] / in use: 6 [285.69 GB] / in no VG: 0 [0   ]
As you can see pvscan says VolGroup00 has 285.69GB.
>df -h
/dev/mapper/VolGroup00-LogVol00   265G  227G   28G  90% /
but here df says theres only 265.

I tried resizing the filesystem but it just says this..
>ext2online  /dev/VolGroup00/LogVol00
  ext2online v1.1.18 - 2001/03/18 for EXT2FS 0.5b
  ext2online: ext2_ioctl: No space left on device

ext2online: unable to resize /dev/mapper/VolGroup00-LogVol00
Am I missing something obvious here? or have I messed it up along the way?

Old 01-18-2006, 12:14 PM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
It's most likely because of the different ways of measuring 1k. Generally, hard drive manufacturers measure drives in 10^9 byte Gigabytes. Filesystems and operating systems measure the sizes in 2^30 Gigabytes (1024*1024*1024). If you convert 285 hard drive GB to binary GB (285*1000*1000*1000/1024/1024/1024) you get a number extremely close to 265GB.
Old 01-18-2006, 12:26 PM   #3
LQ Newbie
Registered: Jan 2006
Posts: 3

Original Poster
Rep: Reputation: 0
hmm yeah that would appear to be the case.

Both programs are using the abbreviation G to mean a different standard of gigabyte.

I feel somehow empty inside now


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Two LVM VolGroup's, same name, one is system disk - what to do? ffingers Linux - Hardware 11 05-12-2010 03:59 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 04:58 PM
Suspend to Disk (Possible with LVM?) dino9832 Linux - Laptop and Netbook 1 10-05-2004 10:16 AM
df reporting negative disk size??? rimcrazy Linux - Hardware 2 09-07-2004 11:08 AM
df not truly reporting disk free space, why? mark_umr Linux - General 8 12-23-2002 12:20 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration