/ceph-osd-prestart.sh does use the configuration
22 Apr
2021
22 Apr
'21
8:26 p.m.
I'm using a rpm build directly from ceph, ceph-osd-16.2.1-0.el8.x86_64 I tweaked the configuration with a custom cluster name and custom installation dir In the unit, there is the configuration: ExecStartPre=/usr/libexec/ceph/ceph-osd-prestart.sh --cluster ${CLUSTER} --id %i And this script check the osd path with an hard coded value: data="/var/lib/ceph/osd/${cluster:-ceph}-$id" It doesn't use the key from the configuration file. But using ceph-conf would have solve the problem: $ CEPH_CONF=/data/ceph/conf/ngceph.conf CLUSTER=ngceph ceph-conf --name osd.1 --show-config-value osd_data /data/ceph/data/osd/ceph.1
1974
Age (days ago)
1974
Last active (days ago)
0 comments
1 participants
participants (1)
-
Fabrice Bacchella