GrepBoard/매뉴얼
605 편 ·

CephFS max_mds --yes-i-really-mean-it 오류

·시험 환경 Ceph Reef 18.2 · Squid 19.2 · Tentacle 20.2 공식 문서·소스 기준 · 2026-10·시험 범위 ↓·5 단계

Tentacle·Squid 19.2.4 이후 MDS 경고가 있으면 ceph fs set max_mds 가 EPERM 으로 거절됩니다. 경고를 정리하거나 --yes-i-really-mean-it 를 붙입니다.

cpp
if (var == "max_mds" && !confirm && mon->mdsmon()->has_any_health_warning()) {  ss << "One or more file system health warnings are present. Modifying "     << "the file system setting variable \"max_mds\" may not help "     << "troubleshoot or recover from these warnings and may further "     << "destabilize the system. If you really wish to proceed, run "     << "again with --yes-i-really-mean-it";  return -EPERM;}

ceph fs set <fs_name> max_mds <n> 이 One or more file system health warnings are present 로 시작하는 문구와 함께 EPERM 으로 끝나면, 클러스터의 MDS 데몬 가운데 하나 이상이 경고를 보고하고 있다는 뜻입니다. Tentacle(20.2)과 Squid 19.2.4 이후의 모니터는 이때 max_mds 변경을 일부러 막습니다. 경고를 먼저 정리하고, 그래도 바꿔야 할 때만 --yes-i-really-mean-it 를 붙입니다.

