First, Introduction
In the process of using a Linux system, it is sometimes found that there is not enough space in the system root directory (/) to cause the system to run very slowly, for this phenomenon, this article details the spatial extension method of the root directory (/).
Second, the Operation procedure
1) View the root directory size
Df
2) Find the system has no free space, found that the system has not used the hard disk/dev/sdb
Fdisk-l
3) partition the disk/dev/sdb by executing the following instruction in turn
Fdisk/dev/sdb
N
P
1
Enter
Enter
T
8e
W
4) Expand the original logical volume by executing the following instructions in turn
/dev//DEV/SDB1
5) View current logical volume free space
Vgdisplay
6) Expand the available space to the logical volume where the root directory resides
Lvresize-l +80g/dev/volgroup00/logvol01
7) Rebuilding the file system
Resize2fs/dev/volgroup00/logvol01
Reference: http://jingyan.baidu.com/article/a24b33cd5bb5b019fe002bb9.html
Linux Extensions root directory