From: Frank on
Hello,

I noticed that there is a limit on the amount of links (or directories)
in a directory. Apparently a directory can contain about 2^15
subdirectories (32765) but after that the following message appears:

mkdir: Failed to make directory "blah"; Too many links

I'm running Solaris 9 4/03 64bit with kernel patch 117171-17. This all
takes place on UFS filesystem on SVM device.

Is this limit a limit of UFS or Solaris?
Are there other filesystems available that do not have this limit or do
have a higher limit?
Can this be tuned somehow?

Regards,
Frank
From: Jay G. Scott on
In article <4208e98d$0$28978$e4fe514c(a)news.xs4all.nl>,
Frank <no(a)spam.org> wrote:
>Hello,
>
>I noticed that there is a limit on the amount of links (or directories)
>in a directory. Apparently a directory can contain about 2^15
>subdirectories (32765) but after that the following message appears:
>
>mkdir: Failed to make directory "blah"; Too many links
>
>I'm running Solaris 9 4/03 64bit with kernel patch 117171-17. This all
>takes place on UFS filesystem on SVM device.
>
>Is this limit a limit of UFS or Solaris?
>Are there other filesystems available that do not have this limit or do
>have a higher limit?
>Can this be tuned somehow?

yes.

RTM: specifically, mkfs, tunefs, newfs, and similar. i know it's there but i
haven't had to do it, so where it is, i don't remember. there's a default
number of inodes determined by file system size, and you're going
to alter that.

j.

>
>Regards,
>Frank


--
Jay Scott 512-835-3553 gl(a)arlut.utexas.edu
Head of Sun Support, Sr. Operating Systems Specialist
Applied Research Labs, Computer Science Div. S224
University of Texas at Austin
From: Frank on
Jay G. Scott wrote:
[...]
>
> yes.
>
> RTM: specifically, mkfs, tunefs, newfs, and similar. i know it's there but i
> haven't had to do it, so where it is, i don't remember. there's a default
> number of inodes determined by file system size, and you're going
> to alter that.
>
> j.
>
[]

I know about the inode density (-i option to newfs), but that is not the
problem here. There are lots of inodes free on the filesystem, but the
thing is that in a "directory" there can only be 2^15 subdirectories or
links. This is another limit.

Regards,
From: Darren Dunham on
Frank <no(a)spam.org> wrote:
> Hello,

> I noticed that there is a limit on the amount of links (or directories)
> in a directory. Apparently a directory can contain about 2^15
> subdirectories (32765) but after that the following message appears:

> mkdir: Failed to make directory "blah"; Too many links

> I'm running Solaris 9 4/03 64bit with kernel patch 117171-17. This all
> takes place on UFS filesystem on SVM device.

> Is this limit a limit of UFS or Solaris?

UFS.

> Are there other filesystems available that do not have this limit or do
> have a higher limit?

No.

> Can this be tuned somehow?

No. It's fundamental. The inode contains the number of links for each
inode. Creating a subdirectory means increasing the link count of the
parent directory. At some point, the limit of the number of links that
the inode can record is reached.

You would have to change the on-disk format of an inode to modify it.

http://groups-beta.google.com/group/comp.unix.solaris/browse_thread/thread/b3fedfc2f09af135
--
Darren Dunham ddunham(a)taos.com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
From: Darren Dunham on
Darren Dunham <ddunham(a)redwood.taos.com> wrote:
>> Are there other filesystems available that do not have this limit or do
>> have a higher limit?

> No.

Oops. Read that wrong.

Actually, I don't know what limits are present in other filesystems
(other than VxFS appears to have the same one).

QFS/SAM-FS.. ??
Multi-TB UFS.. ??

ZFS may well remove that limit.

--
Darren Dunham ddunham(a)taos.com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >