blob: 917190a281f59072c7b043b46eb85e44d5647a4f [file] [log] [blame]
Douglas Gilbertacbad402011-05-18 14:58:31 +00001iSCSI support for sg3-utils is available from external patches.
Douglas Gilbertb62a65f2011-05-11 20:08:30 +00002
Douglas Gilbertacbad402011-05-18 14:58:31 +00003To build sg3-utils from sources and activate built-in iSCSI support
Douglas Gilbert1cca59e2011-12-17 02:11:10 +00004you need both sg3-utils and the external user-space iSCSI library hosted at :
Douglas Gilbertacbad402011-05-18 14:58:31 +00005
6https://github.com/sahlberg/libiscsi
7
8This library provides a client library for accessing remote iSCSI
9devices and also comes with patches to the sg3-utils source code
10distribution to compile a special version of sg3-utils with iSCSI
11support.
12
13No support for iSCSI is provided by the sg3-utils maintainer.
Douglas Gilbertb62a65f2011-05-11 20:08:30 +000014
15
Douglas Gilbertacbad402011-05-18 14:58:31 +000016
17Once sg3-utils is compiler and installed with libiscsi support, you
18can specify remote iSCSI devices through a special URL format instead
19of the normal /dev/* syntax.
20
21Example:
22
23sg_inq iscsi://ronnie%password@10.1.1.27/iqn.ronnie.test/1
24standard INQUIRY:
25 PQual=0 Device_type=0 RMB=0 version=0x05 [SPC-3]
26 [AERC=0] [TrmTsk=1] NormACA=0 HiSUP=0 Resp_data_format=2
27 SCCS=0 ACC=0 TPGS=0 3PC=0 Protect=0 BQue=0
28 EncServ=0 MultiP=0 [MChngr=0] [ACKREQQ=0] Addr16=0
29 [RelAdr=0] WBus16=0 Sync=0 Linked=0 [TranDis=0] CmdQue=1
30 [SPI: Clocking=0x0 QAS=0 IUS=0]
31 length=66 (0x42) Peripheral device type: disk
32 Vendor identification: IET
33 Product identification: VIRTUAL-DISK
34 Product revision level: 0001
35 Unit serial number: beaf11
36
Douglas Gilbertb62a65f2011-05-11 20:08:30 +000037