dcos storage profile deactivate



Deactivate an active volume profile.

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 deactivate

Deactivate an active volume profile.


Required arguments:

<name>     The name of the volume profile.

Volume 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 created with a volume profile that has been deactivated.

You can reactivate a deactivated profile using the reactivate command.

dcos storage profile deactivate --name <name> [flags]


  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": {}

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

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

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


Name Description
--name string The name of the volume profile (required).

Options inherited from parent commands

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