managedbΒΆ
NAME
managedb -- Directly manipulate the database.
USAGE
- managedb
[-h]
[-v]
[-q]
[[-c | --config] CONFIG]
[--print-options]
[--as-ini]
{join IP, leave, eject IP, clear, update, recover, maintain,
save ARCHIVE, load ARCHIVE, merge ARCHIVE}
DESCRIPTION
This is a low-level tool that directly manipulates the database, generally only executed by other scyld-* tools.
The tool resides in /opt/scyld/clusterware/bin/managedb
and must be executed by user root.
ACTIONS
- join IP
Join this head node (referenced by IP address) to an existing cluster.
- --purge
Entirely delete the exiting database(s).
- leave
Remove this head node from the cluster.
- eject IP
Remove the specified head node IP address from the cluster.
- clear
Reset the data back to a fresh, empty state.
- --reinit
Reinitialize the database server.
- --purge
Entirely delete the exiting database(s).
- update
Update the internal database format.
- recover
Attempt to recover the local database.
- maintain
Perform a maintenance tasks.
- --compact
Force a compaction, regardless of current size.
- --defrag
Shrink the database after compacting.
- save ARCHIVE
Save the database and optionally the various cluster files to an ARCHIVE file or directory. Default is to save only the database, i.e., no other files.
- --with-boots
Include boot files.
- --with-images
Include root file system images.
- --with-isos
Include ISO images uploaded for kickstarting.
- --with-gits
Include git archives.
- --with-all
Include all files (noted above).
- --format FMT
Select a file format: zip (default), dir, tar
- load ARCHIVE
Load the database from an ARCHIVE file or directory.
- --without-boots
Exclude boot files.
- --without-images
Exclude root file system images.
- --without-isos
Exclude ISO images uploaded for kickstarting.
- --without-gits
Exclude git archives.
- --without-all
Exclude all files, i.e., only import the database.
- --format FMT
Select a file format: zip (default), dir, tar
- merge ARCHIVE
Merge the contents of an ARCHIVE file or directory into the database.
- --without-boots
Exclude boot files.
- --without-images
Exclude root file system images.
- --without-isos
Exclude ISO images uploaded for kickstarting.
- --without-all
Exclude all files, i.e., only import the database.
- --format FMT
Select a file format: zip (default), dir, tar
OPTIONAL ARGUMENTS
- -h, --help
Print usage message and exit. Ignore trailing args, parse and ignore preceding args.
- -v, --verbose
Increase verbosity.
- -q, --quiet
Decrease verbosity.
- -c, --config CONFIG
Specify a client configuration file CONFIG.
- --print-options
Print all backend options, then exit.
- --as-ini
Use ini format when printing options.
EXAMPLES
(Reminder: managedb
resides in /opt/scyld/clusterware/installer/managedb
)
sudo managedb leave
Detach the current head node from the cluster.
sudo managedb eject 10.54.0.2
Eject head node at IP address 10.54.0.2 from the cluster.
RETURN VALUES
Upon successful completion, managedb returns 0.
On failure, an error message is printed to stderr
and
managedb returns 1.