Create a Snapshot Group
A snapshot group takes snapshots of a set of volumes with a single request. Longhorn creates one snapshot per member volume and tracks them together in a SnapshotGroup resource, so at restore time it is clear which snapshots belong together.
You can manage snapshot groups from the Longhorn UI or with kubectl regardless of whether CSI VolumeGroupSnapshot support is enabled. Groups created through CSI appear on the Snapshot Groups page as well.
Important: Consistency boundary Longhorn snapshots each member volume independently, so a group snapshot is crash-consistent per volume and only loosely aligned in time across volumes. For application-level consistency, quiesce or pause the application while the group snapshot is taken.
You can create a snapshot group from the Longhorn UI or with kubectl. A new group starts in the InProgress state and becomes Ready when every member snapshot is taken, or Failed when the deadline passes first. Member snapshots already taken by a failed group remain valid per-volume snapshots until the group is deleted.
Rules and Constraints:
Open the create dialog from either of two places:
In the dialog, set:
Click OK to create the group.
Create a SnapshotGroup custom resource in the longhorn-system namespace. Select the member volumes with exactly one of volumes or volumeSelector:
apiVersion: longhorn.io/v1beta2
kind: SnapshotGroup
metadata:
name: group-a
namespace: longhorn-system
spec:
volumes:
- test-vol-1
- test-vol-2
# Alternatively, select the member volumes by their labels:
# volumeSelector:
# matchLabels:
# app-group: demo
deadlineSeconds: 300
The Snapshot Groups page lists every group with its status, member count (ready members over total), and creation time. Click a group to open its detail page, which shows the member table: each member’s volume, snapshot name, readiness, creation time, and error, plus the failure reason if the group failed.
A snapshot group cannot be edited after creation: a group is a point-in-time request. The Recreate action opens the create dialog pre-filled from the group’s settings and creates a new group; the original group is not changed.
After a group becomes Ready, deleting or losing one of its member snapshots marks the group Degraded (the set is no longer complete). Longhorn does not take a replacement snapshot, because it would not match the group’s original point in time. The surviving member snapshots can still be restored individually.
On the volume detail page, the snapshot list shows the group a member snapshot belongs to. Deleting a member snapshot asks whether to delete only that snapshot, which degrades its group, or to delete the entire group.
On the Snapshot Groups page, use the Delete action of a group, or select multiple groups and delete them in bulk. Deleting a group deletes its member snapshots along with it.
Available since v1.13.0.
Copyright © 2019-2026 Longhorn a Series of LF Projects, LLC. Documentation Distributed under CC-BY-4.0.
The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
For website terms of use, trademark policy and other project policies please see lfprojects.org/policies.