Douglas Gilbert | acbad40 | 2011-05-18 14:58:31 +0000 | [diff] [blame] | 1 | iSCSI support for sg3-utils is available from external patches. |
Douglas Gilbert | b62a65f | 2011-05-11 20:08:30 +0000 | [diff] [blame] | 2 | |
Douglas Gilbert | acbad40 | 2011-05-18 14:58:31 +0000 | [diff] [blame] | 3 | To build sg3-utils from sources and activate built-in iSCSI support |
Douglas Gilbert | 1cca59e | 2011-12-17 02:11:10 +0000 | [diff] [blame] | 4 | you need both sg3-utils and the external user-space iSCSI library hosted at : |
Douglas Gilbert | acbad40 | 2011-05-18 14:58:31 +0000 | [diff] [blame] | 5 | |
| 6 | https://github.com/sahlberg/libiscsi |
| 7 | |
| 8 | This library provides a client library for accessing remote iSCSI |
| 9 | devices and also comes with patches to the sg3-utils source code |
| 10 | distribution to compile a special version of sg3-utils with iSCSI |
| 11 | support. |
| 12 | |
| 13 | No support for iSCSI is provided by the sg3-utils maintainer. |
Douglas Gilbert | b62a65f | 2011-05-11 20:08:30 +0000 | [diff] [blame] | 14 | |
| 15 | |
Douglas Gilbert | acbad40 | 2011-05-18 14:58:31 +0000 | [diff] [blame] | 16 | |
| 17 | Once sg3-utils is compiler and installed with libiscsi support, you |
| 18 | can specify remote iSCSI devices through a special URL format instead |
| 19 | of the normal /dev/* syntax. |
| 20 | |
| 21 | Example: |
| 22 | |
| 23 | sg_inq iscsi://ronnie%password@10.1.1.27/iqn.ronnie.test/1 |
| 24 | standard 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 Gilbert | b62a65f | 2011-05-11 20:08:30 +0000 | [diff] [blame] | 37 | |