Storage

SolidGroundUX DocumentationSolidGroundUX
NL

Configure and inspect local storage volumes and directories

Source: target-root/usr/local/libexec/solidgroundux/console-modules/15-storage.sh

Configure and inspect local storage volumes and directories

Public functions

Internal functions
FunctionPurposeArgumentsOutput
_sgnd_lib_guardEnsure the file is sourced as a library and marked as loaded.—(globals)
_storage_run_actionDispatch the selected storage-management action to the standalone storage manager.- $1: Management action to execute.—
_storage_run_compound_stepExecute one stage of a multi-step storage workflow via the standalone manager.- $1: Management action to execute.—
_storage_step_provisionInvoke the provision action through the module manager.——
_storage_step_validateInvoke the validate action through the module manager.——

Description

Registers local-storage management actions with the SolidGround Management Console. Persistent storage operations are implemented by manage-storage.sh.

Module validation contract

Return codes: 0 = Passed 1 = Failed 2 = Warning 3 = Skipped / not applicable

Every validator sets SGND_MODULE_VALIDATION_MESSAGE to a concise result summary. Detailed diagnostic output may be written by the validator or delegated action.

Console registration

Storage

! Prepare storage

Provision and validate persistent local storage.

! Provision storage

Provision one or more unused disks as persistent local storage.

! Mount storage

Mount a configured local storage filesystem.

! Unmount storage

Unmount a configured storage filesystem while keeping its persistent configuration.

! Expand storage

Expand the partition and filesystem after enlarging its disk.

! Reconcile storage configuration

Update SolidGroundUX storage configuration from all managed SGND_STORAGE volumes.

! Reconcile storage persistence

Repair stale UUID mappings from detected SGND_STORAGE filesystems or remove stale entries explicitly.

! Validate storage provisioning

Run active checks including configuration reconciliation.

! Show storage status

Show local disks and configured storage status.

! Manage directories

Create, rename, list, or remove directories beneath managed storage roots.