Linux Extensions root directory

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.