---
title: "Resize file storage"
sidebar_label: "Resize file storage"
sidebar_position: 4
description: "How to resize file storage"
---

import Formbricks from '@theme/MDXComponents/Formbricks'

import CheckIcon from '@selectel/docux/icons/check'
import CopyIcon from '@selectel/docux/icons/copy'
import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
import {TabItemLabel} from '@selectel/docux/components'

# Resize file storage

:::warning

Once you increase the size of the file storage, it cannot be decreased. After you increase the storage, the tariff will change: we will refund the unused days of the previous tariff and charge for the new one.

:::

This instruction describes how to resize file storage created in the Control panel after June 13, 2023.

If you created the file storage via technical support before June 13, 2023, to resize the storage [create a ticket](https://my.selectel.ru/tickets/create/) and specify the new storage size in it.

<Tabs queryString="enlarge-file-storage">
  <TabItem value="panel" default>
    <TabItemLabel>
      Control panel
    </TabItemLabel>

    1. [Unmount the file storage from the server](/file-storage/manage/unmount-storage.mdx).

    2. In the [Control panel](https://my.selectel.ru/vpc/default/file-storage/), on the top menu, click **Products** and select **File Storage**.

    3. Open the file storage page → **Settings tab**.

    4. In the **Size** field, click **Change**.

    5. Specify the size of the file storage.

    6. Check the price of the file storage. After you increase the storage, the tariff will change: we will refund the unused days of the previous tariff and charge for the new one.

    7. Click <CheckIcon />.

    8. [Mount the file storage](/file-storage/manage/mount-storage.mdx) back to the server.
  </TabItem>

  <TabItem value="openstack">
    <TabItemLabel>
      OpenStack API
    </TabItemLabel>

    1. [Unmount the file storage from the server](/file-storage/manage/unmount-storage.mdx).

    2. [Get an IAM token for your project (X-Auth-Token)](/api/authorization/#iam-token-project-scoped).

    3. In the request output, copy the `X-Subject-Token` value.

    4. Open the CLI.

    5. Resize the file storage:

       ```bash
       curl 'https://<pool>.cloud.api.selcloud.ru/share/v2/shares/<filestorage_uuid>/action' \
         -H 'X-Auth-Token: <x_auth_token>' \
         -H 'Content-Type: application/json;charset=utf-8' \
         --data-raw '{"os-extend":{"new_size":<filestorage_size>}}'
       ```

       Specify:

       * `<pool>` — [pool](/infrastructure/locations.mdx#pool) in which the file storage is created, for example, `ru-9`. The address (URL) depends on the region and pool; you can view it in the [list of URLs](/api/urls/);
       * `<filestorage_uuid>` — file storage ID. You can find the ID in the [Control panel](https://my.selectel.ru/vpc/default/file-storage/): on the top menu, click **Products** and select **File Storage** → in the row with the required storage, click <CopyIcon />;
       * `<x_auth_token>` — IAM token for the project, which you copied in step 2;
       * `<filestorage_size>` — new file storage size in GB, for example, `150`. The volume limit is 50 TB.

    6. [Mount the file storage](/file-storage/manage/mount-storage.mdx) back to the server.
  </TabItem>
</Tabs>

<Formbricks />
