You can check the remaining active daemons if they have pinned subtrees:

ceph daemon mds.daemon-a get subtrees | jq '.[] | [.dir.path, .auth_first]'
[
  "/dir1/subdir1",
  6
]
[
  "",
  0
]
[
  "~mds6",
  6
]

If there's no pinning enabled it should probably look like this:

[
  "",
  0
]
[
  "~mds0",
  0
]
[
  "/dir2",
  0
]


If you mount the cephfs root directory you can check the subdirectories with getfattr:

host:~ # getfattr -n ceph.dir.pin /mnt/dir1/subdir1
getfattr: Removing leading '/' from absolute path names
# file: mnt/dir1/subdir1
ceph.dir.pin="1"


Does that help?

Zitat von Mark Schouten <m...@tuxis.nl>:

On Tue, May 11, 2021 at 08:47:26AM +0000, Eugen Block wrote:
I don't have a Luminous cluster at hand right now but setting max_mds to 1
already should take care and stop MDS services. Do you have have pinning
enabled (subdirectories pinned to a specific MDS)?

Not on this cluster, AFAIK. How can I check that?

--
Mark Schouten     | Tuxis B.V.
KvK: 74698818     | http://www.tuxis.nl/
T: +31 318 200208 | i...@tuxis.nl


_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io

Reply via email to