查看操作系统支持的文件系统和文件目录限制

ext3 文件系统一级子目录的个数默认为32000个,ext4 无限制。
用 df -i 命令可以确认 inode 数量,即使磁盘有剩余空间,这个 inode 满了也无法写入文件。
cat /etc/fstab
cat /proc/filesystems

df -i
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/sda2            13107200  202397 12904803    2% /
tmpfs                3591778       1 3591777    1% /dev/shm
/dev/sda5            45776896  209480 45567416    1% /application
/dev/sda1              65536      71   65465    1% /boot
/dev/sdb1            488374272 2071837 486302435    1% /data0

猜你喜欢

转载自phl.iteye.com/blog/1992351