linux 磁盘扩容的命令记录,扩容500G
1 df -h 2 fdisk -l 3 clear 4 df -h 5 reboot 6 df -h 7 fdisk -l 8 fdisk /dev/sda 9 reboot 10 df -h 11 fdisk -l 12 pvcreate /dev/sda4 13 pvdisplay 14 vgextend centos /dev/sda4 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 23 clear 24 xfs_growfs /dev/mapper/centos-root 25 df -h
怎么解释,额,不是我做的啦,,,,,,,,
单丝你阔以侃侃 :)