Problem with "ceph osd create <uuid>"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi list,

I've run into a bit of a weird error and I'm hoping that you can tell
me what is going wrong.  There seems to be a race condition in the way
I am using "ceph osd create <uuid>" and actually creating the OSD's.
The log from one of the servers is at:

https://gist.github.com/528e347a5c0ffeb30abd

The process I am trying to follow (for the OSDs) is:

1) Create XFS file system on disk.
2) Use FS UUID as source to get a new OSD id #.
'ceph', 'osd', 'create', '32895846-ca1c-4265-9ce7-9f2a42b41672'
(Returns 2.)
3) Pass the UUID and OSD id to the create osd command

ceph-osd -c /etc/ceph/ceph.conf --fsid
e61c1b11-4a1c-47aa-868d-7b51b1e610d3 --osd-uuid
32895846-ca1c-4265-9ce7-9f2a42b41672 -i 2 --mkfs --osd-journal-size
8192
4) Start the OSD, as part of the start process, I verify that the
whoami and osd fsid agree (in case this disk came from a previous
cluster, somehow) - should be just a sanity check
'ceph', 'osd', 'create', '32895846-ca1c-4265-9ce7-9f2a42b41672'
(Returns 1!)

This is clearly a race condition because we have several cluster
creations without this happening and then this happens about once
every 8 times or so.  Thoughts?

Regards,
Mandell Degerness
--
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


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux