Niche Blog: http://xsboke.blog.51cto.com
Niche Q q:1770058260
-------Thank you for your reference, if you have any questions, please contact
cause of failure: disk space has been depleted by large amounts of data, although there is still space available, but the number of files I node has also been exhausted
It is obvious that when a filesystem runs out of disk space, it will not be possible to continue creating new file data in that partition, causing the failure to occur, for example, when the root partition " / "When you run out of disk space, it can cause some programs and even the entire system to not start or run properly because some temporary files will not be built
Unable to boot into the root partition when disk space is low Linux system, you can use the RHEL 5 installation CD into first aid mode, transfer or clean up files that occupy a lot of space in the root partition, use DD command can simulate a root partition exhaustion failure, for example: Execute " DD If=/dev/zero of=/somefile bs=1m count=999999 "
in addition, in each of the ext3 The number of files that can be used in the file system ( corresponds to number of I nodes ) is also limited, when a file system is formatted, its I The number of nodes, or the number of files, is fixed, if the user creates a huge amount of small files in the partition (exhausted I node), this situation may occur, although there is still a large amount of remaining disk space in the partition, but the user is no longer able to create new files.
one. simulation i
(1) Create a new 32m size ext3 file system, mount it to /date directory, and use with " -i df command confirms that the file system is i node usage.
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/9A/5A/wKioL1lUqK6BkpGNAAB_tyeduTo226.jpg "title=" Image001.jpg "alt=" Wkiol1luqk6bkpgnaab_tyeduto226.jpg "/>
(2) refer to the following to write a test program, run the program can be exhausted /DEV/SDB1 all available in the partition I node, ( 10029 )
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/9A/59/wKiom1lUqLuyqz-LAAA6bwLz91Q263.jpg "title=" Image002.jpg "alt=" Wkiom1luqluyqz-laaa6bwlz91q263.jpg "/>
(3) Run the test program sh killinode.sh &
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/9A/59/wKiom1lUqMTxoyqCAAAuq6MJfsY246.jpg "title=" Image003.jpg "alt=" Wkiom1luqmtxoyqcaaauq6mjfsy246.jpg "/>
(4) df-i/date Confirm I node Occupancy
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/9A/59/wKiom1lUqM_zFR7JAAB_DBwPuvI243.jpg "title=" Image004.jpg "alt=" Wkiom1luqm_zfr7jaab_dbwpuvi243.jpg "/>
( 5 ) When I a new file cannot be created after the node is exhausted
650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/9A/59/wKiom1lUqNixHmojAAByLMJ9a6k017.jpg "title=" Image005.jpg "alt=" Wkiom1luqnixhmojaabylmj9a6k017.jpg "/>
( 6 ) df-h t/date View disk space usage
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/9A/5A/wKioL1lUqOHhewTbAACIV0jSP-o406.jpg "title=" Image006.jpg "alt=" Wkiol1luqohhewtbaaciv0jsp-o406.jpg "/>
( 7 ) Fix I node several faults, understanding I after the node exhausts the root knot of the failure, the problem is resolved, just to find out that the partition occupies a large number of I node's small files, and run transfer or delete to
method One: rm-rf/date/file*
Method Two: Vim Jiaoben
A= ' Find/date-type f-a-empty '
For B in $a
RM-RF $b
Done
This article is from the "Niche blog" blog, please be sure to keep this source http://xsboke.blog.51cto.com/12096269/1943151
Linux Failure handling: Disk resource exhaustion failure