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.
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.
- Subject changed from Add option to start rank 0 in failed state for `fs new` command to Add option in `fs new` command to start rank 0 in failed state
- Related to Tasks #51341: Steps to recover file system(s) after recovering the Ceph monitor store added
Another thing I thought of after our discussion today, Ramana: I think the --recover flag should do:
- Set rank0 to failed.
- Set the new fs to not be joinable (so MDS do not need turned off)
Patrick Donnelly wrote:
Another thing I thought of after our discussion today, Ramana: I think the --recover flag should do:
- Set rank0 to failed.
- Set the new fs to not be joinable (so MDS do not need turned off)
Thanks, Patrick. I will try it out.
- Status changed from New to In Progress
- Pull request ID set to 42763
- Status changed from In Progress to Fix Under Review
- Assignee set to Ramana Raja
- Target version set to v17.0.0
- Source set to Development
- Backport set to pacific
- Status changed from Fix Under Review to Pending Backport
- Copied to Backport #52680: pacific: Add option in `fs new` command to start rank 0 in failed state added
- Tags set to backport_processed
- Status changed from Pending Backport to Resolved
Also available in: Atom
PDF