linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* registering lun: add-single-device does not work
@ 2005-09-22  9:42 akshat verma
  2005-09-23  0:35 ` Douglas Gilbert
  0 siblings, 1 reply; 2+ messages in thread
From: akshat verma @ 2005-09-22  9:42 UTC (permalink / raw)
  To: linux-scsi



> 
> I have been trying to register luns created on a FastT box with 
> my linux box..
> 
> the luns are visible to linux
> cat /proc/scsi/qla2200/0 returns the following..  as one can see, 
> the luns are not registered..
> ---------------
> QLogic PCI to Fibre Channel Host Adapter for QLA22xx:
>          Firmware version:  2.02.06, Driver version 7.01.01
> Entry address = f8831060
> HBA: QLA2200 , Serial# J17188
> Request Queue = 0x2b300000, Response Queue = 0x2b7f0000
> Request Queue count= 512, Response Queue count= 64
> Total number of active commands = 0
> Total number of interrupts = 51
> Total number of IOCBs (used/max) = (0/600)
> Total number of queued commands = 0
>      Device queue depth = 0x20
> Number of free request entries = 510
> Number of mailbox timeouts = 0
> Number of ISP aborts = 0
> Number of loop resyncs = 4
> Number of retries for empty slots = 0
> Number of reqs in pending_q= 0, retry_q= 0, done_q= 0, scsi_retry_q= 0
> Host adapter:loop state= <READY>, flags= 0x868811
> Dpc flags = 0x0
> MBX flags = 0x0
> SRB Free Count = 4096
> Link down Timeout = 000
> Port down retry = 030
> Login retry count = 030
> Commands retried with dropped frame(s) = 0
> 
> 
> SCSI Device Information:
> scsi-qla0-adapter-node=200000e08b0dc4fe;
> scsi-qla0-adapter-port=210000e08b0dc4fe;
> scsi-qla0-target-0=200b00a0b80be4d7;
> 
> SCSI LUN Information:
> (Id:Lun)  * - indicates lun is not registered with the OS.
> ( 0: 0): Total reqs 1, Pending reqs 0, flags 0x0*, 0:0:82,
> ( 0: 1): Total reqs 0, Pending reqs 0, flags 0x0*, 0:0:82,
> ( 0: 5): Total reqs 0, Pending reqs 0, flags 0x0*, 0:0:82,
> -------------------------------------------------------------------
> 
> and so going thru the lists, I figured that an
> echo "scsi add-single-device 0 0 0 0" > /proc/scsi/scsi
> should be able to register the lun.. however, it does not change anything..
> 
> I checked also at /proc/scsi/sg/devices but the device was not registered..
> 
> 0       0       0       0       3       0       32      0       0
> 1       0       0       0       0       2       31      0       1
> 3       0       0       0       5       0       5       0       1
> 
> trying to figure out the problem, I found that /proc/scsi/scsi has 
> only read permissions even for the root.. and I was unable to 
> change the permissions..
> now, my question is this..
> 1. how do I register the lun?
> 2. is a read only permission normal of /proc/scsi/scsi behavior ? ( 
> I am a newbie here)
> 3. is there anything I have messed up in my system settings? In 
> that case, shld I restart from scratch (creating luns etc).. any 
> suggestions, obvious mistakes I might have made here..
> 
> thanks,
> akshat
> 
> P.S - please cc me any reply as well..
> 
> 
> --
> _______________________________________________
> 
> Search for businesses by name, location, or phone number.  -Lycos Yellow Pages
> 
> http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10
> 
> -
> 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



Please send me mails in future on akshatverma@gmail.com 

AKSHAT VERMA

Life should be enjoyable; too often we think it's about achievement.
The truth is that making life enjoyable is an achievement in itself.


-- 
_______________________________________________

Search for businesses by name, location, or phone number.  -Lycos Yellow Pages

http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10


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

* Re: registering lun: add-single-device does not work
  2005-09-22  9:42 registering lun: add-single-device does not work akshat verma
@ 2005-09-23  0:35 ` Douglas Gilbert
  0 siblings, 0 replies; 2+ messages in thread
From: Douglas Gilbert @ 2005-09-23  0:35 UTC (permalink / raw)
  To: akshat verma; +Cc: linux-scsi

akshat verma wrote:
> 
>>I have been trying to register luns created on a FastT box with 
>>my linux box..
>>
>>the luns are visible to linux
>>cat /proc/scsi/qla2200/0 returns the following..  as one can see, 
>>the luns are not registered..
>>---------------
>>QLogic PCI to Fibre Channel Host Adapter for QLA22xx:
>>         Firmware version:  2.02.06, Driver version 7.01.01
>>Entry address = f8831060
>>HBA: QLA2200 , Serial# J17188
>>Request Queue = 0x2b300000, Response Queue = 0x2b7f0000
>>Request Queue count= 512, Response Queue count= 64
>>Total number of active commands = 0
>>Total number of interrupts = 51
>>Total number of IOCBs (used/max) = (0/600)
>>Total number of queued commands = 0
>>     Device queue depth = 0x20
>>Number of free request entries = 510
>>Number of mailbox timeouts = 0
>>Number of ISP aborts = 0
>>Number of loop resyncs = 4
>>Number of retries for empty slots = 0
>>Number of reqs in pending_q= 0, retry_q= 0, done_q= 0, scsi_retry_q= 0
>>Host adapter:loop state= <READY>, flags= 0x868811
>>Dpc flags = 0x0
>>MBX flags = 0x0
>>SRB Free Count = 4096
>>Link down Timeout = 000
>>Port down retry = 030
>>Login retry count = 030
>>Commands retried with dropped frame(s) = 0
>>
>>
>>SCSI Device Information:
>>scsi-qla0-adapter-node=200000e08b0dc4fe;
>>scsi-qla0-adapter-port=210000e08b0dc4fe;
>>scsi-qla0-target-0=200b00a0b80be4d7;
>>
>>SCSI LUN Information:
>>(Id:Lun)  * - indicates lun is not registered with the OS.
>>( 0: 0): Total reqs 1, Pending reqs 0, flags 0x0*, 0:0:82,
>>( 0: 1): Total reqs 0, Pending reqs 0, flags 0x0*, 0:0:82,
>>( 0: 5): Total reqs 0, Pending reqs 0, flags 0x0*, 0:0:82,
>>-------------------------------------------------------------------
>>
>>and so going thru the lists, I figured that an
>>echo "scsi add-single-device 0 0 0 0" > /proc/scsi/scsi
>>should be able to register the lun.. however, it does not change anything..
>>
>>I checked also at /proc/scsi/sg/devices but the device was not registered..

$ cat /proc/scsi/sg/device_hdr
host    chan    id      lun     type    opens   qdepth  busy    online
>>0       0       0       0       3       0       32      0       0
<snip>

Akshat,
Placing the header above that line shows device 0 0 0 0
is registered as /dev/sg0. It has peripheral device
type 3 which is for "processor". That will either be a SAFTE
(i.e. SES like) device or a scanner (unlikely).

If it is a SAFTE device then have a look at:
http://oss.metaparadigm.com/safte-monitor

Doug Gilbert

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

end of thread, other threads:[~2005-09-23  0:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-22  9:42 registering lun: add-single-device does not work akshat verma
2005-09-23  0:35 ` Douglas Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).