₹200 free credit when you verify after signup, plus your first recharge doubled. Credit after KYC, valid 15 days (extendable once). Bonus on first top-up of ₹500+, max ₹50,000, expires after 120 days. Promotional credit is never refunded as cash. Offer terms
Guides

A data disk per worker for Longhorn

The data disk add-on gives every worker node of a managed cluster its own disk, mounted at /var/lib/longhorn, the default Longhorn data path. Workers you add later get one automatically, a removed worker's disk is deleted, and the disks stay through upgrades.

By the BookMyHost Cloud team · Published · Updated · Prices read live from the BookMyHost Cloud rate card, in INR, excluding GST.

See VPS plansHourly billing, GST invoice, live in under a minute.

Turn it on

  1. Open the cluster

    In the panel go to Kubernetes and open the cluster. It must be running.

  2. Choose the size

    In Data disk per worker, enter the size per worker and press Add data disks. Every worker gets a disk of that size; control-plane nodes get none.

  3. Wait for Mounted

    The panel creates and attaches the disks, and a small system pod in the bmh-system namespace formats each blank disk as ext4 and mounts it at /var/lib/longhorn, with an /etc/fstab entry by UUID and nofail so it comes back after a reboot. Each worker shows Mounted when it is ready.

Safe by design

  • A disk that already holds a filesystem or a partition table is never formatted.
  • If /var/lib/longhorn on a worker already holds data (Longhorn running on the root disk), nothing is mounted over it; move or remove that data first.
  • Disks can only grow. Enter a larger size and press Grow disks; the filesystem grows online.

Use it with Longhorn

Install Longhorn as usual and keep its default data path, /var/lib/longhorn. Our block storage is already replicated, so Longhorn replicas on top store your data again: set the replica count to 1 or 2 (defaultSettings.defaultReplicaCount in the Helm values, and numberOfReplicas in your StorageClass). Three replicas only cost space.

Longhorn needs open-iscsi and nfs-common on the nodes; check with the Longhorn environment check script before you install.

Scaling and deleting

Scale up and each new worker gets its own disk. Scale down and the removed worker's disk is deleted once the node is gone, so evict that node in Longhorn first. Deleting the cluster deletes all its data disks.

To remove the add-on, stop Longhorn, then choose Remove and type the cluster name. Each disk is unmounted, detached and deleted with its data; a disk still in use stays mounted until it is free.

Billing

Data disks are billed per GB per month, hourly, for the GB attached, plus GST. They are billed on hourly and term clusters alike (a term price covers the nodes only) and also while a cluster is suspended, because the disks still exist. The panel shows the price and a monthly estimate before you turn it on.

API and MCP

The REST API has GET, PUT (size_gb) and DELETE (confirm) on /k8s/ID/data-disk. MCP offers get_cluster_data_disk, set_cluster_data_disk and disable_cluster_data_disk.

FAQ

Questions on this guide

Do I need three Longhorn replicas?

No. Our storage under the disks is already replicated, so 1 or 2 Longhorn replicas are enough; 2 also keeps a volume available while one worker is down.

Can I make the disks smaller?

No, they can only grow. To start smaller, remove the add-on (this deletes the data) and add it again.

What happens to the disks during a Kubernetes upgrade?

Nothing. Upgrades run in place, the disks stay attached and mounted.

Is my data kept when I scale down?

Not on the removed worker: its disk is deleted after the node is gone. Evict the node in Longhorn first so its replicas move to the other workers.

Try it on hourly billing

Start small, resize in place, switch to a term when the workload settles. GST invoice either way. Every new account starts with ₹200 of free credit.

Build a server
Get the app

Your cloud, in your pocket

Start, stop and reboot servers, open the console, watch live graphs, top up the wallet and chat with support, from the free BookMyHost Cloud app.

Get BookMyHost Cloud on Google Play iPhone app coming soon

See everything the app does →