Ali cloud Centos6 data disk expansion Problem

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/bowei026/article/details/90721910

Ali cloud expansion of processing official documents  https://help.aliyun.com/document_detail/25452.html

However, because the operation executor Ali cloud expansion of the background operation is not performed in accordance with the document, and not a technical person, leading to subsequent processing encountered a problem.

First, the hard disk is unmounted fail

1, to find all the processes executing on a data disk, and then kill all

lsof | grep / home (/ home is the mount point) and then kill -9 process ID

2, forcing an unmount

umount -l /home

3, data disk canceled automatically mount script

vi / etc / fstab automatically mount point Zhushidiao statements, will not automatically restart when the loading of data disc system, such as

# / Dev / vdb1 / home ext4 defaults 0 0 comment out this line

Second, the state of the file system does not (ie not clean)

Run e2fsck -n / dev file system errors displayed, and the file is not a clean state after / vdb1 command, you need to execute the following command to repair

fsck -y /dev/vdb1

File status is recovered, you experience problems several times to restart the system, basically will not encounter other problems.

This concludes this article, it may be more concerned about the number of public and personal micro signal:

Guess you like

Origin blog.csdn.net/bowei026/article/details/90721910