RFc Networking e Informatica
Pubblicata su RFc Networking e Informatica (https://www.rfc.it)

Home > Discovery SCSI

Discovery SCSI

Inviato da fabrizio il Ven, 17/12/2010 - 16:51

Per individuare i device SCSI è comodo il comando sg_map e simili (sg*). Sg sta per SCSI generic.
Il comando riporta varie informazione sui device SCSI, anche quelli che non sono stati abbinati ad uno specifico device, ad esempio un nastro di cui non dispone del driver.
sg_map  ha diverse semplici opzioni elencabili con l'help.
 
Un esempio di comando senza nessuna opzione è il seguente:
srv-oes:~ # sg_map
/dev/sg0 /dev/sr0
/dev/sg1 /dev/nst0

 
In questo caso il device /dev/sg0 è il cdrom /dev/sr0 e /dev/sg1 è un tape /dev/nst0. Se il tape non fosse stato abbinato ad un corretto driver, la seconda parte /dev/nst0 non sarebbe presente.
 Maggiori dettagli si possono avere con sg_map -x
srv-oes:~ # sg_map -x
/dev/sg0 1 0 0 0 5 /dev/sr0
/dev/sg1 2 0 0 0 1 /dev/nst0

 
In questo caso vengono riportati anche l'host, il bus, lo scsi ID, la lun e lo scsi type (es. 5 -> CDROM)
apa-oes:~ # sg_map -i
/dev/sg0 /dev/sr0 HL-DT-ST DVD-RAM GH40L LA01
/dev/sg1 /dev/nst0 HP Ultrium 2-SCSI T65D

 
L'opzione -i fornisce la stringa di identificazione del device.
 
 
 

Forums: 
Linux [1]
Categoria: 
linux [2]

RFc -Restori Fabrizio Consulenze-  S.da Buffolara, 67 -43126 Parma- Tel. +39 335 240228 Fax +39 0521 940035   P.IVA 01788460341

webmaster: Fabrizio
Note

var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-37939674-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
var _paq = _paq || []; _paq.push(["trackPageView"]); _paq.push(["enableLinkTracking"]); (function() { var u=(("https:" == document.location.protocol) ? "https" : "http") + "://www.rfc.it/piwik/"; _paq.push(["setTrackerUrl", u+"piwik.php"]); _paq.push(["setSiteId", "1"]); var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript"; g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s); })();

URL di origine:https://www.rfc.it/content/discovery-scsi

Links
[1] https://www.rfc.it/forums/informatica/linux-suse-e-affini [2] https://www.rfc.it/category/categoria/linux