« Previous | Next » 

Revision 7e9366f7

ID7e9366f7b0c77b63d7c4cc971ac06125ac34b48c

Added by Iustin Pop over 15 years ago

Cleanup replace-disks modes and options

In 1.2, due to the md+drbd7 legacy, we had a complex choice of replace
modes, and the new drbd8 modes where forced into this syntax, with some
complicated rules of transition from one mode to another (if REPLACE_ALL
but not new node passed, switch to REPLACE_SEC, etc.).

This patch cleans this situation by making a clear separation between
the two main modes:
- replace on current nodes (with the two sub-cases on primary and on
secondary)
- change to a new node (either via manually specified node or via
iallocator)

Reviewed-by: imsnah

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences