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://