Skip to content

Sync filesystem instead of freezing it before snapshots - #3866

Merged
stgraber merged 1 commit into
lxc:mainfrom
presztak:linstor_snapshot_fsfreeze
Aug 18, 2026
Merged

stgraber merged 1 commit into
lxc:mainfrom
presztak:linstor_snapshot_fsfreeze

Conversation

@presztak

Copy link
Copy Markdown
Member

Summary

Snapshotting a LINSTOR volume whose filesystem is mounted leaves the DRBD device permanently unmountable.
The kernel logs: drbd1001: Can't mount, blockdev is frozen.
The trigger is CreateVolumeSnapshot freezing the filesystem with fsfreeze and holding that freeze across the LINSTOR snapshot.

Reproducer

root@server11:~# incus launch images:debian/13 c1 --storage linstor --target server11
Launching c1
root@server11:~# incus storage volume create linstor d1
Storage volume d1 created
root@server11:~# incus storage volume attach linstor d1 c1 d1 /mnt/d1
root@server11:~# incus storage volume snapshot create linstor d1 snap0
root@server11:~# incus storage volume snapshot delete linstor d1 snap0
Storage volume snapshot snap0 deleted from d1
root@server11:~# incus stop c1
root@server11:~# incus start c1
Error: Failed to start device "d1": Failed mounting volume: Failed mounting custom storage volume "d1" on storage pool "linstor": Failed to mount "/dev/drbd1002" on "/var/lib/incus/storage-pools/linstor/custom/default_d1" using "ext4": device or resource busy
Try `incus info --show-log c1` for more info

Fix

Sync the filesystem rather than freezing it. This is a workaround. Bug also reported to LINSTOR: LINBIT/linstor-server#525

…t before snapshots

A userspace filesystem freeze held across a LINSTOR snapshot leaves the
DRBD device frozen even once the filesystem has been thawed. The volume
can then never be mounted again ("Can't mount, blockdev is frozen").
Sync the filesystem instead.

Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
@presztak
presztak requested a review from stgraber as a code owner August 18, 2026 16:33
@stgraber
stgraber enabled auto-merge August 18, 2026 16:38
@stgraber
stgraber merged commit af6b34f into lxc:main Aug 18, 2026
163 of 173 checks passed
@presztak
presztak deleted the linstor_snapshot_fsfreeze branch August 20, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants