I have found a solution:

ceph-osd --get-journal-fsid --osd-journal=<partition> -i 0

Note: the "-i 0" is required by the command line, but makes no
difference in the output - i.e. '-i 2' works just as well.

This results in an fsid which matches the fsid of the OSD it belongs to.  :)

On Thu, Apr 25, 2013 at 11:05 AM, Gregory Farnum <g...@inktank.com> wrote:
> On Wed, Apr 24, 2013 at 6:05 PM, Mandell Degerness
> <mand...@pistoncloud.com> wrote:
>> Given a partition, is there a command which can be run to validate if
>> the partition is used as a journal of an OSD and, if so, what OSD it
>> belongs to?
>
> The new-style deployment stuff sets partition type GUIDs to special
> values that end in values like ceff2be and ceff05d so I think you can
> check for those to see if it's a journal or not (if using ceph-deploy
> or another tool chain that involves ceph-disk-[prepare|activate]).
> There's nothing that encodes which OSD it belongs to that's
> user-accessible right now, though. :/ You should make a feature
> request!
> -Greg
> Software Engineer #42 @ http://inktank.com | http://ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to