oxidecomputer / oxidecomputer/crucible

snapshots need additional space reservation while the scrubber works.

Open
#652 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
260
Forks
34
Avg merge
2d 1h
Merged PRs (30d)
8

Description

To make a snapshot, we create a destination region first.
After creating the snapshot, while the scrubber copies data from snapshot to the
eventual backing downstairs region, we need a temporary space reservation in
Nexus to allow for the original volume to be written to without running out of space.

Due to the copy on write snapshot feature of ZFS, it's possible for the original volume
to take writes that will grow the total space required for snapshot+source in a way we
don't currently account for.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing snapshot creation, the scrubber, and the Nexus space-management path described in the issue. Determine where the temporary reservation belongs and how it should be released after copying; done means copy-on-write writes to the original volume cannot exhaust space during snapshot processing.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend, infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.