Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-25-2007, 01:12 PM   #1
LQ Newbie
Registered: Aug 2005
Posts: 3

Rep: Reputation: 0
Question df -h show incorrect information

Has anyone run into this:
I have a HP MSA1000 storage unit and multiple hp 1U servers setup on a fiber network.
I HAD one of the servers, hp#1 directly mounted to the various logical drives setup on the MSA1000 unit
Then HAD the other hp machines access those logical drives on the MSA1000 by mapping to NFS shares from hp#1

Problem: backups where taking FOREVER going over the NFS mounts so..

I changed the setup so that each hp machine now mounts directly to the logical drive it needs on the MSA1000 unit
Works great for backups! MUCH Faster!

BUT.. now if I do a df -h on each of the hp machines the directly mounted drives on the MSA unit show up with wrong information.
For example hp#1 and hp#2 both directly connect to logical drive #4 on the MSA1000 unit. When I run a df -h on each of these machines the results are:
.............Filesystem Size Used Avail Use% Mounted on
hp#2 - /dev/sdb1 429G 324G 84G 80% /n03
hp#1 - /dev/sdc1 429G 48G 359G 12% /r03

The size of the logical drive is correct but the other stats are skewed

Old 07-25-2007, 02:10 PM   #2
Senior Member
Registered: Jul 2005
Distribution: Slackware
Posts: 1,178

Rep: Reputation: 47
By how much are they skewed? And what filesystem are they formatted as? I think some filesystems reserve a certain percentage for journaling and other overhead. It sounds like a lot you're losing, 21G on each. Have you tried any other utilies for viewing usage?
Old 07-25-2007, 04:26 PM   #3
LQ Newbie
Registered: Aug 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Question mumbo jumbo

Well the file system is ext3
I read some things on the overhead reserve topic you mentioned but it doesn't seem to line up with this problem.

Also, I tried a "du . -sh" to see the size reported and this is what I get (this result is the correct space used):

hp#1 - 325G .
hp#2 - 325G .

The df -h returns:
hp#1 - /dev/sdc1 429G 48G 359G 12% /r03
hp#2 - /dev/sdb1 429G 325G 82G 80% /n03

Maybe there isn't much of a problem here, but it just seems really strange that the df -h command shows such skewed results. And I worry that down the line the machines will complain of not enough disk space or something.

Ofcourse this problem never occured when using NFS but backups took 6x as long.. as well as restores.

<<<<EDIT 7/26/2007>>>>
Backups to the mounted drive now fail because the system doesn't think there is enough drive space.

Ugh !

Maybe this will help: The old setup which it looks like I will be returning to was..
hp#1 - directly mounts the SAN logical drives (like it does now)
hp#2 - uses NFS to conencted to the drives through hp#1

Again backups ran slow going through NFS so I instead had hp#2 directly mount the SAN drives like hp#1.. Backup are much faster but space not being read correctly..??..

Last edited by ryanjliles; 07-26-2007 at 11:23 AM.


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
top and ps commands show incorrect pids joepgjm Linux - Newbie 3 04-25-2007 11:23 AM
Personal Information Manager (Kontact) does not show to-do list items in summary view marietechie Linux - Newbie 1 02-10-2007 11:06 AM
Hiding machine information and root information geletine Linux - Security 6 07-14-2006 07:57 AM
Incorrect Mouse, Incorrect Keymap, and Trapped in X Kenji Miyamoto Debian 8 08-24-2005 02:42 PM
incorrect partition information scng Linux - General 2 09-24-2004 11:53 PM > Forums > Linux Forums > Linux - Networking

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

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