Block Storage · Bangkok 1
Extra disks that move with your work ฿4 per GB per month
Block Storage (Thai glossary) is an extra disk that keeps your data. It works like an external drive plugged into a VM or a container. The data stays when you redeploy, and you can unplug the volume and attach it to another machine.
- Largest volume
- 100 GiB
- Volumes per account
- 20 volumes
- Total per account
- 200 GiB
Creating and using a volume
-
Create a volume
Name it and choose a size in GiB in the console. Start with what you need now and grow it later.
-
Attach it to a VM or a container
Pick a machine in the same project. On a VM, format and mount the disk inside the machine the first time, using the commands the console gives you. On a container, set a mount path such as /data and a blank volume is formatted for you.
-
Use it like a normal disk
Read and write files as usual. The data lives on the volume, so it stays when you restart, deploy a new version or change the container image.
-
Grow it as it fills up
On a VM the disk grows while the machine runs; then run resize2fs inside it to use the new space. On a container the filesystem grows on the next restart or redeploy.
Encryption and container instances
- Encryption
- Data on a volume is encrypted at rest.
- Container instances
- A container with a volume attached runs as a single instance. If your app needs to scale out to many instances with traffic, keep its data elsewhere, such as a database on a VM.
Block Storage pricing
Billing is hourly, for the size you created, from the moment you create a volume until you delete it. It comes out of the credit you top up.
You size volumes in GiB (1,073,741,824 bytes) and pay per GB (1,000,000,000 bytes), so 1 GiB is billed as 1.074 GB.
| Volume size | Billed as | Per month |
|---|---|---|
| 10 GiB | 10.74 GB | ฿42.95 |
| 50 GiB | 53.69 GB | ฿214.75 |
| 100 GiB | 107.37 GB | ฿429.50 |
Example Block Storage setups
-
Cloud Compute
Keep database files, for example MySQL or PostgreSQL, on a volume apart from the VM's system disk.
50 GiB · /var/lib/mysql
-
Container Compute
A web app where customers upload photos or documents keeps the uploads on a volume, so they are still there after you deploy a new version.
20 GiB · /data
Block Storage questions
Can I move a volume from a VM to a container?
Yes. Unmount it inside the VM, detach it in the console, then attach it to a container in the same project.
To move a volume back and forth, keep ext4 on the whole disk with no partition table. A container formats a blank volume as ext4 by itself.
Can I shrink a volume?
No. A volume can only grow, up to 100 GiB.
Am I still billed after I detach a volume?
Yes. A volume is billed for the size you created until you delete it, attached or not.
If you no longer need it, delete the volume. All data on it is then destroyed for good and cannot be recovered.
Is there a free tier for Block Storage?
No. Every volume is billed from the first GB.
How do I back up the data on a volume?
Automatic daily backups (kept for 3 days) are a feature of VMs in Cloud Compute. If the data on a volume matters, keep your own second copy too, for example by exporting your database to a file.
Support answers backup questions 24/7, in Thai and English.
Get started with Block Storage
Sign in with GitHub, top up credit in Thai baht by PromptPay, TrueMoney Wallet, Internet Banking or Visa · Mastercard · JCB, then create your first volume in the console.