Solved

CentOS Number of Files Per Directory

Posted on 2012-12-26
3
542 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

856 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