Thanks for your suggestion, we will try it latter. Regards Ning Yao 2016-10-13 21:51 GMT+08:00 Ruben Kerkhof <ruben@xxxxxxxxxxxxxxxx>: > On Thu, Oct 13, 2016 at 3:36 PM, Sage Weil <sage@xxxxxxxxxxxx> wrote: >> On Thu, 13 Oct 2016, Ning Yao wrote: >>> Yeah, >>> >>> If we want to use a different cluster name instead of the default >>> cluster name 'ceph'. we need to modify the ceph-osd@.service file to >>> make sure the cluster name is what we use. >>> Any ideas to solve the issue under systemd? @Loic >> >> I believe you can set the cluster name in /etc/default/ceph or >> /etc/sysconfig/ceph, but I'm not sure if it's tested. >> >> sage >> > > FWIW, at least on CentOS this works fine: > > $ grep CLUSTER /etc/sysconfig/ceph > > CLUSTER="hlm1-ceph01" > > I did need to add --cluster to various commands when setting up the > cluster though, for instance ceph-disk prepare --cluster $cluster. > There was no need to modify any systemd units after that. > > Kind regards, > > Ruben -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html