Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Linux

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 10-22-2009, 01:40 PM
P1
Newsgroup Contributor
 
Posts: n/a
ext3 fs directory limit

There is apparently a subdirectory limit of 32,000 on ext3 file systems.
How are people getting around this? I have a mail server that just
reached that number of users and I'm unable to create more.

Thanks,
Paul
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 10-22-2009, 01:40 PM
  #2 (permalink)  
Old 10-22-2009, 02:10 PM
philo
Newsgroup Contributor
 
Posts: n/a
Re: ext3 fs directory limit

P1 wrote:
> There is apparently a subdirectory limit of 32,000 on ext3 file systems.
> How are people getting around this? I have a mail server that just
> reached that number of users and I'm unable to create more.
>
> Thanks,
> Paul




ext4

http://en.wikipedia.org/wiki/Ext4
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 10-22-2009, 02:30 PM
P1
Newsgroup Contributor
 
Posts: n/a
Re: ext3 fs directory limit

philo wrote:
> P1 wrote:
>> There is apparently a subdirectory limit of 32,000 on ext3 file
>> systems. How are people getting around this? I have a mail server
>> that just reached that number of users and I'm unable to create more.
>>
>> Thanks,
>> Paul

>
>
>
> ext4
>
> http://en.wikipedia.org/wiki/Ext4


Any idea how people did it pre-ext4, since that is a very new file
system with apparently very real data loss concerns?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 10-22-2009, 02:40 PM
Davorin Vlahovic
Newsgroup Contributor
 
Posts: n/a
Re: ext3 fs directory limit

[Thu, 22 Oct 2009 14:30:50 -0700] P1 je napisao/la:
> philo wrote:
>> P1 wrote:
>>> There is apparently a subdirectory limit of 32,000 on ext3 file
>>> systems. How are people getting around this? I have a mail server
>>> that just reached that number of users and I'm unable to create more.
>>>
>>> Thanks,
>>> Paul

>>
>>
>>
>> ext4
>>
>> http://en.wikipedia.org/wiki/Ext4

>
> Any idea how people did it pre-ext4, since that is a very new file
> system with apparently very real data loss concerns?


http://en.wikipedia.org/wiki/XFS

--
You, you, and you: Panic. The rest of you, come with me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 10-22-2009, 03:10 PM
Michael John Ruff
Newsgroup Contributor
 
Posts: n/a
Re: ext3 fs directory limit

P1 wrote:
> There is apparently a subdirectory limit of 32,000 on ext3 file systems.
> How are people getting around this? I have a mail server that just
> reached that number of users and I'm unable to create more.
>
> Thanks,
> Paul

Hello Paul

If you can create another directory called home1 and store the user
durectories in there.

Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #6 (permalink)  
Old 10-22-2009, 03:40 PM
P1
Newsgroup Contributor
 
Posts: n/a
Re: ext3 fs directory limit

Michael John Ruff wrote:
> P1 wrote:
>> There is apparently a subdirectory limit of 32,000 on ext3 file
>> systems. How are people getting around this? I have a mail server
>> that just reached that number of users and I'm unable to create more.
>>
>> Thanks,
>> Paul

> Hello Paul
>
> If you can create another directory called home1 and store the user
> durectories in there.
>
> Mike


Yeah, I thought about that, but then I'd have to figure out how to tell
Postfix and Dovecot where to look for those, not sure if that'd be possible.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #7 (permalink)  
Old 10-22-2009, 03:40 PM
P1
Newsgroup Contributor
 
Posts: n/a
Re: ext3 fs directory limit

Davorin Vlahovic wrote:
> [Thu, 22 Oct 2009 14:30:50 -0700] P1 je napisao/la:
>> philo wrote:
>>> P1 wrote:
>>>> There is apparently a subdirectory limit of 32,000 on ext3 file
>>>> systems. How are people getting around this? I have a mail server
>>>> that just reached that number of users and I'm unable to create more.
>>>>
>>>> Thanks,
>>>> Paul
>>>
>>>
>>> ext4
>>>
>>> http://en.wikipedia.org/wiki/Ext4

>> Any idea how people did it pre-ext4, since that is a very new file
>> system with apparently very real data loss concerns?

>
> http://en.wikipedia.org/wiki/XFS
>


XFS seems to have potential, I'll start testing...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #8 (permalink)  
Old 10-22-2009, 06:30 PM
David W. Hodgins
Newsgroup Contributor
 
Posts: n/a
Re: ext3 fs directory limit

On Thu, 22 Oct 2009 16:34:24 -0400, P1 <p1@fhri.org> wrote:

> There is apparently a subdirectory limit of 32,000 on ext3 file systems.


I wasn't aware of any such limit. Do you have the Dir Index option
turned on for that filesystem? On my system, where I do have it ...

$ fsstat /dev/sda8|grep Index
Compat Features: Journal, Ext Attributes, Resize Inode, Dir Index

If you don't have it, you can use "tune2fs -O dir_index /dev/????"
followed by "e2fsck -D /dev/????". This should be done on the
filesystem while it is not mounted, preferably, right after a full
backup. See "man tune2fs" for details.

Regards, Dave Hodgins

--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #9 (permalink)  
Old 10-22-2009, 10:00 PM
J.O. Aho
Newsgroup Contributor
 
Posts: n/a
Re: ext3 fs directory limit

P1 wrote:
> There is apparently a subdirectory limit of 32,000 on ext3 file systems.
> How are people getting around this? I have a mail server that just
> reached that number of users and I'm unable to create more.


The subdirecotry limit is 31998, symlink limit is 32000 (per inode), and don't
forget that ext3 also has inode limitations, which will cause trouble in a
file system with a lot of files.

