记⼀次linux磁盘扩容的命令记录linux 磁盘扩容的命令记录,扩容500G
1df -h
2 fdisk -l
3clear
4df -h
5 reboot
6df -h
7 fdisk -l
8 fdisk /dev/sda
9 reboot
10df -h
11 fdisk -l
12 pvcreate /dev/sda4
13 pvdisplay
14 vgextend centos /dev/sda4
linux磁盘管理15 pvdisplay
16 lvresize -L +500G /dev/mapper/centos-root
17 lvresize -L +499G /dev/mapper/centos-root
18 lvresize -L +1G /dev/mapper/centos-root
19 lvresize -L +1024M /dev/mapper/centos-root
20 lvresize -L +1023M /dev/mapper/centos-root
21 lvresize -L +1022M /dev/mapper/centos-root
22 lvresize -L +1000M /dev/mapper/centos-root
23clear
24 xfs_growfs /dev/mapper/centos-root
25df -h
怎么解释,额,不是我做的啦,,,,,,,,
单丝你阔以侃侃 :)
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论