1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
例子 umount /opt umount: /opt: device is busy. (In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
fuser -m /opt kill掉进程 e2fsck -f /dev/VolGroup/LogVol02 resize2fs -f /dev/VolGroup/LogVol02 -f 100G lvreduce -L100G /dev/VolGroup/LogVol02 mount /dev/VolGroup/LogVol02 启动一些服务 /usr/local/ntp/sbin/ntpd -c /etc/ntp.conf -p /tmp/ntpd.pid sh /opt/src/jira/bin/startup.sh lvextend -L 180G /dev/VolGroup/LogVol01 resize2fs /dev/VolGroup/LogVol01 卷组 df -h /dev/sda6 vgextend vg1 /dev/sda6 注意在扩容要注意,扩容后的逻辑卷的空间一定要小于卷组的空间
|
本文转自 liqius 51CTO博客,原文链接:http://blog.51cto.com/szgb17/1782442,如需转载请自行联系原作者