Create volume
volume_createCreate a new Longhorn volume by specifying name, size, and replica count, with optional settings for access mode, frontend, restore from backup, and more.
Instructions
Create a new Longhorn volume. Longhorn docs: https://longhorn.io/docs/1.12.1/nodes-and-volumes/volumes/create-volumes/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| size | Yes | Bytes, or a size string like "10Gi". | |
| extra | No | Additional Longhorn fields not covered by the named parameters above, merged verbatim into the request body. | |
| frontend | No | e.g. "blockdev" or "iscsi". | |
| accessMode | No | "rwo" or "rwx". | |
| fromBackup | No | Backup URL to restore from. | |
| backingImage | No | ||
| dataLocality | No | ||
| diskSelector | No | ||
| nodeSelector | No | ||
| numberOfReplicas | Yes | ||
| staleReplicaTimeout | No |