New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
owner for osds and journal device partition are rnot set correctly with infernalis #496
Comments
The udev rule is a good solution, however an easier fix would be to run Can you test this? |
Just tried on Ubuntu 14.04 and I can't reproduce your issue. I can create an OSD with a dedicated journal and I don't hahve any problem. Can you share the error trace? |
the playbook seem to finish well but no osd is started, if I try to start manualy on the OSDs server, I have this message 👍
And if I change the owner of the device partition, OSDs start correctly |
Did you try to simply set:
And let ceph-disk configure the device.
Here |
The OSD don't start because the journal device was partitioned outside of the play and thus had wrong permissions. Closing this. |
OS : Ubuntu 14.04
ceph version : infernalis
Journals are on ssd raw partition :
group_vars/osds :
crush_location: false
osd_crush_location: "'root={{ ceph_crush_root }} rack={{ ceph_crush_rack }} host={{ ansible_hostname }}'"
raw_multi_journal: true
raw_journal_devices:
- /dev/sdl1
- /dev/sdl2
I must create SSD partitons before to run the playbook,
brw-rw---- 1 root disk 8, 177 jan 27 22:00 /dev/sdl1
brw-rw---- 1 root disk 8, 178 jan 27 22:00 /dev/sdl2
since infernalis, OSD runs with the user ceph so both osd disks and journal partitions seem to be owned by the ceph user.
to set the owner of the disk I run that's script before
for disk in sdb sdc ; do
if ! grep -q ${disk} /etc/udev/rules.d/89-ceph-journal.rules ; then
echo "KERNEL==\"${disk}?\" SUBSYSTEM==\"block\" OWNER=\"ceph\" GROUP=\"disk\" MODE=\"0660\"" >> /etc/udev/rules.d/89-ceph-journal.rules
fi
done
so when the ceph-disk create OSDs partitions, udev set the good owner.
maybe ceph-ansible should fill /etc/udev/rules.d/89-ceph-journal.rules ?
and for the journal partition, it's not possible to change the owner of the partition before because the user ceph is not create yet, and the playbook does not change the owner of journal partition. so OSDs fails to start, we must change the user of journal partitions and run the playbook again to starts OSDSs
The text was updated successfully, but these errors were encountered: