Providing Block Storage Capacity for an Instance

To provide block storage capacity for an Compute Classic instance, you must create one or more storage volumes and attach them to the instance.

Task Procedure / CLI Command
1. Create a storage volume. storage-volume add
2. Check whether the storage volume is created. storage-volume get

After the volume is created, the status field shows online.

3. Attach the storage volume to your instance. storage-attachment add

In the response, note the name of the storage attachment.

4. Check whether the volume is attached. storage-attachment get

After the volume is attached, the state field shows attached.

5. Mount and format the disk that you just attached. See Mounting and Unmounting a Storage Volume in Using Oracle Cloud Infrastructure Compute Classic.

See Also:

About Storage Volumes in Using Oracle Cloud Infrastructure Compute Classic.