1*44704f69SBart Van AsscheiSCSI support for sg3-utils is available from external patches. 2*44704f69SBart Van Assche 3*44704f69SBart Van AsscheTo build sg3-utils from sources and activate built-in iSCSI support 4*44704f69SBart Van Asscheyou need both sg3-utils and the external user-space iSCSI library hosted at : 5*44704f69SBart Van Assche 6*44704f69SBart Van Asschehttps://github.com/sahlberg/libiscsi 7*44704f69SBart Van Assche 8*44704f69SBart Van AsscheThis library provides a client library for accessing remote iSCSI 9*44704f69SBart Van Asschedevices and also comes with patches to the sg3-utils source code 10*44704f69SBart Van Asschedistribution to compile a special version of sg3-utils with iSCSI 11*44704f69SBart Van Asschesupport. 12*44704f69SBart Van Assche 13*44704f69SBart Van AsscheNo support for iSCSI is provided by the sg3-utils maintainer. 14*44704f69SBart Van Assche 15*44704f69SBart Van Assche 16*44704f69SBart Van Assche 17*44704f69SBart Van AsscheOnce sg3-utils is compiler and installed with libiscsi support, you 18*44704f69SBart Van Asschecan specify remote iSCSI devices through a special URL format instead 19*44704f69SBart Van Asscheof the normal /dev/* syntax. 20*44704f69SBart Van Assche 21*44704f69SBart Van AsscheExample: 22*44704f69SBart Van Assche 23*44704f69SBart Van Asschesg_inq iscsi://ronnie%[email protected]/iqn.ronnie.test/1 24*44704f69SBart Van Asschestandard INQUIRY: 25*44704f69SBart Van Assche PQual=0 Device_type=0 RMB=0 version=0x05 [SPC-3] 26*44704f69SBart Van Assche [AERC=0] [TrmTsk=1] NormACA=0 HiSUP=0 Resp_data_format=2 27*44704f69SBart Van Assche SCCS=0 ACC=0 TPGS=0 3PC=0 Protect=0 BQue=0 28*44704f69SBart Van Assche EncServ=0 MultiP=0 [MChngr=0] [ACKREQQ=0] Addr16=0 29*44704f69SBart Van Assche [RelAdr=0] WBus16=0 Sync=0 Linked=0 [TranDis=0] CmdQue=1 30*44704f69SBart Van Assche [SPI: Clocking=0x0 QAS=0 IUS=0] 31*44704f69SBart Van Assche length=66 (0x42) Peripheral device type: disk 32*44704f69SBart Van Assche Vendor identification: IET 33*44704f69SBart Van Assche Product identification: VIRTUAL-DISK 34*44704f69SBart Van Assche Product revision level: 0001 35*44704f69SBart Van Assche Unit serial number: beaf11 36*44704f69SBart Van Assche 37*44704f69SBart Van Assche 38