From: John Mulligan Date: Tue, 5 May 2026 17:47:44 +0000 (-0400) Subject: cephadm: in cephadm shell mount /var/lib/ceph under /srv X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=abaaefd5d9c84f06a4ea3406800886c7974e0324;p=ceph.git cephadm: in cephadm shell mount /var/lib/ceph under /srv When running cephadm shell mount /var/lib/ceph at /srv/ceph unless /var/lib/ceph is already being passed to cephadm shell -v option. The default mount is read only. Passing it manually allows the user to mount it in a custom location read/write. The mount location at /srv/ceph is chosen because /var/lib/ceph is already in use for compatibility with various ceph. The /srv tree is currently unused by the container and serves a similar purpose to /var/lib if you turn your head in squint a little. Making this change enables the use of tools that want to read files or connect to sockets in that file heirarchy. Specifically, in this case, the ceph smb ctl tool. Signed-off-by: John Mulligan --- diff --git a/src/cephadm/cephadm.py b/src/cephadm/cephadm.py index 45cb599e648..7cf65220c80 100755 --- a/src/cephadm/cephadm.py +++ b/src/cephadm/cephadm.py @@ -3376,6 +3376,8 @@ def command_shell(ctx): mounts[mount] = dst else: mounts[mount] = '/mnt/{}'.format(filename) + if '/var/lib/ceph' not in mounts: + mounts['/var/lib/ceph'] = '/srv/ceph:ro,z' if ctx.command: command = ctx.command else: