monmaptool

Langue: en

Version: 364574 (ubuntu - 25/10/10)

Section: 8 (Commandes administrateur)

NAME

monmaptool - ceph monutir cluster map manipulation tool

SYNOPSIS

monmaptool mapfilename [ --clobber ] [ --print ] [ --create ] [ --add ip:port ... ] [ --rm ip:port ... ]

DESCRIPTION

monmaptool is a utility to create, view, and modify a monitor cluster map for the Ceph distributed file system. The monitor map specifies the only fixed addresses in the Ceph distributed system. All other daemons bind to arbitrary addresses and register themselves with the monitors.

When creating a map with --create, a new monitor map with a new, random UUID will be created. It should be followed by one or more monitor addresses.

The default Ceph monitor port is 6789.

OPTIONS

--print
will print a plaintext dump of the map, after any modifications are made.
--clobber
will allow monmaptool to overwrite mapfilename if changes are made.
--create
will create a new monitor map with a new UUID (and with it, a new, empty Ceph file system).
--add ip:port
will add a monitor with the specified ip:port to the map.
--rm ip:port
will remove the monitor with the specified ip:port from the map.

EXAMPLE

To create a new map with three monitors (for a fresh Ceph file system):
monmaptool --create --add 192.168.0.10:6789 --add 192.168.0.11:6789 --add 192.168.0.12:6789 --clobber monmap

To display the contents of the map:

monmaptool --print onmap

To replace one monitor:

monmaptool --rm 192.168.0.10:6789 --add 192.168.0.9:6789 --clobber monmap

AVAILABILITY

monmaptool is part of the Ceph distributed file system. Please refer to the Ceph wiki at http://ceph.newdream.net/wiki for more information.

SEE ALSO

ceph(8), crushtool(8), mkcephfs(8)