Actions
Feature #58129
openmon/FSCommands: support swapping file systems by name
Status:
Pending Backport
Priority:
High
Assignee:
Category:
Administration/Usability
Target version:
% Done:
0%
Source:
Development
Tags:
backport_processed
Backport:
quincy,reef
Reviewed:
Description
Storage operators like Rook constantly do "reconciliation" to ensure that the desired state of the system (e.g. file system ocs-storageclass-cephfs exists) is reached. If we need to recover a broken file system (cephfs-data-scan) onto a new recovery file system, we need a way to prevent the operator like Rook from recreating the file system while we (1) rename the old damaged file system to something else for later analysis and (2) rename the recovered file system to the old name.
Right now that's not possible without introducing a new API:
ceph fs swap <fs1> <fs2>
It should operate similar to "fs rename" but operate on both file systems in one PAXOS transaction.
Actions