LinuxQuestions.org
Visit Jeremy's Blog.
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 06-05-2012, 06:33 PM   #1
kubuntu-man
Member
 
Registered: Oct 2011
Posts: 36

Rep: Reputation: Disabled
When deleting files over NFS, space is not freed - why ?


Hi there,

I have a large ext 4 filesystem (nearly 2 Terabytes) that is locally mounted on PC A and mounted over NFS on PC B. When I delte files while being logged in on PC B, the free disk space is not or nearly not changing.

Example: I delete 90 GB, but free space increments by only 5 GB. Usually, I do the delete in a terminal using rm -rf. No GUI application, no Trash folder. The only way to get the free space increment was (up to today) the following procedure:
  1. umount it on PC B
  2. stop the NFS server on PC A
  3. umount it on PC A
  4. optionally do a filesystem check
  5. re-mount it on PC A
  6. restart the NFS server
  7. re-mount it on PC B
Note: In these cases, the umount takes unnormally long (sometimes over 30 seconds).

First, I thought ist was a problem with my filesystem. But today, I realized that I always do the delete over NFS. So, I made the crosscheck. This time, I logged in on PC A and deleted the files locally. Deleted 43 GB, free space increment: 43 GB.

Well, the problem seems solved.

But still, I would like to know what the problem exactly is.

Why and by whom is the disk space still locked, even if I umount the partition on PC B and stop the NFS server on PC A ?
Note: I use the nfs kernel server, if this makes a difference.
My System is currently Ubuntu 12.04. But I experienced this weird behaviour already on my old system with Ubuntu 10.04.
 
Old 06-22-2012, 06:13 PM   #2
kubuntu-man
Member
 
Registered: Oct 2011
Posts: 36

Original Poster
Rep: Reputation: Disabled
Additional info: It looks like it only happens when deleting many gigabytes at once.
 
  


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
Recover disk space after deleting files aiewolf Linux - Newbie 2 04-03-2007 02:44 PM
Recover space after deleting files aiewolf Linux - Server 6 04-03-2007 08:44 AM
No free Space even after deleting files (ext3) jeffUK Linux - General 6 08-21-2005 07:13 PM
no free space on / after deleting files wishbone42 Linux - General 3 11-21-2004 12:09 PM
HD space not going up after deleting files MikeZila Linux - Newbie 8 07-04-2004 09:04 PM

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

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