Skip to content

Coping with OS-level snapshot rotation #88

@tasket

Description

@tasket

@tlaurion Your video presentation clarified the OS snapshot rotation vs. receive conflict for me, so I decided to open an issue.

A good example of the problem is when Qubes VM is running during a restore to the canonical volume name for that VM (or those rare times when Qubes system halted and left the VM snapshots in inconsistent state). The subsequent snapshot rotation by the OS can take the restored version out of service.

Possibilities:

  1. Restore to a volume named with a suffix like "-restored" that the OS recognizes as taking precedence over "-back" volumes during rotation.
  2. Let user specify some guard conditions, such as presence of "-back"; Then --force would be required to proceed with receive.
  3. Test for live running VM. Could be combined with number 2.

Some of these measures could become active on condition that Qubes admin environment is detected.

For the suffix idea, this is very simple/solid implementation if the OS/service meets us half-way.

PS - If there is some kind of "best practice" or convention for dealing with this situation, I'm unaware of it but am happy to learn.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions