Install the nodes and build the cluster
Install vStack OS on each server, and then reboot the nodes: on first boot, they create the pools and start the management VM with Center on their own. The steps are the same on all nodes; only the node number and its addresses differ.
The image is self-contained: it holds the base system, the packages and the management VM template. You do not need internet access during installation.
Before you begin
- The servers and switches meet the hardware and network requirements.
- The number of nodes and the redundancy are decided. You cannot change them after installation: you cannot add a node to an assembled cluster.
- The switches are configured: LACP in
activemode or vPC, the required VLANs, MTU 9216 on the ports, IGMP snooping and querier in the VLANs of isolated networks. - An A record for the domain name of the Center web interface points to the
.250address in the public access network: for the192.0.2.0/24network, this is192.0.2.250. - UEFI and VT-x are enabled in the server settings, and the clock is set to UTC; an NTP server is reachable from the nodes. Enable VT-d if you plan to pass PCI devices through to VMs.
- You have the vStack OS boot image and access to the console of each server: physical or through Virtual media of the management interface. The vStack repository serves the image to allowed addresses — request access from vStack support.
- The checklist is filled in — see the table below. The cluster parameters must match on all nodes.
| No. | Parameter | Example | Note |
|---|---|---|---|
| 1 | First storage disk | da1 | the installer takes as many consecutive disks as there are pools in the cluster |
| 2 | Aggregates: name, ports, MTU, address | lagg10: ix0,ix1, 9000; lagg20: mce0,mce1, 9000 | the second aggregate — if the node has four ports |
| 3 | Number of nodes | 5 | 4 by default |
| 4 | Redundancy ("N plus") | 2 | from 1 to 3 |
| 5 | Cluster ID | 321 | from 1 to 999 |
| 6–9 | VLANs of the cluster network, the VXLAN network, the public access network and the storage network | 1001, 1002, 1003, 1004 | installer defaults; the storage network is the native VLAN of the ports |
| 10 | Public access network | 192.0.2.0/24 | — |
| 11 | Default gateway | 192.0.2.1 | an address from the public access network |
| 12 | VLANs of routed VM networks | 1010-1060 | — |
| 13 | Domain name of the Center web interface | mgmtvm.q321.example.com | A record pointing to the .250 address |
| 14 | VM console address (WSS URL) | wss://mgmtvm.q321.example.com/.wss | — |
| 15 | KMS server name for Windows images | kms.example.com | — |
Choose the port layout
Choose one layout for the whole cluster; it determines whether you need the second aggregate.
| Separate port pairs for VM networks (SDN) and storage (SDS) | One port pair | |
|---|---|---|
| Aggregates | lagg10 — VXLAN and public access; lagg20 — the cluster network and storage | lagg10 only |
| Ports | 2 per aggregate | 2 per node |
| Step for entering the second aggregate name | enter lagg20 and its parameters | press Ctrl-C |
| When to choose | storage traffic must be separated from VM network traffic | the node or the switch has enough ports for only one aggregate |
1. Set the cluster composition
- Take the
memstick.imgimage and check its sha512 against theiso/memstick.imgline in themanifestfile of the same release. Thedisc1.isoof the same release does not fit: it has no vStack components. - Attach the image through Virtual media or write it to a boot medium: the image takes about 10 GB.
- Boot the server from the medium and click Install on the welcome screen.
- Select Continue with default keymap and click Select.
- Specify the first storage disk — item 1 of the checklist.
- Specify the cluster ID, the number of nodes and the redundancy — items 3–5 of the checklist.
- Specify the number of this node. It is unique in the cluster.
- Enter the VM console address (WSS URL) — item 14 of the checklist. Specify the address with the scheme:
wss://…. - Specify the VLAN range of routed networks — item 12 of the checklist.
- Specify the KMS server name — item 15 of the checklist.
2. Configure the network
Do not change the aggregate names lagg10 and lagg20 or the node name format. The node configuration relies on them, and the configuration generator does not accept a name in another format — you will have to reinstall the node.
- Keep
lagg10as the name of the first aggregate. - In the aggregate form, select two ports, set Aggregation Protocol to
lacp, and set MTU to9000. The form suggests 9216, but no more than 9000 gets into the node configuration. - Enter the address and prefix of the aggregate: the last octet is 100 + the node number; for the first node, for example,
192.0.2.101/24. - Set up the second aggregate in the same form, with the name
lagg20. On Mellanox adapters, the ports are namedmce0andmce1; do not set an MTU above 9000 for them. If there is no second aggregate, press Ctrl-C at the name entry step — Choose the port layout. - Fill in the VLAN form: for each network, specify the VLAN, the network address and the aggregate — items 6–10 of the checklist.
- Specify the default gateway — item 11 of the checklist.
- Specify the node name strictly in the form
q<cluster ID>u<three-digit node number>: for cluster 321 and node 1, it isq321u001.
3. Partition the system disk and finish the installation
- On the component selection screen, click Ok, then select Manual.
- Click Create, select GPT, and create an efi partition, a root file system and a swap partition (SWAP).
- Click Finish, then Commit. Two progress bars run.
- In the boot configuration window, click No and enter the entry name.
- Enter the
rootpassword twice. - In the network configuration window, click Cancel: the network is already configured.
- Select the UTC time zone: Yes if the server firmware clock is set to UTC; No if you do not know, and then specify the UTC zone. Check the date and time and click Skip.
- Leave the services and security options at their defaults —
ntpdis already enabled in them. Do not create additional users — No. - In the final configuration window, select Exit and click Ok. For several minutes there is no progress bar: the node is deploying the images. Do not interrupt the installation.
- Wait for the packages to install and click No to finish the installation.
Repeat steps 1–3 on each node.
4. Build the cluster
- Make sure that vStack OS is installed on all nodes.
- Reboot all nodes with the Reboot button. They do not have to reboot at exactly the same time, but stay within 30 minutes: this is how long each node waits for an iSCSI connection with the others.
- Wait until the nodes create the pools and deploy the OS images to them. A node that has finished this stage waits for the others again.
- Wait until the management VM with Center comes up.
Check the result
- On any node, over SSH, make sure that
hostnamereturns a name likeq321u001. - Check the aggregates:
ifconfig lagg10andifconfig lagg20showlaggproto lacp, MTU 9000, and both ports have theACTIVE,COLLECTINGandDISTRIBUTINGflags. - Check the cluster:
vstack-cluster statusshows all nodes asONLINEand thezpool_z01… pools asSTARTED, one per node. How to read the output — View the cluster state on a node. - Open
https://<web interface domain name>in a browser and sign in — Sign in to the web interface. - In the web interface, open Provider Data Center → the cluster name → the Resources tab: all nodes and pools show Normal — View the cluster state.
The installation enables VM disk access over the network by itself: VMs can be started on any node of the cluster, and their disks reach them from the pool node over the isolated networks segment. No separate network is needed for it — VM on another node.
If it did not work
- An aggregate port has no
COLLECTINGandDISTRIBUTINGflags. The link did not join the LACP aggregate: check that the mode isactiveand that both ports of the node are in the same vPC/LACP group. - A node timed out waiting for the others. The connection to all nodes did not come up within 30 minutes, and the node aborted the cluster assembly; it retries at the next boot. Bring up the lagging nodes, then reboot the node that timed out.
- The cluster does not assemble. On each node, compare the node number, the number of nodes and the redundancy with the checklist: duplicate node numbers and different cluster parameters prevent the cluster from assembling.
- The cluster does not start, and the time differs between nodes. Check the UTC time zone and access to NTP. Without time synchronization, the cluster does not start, and a time zone other than UTC disrupts guest OSes.
- An aggregate port fell back to MTU 1500. On Mellanox adapters, an MTU above 9000 rolls the interface back to 1500. Set 9000 on the aggregates and leave 9216 to the switch.
- The final configuration window "hangs". There is no progress while the images are deployed; the time depends on the speed of the medium and the disks.
If the nodes have assembled the cluster but the web interface does not open — Cluster web interface and API are unavailable.
Next
- First day with the cluster — what to do once the cluster is built.
- Secure cluster configuration