LinuxQuestions.org
Visit Jeremy's Blog.
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 05-11-2012, 05:10 PM   #1
UNIX Zyklon
LQ Newbie
 
Registered: Jan 2010
Posts: 17

Rep: Reputation: 1
mkdir: cannot create directory `abc': No space left on device


I cant create any directory in a ext2 filesystem

i have plenty of space, plenty of inodes, not that many files on it, and no matter what i can't create it!

df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/vg_app/lvol1 250G 179G 59G 76% /dir

df -i .
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/vg_app/lvol1 33079296 7805 33071491 1% /dir


find .|wc -l
7796

i can create files, even large files without a problem, and i already run fsck (while umounted) a few times, it didnt solve the issue

anyone have any idea what else can i make to fix this problem?

Red Hat Enterprise Linux ES release 3

thx
 
Old 05-11-2012, 06:08 PM   #2
UNIX Zyklon
LQ Newbie
 
Registered: Jan 2010
Posts: 17

Original Poster
Rep: Reputation: 1
i rebooted the server, and for some reason it fixed the problem

now i can create dirs again

that was strange...
 
Old 05-14-2012, 01:16 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
You might want to read up on du http://linux.die.net/man/1/du vs df http://linux.die.net/man/1/df.
From your description it sounds like the classic problem of having 'deleted' a file that is still locked open by the owning process.
In reality, *nix only really unlinks http://linux.die.net/man/1/unlink a file when all processes that have the file open have closed it.
In the meantime, it doesn't show up in eg ls, but it still takes up diskspace.
 
  


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
mkdir : cannot create directory : no such file or directory patcheezy Linux - Newbie 6 05-13-2009 11:26 AM
Moving a file into a large directory: "No space left on device" Jimantha Linux - General 2 09-09-2008 11:40 PM
No space left on device even though it has free space? enine Linux - General 8 05-30-2007 04:22 PM
"Cannot create directory: No space left on device" but I have 7.1G available !!!! fr_laz Linux - General 3 12-09-2005 04:44 PM
mkdir: cannot create directory `test': Read-only file system punt Linux - General 2 04-16-2005 09:58 PM

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

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