LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-22-2006, 04:14 AM   #1
Daniboy
Member
 
Registered: May 2005
Posts: 64

Rep: Reputation: 15
Partition size


Hello everyone

I am manually monotoring partition sizes and available space from time to time.

I notized that on one of them the partition size have become smaller, and since I havent dont anything with the server, how can this be?

like from 59994 MB to 57213 MB

The config is a hardware raid controller with RAID 1 configuration.
 
Old 06-23-2006, 01:31 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Are you talking about the size of the partition itself or the disk space on the partition?
If disk space, a lot of MB can be used up in /tmp and also in /var/log
Your distro may be doing many other things behind your back as well that take up space...
 
Old 06-26-2006, 04:51 AM   #3
Daniboy
Member
 
Registered: May 2005
Posts: 64

Original Poster
Rep: Reputation: 15
Thank you for your reply

Yes it is the partition size it self that have become smaller
when i posted it was from 59994 MB to 57213 MB
as of today the number is 57215 MB

df -B M
prints
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/sda5 11751 1013 10738 9% /
/dev/sda7 57215 30605 26610 54% /var
shmfs 505 0 505 0% /dev/shm

Last edited by Daniboy; 06-26-2006 at 04:53 AM.
 
Old 06-26-2006, 07:43 AM   #4
penguintutor
Member
 
Registered: Jun 2006
Location: UK
Distribution: Ubuntu, Mandriva, Redhat and Fedora
Posts: 118

Rep: Reputation: 15
I suspect it is df that is giving different approximate values, as provided by the RAID controller.

When you create a file it will have a file size (number of bytes in the file), and a space on disk occupied. The amount of space taken will be equal or greater than the size of the file, dependant upon the block size.

For example with a block size of 512 bytes, that amount of space will always be taken up. E.g. for a 600 byte file, it will require two blocks and take up 1024 bytes on the disk.

I suspect that the RAID controller is returning a different number of blocks to take account of the partial used blocks. This would only be noticeable on a filesystem with a large number of small files, which may be the case for a var filesystem.

An alternative theory could be that the RAID controller is returning lower values as it is finding bad blocks on the disk. As this is a hardware RAID any bad block detection will be done outside of the OS, and so may not be reported by fsck. You would need to interrogate the hardware controller to see if there are bad blocks being detected, or it may be that these are logged in the syslog.
 
Old 06-26-2006, 08:39 AM   #5
Daniboy
Member
 
Registered: May 2005
Posts: 64

Original Poster
Rep: Reputation: 15
Thank you

The particulary system is running a cyrus pop3/imap server, so yes it is a lot of small files.
The size of the partition it self have been 100% stable on the same size for the last 6 months... only recently thease have changed to the current value.
I will check my syslog and consult my raid controllers documentation for how it handle disk errors
 
Old 06-28-2006, 08:46 AM   #6
Daniboy
Member
 
Registered: May 2005
Posts: 64

Original Poster
Rep: Reputation: 15
There is nothing in the syslog except a few write errors...
I cant access the hardware controller right now
 
  


Reply



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
Size in superblock is different from the physical size of the partition cyberfishee Linux - Hardware 18 09-11-2016 08:48 AM
Added second harddrive as a partition, but now the partition size is wrong.. mlsbraves Linux - General 5 08-17-2005 08:10 PM
file system size larger than fysical size:superblock or partition table corrupt klizon Linux - General 0 06-18-2004 04:18 PM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM
fdisk partition size differs from mounted partition size jimieee Linux - General 3 10-15-2003 03:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:12 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration