Creating a Volume

You can create volumes that you can attach to FCU virtual machines (VMs) created within the same Subregion. Volumes enable you to add storage capacity to a VM if the root device has reached its storage capacity limit, or to separate the storage of your data from the operating system files of VM.

Creating a Volume Using Cockpit v2

You can also do this action in the Snapshots dashboard, by selecting a Snapshot, and clicking IconAddFull Create Volume in the displayed action menu.

  1. In the Volumes dashboard, click IconAddFull Create Volume.
    The CREATE VOLUME dialog box appears.

  2. In the Name field, type a name for the volume.

    This action adds a Name tag of 255 characters maximum. You can use any character, including accented letters.

  3. In the Size field, type a size for the volume or select it using the arrows.

    The minimum size allowed for a volume is:

    • 1 GiB for standard

    • 1 GiB for gp2

    • 4 GiB for io1

    The maximum size allowed for a volume is 14901 GiB.

  4. In the Type list, select a type for the volume:

    • standard for a Magnetic volume

    • io1 for an Enterprise volume

    • gp2 for a Performance volume

    For more information about the different types of volumes, see About Volumes > Volume Types and IOPS.

  5. (io1 volumes only) In the IOPS field, type the number of IOPS for the volumes or select it using the arrows.

    The maximum number of IOPS allowed for io1 volumes is 13000 with a maximum performance ratio of 300 IOPS per gibibyte.

  6. In the Snapshot list, leave None selected.

    To create a volume from a snapshot, you can select a snapshot in the Snapshot list. For more information, see Creating a Volume from a Snapshot.

  7. In the Subregion list, select the Subregion in which you want to create the volume.

    By default, the Subregion A is selected.

  8. In the Count field, type the number of volumes you want to create or select it using the arrows.

  9. Click Create Volume.
    The volume is created.

Creating a Volume Using Cockpit v1

  1. Click Storage > Volumes.

  2. Click Create .
    The CREATE VOLUME dialog box appears.

  3. In the Name field, type a name for the volume.

    This action adds a Name tag of 255 characters maximum. You can use any character, including accented letters.

  4. In the Size field, type the size of the volume in gibibytes (GiB) or select it using the arrows.

    The maximum size allowed for a volume is 14901 GiB.

  5. In the Type list, select a volume type:

    • standard for a Magnetic volume

    • io1 for an Enterprise volume

    • gp2 for a Performance volume

    For more information about the different types of volumes, see About Volumes > Volume Types and IOPS.

  6. (io1 volumes only) In the IOPS field, type the number of IOPS for the volume or select it using the arrows.

    The maximum number of IOPS allowed for io1 volumes is 13000 with a maximum performance ratio of 300 IOPS per gibibyte.

  7. In the Snapshot list, leave the None box checked.

    To create a volume from a snapshot, you can select a snapshot in the Snapshot list. For more information, see Creating a Volume from a Snapshot.

  8. In the Availability Zone list, select the Availability Zone in which you want to create the volume.

    By default, the Subregion A is selected.

  9. In the Count field, type the number of volumes you want to create or select it using the arrows.

  10. Click Create.
    The volume is created and appears on the Volumes page.

    To identify your resources more easily, you can add tags to them. For more information, see Tagging Your Resources.

Creating a Volume Using OSC CLI

See the CreateVolume command sample in the documentation of the OUTSCALE API.

Creating a Volume Using AWS CLI

To create a volume, use the create-volume command following this syntax:

Request sample
$ aws ec2 create-volume \
    --profile YOUR_PROFILE \
    --size 50 \
    --availability-zone eu-west-2a \
    --endpoint https://fcu.eu-west-2.outscale.com

This command contains the following attributes that you need to specify:

  • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • (optional) size: The size of the volume, in GiB.

    The maximum size allowed for a volume is 14901 GiB.

    This parameter is required if the volume is not created from a snapshot (snapshot-id unspecified).

  • (optional) volume-type: The type of the volume (standard | gp2 | io1). For more information about volume types, see About Volumes > Volume Types and IOPS.

    If not specified, a standard volume is created.

  • (optional) snapshot-id: The ID of the snapshot from which you want to create the volume.

  • (optional) iops: The number of IOPS.

    The maximum number of IOPS allowed for io1 volumes is 13000 with a maximum performance ratio of 300 IOPS per gibibyte.

    This parameter must be specified only if you create an io1 volume.

  • availability-zone: The Availability Zone where you want to place the volume.

  • endpoint: The endpoint corresponding to the Region you want to send the request to.

The create-volume command returns the following elements:

  • AvailabilityZone: The Availability Zone where the volume is created.

  • Tags: One or more tags associated with the volume.

  • VolumeType: The type of volume. For more information, see About Volumes > Volume Types and IOPS.

  • VolumeId: The ID of the volume.

  • State: The state of the volume (always creating when creating a volume).

  • Iops: The number of IOPS (only for gp2 and io1 volumes).

  • SnapshotId: The ID of the snapshot from which the volume is created.

  • CreateTime: The date and time of creation of the volume.

  • Size: The size of the volume (in GiB).

Result sample
{
    "AvailabilityZone": "eu-west-2a",
    "Tags": [],
    "VolumeType": "standard",
    "VolumeId": "vol-12345678",
    "State": "creating",
    "SnapshotId": null,
    "CreateTime": "2016-02-05T13:34:45.894Z",
    "Size": 50
}

The volume is created.

Related Pages

Corresponding API Methods

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.