DEV Community

Bonthu Durga Prasad
Bonthu Durga Prasad

Posted on

OCI Block Volume Deep Dive

In modern cloud environments, storage plays a critical role in application performance and reliability. In Oracle Cloud Infrastructure (OCI), Block Volume provides scalable, high-performance storage that can be attached to compute instances.

This article provides a deep dive into OCI Block Volume, covering architecture, performance concepts such as VPUs and autotuning, attachment methods including iSCSI and paravirtualized, hands-on commands, monitoring, and real-world troubleshooting scenarios.

What is OCI Block Volume

OCI Block Volume is a network-based storage service that provides persistent storage for compute instances.

It is commonly used for:

  • Databases
  • Application storage
  • Boot volumes
  • High-performance workloads

Architecture Overview

Architecture Diagram

Compute Instance


Attachment Layer (iSCSI / Paravirtualized)


OCI Block Volume Service


Distributed Storage Backend

OCI Block Volume is decoupled from compute, meaning storage persists even if the instance is terminated. Data is replicated across multiple storage servers to ensure high availability and durability.

Types of Volumes

OCI provides different types of volumes:

  • Boot Volume → Used for operating system
  • Block Volume → Used for application data
  • Volume Backups → Used for snapshots and recovery

Performance

Performance in OCI Block Volume is defined using VPUs (Volume Performance Units per GB).

Higher VPUs provide higher IOPS and throughput.

10 VPUs → Low cost workloads

20 VPUs → Balanced workloads

30+ VPUs → High-performance workloads

Autotuning (Dynamic Scaling)

Autotuning allows OCI to automatically adjust volume performance based on workload demand.

Workload increase → Performance increases

Workload decrease → Cost optimized

Attachment Types

  1. iSCSI Attachment
    Uses TCP/IP-based storage communication and requires manual setup.

  2. Paravirtualized Attachment

Uses OCI optimized drivers and provides better performance with simpler setup.

When to Use What

Use Paravirtualized when:

  • Simplicity is required
  • Standard workloads

Use iSCSI when:

  • Maximum performance is required
  • Fine-grained control is needed

Best Practices

  • Use paravirtualized attachments when possible
  • Enable autotuning
  • Separate volumes for OS, logs, and database
  • Monitor performance regularly
  • Choose correct VPU levels

Conclusion

OCI Block Volume provides flexible and scalable storage for cloud workloads. By understanding architecture, performance tuning, and attachment methods, engineers can design efficient and reliable storage systems in OCI.

Proper monitoring and tuning help avoid performance bottlenecks and ensure optimal system behavior.

Top comments (0)