All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Spray <john.spray@redhat.com>
To: "Handzik, Joe" <joseph.t.handzik@hp.com>,
	"ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: Re: Advice for implementation of LED behavior in Ceph ecosystem
Date: Wed, 01 Apr 2015 22:55:10 +0100	[thread overview]
Message-ID: <551C693E.6020100@redhat.com> (raw)
In-Reply-To: <551C6083.4070707@redhat.com>

On 01/04/2015 22:17, John Spray wrote:
> Once you have found the block device and reported it in the OSD 
> metadata, you can use that information to go poke its LEDs using 
> enclosure services hooks as you suggest, and wrap that in an OSD 
> 'tell' command (OSD::do_command).  In a similar vein to finding the 
> block device, it would be a good thing to have a config option here so 
> that admins can optionally specify a custom command for flashing a 
> particular OSD's LED.  Admins might not bother setting that, but it 
> would mean a system integrator could optionally configure ceph to work 
> with whatever exotic custom stuff they have.
One more thought occurs to me -- one of the main cases where you'd want 
to flash an LED would be to identify the drive of an OSD that is 
down/out due to a dead drive.  In that instance, the ceph-osd process 
wouldn't actually be running, so you wouldn't be able to send it the 
'tell' to flash the LED.

I guess in this interesting case you could either:
  * Allow other OSDs on the same host to handle the 'tell blink' command 
for the dead OSD's drive
  * Leave this to calamari/whoever to read the dead OSD's block device 
path from "ceph osd metadata", and go blink the LEDs themselves.

Cheers,
John

  reply	other threads:[~2015-04-01 21:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-01 18:56 Advice for implementation of LED behavior in Ceph ecosystem Handzik, Joe
2015-04-01 20:27 ` Mark Nelson
2015-04-01 20:29 ` Sage Weil
2015-04-01 21:17 ` John Spray
2015-04-01 21:55   ` John Spray [this message]
2015-04-01 21:57     ` Mark Nelson
2015-04-01 22:04       ` John Spray
2015-04-01 22:06         ` Mark Nelson
2015-04-01 22:07         ` John Spray
2015-04-01 22:10           ` Handzik, Joe
2015-04-01 23:17     ` Sage Weil
2015-04-01 23:48       ` Handzik, Joe
     [not found] <2C438B34CAC8264398F5C7AF7411910A6341F7BD@G4W3206.americas.hpqcorp.net>
     [not found] ` <61596DF5-5893-4F29-B3A3-DC2CEBDCD119@redhat.com>
2015-04-21 14:46   ` Gregory Meno

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=551C693E.6020100@redhat.com \
    --to=john.spray@redhat.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=joseph.t.handzik@hp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.