pcloud compute volumes create
Create Volumes
Synopsis
Create Volumes for a Cloud
pcloud compute volumes create <VolumeName> --type <Type> [flags]
Options
-a, --affinityPolicy string Affinity policy for data volume being created.
Requires specifying --affinityVolume
Must be one of {"affinity", "anti-affinity"}:
- "affinity": Create the volume on the same volume pool as the affinityVolume.
- "anti-affinity": Create the volume on an alternative volume pool from the
affinityVolume with the most capacity.
-v, --affinityVolume string Volume (ID or Name) to base volume affinity policy against.
Required when providing --affinityPolicy.
-r, --enableReplication Indicates replication should be enabled
-h, --help help for create
-n, --number int Number of volumes to create (default 1)
-S, --shareable Indicates if the volume is shareable between VMs
-s, --size int Volume Size (GB) (default 10)
-T, --type string Storage type
Required except when providing --affinityPolicy.
Storage type depends on the region of your cloud and can only be set from a
short list of available values. You can list the available storage types of
your cloud by running the "pcloud compute clouds describe <cloudID>" command.
-p, --volumePool string Volume pool for new volume(s)
Options inherited from parent commands
-F, --format string Available formats: 'table', 'yaml', 'json', 'csv'.
Default is command specific.
Can be used with describe and list subcommands.
-D, --log.dir string Override Log file directory
-L, --log.file string Override Log file name
-V, --verbosity string Override Log verbosity
SEE ALSO
- pcloud compute volumes - Volume management commands