|
NAMEcmap_keys - Overview of keys stored in the Configuration Map OVERVIEWThere are 3 main types of keys stored in CMAP: * Mapping of values stored in the config file. * Runtime statistics. * Other user created values. In this man page, wild-cards have the usual meaning. KEYS
DYNAMIC CHANGE USER/GROUP PERMISSION TO USE COROSYNC IPCIs the same as in the configuration file. eg: to add UID 500 use # corosync-cmapctl -s uidgid.uid.500 u8 1 GID is similar, so to add a GID use # corosync-cmapctl -s uidgid.gid.500 u8 1 For removal of permissions, simply delete the key # corosync-cmapctl -d uidgid.gid.500 DYNAMIC ADD/REMOVE OF UDPU NODEEg. To add the node with address 10.34.38.108 and nodeid 3. This node is called NEW and it's not running corosync yet. * Find a node position in the node list which is not used yet. It's recommended that you use highest_number + 1. Let's say output of corosync-cmapctl looks like: nodelist.local_node_pos (u32) = 1
So next node position will be 2. * Add all entries needed for the node on all running nodes, as: # corosync-cmapctl -s nodelist.node.2.nodeid u32 3
Always add the ring0_addr key last. The Corosync engine on all nodes should reply with notice [TOTEM ] adding new UDPU member {10.34.38.108} message. * Add node information to the configuration file on all nodes so that it will survive a restart of corosync. * Copy and edit configuration file to the NEW node. * Start corosync on the NEW node. Removal of a UDPU node is a very similar, slightly reversed action, so * Stop corosync on the OLD node. * Remove the relevant entries from cmap on all nodes. * Change the configuration file on all nodes. SEE ALSOcorosync_overview(8), corosync.conf(5), corosync-cmapctl(8)
|