On 05/01/16 07:52, Stuart Longland wrote:
>> I ran into this same issue, and found that a reboot ended up setting the
>> > ownership correctly. If you look at /lib/udev/rules.d/95-ceph-osd.rules
>> > you'll see the magic that makes it happen
> Ahh okay, good-o, so a reboot should be fine. I guess adding chown-ing
> of journal files would be a good idea (maybe it's version specific, but
> chown -R did not follow the symlink and change ownership for me).
Well, it seems I spoke to soon. Not sure what logic the udev rules use
to identify ceph journals, but it doesn't seem to pick up on the
journals in our case as after a reboot, those partitions are owned by
root:disk with permissions 0660.
Adding 'ceph' user to the 'disk' group oddly enough isn't sufficient.
For the record:
> root@bneprdsn0:~# fdisk -l /dev/sdc
>
> Disk /dev/sdc: 60.0 GB, 60022480896 bytes
> 255 heads, 63 sectors/track, 7297 cylinders, total 117231408 sectors
> Units = sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0x0001c576
>
> Device Boot Start End Blocks Id System
> /dev/sdc1 * 2048 17006591 8502272 83 Linux
> /dev/sdc2 17006592 117231407 50112408 5 Extended
> /dev/sdc5 17008640 58951679 20971520 83 Linux
> /dev/sdc6 58953728 100896767 20971520 83 Linux
> /dev/sdc7 100898816 117229567 8165376 82 Linux swap / Solaris
sdc5 and sdc6 are the journals for sda1 and sdb1. Journal disk here is
a Intel 520-series 60GB SSD, shared with the host OS, formatted with a
MS-DOS disklabel. I'm not sure what partition type the Ceph udev rules
expect.
--
_ ___ Stuart Longland - Systems Engineer
\ /|_) | T: +61 7 3535 9619
\/ | \ | 38b Douglas Street F: +61 7 3535 9699
SYSTEMS Milton QLD 4064 http://www.vrt.com.au
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com