resize_disk¶
Resizes disk with IaaS-native methods. Assume that disk was detached from all VMs. Set property director.enable_cpi_resize_disk to true to have the Director call this method.
Depending on the capabilities of the underlying infrastructure, this method may raise an Bosh::Clouds::NotSupported error when the new_size is smaller than the current disk size. The same error is raised when the method is not implemented.
If Bosh::Clouds::NotSupported is raised, the Director falls back to creating a new disk and copying data.
Arguments¶
disk_cid[String]: Cloud ID of the disk to resize; returned fromcreate_disk.new_size[Integer]: New disk size in MiB.
Result¶
No return value
Examples¶
Implementations¶
- cloudfoundry/bosh-openstack-cpi-release
- cloudfoundry/bosh-aws-cpi-release
- cloudfoundry/bosh-google-cpi-release