manila-manage¶
control and manage shared filesystems¶
- Author:
- Copyright:
OpenStack LLC
- Manual section:
1
- Manual group:
shared filesystems
SYNOPSIS¶
manila-manage <category> <action> [<args>]
DESCRIPTION¶
manila-manage controls shared filesystems service. More information about OpenStack Manila is at https://wiki.openstack.org/wiki/Manila
OPTIONS¶
The standard pattern for executing a manila-manage command is:
manila-manage <category> <command> [<args>]
For example, to obtain a list of all hosts:
manila-manage host list
Run without arguments to see a list of available command categories:
manila-manage
Categories are shell, logs, service, db, host, version, config, share, and share_server.
Global Options¶
--config-dir DIRPath to a config directory to pull *.conf files from. The set is parsed after –config-file arguments.
--config-file PATHPath to a config file to use. Multiple config files can be specified, with values in later files taking precedence.
--debug, -dSet logging level to DEBUG instead of the default INFO level.
--log-config-append PATHAppend a logging configuration file. If set, other logging options are ignored.
--log-date-format DATE_FORMATDefines the format string for %(asctime)s in log records.
--log-dir LOG_DIRThe base directory used for relative log_file paths.
--log-file PATHName of the log file to send logging output to.
--use-journal / --nouse-journalEnable or disable journald for logging.
--use-json / --nouse-jsonEnable or disable JSON formatting for logs.
--use-syslog / --nouse-syslogEnable or disable syslog for logging.
--watch-log-file / --nowatch-log-fileMonitor log file changes.
--shell_completion SHELL_COMPLETIONDisplay a shell completion script (allowed values: bash, zsh).
--state_path STATE_PATHTop-level directory for maintaining Manila’s state.
--syslog-log-facility SYSLOG_LOG_FACILITYSyslog facility to receive log lines.
--versionShow program version and exit.
Manila Db¶
manila-manage db versionPrint the current database version.
manila-manage db syncSync the database up to the most recent version. This is the standard way to create the db as well.
manila-manage db downgrade <version>Downgrade database to given version.
manila-manage db stamp <version>Stamp database with given version.
manila-manage db revision <message> <autogenerate>Generate new migration.
manila-manage db purge <age_in_days>Purge deleted rows older than a given age from Manila database tables. If age_in_days is not given or is specified as 0 all available rows will be deleted.
Manila Logs¶
manila-manage logs errorsDisplays Manila errors from log files.
manila-manage logs syslog <number>Displays Manila alerts from syslog.
Manila Shell¶
manila-manage shell bpythonStarts a new bpython shell.
manila-manage shell ipythonStarts a new ipython shell.
manila-manage shell pythonStarts a new python shell.
manila-manage shell runStarts a new shell using python.
manila-manage shell script <path/scriptname>Runs the named script from the specified path with flags set.
Manila Host¶
manila-manage host listReturns list of running Manila hosts.
Manila Config¶
manila-manage config listReturns list of currently set config options and their values.
Manila Service¶
manila-manage service list [--format_output table|json|yaml]Returns list of Manila services. Output format can be modified using –format_output. It can be table, json, or yaml. Defaults to table.
Manila Version¶
manila-manage version listReturns list of versions.
Manila Share¶
manila-manage share delete <share_id>Deletes a specific share by ID.
manila-manage share update_host [-h] --currenthost CURRENTHOST --newhost NEWHOST [--force FORCE]Update the
hostattribute within a share. This can be used to alter existing share records if the backend or host name has been updated in manila configuration. A fully qualified host string is of the format ‘HostA@BackendB#PoolC’. Provide only the host name (ex: ‘HostA’) to update the hostname part of the host string. Provide only the host name and backend name (ex: ‘HostA@BackendB’) to update the host and backend names.--forceparameter can be used to skip validations.
Manila Share Server¶
manila-manage share_server update_share_server_capabilities [-h] --share_servers SHARE_SERVERS --capabilities CAPABILITIES [--value VALUE]Set share server boolean capabilities such as security_service_update_support and network_allocation_update_support.
FILES¶
The manila-manage.conf file contains configuration information in the form of parameter settings.
BUGS¶
Manila’s bug tracker is on Launchpad. You can view current bugs and file new bugs on OpenStack Manila Bug Tracker