Repository navigation
feat(volumectl): move app volumes to another disk - #1399
Merged
Merged
Conversation
Move the data of an installed rootless application volume to another base path, or back to the default disk, without cloning the application. The --sync step copies the data while the application is running, and can be repeated. The finalize step stops the module user session (with its runtime directory, so Podman starts from a clean state), copies the last changes, recreates the volume with Podman run through runuser, and starts the session again. Old data is moved aside and removed in background, to keep the downtime short. Finalize refuses to run while the module agent is running a task, unless --force is given. On failure or interruption the original volume is restored and the session is started again. The developer manual describes the procedure. Assisted-by: Claude Code:claude-opus-5-5
DavidePrincipi
force-pushed
the
feat-8259
branch
from
November 10, 2026 17:40
e5aeae0 to
91ee5be
Compare
DavidePrincipi
marked this pull request as ready for review
November 10, 2026 17:50
gsanchietti
approved these changes
Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When an installed application fills the main disk, today the only way to move its data to an additional disk is to clone the application and remove the original: it is slow, needs twice the space and changes the application name. This PR adds a command that moves one data volume of an installed application in place. NethServer/dev#8259
The new
volumectl move-volumecommand works in two steps. The first step (--sync) copies the data while the application keeps running, and can be repeated: each run copies only what changed. The second step (without--sync) stops the application, copies the last changes, switches the volume to the new location and starts the application again, so the downtime is short. Nothing changes for existing installations until the command is used, and the new command supports only rootless applications.--forceis given.docs/modules/volumes.md) are updated.How to test
volumectl list-base-paths), install a rootless application that has a data volume, for example Mail.volumectl move-volume dovecot-data --for mail1 --target /mnt/disk00 --sync.volumectl move-volume dovecot-data --for mail1 --target /mnt/disk00. The application restarts, its data is on the additional disk and the old copy is removed.--target /, and check that the application still works.Generated by Claude Code:claude-haiku-5-5 with nethserver-pr