Skip to main content

Persistent Block Storage

Okustera Persistent Block Storage provides durable, low-latency, distributed block volumes for Compute Instances and Managed Kubernetes stateful workloads via dynamic Container Storage Interface (CSI) provisioning.

Okustera Block & Object Storage Console


Architectural Highlights​

  • High-Durability NVMe Fabric: Enterprise flash storage automatically replicated across independent physical failure domains for high availability and fault tolerance.
  • Online Volume Expansion: Increase storage capacity on live, mounted volumes without VM reboots, downtime, or filesystem detachment.
  • Point-in-Time Volume Snapshots: Instantaneous, copy-on-write snapshots for rapid backups, disaster recovery, and test environment clones.
  • Bootable Volumes: Provision persistent bootable volumes directly from machine images to preserve instance root disks independently of compute lifecycles.
  • Native Kubernetes CSI: Dynamic provisioning of Kubernetes PersistentVolumeClaims (PVCs) that seamlessly detach and reattach across worker nodes during scaling and rolling upgrades.
  • Transparent Encryption at Rest: Optional AES-256 volume encryption backed by per-tenant keys in Okustera Secrets Vault with verifiable crypto-shredding on deletion.

Storage Tiers & Performance Profiles​

Choose the storage tier that best matches your workload's latency, throughput, and capacity requirements:

Storage TierMedia ProfilePerformance CharacteristicsRecommended Workloads
nvme-performanceAll-Flash NVMeHigh IOPS, sub-millisecond latencyProduction databases, transactional workloads, low-latency caches
ssd-balancedEnterprise SSDBalanced flash IOPS and predictable latencyStandard VM root disks, custom OS images, web applications
standard-blockBalanced Distributed BlockGeneral-purpose IOPS and steady throughputBackend application data, stateful Kubernetes pods, CI/CD runners
capacity-archiveHigh-Capacity StorageHigh sequential throughput, multi-TiB capacityCold archives, long-term snapshots, backup repositories
shared-posixShared Distributed Filesystem (ReadWriteMany)Concurrent multi-node read/write accessShared media assets, distributed ML datasets, multi-pod shared filesystems

Managing Block Storage in the Cloud Portal​

The Okustera Cloud Portal (/storage) provides complete visual volume lifecycle controls:

1. Creating a Persistent Volume​

  1. Navigate to Storage → Volumes in the left sidebar.
  2. Click Create Volume:
    • Volume Name: e.g., db-data-volume
    • Size (GB): e.g., 100
    • Storage Tier: Select nvme-performance (high IOPS) or standard-block (general purpose).
    • Source:
      • Empty Volume: Provision fresh unformatted block storage.
      • From Image: Provision a bootable volume pre-loaded with an OS image.
      • From Snapshot: Clone an existing point-in-time snapshot into a new independent volume.
  3. Click Create. The volume transitions to available within seconds.

2. Attaching a Volume to a Compute Instance​

  1. In the Volumes list, locate your volume and click Attach to Instance.
  2. Select your running compute instance (e.g., web-server-01).
  3. The volume attaches as a block device (e.g., /dev/vdb) in under 2 seconds.
  4. SSH into your instance to format and mount the device:
    # Format filesystem (first-time only)
    sudo mkfs.ext4 /dev/vdb

    # Mount to target directory
    sudo mkdir -p /mnt/data
    sudo mount /dev/vdb /mnt/data

3. Taking a Volume Snapshot​

  1. In the Volumes list, click Create Snapshot.
  2. Name the snapshot (e.g., db-data-snap-pre-upgrade).
  3. Copy-on-write snapshots complete instantaneously without pausing application writes.

4. Online Volume Expansion (Live Resize)​

To expand an attached volume without interrupting running applications:

  1. In the Cloud Portal, click Extend Volume on your target volume.
  2. Enter the new target capacity (e.g., from 100 GB to 200 GB).
  3. Click Confirm. The underlying block volume expands immediately.
  4. On the running instance, grow the filesystem online:
    sudo resize2fs /dev/vdb

Declarative Management via Terraform​

# 1. Create a 100 GB persistent block volume
resource "okustera_storage_volume" "database_data" {
name = "db-data-volume"
size = 100
volume_type = "nvme-performance"
encrypted = true
description = "Production database data volume"
}

# 2. Attach volume to a Compute Instance
resource "okustera_storage_volume_attachment" "db_attach" {
instance_id = okustera_compute_instance.web_server.id
volume_id = okustera_storage_volume.database_data.id
}

# 3. Create a point-in-time snapshot
resource "okustera_storage_snapshot" "db_snapshot" {
name = "db-data-snapshot-weekly"
volume_id = okustera_storage_volume.database_data.id
description = "Automated weekly snapshot"
}

Kubernetes PersistentVolumeClaim (PVC)​

When running stateful applications on Managed Kubernetes, provision persistent block storage dynamically using standard Kubernetes manifests:

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pg-data-pvc
namespace: default
spec:
accessModes:
- ReadWriteOnce
storageClassName: nvme-performance
resources:
requests:
storage: 50Gi

Okustera's Kubernetes CSI driver automatically provisions the requested block volume and attaches it to the worker node running your pod.


REST API Reference​

  • GET /api/v1/storage/volumes — List volumes in the current tenant project.
  • POST /api/v1/storage/volumes — Provision a new persistent block volume.
  • GET /api/v1/storage/volumes/{id} — Retrieve volume status, size, encryption state, and attachments.
  • DELETE /api/v1/storage/volumes/{id} — Delete an available volume.
  • POST /api/v1/storage/volumes/{id}/attach — Attach a volume to a compute instance.
  • POST /api/v1/storage/volumes/{id}/detach — Detach a volume from a compute instance.
  • GET /api/v1/storage/snapshots — List point-in-time volume snapshots.
  • POST /api/v1/storage/snapshots — Create a snapshot from an existing volume.