Project

General

Profile

Actions

Feature #51716

closed

Add option in `fs new` command to start rank 0 in failed state

Added by Ramana Raja almost 3 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:

0%

Source:
Development
Tags:
backport_processed
Backport:
pacific
Reviewed:
Affected Versions:
Component(FS):
MDSMonitor
Labels (FS):
Pull request ID:

Description

Source: https://github.com/ceph/ceph/pull/42295#discussion_r670827459

Currently, to recover a file system after recovering monitor store, you need to stop all the MDSs, create FSMap with defaults using `fs new` command, execute `fs reset` command to get file system' rank 0 into failed state, and then restart MDSs.

If the rank 0 of filesystem is not set to failed state, then the MDS that takes up rank 0 doesn't read the existing in RADOS metadata and starts overwriting it. So the fiile system is not recovered. By allowing the `fs new` command to optionally set rank 0 to failed state instead of creating state, we may able to avoid the need to stop all the MDSs and execute `fs reset` command.


Related issues 2 (1 open1 closed)

Related to CephFS - Tasks #51341: Steps to recover file system(s) after recovering the Ceph monitor storeIn Progress

Actions
Copied to CephFS - Backport #52680: pacific: Add option in `fs new` command to start rank 0 in failed stateResolvedRamana RajaActions
Actions

Also available in: Atom PDF