Skip to main content
Resources

Built-in TopoLVM: Local Storage Without the Install

Published

Built-in TopoLVM: Local Storage Without the Install
Note

This resource is part of the Syself Autopilot 1.37 release. For the whole picture, see what's new in 1.37.

Local NVMe storage is one of the biggest advantages of running Kubernetes on bare-metal servers. Reads and writes go directly to the disk without a network hop. This makes it a good fit for workloads that need fast, low-latency storage, especially databases.

On Syself Autopilot, TopoLVM manages this local storage. It creates LVM logical volumes for PersistentVolumeClaims (PVCs) and makes them available through the standard CSI interface. In Syself Autopilot 1.36 and earlier, you had to install TopoLVM yourself and keep it updated during cluster upgrades.

With Syself Autopilot 1.37, TopoLVM is built into the Cluster Stack.

You no longer need to install or upgrade the storage driver manually. The platform installs it, configures it, and keeps it up to date with the cluster. You still need to prepare each bare-metal server's disks once.

What changed in Syself Autopilot 1.37? 

In 1.36, setting up TopoLVM required several manual steps. You had to render the syself/topolvm Helm chart with helm template, apply it with kubectl, and manage updates yourself.

Older chart versions, such as 1.3.0, also installed a PVC webhook that required cert-manager. The webhook sent every PVC creation in the cluster to the TopoLVM controller, regardless of the StorageClass. Because of its failurePolicy: Fail setting, PVC creation failed across the entire cluster whenever the controller was unavailable.

In 1.37, TopoLVM is part of the Cluster Stack, just like Cilium and the Hetzner CSI driver. Syself Autopilot installs, configures, and upgrades it automatically. Upstream TopoLVM has also dropped the PVC webhook, so the built-in version no longer needs cert-manager. Here's how the setup compares:

1.361.37
Who installs TopoLVMYouThe platform
cert-manager requiredOn older charts, yesNo
Upgrade pathManual chart updateAutomatic with the cluster
StorageClasses created byYou, with the chartThe Cluster Stack
Disk preparationOnce per serverOnce per server (unchanged)

Where does TopoLVM run? 

TopoLVM has two parts: a node plugin and a controller. The node plugin runs only on bare-metal workers, not on cloud nodes or bare-metal control planes. It tolerates every taint, so it runs on tainted bare-metal workers too.

The controller needs no local disk, so it can run on any node, including control planes. It prefers nodes that are not control planes. The platform uses a cluster-proportional-autoscaler to set the number of controller replicas based on the number of bare-metal workers:

  • With one bare-metal worker, the controller runs one replica.
  • With two or more bare-metal workers, it runs two replicas.
  • Without bare-metal workers, neither the TopoLVM controller nor the node plugin runs.

Upgrading from the old TopoLVM installation 

You don't need to update TopoLVM before upgrading to 1.37.

If you installed TopoLVM by following the Syself docs, the upgrade moves you to the built-in TopoLVM automatically. This works with any version of the syself/topolvm chart. Here's what happens during the upgrade:

  1. The old installation is cleaned up. An early cleanup stage removes the old csi-local workloads and PVC webhook, so PVC creation continues to work throughout the upgrade.
  2. The built-in TopoLVM takes over. It adopts existing objects with fixed names, including the LogicalVolume CRD, CSIDriver, StorageClasses, PriorityClass, and RBAC. These objects are taken over in place rather than recreated. The exception is a customized StorageClass, which you must delete before upgrading.
  3. Existing volumes remain available. The LogicalVolume CRD and all LogicalVolume resources are carried over. Data stays on the data disks during each OS reinstall in the rolling upgrade. Once a node comes back on the same server, its volumes reattach.

New local volumes may take a short time to become available while the new driver starts. Already mounted volumes continue working during the handover.

Stay up to date

Subscribe to The Syselfer, our newsletter, or add the RSS feed to your reader.

RSS

What if you changed your TopoLVM installation? 

