osup - system upgrade manager for vpsAdminOS
osup [global options] command [command options] [arguments...]
osup is a command line program managing system upgrades of vpsAdminOS. osup
handles upgrades and downgrades of osctl-managed data stored on ZFS pools.
This includes editing container/user/group configuration files, ZFS datasets
and other assets when some backward-incompatible change is introduced in
osctld.
osup is run by osctld when it import pools to ensure that the current
version of osctld is compatible with the data pools.
--help-d, --debug-n, --dry-run--versionstatus [pool] -H, --hide-header
Do not show header, useful for scripts.
check [pool]osctld are up to date,
in need of an upgrade or a rollback. Each line of the output describes one ZFS
pool. There are four columns: pool, status, version and flags. status
is one of ok - the pool is up-to-date, outdated - the pool needs
an upgrade and incompatible - the pool needs a rollback. version is the
pool's latest version that osup can work with.flags is a list of words separated by a comma. Known words are:- - empty word, used when no flags are setexport - the pool has to be exported from osctld before it can be migratedstop - all containers have to be stopped during the exportstatus is incompatible, the pool needs to be rolled back to version.
Your current OS version will not be able to do it. You need to upgrade the OS
to a version that can work with the pool, even if your goal is to downgrade
the OS. To use a pool on an older OS version, you need to roll it back on
a newer OS to version using osup rollback pool version, then downgrade
the OS.check-rollback pool versioncheck for a list of pool flags. If the rollback cannot be done, osup
will exit with an error.init [-f] poolosctld after it has installed pool. osup will
set the pool's version by marking all supported migrations as applied. -f, --force
Overwrite the version file even if it already exists and isn't empty.
Unless you know what you're doing, this can potentially break both osup
and osctld if the pool isn't in the expected state.
upgrade pool [version]osup will apply all available
migrations until the system is up-to-date, or version has been reached.upgrade-all [version]upgrade on all pools marked as used by osctld.rollback pool [version]rollback-all [version]rollback on all pools marked as used by osctld.osup is saving a list of applied migrations in a file on each pool. The file
is located at <pool mountpoint>/.migrations, or at
<dataset mountpoint>/.migrations in case osctld is scoped in a subdataset.
Report bugs to https://github.com/vpsfreecz/vpsadminos/issues.
osup is a part of vpsAdminOS.