Linux increase disk size - nimrody/knowledgebase GitHub Wiki
For the record – I did manage to increase the disk size without a reboot this time 😊
- Resized disk in vSphere webui.
- If “lsblk” does not show the increased size (it does not - for ndp-05 – for some reason). Run this: a. echo 1 > /sys/class/scsi_disk/32:0:0:0/device/rescan b. (the actual disk identifier after /scsi_disk/ might be different on a specific vm) c. Verify the new size using “lsblk” (dmesg also gives a message about the new disk size)
- growpart /dev/sda 2
- resize2fs /dev/sda2
- unlock ES: “sh ~/netlight-ndp/scripts/es-release-write-lock”