위 블록은 클러스터에서 받은 출력이 아니라, 그 문구를 만드는 모니터 소스([FSCommands.cc L394-L400, v20.2.4](https://github.com/ceph/ceph/blob/v20.2.4/src/mon/FSCommands.cc#L394-L400))를 그대로 인용한 것입니다.

[1] 판을 확인합니다. Tentacle 20.2.0 릴리스 노트는 클러스터가 건강하지 않을 때 max_mds 를 바꾸려면 확인 플래그가 필요해졌다고 적고, 이유로 「max_mds 변경이 문제 해결에 도움이 안 되고 클러스터를 더 불안정하게 만들 수 있다」를 듭니다. 같은 변경은 Squid 에도 들어갔습니다. Squid 릴리스 노트 v19.2.4 변경 목록에 mon,cephfs: require confirmation when changing max_mds on unhealthy cluster (pr#60398) 가 있습니다. Reef 18.2.8 의 FSCommands.cc 에는 이 검사가 없습니다.

판max_mds 변경 검사
Reef 18.2.x없음
Squid 19.2.4 이후있음
Tentacle 20.2.x있음
console
$ ceph versions

명령을 받는 쪽은 모니터이므로 mon 의 판을 봅니다.

[2] 「건강하지 않다」가 무엇인지 알아 둡니다. 노트의 표현보다 소스의 조건이 좁습니다. 모니터는 max_mds 를 바꿀 때 확인 플래그가 없고 has_any_health_warning() 가 참이면 거절합니다([FSCommands.cc L391-L400, v20.2.4](https://github.com/ceph/ceph/blob/v20.2.4/src/mon/FSCommands.cc#L391-L400)). 이 함수는 MDS 데몬마다 보고한 health 항목이 하나라도 있는지만 봅니다([MDSMonitor.cc L1588-L1593, v20.2.4](https://github.com/ceph/ceph/blob/v20.2.4/src/mon/MDSMonitor.cc#L1588-L1593)). 그 항목은 MDS 의 비컨으로 들어옵니다([MDSMonitor.cc L683, v20.2.4](https://github.com/ceph/ceph/blob/v20.2.4/src/mon/MDSMonitor.cc#L683)).

  • 걸리는 것: CephFS health 문서의 「Daemon-reported health checks」 — MDS_SLOW_REQUEST · MDS_TRIM · MDS_CACHE_OVERSIZED · MDS_CLIENT_RECALL 같은 MDS 데몬 경고.
  • 범위: 바꾸려는 파일 시스템만이 아니라 클러스터의 모든 MDS 입니다. 다른 파일 시스템의 MDS 경고로도 거절됩니다.
  • 걸리지 않는 것: noout 같은 OSD 플래그나 PG 경고로 생긴 HEALTH_WARN. 이 함수는 MDS 비컨 항목만 봅니다.
  • 이 검사는 max_mds 에만 걸립니다. 다른 fs set 항목은 이 검사를 거치지 않습니다.

[3] 경고를 찾아 먼저 해결합니다.

console
$ ceph health detail$ ceph fs status

MDS_ 로 시작하는 줄이 원인입니다. MDS_SLOW_REQUEST 라면 mds_op_complaint_time 을 낮추면 생기는 일을, 다른 코드는 ceph health detail 출력 읽기를 봅니다. MDS 경고가 모두 사라지면 같은 명령은 플래그 없이 이 검사를 통과합니다.

[4] 그래도 바꿔야 하면 플래그를 붙입니다. fs set 명령 정의에 yes_i_really_mean_it 인자가 있습니다([MonCommands.h L410-L435, v20.2.4](https://github.com/ceph/ceph/blob/v20.2.4/src/mon/MonCommands.h#L410-L435)). 먼저 지금 값을 적어 둡니다.

console
$ ceph fs get <fs_name> | grep max_mds$ ceph fs set <fs_name> max_mds <n> --yes-i-really-mean-it

되돌릴 때는 적어 둔 값으로 같은 명령을 다시 실행합니다(경고가 남아 있으면 그때도 플래그가 필요합니다). 줄이면 다중 MDS 문서대로 남는 랭크가 하나씩 정지되고, 그만큼 남은 MDS 가 부담을 떠안습니다. 경고를 없애는 수단으로 쓰지 않습니다.

[5] 업그레이드를 시작하기 전에 MDS 경고를 먼저 없앱니다. MDS 를 올릴 때는 mon 이 이미 새 판이라 이 검사를 그대로 만납니다.

console
$ ceph health detail | grep MDS_
  • 패키지 업그레이드: Tentacle 노트의 MDS 단계는 ceph fs set <fs_name> max_mds 1 로 줄이고, 끝에 원래 값으로 돌립니다. 두 번 모두 MDS 경고가 있으면 거절됩니다.
  • cephadm: 업그레이드 코드는 플래그 없이 fs set … max_mds 1 을 보내고([upgrade.py L772-L777, v20.2.4](https://github.com/ceph/ceph/blob/v20.2.4/src/pybind/mgr/cephadm/upgrade.py#L772-L777)), 끝에 원래 값으로 돌릴 때도 플래그가 없습니다(L1352-L1357).

소스를 따라 읽으면 그다음은 이렇습니다. 실제 업그레이드에서 겪어 확인한 것은 아닙니다. 명령이 실패하면 예외가 되고([mgr_module.py L1780-L1789](https://github.com/ceph/ceph/blob/v20.2.4/src/pybind/mgr/mgr_module.py#L1780-L1789)), 업그레이드 루프가 그것을 받아 UPGRADE_EXCEPTION 경고를 내고 업그레이드를 일시 정지 상태로 둡니다([upgrade.py L583-L608](https://github.com/ceph/ceph/blob/v20.2.4/src/pybind/mgr/cephadm/upgrade.py#L583-L608) · L644-L656). ceph orch upgrade resume 의 코드(L536-L548)는 일시 정지와 오류 표시를 지우고 업그레이드 루프를 다시 돌리므로, MDS 경고가 사라진 뒤라면 같은 단계를 다시 시도하게 됩니다. 다만 이 흐름으로 업그레이드가 실제로 끝까지 이어지는지는 공식 문서·트래커에서 확인하지 못했습니다. 멈췄다면 먼저 상태와 오류 내용을 봅니다.

console
$ ceph orch upgrade status$ ceph health detail

시작 전 점검은 Tentacle 업그레이드 전 ceph orch upgrade check에 모아 두었습니다.

#ceph#cephfs#mds#max_mds#tentacle