# Gyro Cloud Istanbul: adding and growing additional disks

https://www.gyrohosting.com/en/knowledgebase/article/gyro-cloud-istanbul-additional-disks

- **What you will learn**: How to add, grow and remove additional SSD disks, their price and limits, and how to prepare a new disk inside the server.
- **Time**: 7 minutes

## 1. What is an additional disk?

A separate disk attached to your server, stored in our Istanbul data centre. It adds storage without changing your plan. There are two classes: fast **SSD** and large, low-cost **HDD — large storage** (table below).

- **Size:** multiples of 10 GB; a disk can **grow but cannot shrink**.
- **Limit:** up to **4 additional disks** per server (shared by both classes); SSD **500 GB**, HDD **2 TB** in total (open a ticket for more).
- **Price (SSD):** **0.09 €** per GB-month (0.90 € a month for 10 GB instead of the list price of 0.99 €, 9% off; the TL amount is shown in the panel), metered **hourly** and deducted from your prepaid balance from the hour you add the disk until the hour you delete it; each disk is billed at least **1 hour**.
- The disk is **empty**: partition, format and mount it inside the server (Section 3).

### Two disk classes: SSD and HDD (large storage)

|  | SSD disk | HDD — large storage |
| --- | --- | --- |
| Use | databases, applications, frequently changing data | backups, archives, media, logs, large rarely changing files |
| Price | 0.09 € per GB-month (10 GB 0.90 €; list 0.99 €, 9% off) | 0.035 € per GB-month (10 GB 0.35 €; list 0.49 €, 28% off) |
| Per server | up to 500 GB | up to 2 TB |
| Storage | RAID1 SSD | RAIDZ2 HDD pool (survives two disk failures) |

> **Important**
> 
> Do not put databases or write-heavy applications on an **HDD** disk; it will be slow. HDD is for large, low-cost space. If unsure, choose SSD.

> **Warning**
> 
> Additional disks (SSD and HDD) are **not backups.** RAID/RAIDZ2 protects against disk failure, not against deletion, wrong commands or reinstalling; back up important data separately. **Reinstalling the operating system deletes the additional disks.**

## 2. Adding, growing and deleting a disk in the panel

1. Open **Storage** > **Additional disks** on your server's **Manage** tab. Your remaining allowance and the current price are shown at the top.
2. Click **Add**, choose the **Type** — **SSD (fast)** or **HDD — large storage** — enter the size in GB (10, 20, 30 …) and confirm. Within seconds the disk appears in the server as a new empty disk (e.g. `/dev/sdb`).
3. To grow a disk click **Resize** on its row and enter a larger size. Growing works while the server is running.
4. To delete, click **Delete** and confirm. The disk is deleted **with all its data**; billing stops.

> **Note**
> 
> A disk **cannot grow while the server has snapshots.** Delete the snapshots, grow, then take a new snapshot.

## 3. Preparing the new disk (Linux)

The short example below gets a disk working quickly. For a step-by-step walkthrough see [Using an additional disk on your server](https://www.gyrohosting.com/en/knowledgebase/article/gyro-cloud-istanbul-using-additional-disk); for after growing see [expanding disk space](https://www.gyrohosting.com/en/knowledgebase/article/gyro-cloud-istanbul-expanding-disk-space).

```
lsblk                                   # new disk, e.g. sdb (10G)
mkfs.ext4 /dev/sdb
mkdir -p /data
mount /dev/sdb /data
echo "UUID=$(blkid -s UUID -o value /dev/sdb) /data ext4 defaults,nofail 0 2" >> /etc/fstab
```

**After growing**, extend the file system:

```
resize2fs /dev/sdb          # ext4 without partitions
# xfs: xfs_growfs /data
# with a partition: growpart /dev/sdb 1 && resize2fs /dev/sdb1
```

If the new size does not show up: `echo 1 > /sys/class/block/sdb/device/rescan`.

## 4. Limits and price example

| Size | Monthly | Hourly |
| --- | --- | --- |
| 10 GB | 0.90 € | ≈ 0.0013 € |
| 100 GB | 9.00 € | ≈ 0.013 € |
| 500 GB | 45.00 € | ≈ 0.067 € |

The hourly amount is 1/672 of the monthly price; you never pay more than the monthly amount in a month. A grown disk is billed at its new size from the next hour. Each disk is its own line ("Ek disk 1 (100 GB)") in the spending view.

## 5. CLI, API and Terraform

```
gyro server disk list 12345
gyro server disk add 12345 --size-gb 50 --yes
gyro server disk add 12345 --size-gb 500 --class hdd --yes   # large storage
gyro server disk resize 12345 2001 --size-gb 100 --yes
gyro server disk remove 12345 2001 --yes
```

```
curl -X POST -H "Authorization: Bearer $GYRO_TOKEN" -H "Content-Type: application/json" \
     -d '{"size_gb":50}' https://www.gyrohosting.com/api/v1/client/cloud/servers/12345/disks
```

```
resource "gyro_server_disk" "data" {
  server_id = gyro_server.web.id
  size_gb   = 100
}
```

## 6. Frequently asked questions

**How much does an additional disk cost?**

0.09 € per GB-month (TL amount in the panel), metered hourly.

**SSD or HDD?**

SSD for databases, website files and applications; HDD for backups, archives and media. If unsure, choose SSD.

**Can I shrink a disk?**

No. Add a new smaller disk, move your data and delete the old one.

**Can I move a disk to another server?**

No, it stays attached to its server.

**What happens if I delete the server?**

Its additional disks are deleted with it and billing stops.

## Next step

- [Using an additional disk on your server (partition, format, mount permanently)](https://www.gyrohosting.com/en/knowledgebase/article/gyro-cloud-istanbul-using-additional-disk)
- [Expanding disk space after growing a disk](https://www.gyrohosting.com/en/knowledgebase/article/gyro-cloud-istanbul-expanding-disk-space)
- [Plan upgrade](https://www.gyrohosting.com/en/knowledgebase/article/gyro-cloud-istanbul-resize-and-hostname)
