Skip to main content

Cluster storage (SDS)

Cluster storage is SDS (software-defined storage): vStack HCP has no separate storage array, and the storage is built in software from the disks of the nodes themselves. The disks are combined into ZFS pools, and each pool is built from one disk on each node. Each node holds one disk of each pool. Pools are named z01, z02 and so on.

At any moment, a pool is open on one node — its current node — and not on all nodes at once, as a shared datastore would be. This node reads and writes all disks of the pool: its own disk directly, the disks of its neighbors over the storage network. A virtual machine (VM) with disks in the pool can run on any node: if it is not on the current node, it accesses its disks over the network.

vStack OS creates the pools when the cluster is installed. In the Center web interface, you can view a pool, start, stop and suspend it and transfer it to another node, but you cannot create it or change its composition. Everything that happens to a pool also affects the VMs whose disks are on it.

Pool z01 in a cluster of four nodes: the pool is open on node 1, the disks of nodes 2–4 are connected to it over the storage network, a VM on node 2 gets its disks from node 1

In the diagram, the z01 pool is open on node 1: the node reads its own disk directly and the disks of its neighbors over the storage network. A VM on node 2 gets its disks from node 1 over the network. The other pools work the same way, each with its own current node.

Design rationale​

A pool built from the disks of all nodes tolerates a node failure: each pool loses one disk, not the whole pool. A ZFS pool cannot be opened on two nodes at once, so a pool has one current node. If this node fails, the cluster manager opens the pool on another one — Pool failover to another node.

Current node​

  • The current node failed — the cluster manager automatically opens the pool on another node — Pool failover to another node.
  • The node came back — the pool does not return to it automatically. You can move it back manually — Manual pool transfer.
  • The Current node field in the web interface is updated with a delay of up to a minute: Center reconciles it with the cluster manager every 60 seconds.

Redundancy​

Redundancy is set once, when vStack OS is installed, as a number from 1 to 3 (N+1…N+3). Each pool is built as RAID-Z of the same level. Pool composition and redundancy are not configured in Center.

  • What it withstands. A pool works as long as it has lost no more disks than the redundancy level. A node failure takes one disk from each pool: a cluster of 7 nodes with redundancy 2 tolerates the failure of two nodes. Redundancy does not bring back deleted or corrupted data.
  • Capacity overhead. Parity takes as many pool disks as the redundancy level: on 4 nodes with N+2, half of the capacity.
  • Recommendation. For N+2, use 5 nodes or more. On 4 nodes, choose N+1 — Cluster manager. N+2 keeps the data when two nodes fail, but does not guarantee that the VMs restart automatically.
  • Recovery. When a node returns, its disks usually rejoin the pools automatically, and ZFS restores redundancy. While recovery is in progress, VMs may run slower — Storage redundancy and disk recovery.

Pool disks are SSD and NVMe only. There are no storage tiers and no cache on separate disks: a pool inherits the characteristics of its disks.

Pool health values​

The current node of a pool reports its health every 2 minutes. The web interface reduces it to four values.

In the web interfaceWhen
Not definedthe pool is not started
Criticalthe pool is started, ZFS reports OFFLINE
Warningthe pool is started, ZFS reports DEGRADED: the pool runs with lower redundancy
Normalthe pool is started, the node has not reported a fault

If the VMs of a pool do not respond, check the pool on its node: zpool status <pool> — View the cluster state on a node.

Pool and VMs​

A VM runs as long as the pool with its disks runs. A VM can also run on a node other than the current node of the pool: then it accesses its disks over the network.

Pool actionWhat happens to the VMs of the pool
Stop poolVMs stop, including those on other nodes. If some VM could not be stopped, the pool keeps running
Start poolthe pool starts on the selected node. VMs that stopped together with the pool do not start automatically: Center considers them powered off on purpose
Suspend poolVMs are suspended: they do not run, but they are not powered off
Resume poolsuspended VMs continue running
Transfer pool, Soft transferVMs on the node of the pool are suspended and continue running on the new node; VMs of the pool on other nodes are powered off
Transfer pool, Hard TransferVMs stop and stay powered off after the transfer

Transfer pool changes the node that serves the pool, and the data stays on the same disks. Moving VM disks to another pool is a separate action: Move VM disks to another pool.

The z01 pool is special: the management VM with Center runs on it. If you stop, suspend or transfer it from the web interface, the web interface and API become unavailable, and only vStack support can start the pool again on the node — Management VM and Center.

Pool contents​

  • VMs — the VM description and its disks; all disks of one VM are in one pool.
  • Suspend service volume for each VM — the size of its RAM plus 128 MB.
  • VM snapshots — take space in the same pool — VM snapshots.
  • OS images — copies of the images on the pools.

The space allocated to disks can exceed the pool capacity, so estimate free space from the space actually used — Pool space has run out: writes in VMs fail. A virtual data center (VDC) quota limits the share of the VDC, while pool space is physical and shared by many VDCs.

What not to do​

  • Do not stop, suspend or transfer z01 from the web interface — the web interface and API become unavailable.
  • Do not rely on VMs starting automatically after a hard transfer or a pool stop — start them manually.

See also​