Linux 32000 subdirectory limit solution __linux

Source: Internet
Author: User

32000 subdirectory restrictions are mainly file system problems, ext2 and ext3 file systems generally can not break through.

The Ext4 file system can exceed 32,000 subdirectories and is said to support the Ext4 file system in a later kernel version of 2.6.19.

The kernel version used in this test is 2.6.23, as follows:

Preparatory work

Installing a Linux system with 2.6 cores, this test uses the REDHAT5

Upgrade Kernel to 2.6.23

1. Download kernel source to http://kernel.org website

2. Compile the kernel source code, pay attention to hook select EXT4 related options

# Make Mrproper

# Make Xconfig

# make DEP

# Make Clean

# Make Bzimage

# Make Modules

# Make Modules_install

# make Install

Upgrade/SBIN/MKE2FS program to v1.39

1. To ftp://ftp.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/download program source code

2. Compile and install

Unpack to the specified directory

# CD

#./configure

# make

# Make Check

# make Install

# Make Install-libs

Refer to install file for detailed operation

Prepare the hard drive

# fdisk/dev/

# mke2fs-j/dev/

# mount-t Ext4dev [-o extents]/dev/

Test

# CD

Run test scripts

Test script:

#!/bin/bash

For ((i=1;i<100000;i++)) do

Dirname=dir$i

mkdir $dirname

Echo $i--Make directory $dirname

Done

Network share:

Server-side settings

1. Add in/etc/exports file:

/* (Rw,sync,no_root_squash)

2. Start NFS Server:

# Service NFS Start | Stop | Status

Client settings

Linux

# mount-t NFS host://

Solaris10

# mount-f Nfs-o vers=3 host://

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.