LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 02-28-2006, 01:19 PM   #1
wfernley
Member
 
Registered: Apr 2005
Posts: 65

Rep: Reputation: 15
Wrong HardDrive Space Being Reported


When I run df -h, linux reports invalid hard drive space.

It says I have:
/dev/md6 16T 12T 0 100% /home
none 503M 0 503M 0% /dev/shm

So apparently my /home is 16 terrabytes and is full.

Can anyone help?

This is also a remote machine so the only access I have is through SSH.

Thanks in advance for your help!

Wes
 
Old 03-01-2006, 06:15 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
What kind of disk is your /home on?
ie post the contents of /etc/fstab, please.

You may also want to try a simple df without the -h, to see if that's different.
 
Old 03-01-2006, 08:28 AM   #3
wfernley
Member
 
Registered: Apr 2005
Posts: 65

Original Poster
Rep: Reputation: 15
Thank you for your reply. Below are the outputs of the two things you wanted me to try. Also, I cannot create users with home directories under /home because it says the drive is full. Not sure if that helps at all.....Also, all the mounts are under the same 160GB hard drive.

$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md4 10080364 796356 8771944 9% /
/dev/md0 202111 15007 176669 8% /boot
/dev/md6 17179740444 12749911728 0 100% /home
none 514112 0 514112 0% /dev/shm
/dev/md5 15116744 3043896 11304948 22% /usr
/dev/md3 20161084 1019100 18117848 6% /var
/dev/md2 20161084 1186752 17950196 7% /websites


$ cat /etc/fstab
/dev/md4 / ext3 defaults 1 1
/dev/md0 /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
/dev/md6 /home ext3 defaults 1 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/md5 /usr ext3 defaults 1 2
/dev/md3 /var ext3 defaults 1 2
/dev/md2 /websites ext3 defaults 1 2
/dev/md1 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
 
Old 03-01-2006, 09:05 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Quote:
/dev/md6 17179740444 12749911728 0 100% /home
Still seems to be wrong (the total space & space used seem to indicate that you have free space, the
% sais it's full).
Rest seems OK though.

I suppose you were using the LVM to create the large (17TB) partition for the home directories.
To me, it seems that LVM has created a 17TB volume, but you've only allocated around 13TB of it into the /home partition. So, maybe you need to add some disk blocks to the /dev/md6 partition (ie extend the partition).
But I'm not sure.

My proposed solutions:
1. You may want to check your LVM configuration, ie check the contents of the volume group and the physical volumes, extend the filesystem if needed (this is needed each time you add a new disk to the volume group).
I've seen some pv* and vg* commands with Google about this. Not sure which you'll need to use. I personnally haven't configured LVM yet, I only know the basics behind it.
But please don't change anything, unless you're absolutely sure it needs to be changed. Messing up the LVM configuration can really mess up your hard disk and your Linux system.
2. Do a
Code:
 df -i /dev/md6
to see how many inodes you have left on the 17TB volume. If you don't have any more left, you can't create new files/folders either.

In short, I recommend that you do some researching on LVM and it's configuration. I'm no expert in those matters.
Maybe someone else on this forum can help you out.
 
Old 03-01-2006, 09:57 AM   #5
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 1,979

Rep: Reputation: 290Reputation: 290Reputation: 290
Quote:
Originally Posted by timmeke
To me, it seems that LVM has created a 17TB volume
Could I ask why you think LVM is being used? I don't see any indications.

wfernley - I haven't ever run into a problem such as yours. So the suggestions below are just a fishing expedition. No concrete reason for doing them, except to possibly turn up some clue that might lead to something else to try.

Try fdisk -l and see what it reports your disk geopmetry as. I would expect "255 heads, 63 sectors/track" and the cylinders will be calculated based on your disk size (my 160Gb has 19452 cylinders, but yours will probably be different from this number - depends on brand of drive, etc.)

Also, try cat /proc/partitions to see what that reports.

If your /proc somehow got corrupted I'm not sure how to attempt a fix of that, other than a reboot. This seems kind of harsh - it's not like you're running Windows here and expect to reboot daily.

I'm not all that familiar with RAID and how that might be affecting what's being reported to you. I guess it's possible that RAID is somehow mixed in with this. /dev/md... indicates software RAID ... correct?
 
Old 03-01-2006, 10:13 AM   #6
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Quote:
Originally Posted by haertig
/dev/md... indicates software RAID ... correct?
Haertig, you're right. /dev/md indicates RAID, not LVM.
I jumped to conclusions on that one. A quick google search on the problem turned up a bunch of links on LVM trouble, hence my conclusion. Just shows how inexperienced I am in matters of LVM and RAID configuration.

wfernley, it can thus also be a RAID configuration problem, rather than an LVM one.
 
Old 03-01-2006, 11:09 AM   #7
wfernley
Member
 
Registered: Apr 2005
Posts: 65

Original Poster
Rep: Reputation: 15
Thank you for your replies.

I am running a software RAID. The home directory used to show the correct size but a while ago it started reporting the wrong size. Rebooting did not solve the problem. I will look into the RAID settings and see if I find anything. I will post it as well.
 
Old 03-01-2006, 01:01 PM   #8
wfernley
Member
 
Registered: Apr 2005
Posts: 65

Original Poster
Rep: Reputation: 15
Here is more output information for you:

# df -i /dev/md6
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/md6 32784877 -18446744072675318660 1067017833 101% /home

# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 208813+ fd Linux raid autodetect
/dev/sda2 27 2576 20482875 fd Linux raid autodetect
/dev/sda3 2577 5126 20482875 fd Linux raid autodetect
/dev/sda4 5127 9729 36973597+ f Win95 Ext'd (LBA)
/dev/sda5 5127 7038 15358108+ fd Linux raid autodetect
/dev/sda6 7039 8313 10241406 fd Linux raid autodetect
/dev/sda7 8314 9460 9213246 fd Linux raid autodetect
/dev/sda8 9461 9715 2048256 fd Linux raid autodetect

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 26 208813+ fd Linux raid autodetect
/dev/sdb2 27 2576 20482875 fd Linux raid autodetect
/dev/sdb3 2577 5126 20482875 fd Linux raid autodetect
/dev/sdb4 5127 9729 36973597+ f Win95 Ext'd (LBA)
/dev/sdb5 5127 7038 15358108+ fd Linux raid autodetect
/dev/sdb6 7039 8313 10241406 fd Linux raid autodetect
/dev/sdb7 8314 9460 9213246 fd Linux raid autodetect
/dev/sdb8 9461 9715 2048256 fd Linux raid autodetect



Does anyone know where I can check the RAID settings? :S

Thanks again for your help!
 
  


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
All updates reported as 0KB and do not have valid GPG signatures. What's wrong? MadJock Fedora 3 01-17-2006 09:43 PM
memory size reported wrong 2.6.12.2/slack 10.2 urbanwks Linux - Hardware 4 12-18-2005 09:44 AM
Wrong CPU speed reported on old laptop johnandrews Linux - Laptop and Netbook 2 08-02-2005 11:31 AM
Disk Free space being incorrectly reported NiallC Linux - General 2 10-02-2004 05:06 PM
hard drive space is not being reported correctly IceGrill Linux - General 3 12-03-2002 04:07 PM


All times are GMT -5. The time now is 10:59 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