LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

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


Hi,

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.

Code:
>pvscan
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.
Code:
>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..
Code:
>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?

Cheers.
 
Old 01-18-2006, 11:14 AM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
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, 11:26 AM   #3
rarr
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
 
  


Reply


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 02:59 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM
Suspend to Disk (Possible with LVM?) dino9832 Linux - Laptop and Netbook 1 10-05-2004 09:16 AM
df reporting negative disk size??? rimcrazy Linux - Hardware 2 09-07-2004 10:08 AM
df not truly reporting disk free space, why? mark_umr Linux - General 8 12-22-2002 11:20 PM


All times are GMT -5. The time now is 02:09 AM.

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