Imaging Mounted Disks Under Duress: A blktrace-Based Solution
This post details a clever method for backing up system disks when point-in-time snapshots aren't available. The author faced the challenge of needing to back up a system nearing failure that lacked snapshot capabilities, while rebooting or reconfiguring storage was undesirable. The solution leverages Linux's blktrace API to track block device activity in real-time, allowing for complete disk imaging even while data is being written. The author shares their Go-based tool, hot-clone, which tracks modified blocks, ensuring no data loss during imaging. This provides a reliable solution for backing up critical systems in emergency situations.
Read more