The migration expects an installation that follows the Syself documentation. If you changed anything, check the cases below before upgrading. For the full upgrade steps, see Upgrade the cluster to a new Kubernetes version.

You changed a StorageClass 

If you changed the parameters, reclaim policy, or volume binding mode of a local-nvme, local-ssd, or local-hdd StorageClass, delete it before upgrading. Kubernetes doesn't allow these fields to change in place, so a mismatch will stall the upgrade. The platform recreates the StorageClass with its default parameters. Existing volumes are not affected.

You changed or added device classes 

The built-in TopoLVM uses only the default device classes: dc-nvme, dc-ssd, and dc-hdd. Volumes using a device class you added, or a class whose volume group or thin pool you renamed, won't mount after the upgrade. Contact Syself support before upgrading.

You changed other chart values 

If you changed other values, such as resources or tolerations, you don't need to do anything. The built-in TopoLVM uses the platform's settings instead.

You used a different release name or namespace 

The upgrade only removes a TopoLVM installation that follows the Syself docs, with the release name csi-local in the kube-system namespace. If you installed TopoLVM differently, for example with another release name or namespace, the upgrade does not remove it. Your data stays safe, but depending on your setup, the old TopoLVM pods can crash-loop, new PVCs can fail or stay Pending, or the upgrade can stop before any node rolls. Contact Syself support before upgrading.

You installed TopoLVM with helm install 

The Syself docs used helm template with kubectl apply, not helm install. If you installed TopoLVM with helm install, contact Syself support before upgrading.

You manage TopoLVM with GitOps 

If a GitOps tool such as Argo CD or Flux applies your TopoLVM installation, stop it from managing TopoLVM before you upgrade. Otherwise, it can install the old TopoLVM again after the upgrade removes it, and the two conflict.

Make sure the tool leaves the TopoLVM objects in the cluster when you do this. If the tool deletes the LogicalVolume CRD, Kubernetes also deletes every LogicalVolume, and with them the record of every local volume. If you're not sure how to do this safely with your tool, contact Syself support before upgrading.

After the upgrade: clean up old certificates 

If your previous installation used syself/topolvm 1.3.0 or older, its webhook Certificates, Issuers, and Secrets remain in the cluster after the upgrade. You can safely delete them because nothing uses them anymore. Keep cert-manager itself if other workloads still use it to issue certificates.

The same StorageClasses and the same disks 

The upgrade doesn't change how workloads use local storage. The same three StorageClasses are available on every cluster:

  • local-nvme for NVMe disks
  • local-ssd for SATA SSDs
  • local-hdd for spinning disks

You still need to prepare the disks on each new bare-metal server once. For each disk type, create the volume group and thin pool using exactly these default names:

  • vg-nvme and pool-nvme
  • vg-ssd and pool-ssd
  • vg-hdd and pool-hdd

Follow the guide Set up local NVMe with TopoLVM for the disk preparation steps. If you're upgrading from 1.36 and prepared your disks according to the 1.36 documentation, they already use these names, so you don't need to recreate anything. A PVC using one of these StorageClasses that worked on 1.36 will continue working on 1.37 without changes.

The only difference is that Syself Autopilot now manages the TopoLVM driver for you.

Frequently asked questions 

Does this affect clusters without bare-metal workers? 

Very little changes for these clusters. Without bare-metal workers, the TopoLVM controller and node plugin don't run. Only the autoscaler pod runs. The local-* StorageClasses still exist, but workloads cannot use them until a bare-metal worker with prepared disks joins the cluster.

Can I still use snapshots? 

Yes, but you need to install the snapshot components yourself. The Cluster Stack doesn't include the VolumeSnapshot CRDs, a snapshot controller, or a VolumeSnapshotClass for topolvm.io. Also, local snapshots stay on the same disk as their source, so they are not a backup on their own.

Ready to Build? Start a Trial

Start with a trial, and our step-by-step guides will walk you through your first cluster deployment in minutes.

Tags

Product UpdatesKubernetesInfrastructure