Creating a Storage Volume

A storage volume is a virtual disk that provides persistent block storage space for instances in Compute Classic. You can create storage volumes and attach them to instances to provide block storage capacity for storing data and applications. You can also associate a storage volume with a machine image, and then use the storage volume as the boot disk for an instance.

To complete this task, you must have the Compute_Operations role. If this role isn’t assigned to you or you’re not sure, then ask your system administrator to ensure that the role is assigned to you in Oracle Cloud Infrastructure Classic Console. See Modifying User Roles in Managing and Monitoring Oracle Cloud.


When an instance is deleted and re-created or shut down and restarted, storage volumes that were attached manually (that is, not attached automatically through the orchestration that was used to create the instance) must be attached again.


Before you begin, read the storage-related recommendations in Best Practices for Using Compute Classic.

  1. Sign in to the Compute Classic console. If your domain spans multiple sites, select the appropriate site. To change the site, click the Site menu near the top of the page.
  2. Click the Storage tab.
  3. Click Create Storage Volume.
  4. Select or enter the required information:
    • Enter a name for the storage volume. Note this name. You’ll need it later to search for the storage volume on the Storage page.

      Pick a name that you can use later to quickly identify the key characteristics of the storage volume.

    • To make this storage volume a boot disk, select a machine image in the Boot Image field. Later, while creating an instance, you can specify this volume as the boot disk for the instance.

      If you select a machine image with a large disk size, it may take a while for the storage volume to be created.

    • Enter the size, in GB, of the storage volume. The allowed range is 1 GB to 2 TB.

      Consider the storage capacity needs of the applications that you plan to deploy on the instance, and leave some room for attaching more storage volumes in the future. This approach helps you use the available block storage capacity efficiently in the long run.

      If you intend to use this storage volume as a boot disk, then the size must be at least 5% higher than the boot image disk size.


      You can increase the size of a storage volume after creating it, even if the storage volume is attached to an instance. See Increasing the Size of a Storage Volume. However, you can’t reduce the size of a storage volume after you’ve created it. So ensure that you don’t overestimate your storage requirement.

    • Select a storage property.

      Based on your latency and IOPS requirements, select one of the following storage properties.
      Storage Property Latency Throughput
      storage/default Standard Standard
      storage/latency Low High
      storage/ssd/gpl Lowest Highest

      If you select the storage property storage/latency, an SSD write cache is provided. When you hit this cache, you experience very high performance. When you miss the cache, you experience the same performance as you would if you had selected the storage/default property.

      If you select the storage property storage/ssd/gpl, you experience consistent high performance at all times, because the SSD cache is always used. This means that under high load conditions, a storage volume created with the property storage/ssd/gpl performs better than a storage volume created with the property storage/latency.


      SSD storage volumes aren’t available in all sites.

      The web console might show other storage properties. Don’t select any of them.

    • Enter a description for the storage volume.
  5. Click Create.

    The Storage page is displayed.

While the new storage volume is being created, the Status field for the storage volume shows Initializing.

When the storage volume is ready, the Status field changes to Online.

To view details of the new storage volume, search for it by using the name that you noted earlier. From the menu icon menu, select View.

To create a storage volume using the CLI, use the opc compute storage-volume add command. To attach a storage volume to an instance, you must add a storage attachment object, by using the opc compute storage-attachment add command. For help with these commands, run each command with the -h option. For the instructions to install the CLI client, see Preparing to Use the Compute Classic CLI in CLI Reference for Oracle Cloud Infrastructure Compute Classic.

To create a storage volume using the API, use the POST /storage/volume/ method. To attach a storage volume to an instance, you must add a storage attachment object, by using the POST /storage/attachment/ method. For more information about these API methods, see REST API for Oracle Cloud Infrastructure Compute Classic.

After creating a storage volume, you must attach the storage volume to an instance and then mount the storage volume on the instance. See Attaching a Storage Volume to an Instance and Mounting and Unmounting a Storage Volume.