Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: minor update re zero-downtime resize

...

At this point it'll be simplest to open your vmware client, resize the VM's disk 2 to the desired new size and then reboot the VM to make it pick up the size change.

If you would like to avoid any downtime and not reboot, that's also possible if your virtualisation system allows adding disks "on the go": Virtualbox doesn't allow that, Vmware does. Please note that vmware doesn't let you resize disks if there are any snapshots present; if that is the case, then these snapshots must be removed before the resize can occur.

...

When the VM boots the newly resized disk 2 aka /dev/sdb will be detected but volume group and logical volume still need to be told about the change of 'hardware'. (If you did add disks on the go, the OS should have picked them up dynamically and they should show up as /dev/sdc, sdd etc.)

 Login as root, then run

Code Block
themeEmacs
pvresize /dev/sdb

...