Attach a Volume to a VM

You can provide or increase block storage capacity for an instance by attaching storage volumes.

  1. Sign in to the Compute Classic console.
  2. Click the Storage tab.
  3. Identify the storage volume that you want to attach. From the menu icon menu, select Attach Instance.
  4. Select the instance to which you want to attach the volume.
  5. The Attach as Disk # field is filled automatically with the next available index at which the volume can be attached. You can leave this field at the automatically selected disk number or enter a higher number up to 10.

    The disk number that you specify here determines the device name. The disk attached at index 1 is named /dev/xvdb, the disk at index 2 is /dev/xvdc, the disk at index 3 is /dev/xvdd, and so on.

    Make a note of the disk number. You’ll need it later when you mount the storage volume on the instance.

  6. Click Attach.

After attaching a storage volume to an instance, to access the block storage, you must mount the storage volume on your instance. See Mount a Volume.