You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: shim may re-format dstack-managed volumes #3973
This is time-dependent and cannot be easily reproduced.
shim creates a file system on dstack-managed volumes when the volume is attached for the first time. Before the formatting, it checks if the filesystem already exists on the volume via lsblk
returnfalse, fmt.Errorf("failed to check if disk is formatted: %w", err)
}
The issue is that lsblk cannot be used reliably to check for filesystem existence like that. "The lsblk command reads the sysfs filesystem and udev db to gather information." – the information about the filesystem may not be available yet. If that happens, dstack will reformat the volume, leading to data loss.
Activity
r4victor commentedon Jun 18, 2026
Closed by #3979