LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-04-2012, 04:48 AM   #1
tripkip
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Rep: Reputation: Disabled
Unhappy Cannot get any space freed up when removing files


Running OpenMediaVault (Debian Squeeze).

Removed tons of files and folders (at least 50GB's).
Tried, fsck, lsop, reboot.

Still df shows 100% capacity usage and I cannot add any more files.

There is no .trash file/folder or any other weird file/folder on the drive.

Code:
root@NAS:/# du -sk /media/39d5d45e-6744-435a-8308-a7680b233d13/TV\ Shows/
1376436496   /media/39d5d45e-6744-435a-8308-a7680b233d13/TV Shows/
root@NAS:/# df -k /media/39d5d45e-6744-435a-8308-a7680b233d13/TV\ Shows/
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sdf1            1463622108 1398113888         0 100% /media/39d5d45e-6744-435a-8308-a7680b233d13
I have been trying to get this sorted for 6 hours straight. Getting a little wacko here. Any help appreciated! Thanks in advance.
 
Old 09-04-2012, 07:24 AM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
What file system is on that drive? By default, ext2/3/4 file systems keep 5% of the blocks reserved for root, and your "Used" block count is still more than 95% of the total. Keeping those blocks reserved might not be necessary on a non-system drive, though fragmentation will become high on a drive with very little free space. You can use tune2fs (as root) to change the reserved block percentage. You can see the reserved block count with
Code:
tune2fs -l /dev/sdf1 | grep -i 'block count'

Last edited by rknichols; 09-04-2012 at 07:26 AM.
 
Old 09-04-2012, 07:26 AM   #3
tripkip
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rknichols View Post
What file system is on that drive? By default, ext2/3/4 file systems keep 5% of the blocks reserved for root, and your "Used" block count is still more than 95% of the total. Keeping those blocks reserved might not be necessary on a non-system drive, though fragmentation will become high on a drive with very little free space. You can use tune2fs (as root) to change the reserved block percentage.
It's an ext4 file system.

Quote:
Originally Posted by rknichols View Post
Code:
tune2fs -l /dev/sdf1 | grep -i 'block count'
I'll do this as soon as I get home (in 3.5 hours). Let me know if you need any more information.

Quote:
Originally Posted by rknichols View Post
What if this weren't a rhetorical question?
In that case I would answer it, but now I sh-wouldn't.

Last edited by tripkip; 09-04-2012 at 07:31 AM.
 
Old 09-04-2012, 11:24 AM   #4
tripkip
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
root@OPENMEDIAVAULT:~# tune2fs -l /dev/sdf1 | grep -i 'block count'
Block count: 366284288
Reserved block count: 18314214

If I am not mistaken, that is about 20% :-S

Is it safe to set the reserved block count to 0? (tune2fs -m 0 /dev/sdf1)
Note that this disk is for data storage only and that it potentially gets filled to the max.

Last edited by tripkip; 09-04-2012 at 11:29 AM.
 
Old 09-04-2012, 12:06 PM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by tripkip View Post
Block count: 366284288
Reserved block count: 18314214

If I am not mistaken, that is about 20% :-S
No, that's 5%, which is the default for mkkfs.ext4.

Yes, you can safely set the reserve block count to zero. The only downside will be increased fragmentation due to the kernel having to store a file into whatever bits and pieces of free space it can find.
 
Old 09-04-2012, 12:22 PM   #6
tripkip
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you, this solved my issue.
 
  


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
When deleting files over NFS, space is not freed - why ? kubuntu-man Linux - General 1 06-22-2012 06:13 PM
[SOLVED] rm 63GB file, df not showing space freed anon091 Linux - Newbie 5 07-26-2010 07:48 AM
Problem installing kubuntu (involves freed partitions space) gingerkid123 Linux - Newbie 4 04-05-2010 08:23 PM
file deleted, but no space freed kpachopoulos Linux - General 3 02-07-2008 10:43 AM
kernel 2.6.13 - space not freed to kernel sarunya Linux - General 6 09-02-2005 09:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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