Linux increase disk size - nimrody/knowledgebase GitHub Wiki

For the record – I did manage to increase the disk size without a reboot this time 😊

  1. Resized disk in vSphere webui.
  2. 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)
  3. growpart /dev/sda 2
  4. resize2fs /dev/sda2
  5. unlock ES: “sh ~/netlight-ndp/scripts/es-release-write-lock”