Managing Volumes
Managing storage volumes in Arvancloud Cloud Server.
Overview
The volume commands provide tools for managing persistent storage volumes (block storage). These volumes can be attached to servers to increase their storage space.
Alias: vol
Commands
1. Listing Volumes
Shows the list of all storage volumes, with filtering options.
arvan iaas volume list
Alias: ls
Flags:
--region,-r: filter by region (such asir-central1)--az,-a: filter by data center (such asir-central1-a)
Example:
$ arvan iaas volume list --az=ir-central1-a
Output:
ID NAME STATUS SIZE (GB) BOOTABLE ATTACHED TO AZ
v1a2b3c4-5678-90ab-cdef-123456789012 data-volume available 100 web-server-01 ir-central1-a
v2b3c4d5-6789-01bc-def0-234567890123 backup-vol available 50 ir-central1-a
v3c4d5e6-7890-12cd-ef01-345678901234 db-storage in-use 200 db-server-01 ir-central1-b
2. Showing Volume Details
Shows detailed information about a specific volume.
arvan iaas volume show <volume-id>
Alias: sh
Arguments:
volume-id(required): the volume ID
Example:
$ arvan iaas volume show v1a2b3c4-5678-90ab-cdef-123456789012
Output:
VOLUME DETAILS
--------------
ID: v1a2b3c4-5678-90ab-cdef-123456789012
Name: data-volume
Description: Data storage for web applications
Status: in-use
Size: 100 GB
Bootable: false
Type: ssd
AZ: ir-central1-a
Created: 2025-01-15T10:30:00Z
ATTACHMENTS
-----------
SERVER DEVICE ATTACHED AT
web-server-01 /dev/vdb 2025-01-15T11:00:00Z
3. Creating a Volume
Creates a new storage volume.
arvan iaas volume create
Alias: cr
Flags:
--name,-n: the name of the new volume (required)--description,-d: a description for the new volume--size,-s: the volume size in GB (required)--type,-t: the volume type--az,-a: the data center to create the volume in (required)
Example:
$ arvan iaas volume create --name=app-data --size=150 --az=ir-central1-a --description="Application data storage"
Output:
VOLUME CREATED
--------------
ID: v4d5e6f7-8901-23de-f012-456789012345
Name: app-data
Description: Application data storage
Size: 150 GB
AZ: ir-central1-a
Status: creating
Volume created successfully!
4. Attaching a Volume
Attaches a volume to a server.
arvan iaas volume attach <volume-id>
Alias: att
Arguments:
volume-id(required): the ID of the volume to attach
Flags:
--server,-s: the ID of the destination server (required)
Example:
$ arvan iaas volume attach v1a2b3c4-5678-90ab-cdef-123456789012 --server=srv-12345678
Output:
VOLUME ATTACHING
----------------
Volume: data-volume (v1a2b3c4-5678-90ab-cdef-123456789012)
Server: srv-12345678
Status: Attaching
5. Detaching a Volume
Detaches a volume from a server.
arvan iaas volume detach <volume-id> <server-id>
Alias: dtt
Arguments:
volume-id(required): the ID of the volume to detachserver-id(required): the ID of the server the volume is detached from
Flags:
--force,-f: skip confirmation
Example:
$ arvan iaas volume detach v1a2b3c4-5678-90ab-cdef-123456789012 srv-12345678
Output:
VOLUME DETACHING
----------------
Volume: data-volume (v1a2b3c4-5678-90ab-cdef-123456789012)
Server: srv-12345678
Status: Detaching
6. Setting Volume Properties
Updates volume properties such as the name and description.
arvan iaas volume set <volume-id>
Arguments:
volume-id(required): the ID of the volume to update
Flags:
--name,-n: a new name for the volume--description,-d: a new description for the volume
Example:
$ arvan iaas volume set v1a2b3c4-5678-90ab-cdef-123456789012 --name=prod-data --description="Production database storage"
Output:
VOLUME UPDATED
--------------
ID: v1a2b3c4-5678-90ab-cdef-123456789012
Name: prod-data
Description: Production database storage
Volume updated successfully!
7. Deleting a Volume
Deletes a storage volume.
arvan iaas volume delete <volume-id>
Alias: del
Arguments:
volume-id(required): the ID of the volume to delete
Flags:
--force,-f: skip confirmation
Example:
$ arvan iaas volume delete v1a2b3c4-5678-90ab-cdef-123456789012
Output:
VOLUME TO DELETE
----------------
ID: v1a2b3c4-5678-90ab-cdef-123456789012
Name: data-volume
Size: 100 GB
Status: available
AZ: ir-central1-a
Are you sure you want to delete volume 'data-volume'? (y/n) y
Volume deleted successfully!
8. Showing Volume Limits
Shows the volume space limits for a specific data center.
arvan iaas volume show-limits
Alias: sl
Flags:
--az,-a: the data center (required)
Example:
$ arvan iaas volume show-limits --az=ir-central1-a
Output:
VOLUME LIMITS - ir-central1-a
-----------------------------
Total Capacity: 1000 GB
Used: 350 GB
Available: 650 GB
Volume Count: 5
Max Volumes: 20
Command Reference
| Command | Alias | Description | Arguments |
|---|---|---|---|
volume list | ls | List all volumes | None |
volume show | sh | Show the details of a specific volume | <volume-id> |
volume create | cr | Create a new volume | None |
volume attach | att | Attach a volume to a server | <volume-id> |
volume detach | dtt | Detach a volume from a server | <volume-id> and <server-id> |
volume set | - | Update volume properties | <volume-id> |
volume delete | del | Delete a volume | <volume-id> |
volume show-limits | sl | Show the volume limits in an AZ | None |