Skip to content
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

Centos6.5 fails to ceph-disk-activate #147

Closed
hufman opened this issue Sep 9, 2014 · 5 comments
Closed

Centos6.5 fails to ceph-disk-activate #147

hufman opened this issue Sep 9, 2014 · 5 comments

Comments

@hufman
Copy link
Contributor

hufman commented Sep 9, 2014

The ceph-disk-prepare script seems to make the journal point to /dev/disk/by-partuuid/{uuid}, but Centos6.5 doesn't have a /dev/disk/by-partuuid directory.

@hufman
Copy link
Contributor Author

hufman commented Sep 9, 2014

Looks relevant: http://tracker.ceph.com/issues/4865

@liewegas
Copy link
Member

liewegas commented Sep 9, 2014

the udev rules for partuuid don't work on el6 because blkid is too old and
doesn't provide the GPT partition metadata we need. IIRC the horribly
ugly el6 hack script creates these links, though: see ceph-disk-udev ?

@hufman
Copy link
Contributor Author

hufman commented Sep 9, 2014

Ok, I found ceph-disk-udev, and ran through this series of commands to get each drive mounted. I had to also manually create /var/lib/ceph/osd before the first activation would work.

  1. ceph-disk-udev 2 sdb2 sdb # errors out from not identifying filesystem, but adds it to /dev/disk/by-partuuid
  2. ceph-disk-udev 1 sdb1 sdb # adds the by-partuuid link and then activates the disk

I didn't find any reference to the ceph-disk-udev script except for a comment in ceph-disk. In fact, I can't find any udev scripts.
It looks like my centos65 test vm installed Ceph 0.81 from epel, instead of Ceph 0.80 from the official repo.

Indeed, after I remove epel's version and install the official version, by-partuuid shows up automatically and works great!

@liewegas
Copy link
Member

liewegas commented Sep 9, 2014

https://github.com/ceph/ceph/blob/master/udev/95-ceph-osd-alt.rules

should be installed on el6 distros to run ceph-disk-udev ...

@hufman
Copy link
Contributor Author

hufman commented Sep 9, 2014

The official package installed that file as 95-ceph-osd.rules, perfect.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants