How are you dealing with hammer -> jewel upgrades?
Regarding $SUBJ, the release notes [1] provide instructions for manually changing the ownership of the directories in /var/lib/ceph
I am exploring ways to automate the ownership change. The /var/lib/ceph/osd tree seems to be the most problematic because it could contain a very large number of files/directories.
Before I try to come up with a solution for automating it (perhaps by hacking "ceph-disk activate", I thought I'd ask here if anyone has already done any thinking/work in this area.
[1] https://github.com/ceph/ceph/blob/master/doc/release-notes.rst#L257-L295
Thanks!
Signature · 4 lines
Nathan Cutler Software Engineer Distributed Storage SUSE LINUX, s.r.o. Tel.: +420 284 084 037
I was thinking about handling it in the OSD directly, particularly since it already has the UID from --setuid.
http://tracker.ceph.com/issues/15733
I haven't done any work on this, though :)
Quoted 24 lines · Nathan Cutler
Regarding $SUBJ, the release notes [1] provide instructions for manually changing the ownership of the directories in
/var/lib/cephI am exploring ways to automate the ownership change. The
/var/lib/ceph/osdtree seems to be the most problematic because it could contain a very large number of files/directories.Before I try to come up with a solution for automating it (perhaps by hacking "ceph-disk activate", I thought I'd ask here if anyone has already done any thinking/work in this area.
[1] https://github.com/ceph/ceph/blob/master/doc/release-notes.rst#L257-L295
Thanks!
--
Nathan Cutler
Software Engineer Distributed Storage
SUSE LINUX, s.r.o.
Tel.: +420 284 084 037
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 3 lines · Ken Dreyer
I was thinking about handling it in the OSD directly, particularly since it already has the UID from --setuid.
http://tracker.ceph.com/issues/15733
Thanks, Ken, for reminding me of that tracker issue! I would rather implement the recursive ownership change for filestore-backed OSDs (assuming it's not a totally insane thing to be doing) in ceph-disk than in the OSD itself, for the following reasons.
ceph-disk already contains heuristics for determining the user/group to pass to ceph-osd [1] and "--setuser ceph --setgroup ceph" is hardcoded when starting ceph-osd via the systemd service [2].
If someone is passing a user/group other than "ceph" to the OSD via --setuser/--setgroup, they will be doing the same with ceph-disk (which also takes --setuser/--setgroup). Alternatively they will not be using ceph-disk at all.
Right?
Nathan
[1] https://github.com/ceph/ceph/blob/master/src/ceph-disk/ceph_disk/main.py#L951
[2] https://github.com/ceph/ceph/blob/master/systemd/ceph-osd%40.service#L12
Quoted 4 lines · Nathan Cutler
If someone is passing a user/group other than "ceph" to the OSD via --setuser/--setgroup, they will be doing the same with ceph-disk (which also takes --setuser/--setgroup). Alternatively they will not be using ceph-disk at all.
Sure, I think that makes sense.