# Attach Volume/Block Storage to Instance

When you attach a volume to an instance, you assign a persistent block storage to the instance. All data stored on persistent storage is independent of the existence of the instance.

If something goes wrong with the instance, the data on the volume remains unaffected. You may spawn a new instance of the same type and attach the volume to the new instance, to access the data on the volume.

You must be a self-service user or an administrator to perform this operation.

To attach a volume to an instance, follow the steps given below.

1\. Log in to Clarity.

2\. Click Instances in the left panel.

3\. Select the checkbox for the instance to which you want to attach a volume.

<figure><img src="/files/9rGePNs3fJtETjgv8ZzL" alt=""><figcaption></figcaption></figure>

4\. Click More>Manage Volumes on the toolbar seen above the list of instances.

5\. Click Detached for the volume you wish to attach.

6\. Click Update Volumes.

You are now ready to deploy applications on the instance.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.platform9.com/managed-openstack/5.8/instances/virtual-machines-attach-volume-block-storage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
