Project

General

Profile

Actions

Bug #66960

closed
CZ CZ

mon: fix `fs set down` to adjust max_mds only when cluster is not down

Bug #66960: mon: fix `fs set down` to adjust max_mds only when cluster is not down

Added by chung feng zheng over 2 years ago. Updated 3 months ago.

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

0%

Source:
Community (user)
Backport:
squid,reef,quincy
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Tags (freeform):
Fixed In:
v19.3.0-3997-g95dffdcbbd
Released In:
v20.2.0~2291
Upkeep Timestamp:
2026-08-28T01:38:45+00:00

Description

Applying `fs set down false` on an up cluster will set the cluster's max_mds to 1, regardless of the cluster's current max_mds.

`fs set down false` should only change max_mds when the cluster was set to down. Otherwise, the cluster should remain unchanged.


Files

cephfs.png (65.5 KB) cephfs.png chung feng zheng, 07/25/2024 11:47 AM

Related issues 3 (0 open — 3 closed)

Copied to CephFS - Backport #67373: quincy: mon: fix `fs set down` to adjust max_mds only when cluster is not downRejectedVenky Shankar

Actions
Copied to CephFS - Backport #67374: squid: mon: fix `fs set down` to adjust max_mds only when cluster is not downResolvedVenky Shankar

Actions
Copied to CephFS - Backport #67375: reef: mon: fix `fs set down` to adjust max_mds only when cluster is not downResolvedVenky Shankar

Actions

RZ Updated by Radoslaw Zarzynski over 2 years ago Actions #1

  • Project changed from RADOS to CephFS

VS Updated by Venky Shankar over 2 years ago Actions #2

  • Category set to Administration/Usability
  • Status changed from New to Fix Under Review
  • Assignee set to chung feng zheng
  • Target version set to v20.0.0
  • Source set to Community (user)
  • Backport set to quincy,reef,squid

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

This bug can't be reproduced. chungfengz Did you see this bug on one of the older branches? What steps you followed to reproduce it? This bug can't be reproduced on the @main branch.

CZ Updated by chung feng zheng over 2 years ago Actions #4

Rishabh Dave wrote in #note-3:

This bug can't be reproduced. chungfengz Did you see this bug on one of the older branches? What steps you followed to reproduce it? This bug can't be reproduced on the @main branch.

To reproduce this bug, follow these steps:

1. Set up a CephFS cluster with multiple MDS (Metadata Servers), ensuring max_mds is set to a value greater than 1.
2. Use the command ceph fs set <cephfs> down false. This will cause max_mds to be reset to 1.

Note: This bug only manifests in a multi-MDS cluster or when max_mds is greater than 1.

RD Updated by Rishabh Dave over 2 years ago Actions #5

chung feng zheng wrote in #note-4:

Rishabh Dave wrote in #note-3:

This bug can't be reproduced. chungfengz Did you see this bug on one of the older branches? What steps you followed to reproduce it? This bug can't be reproduced on the @main branch.

To reproduce this bug, follow these steps:

1. Set up a CephFS cluster with multiple MDS (Metadata Servers), ensuring max_mds is set to a value greater than 1.
2. Use the command ceph fs set <cephfs> down false. This will cause max_mds to be reset to 1.

Note: This bug only manifests in a multi-MDS cluster or when max_mds is greater than 1.

I see. The bug can only be reproduced in a case when down is being to false without ever setting it to true. And, ofcourse, max_mds > 1 in this case. The PR is fine in that case.

PD Updated by Patrick Donnelly over 2 years ago Actions #6

  • Status changed from Fix Under Review to Pending Backport
  • Backport changed from quincy,reef,squid to squid,reef,quincy

UB Updated by Upkeep Bot over 2 years ago Actions #7

  • Copied to Backport #67373: quincy: mon: fix `fs set down` to adjust max_mds only when cluster is not down added

UB Updated by Upkeep Bot over 2 years ago Actions #8

  • Copied to Backport #67374: squid: mon: fix `fs set down` to adjust max_mds only when cluster is not down added

UB Updated by Upkeep Bot over 2 years ago Actions #9

  • Copied to Backport #67375: reef: mon: fix `fs set down` to adjust max_mds only when cluster is not down added

UB Updated by Upkeep Bot over 2 years ago Actions #10

  • Tags (freeform) set to backport_processed

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

  • Merge Commit set to 95dffdcbbd78689670489ee712bbab0c024fcabd
  • Fixed In set to v19.3.0-3997-g95dffdcbbd7
  • Upkeep Timestamp set to 2025-07-08T22:37:58+00:00

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

  • Fixed In changed from v19.3.0-3997-g95dffdcbbd7 to v19.3.0-3997-g95dffdcbbd78
  • Upkeep Timestamp changed from 2025-07-08T22:37:58+00:00 to 2025-07-14T15:46:32+00:00

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

  • Fixed In changed from v19.3.0-3997-g95dffdcbbd78 to v19.3.0-3997-g95dffdcbbd
  • Upkeep Timestamp changed from 2025-07-14T15:46:32+00:00 to 2025-07-14T21:10:37+00:00

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

  • Status changed from Pending Backport to Resolved
  • Upkeep Timestamp changed from 2025-07-14T21:10:37+00:00 to 2025-08-25T19:42:34+00:00

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

  • Released In set to v20.2.0~2291
  • Upkeep Timestamp changed from 2025-08-25T19:42:34+00:00 to 2025-11-01T01:37:21+00:00

UB Updated by Upkeep Bot 3 months ago Actions #16

  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-11-01T01:37:21+00:00 to 2026-08-28T01:38:45+00:00
Actions

Also available in: PDF Atom