associate-gce-disk

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.

Example usage

  cloudmin associate-gce-disk --name test4 --add-host 1.2.3.4
  Associating 1.2.3.4 with disk test4 ..
  .. done

  cloudmin associate-gce-disk --name test4 --remove-host 1.2.3.4
  Disassociating 1.2.3.4 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]