LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-07-2012, 11:29 AM   #1
Topper_BG
LQ Newbie
 
Registered: Aug 2004
Distribution: SuSe 9.1 / Slackware 9.1 / Moviex
Posts: 11

Rep: Reputation: 0
Unhappy No more free space! df 99.9%, du 29% usage - missing free space ?


ОС Suse Enterprise 10.0
Filesystem ReiserFS
SCSI hardrives 36Gb in HW RAID1
root partition 27Gb
Acting like MTA/MySQL/LDAP etc. server

One morning stopped, not enough space. Missing 19GB (according previous report from logwatch)

Quote:
/ # df
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 28G 27G 1.3G 96% /
tmpfs 1013M 0 1013M 0% /dev/shm
/dev/sda3 70G 47G 24G 67% /DATA
/dev/sdb1 151G 1.6G 149G 2% /backup
Quote:
du -shx /
8.0G /
Quote:
du -sxh /var/
3.7G /var/
Quote:
lsof -a +L1 /
COMMAND PID USER FD TYPE DEVICE SIZE NLINK NODE NAME
mysqld 13712 mysql 6u REG 8,1 0 0 15016 /tmp/ibKpdj7k (deleted)
mysqld 13712 mysql 7u REG 8,1 0 0 15018 /tmp/ibXBeg2u (deleted)
mysqld 13712 mysql 11u REG 8,1 0 0 14979 /tmp/ib6ZuzwG (deleted)
Going trough all subdirs of root with df . && du -shk - nothing so big !
Looking for big files - no, looking for bigest files - nothing.

Umounted all other partitions and checked:
Quote:
du -sh /backup
0 /backup
du -sh /DATA
0 /DATA
du -sh /tmp/
0 /tmp/
Restarted, login in single user mode, fsck - no errors, still missing space.

Please advice guys ?
 
Old 02-07-2012, 11:59 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Reserved block count? As in 'tune2fs -l /dev/sda1|grep -i block;' standard five per cent of the partitions size. Can be lowered with 'tune2fs -m n' but read 'man tune2fs' first.
 
Old 02-07-2012, 01:04 PM   #3
Topper_BG
LQ Newbie
 
Registered: Aug 2004
Distribution: SuSe 9.1 / Slackware 9.1 / Moviex
Posts: 11

Original Poster
Rep: Reputation: 0
The filesystem is ReiserFS as described - not a ext2/ext3!
 
Old 02-07-2012, 01:09 PM   #4
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
I wondered about that but does tune2fs work on ReiserFS? [crossposted with OP]

Just to check - you are running du as root, aren't you?

Last edited by SecretCode; 02-07-2012 at 01:12 PM.
 
Old 02-07-2012, 01:40 PM   #5
Topper_BG
LQ Newbie
 
Registered: Aug 2004
Distribution: SuSe 9.1 / Slackware 9.1 / Moviex
Posts: 11

Original Poster
Rep: Reputation: 0
Sure like root.
 
Old 02-07-2012, 01:51 PM   #6
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
You've fsck'd I see

Have you tried booting from a live CD so /dev/sda1 is not actually in use? Possibly even mounting it ro?
 
Old 02-07-2012, 01:55 PM   #7
Topper_BG
LQ Newbie
 
Registered: Aug 2004
Distribution: SuSe 9.1 / Slackware 9.1 / Moviex
Posts: 11

Original Poster
Rep: Reputation: 0
Running in single user, also mounted as RO.
Tomorrow will try with RescueCD, but if I reboot it... will extend it.
But the problem is problem, right ?
 
Old 02-07-2012, 11:47 PM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by Topper_BG View Post
The filesystem is ReiserFS as described - not a ext2/ext3!
Well call up fs specs with your 'tune2fs' equivalent (if any). I'm sure most Linux file systems reserve inodes.
 
Old 02-08-2012, 12:33 AM   #9
Topper_BG
LQ Newbie
 
Registered: Aug 2004
Distribution: SuSe 9.1 / Slackware 9.1 / Moviex
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
tune2fs -l /dev/sda
tune2fs 1.36 (05-Feb-2005)
tune2fs: Bad magic number in super-block while trying to open /dev/sda
Couldn't find valid filesystem superblock.
Already post, that tune2fs is not compatible with ReiserFS

