例子 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 注意在扩容要注意,扩容后的逻辑卷的空间一定要小于卷组的空间
时间: 2024-11-05 09:18:22