Don't use ext3, there are quite many other options like reiserfs, reiser4,
jfs, xfs. The two later are industry standard file systems and all of them
don't have the inode problem as ext3 has.

--

//Aho
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #10 (permalink)  
Old 10-23-2009, 08:10 AM
F. Michael Orr
Newsgroup Contributor
 
Posts: n/a
Re: ext3 fs directory limit

On Fri, 23 Oct 2009 07:00:05 +0200, J.O. Aho wrote:

> P1 wrote:
>> There is apparently a subdirectory limit of 32,000 on ext3 file
>> systems.
>> How are people getting around this? I have a mail server that just
>> reached that number of users and I'm unable to create more.

>
> The subdirecotry limit is 31998, symlink limit is 32000 (per inode), and
> don't forget that ext3 also has inode limitations, which will cause
> trouble in a file system with a lot of files.
>
> Don't use ext3, there are quite many other options like reiserfs,
> reiser4, jfs, xfs. The two later are industry standard file systems and
> all of them don't have the inode problem as ext3 has.


Actually, that's not entirely accurate. The actual limit is 32766
(32K-2). All filesystems have a limit, though they vary. That of reiser
is 64k, but it is a limit nonetheless. I don't know about xfs, but jfs
is 32k as well (at least the AIX flavor). UFS on Solaris is 32k as
well. The biggest I have found is WAFL on NetApp, which has a non-magic
number limit of 100,000.

The simplest (though kludgy) solution is to create another directory,
move many of your existing directories to the new directory, and replace
them with symlinks in the old directory. Symlinks aren't hard, and thus
aren't subject to the 32k limitation. This of course requires constant
babysitting, but it will get around much of the problem.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #11 (permalink)  
Old 10-23-2009, 09:20 AM
Davorin Vlahovic
Newsgroup Contributor
 
Posts: n/a
Re: ext3 fs directory limit

[Fri, 23 Oct 2009 10:08:39 -0500] F. Michael Orr je napisao/la:
> The simplest (though kludgy) solution is to create another directory,
> move many of your existing directories to the new directory, and replace
> them with symlinks in the old directory. Symlinks aren't hard, and thus
> aren't subject to the 32k limitation. This of course requires constant
> babysitting, but it will get around much of the problem.


create a directory for every beginning letter...

a/ -> aardvark, avokado...
b/ -> borg, babysitter....
c..
d..


--
You, you, and you: Panic. The rest of you, come with me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #12 (permalink)  
Old 10-23-2009, 09:30 AM
P1
Newsgroup Contributor
 
Posts: n/a
Re: ext3 fs directory limit

J.O. Aho wrote:
> P1 wrote:
>> There is apparently a subdirectory limit of 32,000 on ext3 file systems.
>> How are people getting around this? I have a mail server that just
>> reached that number of users and I'm unable to create more.

>
> The subdirecotry limit is 31998, symlink limit is 32000 (per inode), and don't
> forget that ext3 also has inode limitations, which will cause trouble in a
> file system with a lot of files.
>
> Don't use ext3, there are quite many other options like reiserfs, reiser4,
> jfs, xfs. The two later are industry standard file systems and all of them
> don't have the inode problem as ext3 has.
>


XFS does seem promising, thanks for that suggestion, I'll have to try it
out.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #13 (permalink)  
Old 10-23-2009, 09:30 AM
P1
Newsgroup Contributor
 
Posts: n/a
Re: ext3 fs directory limit

F. Michael Orr wrote:
> On Fri, 23 Oct 2009 07:00:05 +0200, J.O. Aho wrote:
>
>> P1 wrote:
>>> There is apparently a subdirectory limit of 32,000 on ext3 file
>>> systems.
>>> How are people getting around this? I have a mail server that just
>>> reached that number of users and I'm unable to create more.

>> The subdirecotry limit is 31998, symlink limit is 32000 (per inode), and
>> don't forget that ext3 also has inode limitations, which will cause
>> trouble in a file system with a lot of files.
>>
>> Don't use ext3, there are quite many other options like reiserfs,
>> reiser4, jfs, xfs. The two later are industry standard file systems and
>> all of them don't have the inode problem as ext3 has.

>
> Actually, that's not entirely accurate. The actual limit is 32766
> (32K-2). All filesystems have a limit, though they vary. That of reiser
> is 64k, but it is a limit nonetheless. I don't know about xfs, but jfs
> is 32k as well (at least the AIX flavor). UFS on Solaris is 32k as
> well. The biggest I have found is WAFL on NetApp, which has a non-magic
> number limit of 100,000.
>
> The simplest (though kludgy) solution is to create another directory,
> move many of your existing directories to the new directory, and replace
> them with symlinks in the old directory. Symlinks aren't hard, and thus
> aren't subject to the 32k limitation. This of course requires constant
> babysitting, but it will get around much of the problem.


Thanks Mike, that is a good solution I think. At least in the interim,
it's quick and easy to implement. I'll still experiment with XFS as a
possible permanent solution, but this will get me back up and running
for a while.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
back up an ext3 partition heavytull Linux 35 03-27-2009 04:00 PM
back up an ext3 partition heavytull Linux 2 03-27-2009 03:54 PM
ext3.fs: Existence of file and directory with the same name Till Wimmer Linux 18 03-27-2009 03:41 PM
ext3.fs: Existence of file and directory with the same name Till Wimmer Linux 6 07-25-2008 07:24 AM
Is it possible to limit an applications memory limit? RS Windows XP 0 11-30-2007 06:30 PM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 07:21 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0