Removing the setuser_match_path resolved this. This seems like an oversight in this setting that allows people to run osds as root that prevents them from adding storage.
If you are not the intended recipient of this message or received it erroneously, please notify the sender and delete it, together with any attachments, and be advised that any dissemination or copying of this
message is prohibited. |
From: Scottix [scottix@xxxxxxxxx]
Sent: Tuesday, January 10, 2017 11:52 AM
To: David Turner; ceph-users
Subject: Re: [ceph-users] Failing to Activate new OSD ceph-deploy
I think I got it to work by removing setuser_match_path = /var/lib/ceph/$type/$cluster-$id from the host machine.
I think I did do a reboot it was a while ago so don't remember exactly.
Then running ceph-deploy activate
--Scott
Did you ever fitgure out why the /var/lib/ceph/osd/ceph-22 folder was not being created automatically? We are having this issue while testing adding storage to an upgraded to jewel ceph cluster. Like you manually creating the directory and setting the permissions
for the directory will allow us to activate the osd and it comes up and in without issue.
If you are not the intended recipient of this message or received it erroneously, please notify the sender and delete it, together with any attachments, and be advised that
any dissemination or copying of this message is prohibited. |
I played with it enough to make it work.
Basically i created the directory it was going to put the data in
mkdir /var/lib/ceph/osd/ceph-22
Then I ran ceph-deploy activate which then did a little bit more into putting it in the cluster but it still didn't start because of permissions with the journal.
Some of the permissions were set to ceph:ceph I tried the new permissions but it failed to start, and after reading a mailing list a reboot may have fixed that.
Anyway I ran chown -R root:root ceph-22 and after that is started.
I still need to fix permissions but I am happy I got it in atleast.
--Scott
Hey,
This is the first time I have had a problem with ceph-deploy
I have attached the log but I can't seem to activate the osd.
I am running
ceph version 10.2.0 (3a9fba20ec743699b69bd0181dd6c54dc01c64b9)
I did upgrade from Infernalis->Jewel
I haven't changed ceph ownership but I do have the config option
setuser_match_path = /var/lib/ceph/$type/$cluster-$id
Any help would be appreciated,
Scott
|
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com