← 返回命令列表

Linux command

linode-cli-volumes 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List volumes

linode-cli volumes list

Create volume

linode-cli volumes create --label [my-volume] --size [20] --region [us-east]

Attach to Linode

linode-cli volumes attach [volume_id] --linode_id [linode_id]

Detach volume

linode-cli volumes detach [volume_id]

View volume

linode-cli volumes view [volume_id]

Resize volume

linode-cli volumes resize [volume_id] --size [40]

Delete volume

linode-cli volumes delete [volume_id]

说明

linode-cli volumes manages Linode block storage volumes. Volumes provide persistent storage for instances. The tool creates, attaches, resizes, and manages block storage independent of Linode lifecycle.

参数

list
List all volumes.
create
Create new volume.
attach _ID_
Attach to Linode.
detach _ID_
Detach from Linode.
view _ID_
View volume details.
resize _ID_
Resize volume (can only increase size).
clone _ID_
Clone volume to a new volume.
delete _ID_
Delete volume.
--label _NAME_
Volume name.
--size _GB_
Size in gigabytes (min: 10, max: 10240).
--region _REGION_
Region to create volume in (e.g., us-east).
--linode_id _ID_
Linode to attach volume to on creation.
--format _FORMAT_
Output format: json or text.
--help
Display help information.

FAQ

What is the linode-cli-volumes command used for?

linode-cli volumes manages Linode block storage volumes. Volumes provide persistent storage for instances. The tool creates, attaches, resizes, and manages block storage independent of Linode lifecycle.

How do I run a basic linode-cli-volumes example?

Run `linode-cli volumes list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does list do in linode-cli-volumes?

List all volumes.