All of lore.kernel.org
 help / color / mirror / Atom feed
* Sg_ses question
@ 2007-05-21 16:39 Haefliger, Juerg
  2007-05-22 20:29 ` Douglas Gilbert
  0 siblings, 1 reply; 3+ messages in thread
From: Haefliger, Juerg @ 2007-05-21 16:39 UTC (permalink / raw)
  To: linux-scsi

Hi,

Not sure if this is the right list for my question but I couldn't find a
more suitable place to ask it.

I'm trying to set the locator light of a disk in a SAS enclosure using
sg_ses but I'm not getting anywhere. I'm dumping the enclosure status
diagnostic page using 'sg_ses --page=2 --raw /dev/sgXX > page' and then
set the SELECT and RQST IDENT bits of the array device element in
question and write it back doing 'sg_ses --control --page=2 --data=-
/dev/sgXX < tmp'. The command completes without error but unfortunately,
nothing happens. When I read the page back, the IDENT bit is still
cleared and the light on the enclosure remains turned off.

Am I doing something wrong or am I missing something? Can't I use sg_ses
to achieve this?

Thanks in advance for any help
...juerg

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Sg_ses question
  2007-05-21 16:39 Sg_ses question Haefliger, Juerg
@ 2007-05-22 20:29 ` Douglas Gilbert
  2007-05-23 20:29   ` Haefliger, Juerg
  0 siblings, 1 reply; 3+ messages in thread
From: Douglas Gilbert @ 2007-05-22 20:29 UTC (permalink / raw)
  To: Haefliger, Juerg; +Cc: linux-scsi

Haefliger, Juerg wrote:
> Hi,
> 
> Not sure if this is the right list for my question but I couldn't find a
> more suitable place to ask it.
> 
> I'm trying to set the locator light of a disk in a SAS enclosure using
> sg_ses but I'm not getting anywhere. I'm dumping the enclosure status
> diagnostic page using 'sg_ses --page=2 --raw /dev/sgXX > page' and then
> set the SELECT and RQST IDENT bits of the array device element in
> question and write it back doing 'sg_ses --control --page=2 --data=-
> /dev/sgXX < tmp'. The command completes without error but unfortunately,
> nothing happens. When I read the page back, the IDENT bit is still
> cleared and the light on the enclosure remains turned off.
> 
> Am I doing something wrong or am I missing something? Can't I use sg_ses
> to achieve this?

The procedure looks correct. I haven't had any (other)
reports of sg_ses not working lately. The only suggestion
I can make is to ask if you have selected the element
control rather than the overall control.

Doug Gilbert





^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Sg_ses question
  2007-05-22 20:29 ` Douglas Gilbert
@ 2007-05-23 20:29   ` Haefliger, Juerg
  0 siblings, 0 replies; 3+ messages in thread
From: Haefliger, Juerg @ 2007-05-23 20:29 UTC (permalink / raw)
  To: dougg; +Cc: linux-scsi

> -----Original Message-----
> From: linux-scsi-owner@vger.kernel.org 
> [mailto:linux-scsi-owner@vger.kernel.org] On Behalf Of Douglas Gilbert
> Sent: Tuesday, May 22, 2007 1:29 PM
> To: Haefliger, Juerg
> Cc: linux-scsi@vger.kernel.org
> Subject: Re: Sg_ses question
> 
> Haefliger, Juerg wrote:
> > Hi,
> > 
> > Not sure if this is the right list for my question but I 
> couldn't find 
> > a more suitable place to ask it.
> > 
> > I'm trying to set the locator light of a disk in a SAS 
> enclosure using 
> > sg_ses but I'm not getting anywhere. I'm dumping the 
> enclosure status 
> > diagnostic page using 'sg_ses --page=2 --raw /dev/sgXX > page' and 
> > then set the SELECT and RQST IDENT bits of the array device 
> element in 
> > question and write it back doing 'sg_ses --control --page=2 
> --data=- 
> > /dev/sgXX < tmp'. The command completes without error but 
> > unfortunately, nothing happens. When I read the page back, 
> the IDENT 
> > bit is still cleared and the light on the enclosure remains 
> turned off.
> > 
> > Am I doing something wrong or am I missing something? Can't I use 
> > sg_ses to achieve this?
> 
> The procedure looks correct. I haven't had any (other) 
> reports of sg_ses not working lately. The only suggestion I 
> can make is to ask if you have selected the element control 
> rather than the overall control.

Hmm... Just tried it again and now it works. I don't think I did
something different than before...

Thanks
...juerg

 
> Doug Gilbert
> 
> 
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe 
> linux-scsi" in the body of a message to 
> majordomo@vger.kernel.org More majordomo info at  
> http://vger.kernel.org/majordomo-info.html
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-05-23 20:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-21 16:39 Sg_ses question Haefliger, Juerg
2007-05-22 20:29 ` Douglas Gilbert
2007-05-23 20:29   ` Haefliger, Juerg

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.