Project

General

Profile

Actions

Feature #58129

closed
PD RD

mon/FSCommands: support swapping file systems by name

Feature #58129: mon/FSCommands: support swapping file systems by name

Added by Patrick Donnelly about 4 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Administration/Usability
Target version:
Due date:
% Done:

0%

Source:
Development
Backport:
quincy,reef
Reviewed:
Affected Versions:
Component(FS):
MDSMonitor
Labels (FS):
task(easy)
Pull request ID:
Tags (freeform):
Fixed In:
v18.0.0-7234-g50aab7dadb
Released In:
v19.2.0~1254
Upkeep Timestamp:
2025-08-02T04:59:05+00:00

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 (0 open — 2 closed)

Copied to CephFS - Backport #63834: reef: mon/FSCommands: support swapping file systems by nameResolvedRishabh Dave

Actions
Copied to CephFS - Backport #63835: quincy: mon/FSCommands: support swapping file systems by nameRejectedRishabh Dave

Actions

PD Updated by Patrick Donnelly about 4 years ago Actions #1

  • Description updated (diff)

VS Updated by Venky Shankar about 4 years ago Actions #2

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

PD Updated by Patrick Donnelly about 4 years ago Actions #3

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.

VS Updated by Venky Shankar almost 4 years ago Actions #4

  • Assignee set to Rishabh Dave

RD Updated by Rishabh Dave almost 4 years ago Actions #5

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

RD Updated by Rishabh Dave over 3 years ago Actions #6

  • Status changed from In Progress to Fix Under Review

PD Updated by Patrick Donnelly about 3 years ago Actions #7

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

RD Updated by Rishabh Dave about 3 years ago Actions #8

  • Status changed from Fix Under Review to Resolved

VS Updated by Venky Shankar almost 3 years ago Actions #9

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

VS Updated by Venky Shankar almost 3 years ago Actions #10

  • Backport changed from Quincy,reef to quincy,reef

UB Updated by Upkeep Bot almost 3 years ago Actions #11

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

UB Updated by Upkeep Bot almost 3 years ago Actions #12

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

UB Updated by Upkeep Bot over 1 year ago Actions #14

  • Status changed from Pending Backport to Resolved
  • Upkeep Timestamp set to 2025-07-09T16:11:15+00:00

UB Updated by Upkeep Bot over 1 year ago Actions #15

  • Merge Commit set to 50aab7dadbcbb2e9752f15e99789fcfea17b9279
  • Fixed In set to v18.0.0-7234-g50aab7dadb
  • Released In set to v19.2.0~1254
  • Upkeep Timestamp changed from 2025-07-09T16:11:15+00:00 to 2025-08-02T04:59:05+00:00
Actions

Also available in: PDF Atom