Decreasing disk size on Google Virtual Machine Web Server [duplicate]

Solution 1:

You can only resize a zonal persistent disk to increase its size. You cannot reduce the size of a zonal persistent disk.

When storage parameters cannot be changed, create new storage. Get out and adapt a storage migration playbook.

One way to do so is with logical volumes. With Linux LVM:

  • Make the LV fit the new size with lvreduce --resizefs
  • Add a smaller disk with vgextend
  • pvmove to the smaller disk
  • vgreduce the old PV