Associate a GCE disk with a system, or remove an association
This command connects an existing GCE disk with a running instance. The disk must be specified by using the
--name flag, and the system by the
--add-host flag followed by a hostname. You must also provide the
--project flag, followed by GCE project ID.
Breaking the association between a system and disk can be done with the
--remove-host flag, followed by the system's hostname. This will not harm any data on the volume, but may not take effect until it is un-mounted.
cloudmin associate-gce-disk --name test4 --add-host 22.214.171.124 Associating 126.96.36.199 with disk test4 .. .. done cloudmin associate-gce-disk --name test4 --remove-host 188.8.131.52 Disassociating 184.108.40.206 with disk test4 .. .. done
Command Line Help
Associate a GCE disk with a system, or remove an association. cloudmin associate-gce-disk --project number --name disk-name --add-host hostname | --remove-host hostname [--zone name] [--read-only] [--boot] [--device file-on-instance]