dcos storage profile reactivate

ENTERPRISE

BETA

Activate a profile that has been deactivated.

WARNING: Beta Software This software may contain bugs, incomplete features, incorrect documentation, or other discrepancies. Contact Mesosphere before deploying a beta candidate service. Product support is available to approved participants in the beta test program. Contact support@mesosphere.io for information about participation.

dcos storage profile reactivate

Activate a profile that has been deactivated.

Synopsis

Arguments:

<name>     The name of the volume profile.

Profiles cannot be changed once they have been created (i.e., they are immutable) and they also cannot be removed. Instead of removing volume profiles, you can deactivate a volume profile. No new volumes can be associated with a volume profile that has been deactivated.

This command activates a volume profile that has been deactivated. This means volumes can be created once more using that volume profile. When a volume profile is first created it is active by default.

dcos storage profile reactivate <name> [flags]

Examples

  1. Create a volume profile then deactivate it and try to create a volume of that profile:
# Create the 'safe' profile.
$ cat <<EOF | dcos storage profile create
{
    "name": "safe",
    "description": "Volumes backed by RAID-1 devices.",
    "spec": {
        "provider-selector": {
            "plugin": "lvm",
            "matches": {
                "labels": {"raid": "1"}
            }
        },
        "mount": {}
    }
}
EOF

# Create a volume from volume profile 'safe'.
$ dcos storage volume create my-volume-1 10G safe

# Deactivate the 'safe' volume profile.
$ dcos storage profile deactivate safe

# Try and create a new volume from volume profile 'safe'.
$ dcos storage volume create my-volume-2 10G safe
Error: Profile is not active.

# Reactivate the 'safe' volume profile again.
$ dcos storage profile reactivate safe

# Now create a new volume from volume profile 'safe'.
$ dcos storage volume create my-volume-2 10G safe

Options inherited from parent commands

Name Description
-h,--help Help for this command.
--timeout duration Override the default request timeout. (default 55s)