> For the complete documentation index, see [llms.txt](https://docs.plenit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.plenit.com/docs-en/productos/servers-2/how-to/how-to-resize-a-disk.md).

# How to Resize a Plenit Disk

Expanding a disk is straightforward. Shrinking it is not, because the current disk is not modified: you create a new smaller one, clone the system onto it, and then set it as the root disk instead of the original.

In this tutorial, you go through that entire process.

> #### 👍 What you get
>
> The server's root disk replaced with one of lower capacity, with the system cloned and booting normally. It is a long process: set aside time and do it without rushing.

> #### ❗️ Before touching anything, make sure there is a way back
>
> This procedure replaces the boot disk. Take a snapshot or a backup of the server before starting, so you have somewhere to go back to if something goes wrong.

### Before you start

* Log in to the Plenit platform.
* Have a **Servers** or **Remote Desktop** with the server whose disk you are going to shrink.
* Check that the data fits in the new size.

This last part is what causes the most failures: the new disk has to be larger than the space **used**, not than the total space of the current disk. Check the actual usage before choosing the size.

In Windows, from PowerShell:

```powershell
Get-Volume
```

On Linux:

```bash
df -h
```

> #### 🚧 Look at the used space, not the total
>
> If the current disk is 100 GB but only 35 GB are occupied, you can clone to a 60 GB disk without any problem.&#x20;
>
> What you cannot do is clone to a disk smaller than the data in use.

### Step 1. Create a new disk with the desired size

1. Open the Servers subscription from its card.
2. Open the subsection **Servers**, select the server and click **Edit** in the side menu.
3. Scroll down to **Disks**. There you can see the current root disk (in the example, `100 GB`).
4. Add a new disk, **connect it to the server**, set the new size (in the example, `60 GB`) and click **Create disk**.

When finished, the new disk appears in **Disks** alongside the original root.

{/\* 📸 CAPTURE 1 · Disks subsection · add disk, connect to server and set the new size \*/}

![Creation of the new smaller disk in the Disks subsection](https://REEMPLAZA-URL/servidores-howto-reducir-disco-01.png)

### Step 2. Prepare the server with the boot ISO

Cloning is done with the **AOMEI Backupper Linux**, which the platform provides as a boot ISO.

1. In the server panel, use the selector in the upper-right corner to add the ISO **AOMEI Backupper Linux** and confirm.
2. Click **Boot from ISO** and confirm. The server restarts and boots from the ISO.

When the restart finishes, the platform indicates that booting from the ISO has completed.

{/\* 📸 CAPTURE 2 · ISO selector with AOMEI Backupper Linux and the Boot from ISO icon \*/}

![Loading the boot ISO and the option to boot from ISO](https://REEMPLAZA-URL/servidores-howto-reducir-disco-02.png)

### Step 3. Clone the current disk to the new one

1. Connect to the server with the **Console** option in the panel. A window opens with console access.
2. In the application menu, open the **Clone** tab and choose **System Clone**.
3. Select the **new disk** as the destination and start the cloning. You can follow the progress on screen.
4. When finished, click **Finish** and then **turn off** the server from the panel.

> #### ❗️ During cloning, work through the console
>
> In this step you cannot use remote RDP connection: you have to operate from the **Console** in the panel. RDP access will not be available while the server boots from the ISO.

{/\* 📸 CAPTURE 3 · console with the Clone > System Clone tab and the new disk as the destination \*/}

![System cloning onto the new disk from the console](https://REEMPLAZA-URL/servidores-howto-reducir-disco-03.png)

### Step 4. Set the new disk as root

With the server powered off:

1. First disconnect the **ISO**.
2. Go into **Disks** and **disconnect the two disks** from each one's menu.
3. Connect the **cloned disk** as root. On the **Connect Volume**, answer **Yes** to "Do you want it to be root?".
4. Go back to the panel and **turn on** the machine.

{/\* 📸 CAPTURE 4 · Connect Volume screen with the option "Do you want it to be root?" set to Yes \*/}

![Connecting the cloned disk as the root disk](https://REEMPLAZA-URL/servidores-howto-reducir-disco-04.png)

### Verify the result

When the server boots, log in and confirm that the root disk is now the new one, with the reduced size:

```powershell
Get-Volume
```

```bash
df -h
```

If the system boots normally and the size is as expected, the reduction is complete. At this point, you can delete the original disk if you no longer need it.

### If something does not fit

| Symptom                                                 | Likely cause                                 | What to do                                                              |
| ------------------------------------------------------- | -------------------------------------------- | ----------------------------------------------------------------------- |
| The server does not boot after being powered on         | The cloned disk was not marked as root       | Power off, check in **Disks** that the clone is root and try again      |
| The cloning stops or fails                              | The new disk is smaller than the data in use | Create a disk larger than the used space (check `df -h` / `Get-Volume`) |
| You do not have access to the server during the process | You are trying to connect through RDP        | Use the **Console** in the panel while booting from the ISO             |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.plenit.com/docs-en/productos/servers-2/how-to/how-to-resize-a-disk.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
