Out of disk space fault!

Problem: Insufficient Inode capacity (refer to the inode number of bytes and the number of blocks)

                  inode number is not infinite, if a partition of nodes to be used over, even if there is a surplus of disk space can no longer store any data

Query bytes occupancy: df -i (where i refers to the inode)

Example:

Problem: / fdik utilization rate of three percent Why not create a file?

Conclusion: Each file or directory inode has a corresponding number of bytes of capacity, lack of capacity once the number of bytes, you can not create a file

[fdik the root @ localhost] # Touch. 1} {R & lt
Touch: Can not create "r {1}": no space on the device

[fdik the root @ localhost] # DF -i
file system Inode Used (I) can be used (I) is used (I)% point mount
/ dev / Mapper / CentOS the root-24.63744 million 24,501,944. 1 135 496% /
devtmpfs. 1 120 209 406 119 803 % / dev
tmpfs 124 487 2 124 485. 1% / dev / SHM
tmpfs 124 487 990 123 497. 1% / RUN
tmpfs 124 487 16 124 471. 1% / SYS / FS / a cgroup
/ dev / sda1 524288 340. 523 948. 1% / Boot
tmpfs 124 487. 6 124 481. 1% / RUN / User / 42 is
tmpfs 124.46 thousand. 1 124 487 27% / RUN / User / 0
/ dev / sdb1 100 2560 2560 0% / fdik

[fdik the root @ localhost] # DF -ht
file system type has been mounted with the capacity available with point%
/ dev / Mapper / XFS CentOS the root 47G 14G 34G-29% /
devtmpfs devtmpfs 470M 0 470M 0% / dev
tmpfs tmpfs 487m 487m. 1% 4.0 K / dev / SHM
tmpfs tmpfs 487m 2% 8.6 M 478M / RUN
tmpfs tmpfs 487m 487m 0 0% / SYS / FS / a cgroup
/ dev / sda1 XFS 166M 849m. 17% of 10-14m / Boot
tmpfs tmpfs 4.0 K 98M 98M %. 1 / RUN / User / 42 is
tmpfs tmpfs 98M 98M 56K. 1% / RUN / User / 0
/ dev / sdb1 ext4 8.7m 221K 7.8M. 3% / fdik

Workaround: Clear the number of bytes for the files to free up space size 0

 

[Root @ localhost ~] # find / fdik -size 0 // Check / fdik the file size in bytes 0

[root@localhost ~]# sudo find /fdik/ -type f -size 0 -exec rm {} \;            //删除

[root @ localhost ~] # df -i
file system Inode Used (I) can be used (I) is used (I) mount point%
/ dev / Mapper / CentOS the root-24.63744 million 24,501,947. 1 135 493% /
devtmpfs. 1 120 209 406 119 803 % / dev
tmpfs 124 487 2 124 485. 1% / dev / SHM
tmpfs 124 487 972 123 515. 1% / RUN
tmpfs 124 487 16 124 471. 1% / SYS / FS / a cgroup
/ dev / sda1 524288 340. 523 948. 1% / Boot
tmpfs 124 487 21 is 124 466. 1% / RUN / User / 0
/ dev / SR0 0 0 0 - / RUN / Media / the root /. 7 the CentOS the x86_64
/ dev / sdb1 2560. 11%. 1 2549 / fdik

Guess you like

Origin www.cnblogs.com/cxm123123form/p/11329084.html