ext4 non-stop online capacity expansion
1, modify the virtual machine disk capacity size
2, re-recognizing the size of disk capacity
# ls /sys/class/scsi_disk/ # echo 1 > /sys/class/scsi_disk/2\:0\:1\:0/device/rescan # fdisk -l
3, adjust the size of the target partition
The fdisk # / dev / SDB D n- P . 1 (before filling in the starting block id) WQ # # reload the partprobe partition information # resize2fs / dev / sdb1 # reload partition size # df -hT # review partition size expansion
XFS file system non-stop online capacity expansion:
1, modify the virtual machine disk capacity size
2, re-recognizing the size of disk capacity
# ls /sys/class/scsi_disk/ # echo 1 > /sys/class/scsi_disk/2\:0\:1\:0/device/rescan # fdisk -l
3, adjust the size of the target partition
The fdisk # / dev / SDB D n- P . 1 (before filling in the starting block id) WQ # # reload the partprobe partition information # xfs_growfs / dev / sdb1 # reload partition size # df -hT # review partition size expansion