Skip to content

CONTROL_PLANE_STORAGE_BUFFER is larger than virtual-hardware vdevs and isn't configurable #7979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gjcolombo opened this issue Apr 15, 2025 · 2 comments · May be fixed by #8099
Open

CONTROL_PLANE_STORAGE_BUFFER is larger than virtual-hardware vdevs and isn't configurable #7979

gjcolombo opened this issue Apr 15, 2025 · 2 comments · May be fixed by #8099
Labels
development Bugs, paper cuts, feature requests, or other thoughts on making omicron development better

Comments

@gjcolombo
Copy link
Contributor

Development clusters set up using the instructions in how-to-run.adoc create a set of vdevs that serve as the fake sled's M.2 and U.2 storage devices. By default these vdevs are 20 GiB.

Nexus (as of the recent disk exhaustion prevention work) defines a CONTROL_PLANE_STORAGE_BUFFER constant that sets aside 250 GiB on each U.2 for control plane storage. This doesn't prevent the control plane from coming up, but it does render the resulting environment more or less unusable: all attempts to create disks or upload images to it will return 507 Insufficient Capacity, since all of the U.2s appear to be oversubscribed from the outset.

It's possible to work around this by patching CONTROL_PLANE_STORAGE_BUFFER to 0 and rebuilding Nexus, but it would be nice to make this configurable somehow (similar to what we do for reservoir sizes, though those are sled-agent tunables and not Nexus tunables).

@gjcolombo gjcolombo added the development Bugs, paper cuts, feature requests, or other thoughts on making omicron development better label Apr 15, 2025
@davepacheco
Copy link
Collaborator

Related: #7875.

@rcgoodfellow
Copy link
Contributor

A workaround for this on a live dev environment is:

for ZPOOL in $(pfexec zlogin oxz_switch /opt/oxide/omdb/bin/omdb db zpool list -i);
do
    pfexec zlogin oxz_switch /opt/oxide/omdb/bin/omdb -w db zpool set-storage-buffer "${ZPOOL}" 0
done

jmpesp added a commit to jmpesp/omicron that referenced this issue May 6, 2025
Instead of a hard-coded const, allow configuring control plane storage
buffer as a tunable.

Fixes oxidecomputer#7979
jmpesp added a commit to jmpesp/omicron that referenced this issue May 6, 2025
Instead of a hard-coded const, allow configuring control plane storage
buffer as a tunable.

Fixes oxidecomputer#7979
@jmpesp jmpesp linked a pull request May 6, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development Bugs, paper cuts, feature requests, or other thoughts on making omicron development better
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants