Project

General

Profile

Feature #58129

mon/FSCommands: support swapping file systems by name

Added by Patrick Donnelly about 1 year ago. Updated 2 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

Copied to CephFS - Backport #63834: reef: mon/FSCommands: support swapping file systems by name In Progress
Copied to CephFS - Backport #63835: quincy: mon/FSCommands: support swapping file systems by name In Progress

History

#1 Updated by Patrick Donnelly about 1 year ago

  • Description updated (diff)

#2 Updated by Venky Shankar about 1 year ago

The operation also needs to swap the fsid and no clients should we interfering when the swap is under execution.

#3 Updated by Patrick Donnelly about 1 year ago

Venky Shankar wrote:

The operation also needs to swap the fsid and no clients should we interfering when the swap is under execution.

Hm, that's a good point. I think ceph-csi relies on the fsid.

#4 Updated by Venky Shankar about 1 year ago

  • Assignee set to Rishabh Dave

#5 Updated by Rishabh Dave 12 months ago

  • Status changed from New to In Progress
  • Pull request ID set to 50212

#6 Updated by Rishabh Dave 11 months ago

  • Status changed from In Progress to Fix Under Review

#7 Updated by Patrick Donnelly 5 months ago

  • Target version changed from v18.0.0 to v19.0.0

#8 Updated by Rishabh Dave 3 months ago

  • Status changed from Fix Under Review to Resolved

#9 Updated by Venky Shankar 2 months ago

  • Status changed from Resolved to Pending Backport
  • Backport changed from quincy,pacific to Quincy,reef

#10 Updated by Venky Shankar 2 months ago

  • Backport changed from Quincy,reef to quincy,reef

#11 Updated by Backport Bot 2 months ago

  • Copied to Backport #63834: reef: mon/FSCommands: support swapping file systems by name added

#12 Updated by Backport Bot 2 months ago

  • Copied to Backport #63835: quincy: mon/FSCommands: support swapping file systems by name added

#13 Updated by Backport Bot 2 months ago

  • Tags set to backport_processed

Also available in: Atom PDF