> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# SET DEFAULT STORAGE VOLUME

> SET DEFAULT STORAGE VOLUME sets a storage volume as the default storage volume.

SET DEFAULT STORAGE VOLUME sets a storage volume as the default storage volume. After creating a storage volume for an external data source, you can set it as the default storage volume of your cluster. This feature is supported from v3.1.

> **CAUTION**
>
> * Only users with the ALTER privilege on a specific storage volume can perform this operation.
> * The default storage volume cannot be dropped or disabled.
> * You must set the default storage volume for a shared-data cluster because the database stores the system statistics information in the default storage volume.

## Syntax

```SQL theme={null}
SET <storage_volume_name> AS DEFAULT STORAGE VOLUME
```

## Parameters

| **Parameter** | **Description** |
| - | - |
| storage\_volume\_name | The name of the storage volume to be set as the default storage volume. |

## Examples

Example 1: Set the storage volume `my_s3_volume` as the default storage volume.

```SQL theme={null}
MySQL > SET my_s3_volume AS DEFAULT STORAGE VOLUME;
Query OK, 0 rows affected (0.01 sec)
```

## Relevant SQL statements

* [CREATE STORAGE VOLUME](/documents/4.2/sql-reference/sql-statements/cluster-management/storage_volume/CREATE_STORAGE_VOLUME.md)
* [ALTER STORAGE VOLUME](/documents/4.2/sql-reference/sql-statements/cluster-management/storage_volume/ALTER_STORAGE_VOLUME.md)
* [DROP STORAGE VOLUME](/documents/4.2/sql-reference/sql-statements/cluster-management/storage_volume/DROP_STORAGE_VOLUME.md)
* [DESC STORAGE VOLUME](/documents/4.2/sql-reference/sql-statements/cluster-management/storage_volume/DESC_STORAGE_VOLUME.md)
* [SHOW STORAGE VOLUMES](/documents/4.2/sql-reference/sql-statements/cluster-management/storage_volume/SHOW_STORAGE_VOLUMES.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.