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 (must be one of {"affinity", "anti-affinity"}, requires --affinityVolume to be specified)
- "affinity": uses the same storage provider that the specified affinityVolume was created in.
- "anti-affinity": uses any storage provider that is not the same as the storage provider the affinityVolume is in.
-v, --affinityVolume string Volume (ID or Name) to base volume affinity policy against (required if --affinityPolicy is provided)
-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 affinity is specified)
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