usage: monmaptool [--print] [--create [--clobber] [--fsid uuid]]
[--enable-all-features]
[--generate] [--set-initial-members]
[--add name 1.2.3.4:567] [--rm name]
[--addv name [v2:1.2.4.5:567,v1:1.2.3.4:568]]
[--feature-list [plain|parseable]]
[--feature-set <value> [--optional|--persistent]]
[--feature-unset <value> [--optional|--persistent]]
[--set-min-mon-release <release-major-number>]
[--auth-service-cipher <cipher>]
[--auth-allowed-ciphers <cipher1,cipher2,...>]
[--auth-preferred-cipher <cipher>]
<mapfilename>
Options (14)
| Option | Description | Source |
|---|
--print | print a plaintext dump of the map, after any modifications are made. | man |
--create | create a new monitor map with a new UUID (and with it, a new, empty Ceph cluster). | man |
--clobber | allow monmaptool to create a new mapfilename in place of an existing map. | man |
--generate | generate a new monmap based on the values on the command line or specified in the ceph configuration. | man |
--monmap filename | 2. | man |
--mon-host 'host1 | 3. | man |
--filter-initial-members | filter the initial monmap by applying the mon initial members setting. | man |
--rm name | remove the monitor with the specified name from the map. | man |
--fsid uuid | set the fsid to the given uuid. | man |
--enable-all-features | enable all supported features. | man |
--set-min-mon-release release | set the min_mon_release. | man |
--auth-service-cipher cipher | set the cipher type for rotating service keys. | man |
--auth-allowed-ciphers cipher1 | set the cipher types permitted for authentication by daemons (including Monitors) or clients. | man |
--auth-preferred-cipher cipher | set the preferred cipher key type for new credentials or for key rotations. | man |
Examples (3) from the manual page, untested
monmaptool --create --add nodeA 192.168.0.10 --add nodeB 192.168.0.11 \
To create a new map with three monitors (for a fresh Ceph cluster):monmaptool --print monmap
To display the contents of the map:monmaptool --rm nodeA monmap
To replace one monitor:
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.