Project

General

Profile

Actions

Feature #58129

open

mon/FSCommands: support swapping file systems by name

Added by Patrick Donnelly over 1 year ago. Updated 5 months ago.

Status:
Pending Backport
Priority:
High
Assignee:
Category:
Administration/Usability
Target version:
% Done:

0%

Source:
Development
Tags:
backport_processed
Backport:
quincy,reef
Reviewed:
Affected Versions:
Component(FS):
MDSMonitor
Labels (FS):
task(easy)
Pull request ID:

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.


Related issues 2 (1 open1 closed)

Copied to CephFS - Backport #63834: reef: mon/FSCommands: support swapping file systems by nameResolvedRishabh DaveActions
Copied to CephFS - Backport #63835: quincy: mon/FSCommands: support swapping file systems by nameIn ProgressRishabh DaveActions
Actions

Also available in: Atom PDF