stratisd icon indicating copy to clipboard operation
stratisd copied to clipboard

Correct saving of on-disk metadata. Document.

Open agrover opened this issue 7 years ago • 2 comments

see also #583 and this discussion.

We need to determine when saving state to on-disk metadata is correct wrt power failures, for MDV state as well. It should be centralized in the engine or pool code rather than being invoked explicitly in e.g. the D-Bus API code.

This should be written up in the design doc too. Proper handling of this is something potential contributors and users will want to see has been considered and implemented correctly.

agrover avatar Oct 19 '17 16:10 agrover

See also #618 for a concrete example of the symptoms.

mulkieran avatar Oct 19 '17 18:10 mulkieran

I'm going to defer this 0.5 -> 1.0, since nothing is horribly broken at the moment, but this needs more thought. There are a lot of different state-changing operations that we do, e.g. adding a blockdev, changing a fs name, etc. I think we need to think about ALL of them and probably have a comprehensive chart where we make sure all operations are handled properly to avoid data loss.

agrover avatar Mar 01 '18 17:03 agrover

I'll call this obsolete.

mulkieran avatar Feb 21 '24 15:02 mulkieran