Wikipedia:
Quote:
Some Unix-style file systems such as ReiserFS omit an inode table, but must store equivalent data in order to provide equivalent capabilities. The data may be called stat data, in reference to the stat system call that provides the data to programs.
 
Old 02-08-2012, 12:50 AM   #10
Topper_BG
LQ Newbie
 
Registered: Aug 2004
Distribution: SuSe 9.1 / Slackware 9.1 / Moviex
Posts: 11

Original Poster
Rep: Reputation: 0
Also, there isn't inodes:
Quote:
df -T -i -x tmpfs
Filesystem Type Inodes IUsed IFree IUse% Mounted on
/dev/sda1 reiserfs 0 0 0 - /
/dev/sda3 reiserfs 0 0 0 - /DATA
/dev/sdb1 reiserfs 0 0 0 - /backup
/dev/sdb2 ext3 19M 151K 19M 1% /mnt/usb2
 
Old 02-08-2012, 10:09 AM   #11
Topper_BG
LQ Newbie
 
Registered: Aug 2004
Distribution: SuSe 9.1 / Slackware 9.1 / Moviex
Posts: 11

Original Poster
Rep: Reputation: 0
Bump ?
 
Old 02-08-2012, 12:28 PM   #12
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by Topper_BG View Post
Already post, that tune2fs is not compatible with ReiserFS
I said tune2fs equivalent so go use debugreiserfs.
 
Old 02-08-2012, 12:51 PM   #13
Topper_BG
LQ Newbie
 
Registered: Aug 2004
Distribution: SuSe 9.1 / Slackware 9.1 / Moviex
Posts: 11

Original Poster
Rep: Reputation: 0
This is the results:
Quote:
Filesystem state: consistency is not checked after last mounting

Reiserfs super block in block 16 on 0x801 of format 3.6 with standard journal
Count of blocks on the device: 7323616
Number of bitmaps: 224
Blocksize: 4096
Free blocks (count of blocks - used [journal, bitmaps, data, reserved] blocks): 425459
Root block: 11270
Filesystem is NOT clean
Tree height: 5
Hash function used to sort names: "r5"
Objectid map size 594, max 972
Journal parameters:
Device [0x0]
Magic [0x292b00bd]
Size 8193 blocks (including 1 for journal header) (first block 18)
Max transaction length 1024 blocks
Max batch size 900 blocks
Max commit age 30
Blocks reserved by journal: 0
Fs state field: 0x0:
sb_version: 2
inode generation number: 15651833
UUID: 0a9b77a6-ed65-47be-b032-08078232fc12
LABEL:
Set flags in SB:
ATTRIBUTES CLEAN
What can I do, or what to look after ?
 
Old 02-08-2012, 01:35 PM   #14
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
I'd still like to see if anything changes if you examine the disk from a live CD - without even any files open for read.

"Filesystem is NOT clean" presumably just means it's mounted rw. But fsck it from a live CD anyway.

If you have a spare HDD (and plenty of spare time), doing a deep copy of the entire volume to another identically sized and formatted volume might be instructive.
 
Old 02-08-2012, 02:40 PM   #15
Topper_BG
LQ Newbie
 
Registered: Aug 2004
Distribution: SuSe 9.1 / Slackware 9.1 / Moviex
Posts: 11

Original Poster
Rep: Reputation: 0
Plenty of spare time - good point.
This is a production system, but lucky it is a VM.
So bad hard disk is possible in other case, not in mine.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
partition space and disk space usage and free don't match nsic Linux - Newbie 3 02-22-2013 12:57 PM
[SOLVED] /usr missing free space yoachan Linux - Server 4 08-24-2010 05:09 AM
Help removing free space to create Raw free space nightmare55 Linux - Newbie 11 10-01-2009 03:07 AM
Not enough free space on hard drive with 50g of free space??? auoq SUSE / openSUSE 5 10-13-2004 08:21 PM
Formating free space: WinXP pro and RH9 dualboot with free space on 3rd drive Vermicious Linux - General 2 03-22-2004 05:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:11 PM.

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