Solved

CentOS Number of Files Per Directory

Posted on 2012-12-26
3
533 Views
Last Modified: 2012-12-30
Is there a maximum number of files that can be stored in a single directory on a CentOS 5.8 Server?
0
Comment
Question by:deklinm
  • 2
3 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 38721936
Here is an excellent article on that topic:

http://www.frank4dd.com/howto/various/maxfiles-per-dir.htm
0
 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 250 total points
ID: 38721996
Which file system are you talking about?  Most frequent file system used in CentOS 5.8 is ext4 but xfs and other file systems are pretty frequent as well.

It allows 64000 sub directories per directory
http://en.wikipedia.org/wiki/Ext4

These may help you as well:
http://serverfault.com/questions/104986/what-is-the-maximum-number-of-files-a-file-system-can-contain
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 250 total points
ID: 38729028
Basically, there is no practical limit to the number of files under a directory, but there are limits per filesystem.

The maximum number of files per filesystem depends on the number of available inodes, which is either defined at creation time (e.g. ext3/4, jfs) or dynamic (e.g. jfs2) or fix (zfs).

The allowed maximum in ext4 is 4 billion, the fixed maximum in zfs is 2**48 (256 Tera).

There is also a limit to the number of subdirectories under a given directory, e.g. 32000 for ext3, 64000 for ext4.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now