Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dcache-qos: support migration using a new pool mode "DRAINNG"
Motivation: The procedure for migrating files off of a pool when Resilience/QoS is running is currently not user-friendly. It requires one either to set the pool to disabled and allow the replica management to proceed as usual, or to exclude all pools potentiatlly involved as either source or target of the replica copy, in order to avoid thrashing between the migration mv and the Resilience/QoS engine. The latter is clumsy and prone to error; the former will alarm on persistent files which are uniquely resident on that disabled pool, thus leaving the migration incomplete. It would be much nicer if we could provide a way of doing this within QoS (Resilience) itself. Modification: Add a new pool state, "DRAINING", which is a READ_ONLY state with an extra bit. This state is handled by QoS as if it were a DOWN pool, but QoS will not be blocked in using the replica on that pool as source. This way, all persistent files can be replicated. The admin thus has only to set this state on the pool to be drained, and then wait for the QoS pool task to finish. At that point, the pool can be taken off line. Result: A pool can be "drained" (i.e., all its persistent replicas copied elsewhere) without turning off QoS and without using the migration module. Note that this is a migration to a pool group, not an individual pool, and that cached replicas are ignored. Target: master Patch: https://rb.dcache.org/r/13773/ Requires-book: yes (provided in this patch) Requires-notes: yes Acked-by: Tigran
- Loading branch information
Showing
9 changed files
with
129 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters