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 188.8.131.52 Associating 184.108.40.206 with disk test4 .. .. done cloudmin associate-gce-disk --name test4 --remove-host 220.127.116.11 Disassociating 18.104.22.168 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]