Revision 642445d9
ID | 642445d9811e0b54db82a7d0acec8b9c6a403bbf |
Parent | 9cdbe77f |
Child | a70f34d1 |
Split the change of peer in secondary replace in two operations
This patch splits the single operation of replace peer into two distinct
phases, in order to make a single change to the instance configuration:
- detach from network
- if at least one drbd device succeeded, make one change to the
instance, pointing all disks to the new peer
- attach to the new peer
This should eliminate the case when a failure in the second reattach can
leave the instance with two secondaries.
Reviewed-by: imsnah
Files
- added
- modified
- copied
- renamed
- deleted