SCST Create Deb Package and Install

Create SCST Debian Package and Install

This work was made possible in part by "PC Junkie" PC Junkie PC Junkie (translated from Japanese to English)in Japan who posted a note on putting SCST.pm in the perl path(s) which was the critical piece that glues this solution to a working solution. Thank you "PC Junkie".

This work was also based on some very useful pointers on working with the "checkinstall" package manufacturing program here and here.

Note 2: that an uninstall test was done and reboot was normal with no issues after uninstall.

Note 3: that the attached script has other sections for SCST on RedHat and CentOS but that the packaging update is for the Debian packaging for Debian, Ubuntu, etc. and is in only the "Ubuntu" branch of the script. You can just edit the script if you want to use it and remove the CentOS and RedHat sections (be sure to fix the if-the-fi's though).

Note 4: there is packaging for RPM for RedHat (e.g. Oracle Linux) in the script, but CentOS has not yet been package-ized.

Note 5: so far the scripting has been tested on Ubuntu VMs for 17.04, 16.04, 15.04 and 14.04 and works on all of them. There is also an included uninstall script which will deconfigure the whole thing in less than a minute.

Credits and References

SCST is developed and maintained by Vladislav Bolkhovitin and Bart Vanassche and possibly other maintainers. Learn more about SCST Linux SAN here.

Checkinstall package creator (RPM and Deb formats as well as others) is developed and maintained by

Felipe Eduardo Sánchez Díaz Durán and possibly other maintainers. Learn more about checkinstall package builder here.

Orabuntu-LXC is developed and maintained by me, Gilbert Standen. Learn more about Orabuntu-LXC here and here.

Create SCST Debian Package and SCST SAN Script

The automated scripting to create an SCST Debian package and install it is attached to this post as scst-files.tar. The main script that creates the debian package, installs it and configures the SCST SAN is pasted in below for reference, but is included in the scst-files.tar archive. This archive is part of the Orabuntu-LXC project and is included with the download of the Orabuntu-LXC project files from github.

The easiest way to create and install the SCST Debian package on Ubuntu and other Debian-fork Linux distributions is to download the scripts attached to this post and run them.

NOTE: Put the scst-files.tar in the /home/username/Downloads directory of the Ubuntu install user or a user that has been granted the equivalent full sudo privs of the install user, then

  • untar /home/username/Downloads/scst-files.tar

  • run ./create-scst-install.sh

Output (dmesg) After SCST SAN Package Install and Configuration

The output from dmesg during the install is shown below. Tainted kernel message is not unexpected and can be ignored. This is an unsigned package and it 's not truly built from source, it's built with checkinstall which takes the equivalent of "make Install" and makes it into a deb package so that at least the scst install can be managed and known to the ubuntu package manager.

[ 1309.696657] scst: loading out-of-tree module taints kernel.

[ 1309.697594] scst: module verification failed: signature and/or required key missing - tainting kernel

[ 1309.704258] scst: Attached to scsi1, channel 0, id 0, lun 0, type 5

[ 1309.704264] scst: Attached to scsi2, channel 0, id 0, lun 0, type 0

[ 1309.704443] scst: User interface thread started

[ 1309.704467] scst: Init thread started

[ 1309.704478] scst: Task management thread started

[ 1309.704485] scst: Target template copy_manager registered successfully

[ 1309.704505] scst: Target copy_manager_tgt for template copy_manager registered successfully

[ 1309.704508] scst: Using security group "copy_manager_tgt" for initiator "copy_manager_sess" (target copy_manager_tgt)

[ 1309.704520] scst: SCST version 3.3.0-pre1 loaded successfully (max mem for commands 247MB, per device 98MB)

[ 1309.709784] scst: Management thread started

[ 1309.721158] scst: Virtual device handler vdisk_fileio for type 0 registered successfully

[ 1309.721161] scst: Virtual device handler vdisk_blockio for type 0 registered successfully

[ 1309.721164] scst: Virtual device handler vdisk_nullio for type 0 registered successfully

[ 1309.721166] scst: Virtual device handler vcdrom for type 5 registered successfully

[ 1309.737687] scst: Device handler "dev_disk" for type 0 registered successfully

[ 1309.737692] scst: Device handler "dev_disk_perf" for type 0 registered successfully

[ 1309.751943] scst: Virtual device handler "scst_user" registered successfully

[ 1309.759226] scst_user: Cleanup thread started

[ 1309.770325] scst: Device handler "dev_modisk" for type 7 registered successfully

[ 1309.770328] scst: Device handler "dev_modisk_perf" for type 7 registered successfully

[ 1309.779458] scst: Device handler "dev_processor" for type 3 registered successfully

[ 1309.789594] scst: Device handler "dev_raid" for type 12 registered successfully

[ 1309.799808] scst: Device handler "dev_tape" for type 1 registered successfully

[ 1309.799811] scst: Device handler "dev_tape_perf" for type 1 registered successfully

[ 1309.806839] scst: Device handler "dev_cdrom" for type 5 registered successfully

[ 1309.821081] scst: Device handler "dev_changer" for type 8 registered successfully

[ 1309.828778] iscsi-scst: iSCSI SCST Target - version 3.3.0-pre1

[ 1309.828779] iscsi-scst: Registered iSCSI transport: iSCSI-TCP

[ 1309.830515] scst: Target template iscsi registered successfully

[ 1309.830546] iscsi-scst: Read thread for pool ffff92377b264980 started

[ 1309.830567] iscsi-scst: Read thread for pool ffff92377b264980 started

[ 1309.830575] iscsi-scst: Write thread for pool ffff92377b264980 started

[ 1309.834676] iscsi-scst: Write thread for pool ffff92377b264980 started

[ 1310.357375] systemd[1]: Started CUPS Scheduler.

[ 1391.140822] scst: Target iqn.2017-07.com.urdomain1:skynet3.san.asm.oracle for template iscsi registered successfully

[ 1391.296437] scst: Added name iqn.1993-08.org.debian:01:678a6e1e9cb to group lxc1 (target iqn.2017-07.com.urdomain1:skynet3.san.asm.oracle)

[ 1421.684351] dev_vdisk: Registering virtual vdisk_fileio device asm_sysd1_00 (ROTATIONAL)

[ 1421.685089] dev_vdisk: Attached SCSI target virtual disk asm_sysd1_00 (file="/asm0/asm_sysd1_00.img", fs=1024MB, bs=512, nblocks=2097152, cyln=1024)

[ 1421.687187] scst: Added device asm_sysd1_00 to group copy_manager_tgt (LUN 0, flags 0x4) to target copy_manager_tgt

[ 1421.687197] scst: Attached to virtual device asm_sysd1_00 (id 1)

[ 1421.764313] dev_vdisk: Registering virtual vdisk_fileio device asm_data1_00 (ROTATIONAL)

[ 1421.764402] dev_vdisk: Attached SCSI target virtual disk asm_data1_00 (file="/asm0/asm_data1_00.img", fs=1024MB, bs=512, nblocks=2097152, cyln=1024)

[ 1421.764967] scst: Added device asm_data1_00 to group copy_manager_tgt (LUN 1, flags 0x4) to target copy_manager_tgt

[ 1421.764981] scst: Attached to virtual device asm_data1_00 (id 2)

[ 1421.835965] dev_vdisk: Registering virtual vdisk_fileio device asm_reco1_00 (ROTATIONAL)

[ 1421.836294] dev_vdisk: Attached SCSI target virtual disk asm_reco1_00 (file="/asm0/asm_reco1_00.img", fs=1024MB, bs=512, nblocks=2097152, cyln=1024)

[ 1421.837552] scst: Added device asm_reco1_00 to group copy_manager_tgt (LUN 2, flags 0x4) to target copy_manager_tgt

[ 1421.837575] scst: Attached to virtual device asm_reco1_00 (id 3)

[ 1421.907944] scst: Added device asm_sysd1_00 to group lxc1 (LUN 0, flags 0x2) to target iqn.2017-07.com.urdomain1:skynet3.san.asm.oracle

[ 1421.975042] scst: Added device asm_data1_00 to group lxc1 (LUN 1, flags 0x2) to target iqn.2017-07.com.urdomain1:skynet3.san.asm.oracle

[ 1422.047987] scst: Added device asm_reco1_00 to group lxc1 (LUN 2, flags 0x2) to target iqn.2017-07.com.urdomain1:skynet3.san.asm.oracle

[ 1442.294369] scst: Using autogenerated relative target id 1 for target iqn.2017-07.com.urdomain1:skynet3.san.asm.oracle

[ 1468.977850] scsi host3: iSCSI Initiator over TCP/IP

[ 1468.987057] scst: Using security group "lxc1" for initiator "iqn.1993-08.org.debian:01:678a6e1e9cb" (target iqn.2017-07.com.urdomain1:skynet3.san.asm.oracle)

[ 1468.991223] scsi host4: iSCSI Initiator over TCP/IP

[ 1469.011750] iscsi-scst: Negotiated parameters: InitialR2T No, ImmediateData Yes, MaxConnections 1, MaxRecvDataSegmentLength 1048576, MaxXmitDataSegmentLength 262144,

[ 1469.011752] iscsi-scst: MaxBurstLength 1048576, FirstBurstLength 65536, DefaultTime2Wait 0, DefaultTime2Retain 0,

[ 1469.011753] iscsi-scst: MaxOutstandingR2T 1, DataPDUInOrder Yes, DataSequenceInOrder Yes, ErrorRecoveryLevel 0,

[ 1469.011754] iscsi-scst: HeaderDigest None, DataDigest None, OFMarker No, IFMarker No, OFMarkInt 2048, IFMarkInt 2048, RDMAExtensions No

[ 1469.011755] iscsi-scst: Target parameters set for session 10000013d0200: QueuedCommands 32, Response timeout 90, Nop-In interval 30, Nop-In timeout 30

[ 1469.012244] scst: Using security group "lxc1" for initiator "iqn.1993-08.org.debian:01:678a6e1e9cb" (target iqn.2017-07.com.urdomain1:skynet3.san.asm.oracle)

[ 1469.013076] iscsi-scst: Negotiated parameters: InitialR2T No, ImmediateData Yes, MaxConnections 1, MaxRecvDataSegmentLength 1048576, MaxXmitDataSegmentLength 262144,

[ 1469.013077] iscsi-scst: MaxBurstLength 1048576, FirstBurstLength 65536, DefaultTime2Wait 0, DefaultTime2Retain 0,

[ 1469.013078] iscsi-scst: MaxOutstandingR2T 1, DataPDUInOrder Yes, DataSequenceInOrder Yes, ErrorRecoveryLevel 0,

[ 1469.013079] iscsi-scst: HeaderDigest None, DataDigest None, OFMarker No, IFMarker No, OFMarkInt 2048, IFMarkInt 2048, RDMAExtensions No

[ 1469.013080] iscsi-scst: Target parameters set for session 20000023d0200: QueuedCommands 32, Response timeout 90, Nop-In interval 30, Nop-In timeout 30

[ 1469.266900] scsi 3:0:0:0: Direct-Access SCST_FIO asm_sysd1_00 330 PQ: 0 ANSI: 6

[ 1469.270635] sd 3:0:0:0: [sdb] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB)

[ 1469.270640] sd 3:0:0:0: [sdb] 4096-byte physical blocks

[ 1469.270715] sd 3:0:0:0: [sdb] Write Protect is off

[ 1469.270720] sd 3:0:0:0: [sdb] Mode Sense: 83 00 10 08

[ 1469.270851] sd 3:0:0:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA

[ 1469.272914] sd 3:0:0:0: Attached scsi generic sg2 type 0

[ 1469.272941] scst: Attached to scsi3, channel 0, id 0, lun 0, type 0

[ 1469.279952] sd 3:0:0:0: [sdb] Attached SCSI disk

[ 1469.280177] scsi 4:0:0:0: Direct-Access SCST_FIO asm_sysd1_00 330 PQ: 0 ANSI: 6

[ 1469.281244] sd 4:0:0:0: [sdc] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB)

[ 1469.281248] sd 4:0:0:0: [sdc] 4096-byte physical blocks

[ 1469.281318] sd 4:0:0:0: [sdc] Write Protect is off

[ 1469.281322] sd 4:0:0:0: [sdc] Mode Sense: 83 00 10 08

[ 1469.281449] sd 4:0:0:0: [sdc] Write cache: enabled, read cache: enabled, supports DPO and FUA

[ 1469.283099] sd 4:0:0:0: Attached scsi generic sg3 type 0

[ 1469.283125] scst: Attached to scsi4, channel 0, id 0, lun 0, type 0

[ 1469.284292] sd 4:0:0:0: [sdc] Attached SCSI disk

[ 1469.284573] scsi 4:0:0:1: Direct-Access SCST_FIO asm_data1_00 330 PQ: 0 ANSI: 6

[ 1469.285512] sd 4:0:0:1: Attached scsi generic sg4 type 0

[ 1469.285540] scst: Attached to scsi4, channel 0, id 0, lun 1, type 0

[ 1469.289077] sd 4:0:0:1: [sdd] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB)

[ 1469.289083] sd 4:0:0:1: [sdd] 4096-byte physical blocks

[ 1469.289213] sd 4:0:0:1: [sdd] Write Protect is off

[ 1469.289218] sd 4:0:0:1: [sdd] Mode Sense: 83 00 10 08

[ 1469.289361] sd 4:0:0:1: [sdd] Write cache: enabled, read cache: enabled, supports DPO and FUA

[ 1469.291982] sd 4:0:0:1: [sdd] Attached SCSI disk

[ 1469.292422] scsi 3:0:0:1: Direct-Access SCST_FIO asm_data1_00 330 PQ: 0 ANSI: 6

[ 1469.293003] sd 3:0:0:1: Attached scsi generic sg5 type 0

[ 1469.293033] scst: Attached to scsi3, channel 0, id 0, lun 1, type 0

[ 1469.293707] sd 3:0:0:1: [sde] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB)

[ 1469.293711] sd 3:0:0:1: [sde] 4096-byte physical blocks

[ 1469.293784] sd 3:0:0:1: [sde] Write Protect is off

[ 1469.293788] sd 3:0:0:1: [sde] Mode Sense: 83 00 10 08

[ 1469.293919] sd 3:0:0:1: [sde] Write cache: enabled, read cache: enabled, supports DPO and FUA

[ 1469.296494] sd 3:0:0:1: [sde] Attached SCSI disk

[ 1469.298961] scsi 4:0:0:2: Direct-Access SCST_FIO asm_reco1_00 330 PQ: 0 ANSI: 6

[ 1469.299376] sd 4:0:0:2: Attached scsi generic sg6 type 0

[ 1469.299396] scst: Attached to scsi4, channel 0, id 0, lun 2, type 0

[ 1469.300351] sd 4:0:0:2: [sdf] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB)

[ 1469.300353] sd 4:0:0:2: [sdf] 4096-byte physical blocks

[ 1469.300409] sd 4:0:0:2: [sdf] Write Protect is off

[ 1469.300428] sd 4:0:0:2: [sdf] Mode Sense: 83 00 10 08

[ 1469.300506] sd 4:0:0:2: [sdf] Write cache: enabled, read cache: enabled, supports DPO and FUA

[ 1469.302287] sd 4:0:0:2: [sdf] Attached SCSI disk

[ 1469.305238] scsi 3:0:0:2: Direct-Access SCST_FIO asm_reco1_00 330 PQ: 0 ANSI: 6

[ 1469.305518] sd 3:0:0:2: Attached scsi generic sg7 type 0

[ 1469.305532] scst: Attached to scsi3, channel 0, id 0, lun 2, type 0

[ 1469.308203] sd 3:0:0:2: [sdg] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB)

[ 1469.308205] sd 3:0:0:2: [sdg] 4096-byte physical blocks

[ 1469.308237] sd 3:0:0:2: [sdg] Write Protect is off

[ 1469.308239] sd 3:0:0:2: [sdg] Mode Sense: 83 00 10 08

[ 1469.308292] sd 3:0:0:2: [sdg] Write cache: enabled, read cache: enabled, supports DPO and FUA

[ 1469.309406] sd 3:0:0:2: [sdg] Attached SCSI disk

[ 1469.572693] device-mapper: multipath service-time: version 0.3.0 loaded

ubuntu@skynet3:~/Downloads/orabuntu-lxc-master/orabuntu/archives/scst-files$

Output (dmesg) After SCST SAN Reboot of Server

Outpuf from dmesg was normal on reboot.

[ 12.212089] scst: loading out-of-tree module taints kernel.

[ 12.212271] scst: module verification failed: signature and/or required key missing - tainting kernel

[ 12.219973] scst: Attached to scsi1, channel 0, id 0, lun 0, type 5

[ 12.219979] scst: Attached to scsi2, channel 0, id 0, lun 0, type 0

[ 12.220050] scst: User interface thread started

[ 12.224018] scst: Init thread started

[ 12.225277] scst: Task management thread started

[ 12.227102] scst: Target template copy_manager registered successfully

[ 12.227121] scst: Target copy_manager_tgt for template copy_manager registered successfully

[ 12.227125] scst: Using security group "copy_manager_tgt" for initiator "copy_manager_sess" (target copy_manager_tgt)

[ 12.227136] scst: SCST version 3.3.0-pre1 loaded successfully (max mem for commands 247MB, per device 98MB)

[ 12.227688] scst: Management thread started

[ 12.230392] iscsi-scst: iSCSI SCST Target - version 3.3.0-pre1

[ 12.230393] iscsi-scst: Registered iSCSI transport: iSCSI-TCP

[ 12.230528] scst: Target template iscsi registered successfully

[ 12.233439] iscsi-scst: Read thread for pool ffff91abf8451300 started

[ 12.233834] iscsi-scst: Read thread for pool ffff91abf8451300 started

[ 12.233841] iscsi-scst: Write thread for pool ffff91abf8451300 started

[ 12.233967] iscsi-scst: Write thread for pool ffff91abf8451300 started

[ 12.234700] iscsi-scst: Registered iSCSI transport: iSER

[ 12.269085] scst: Virtual device handler vdisk_fileio for type 0 registered successfully

[ 12.269088] scst: Virtual device handler vdisk_blockio for type 0 registered successfully

[ 12.269090] scst: Virtual device handler vdisk_nullio for type 0 registered successfully

[ 12.269093] scst: Virtual device handler vcdrom for type 5 registered successfully

[ 12.282579] iscsi-scst: Created iser portal cm_id:ffff91abf93af800

[ 12.282583] iscsi-scst: iser portal cm_id:ffff91abf93af800 listens on: 0.0.0.0:3260

[ 12.282584] iscsi-scst: Created iser portal cm_id:ffff91abf93aec00

[ 12.282586] iscsi-scst: iser portal cm_id:ffff91abf93aec00 listens on: 0000:0000:0000:0000:0000:0000:0000:0000 3260

[ 12.499446] scst: Removed all devices from group copy_manager_tgt

[ 12.649196] dev_vdisk: Registering virtual vdisk_fileio device asm_data1_00 (ROTATIONAL)

[ 12.650082] dev_vdisk: Attached SCSI target virtual disk asm_data1_00 (file="/asm0/asm_data1_00.img", fs=1024MB, bs=512, nblocks=2097152, cyln=1024)

[ 12.650738] scst: Added device asm_data1_00 to group copy_manager_tgt (LUN 0, flags 0x4) to target copy_manager_tgt

[ 12.650762] scst: Attached to virtual device asm_data1_00 (id 1)

[ 12.650940] dev_vdisk: Registering virtual vdisk_fileio device asm_reco1_00 (ROTATIONAL)

[ 12.651003] dev_vdisk: Attached SCSI target virtual disk asm_reco1_00 (file="/asm0/asm_reco1_00.img", fs=1024MB, bs=512, nblocks=2097152, cyln=1024)

[ 12.651132] scst: Added device asm_reco1_00 to group copy_manager_tgt (LUN 1, flags 0x4) to target copy_manager_tgt

[ 12.651138] scst: Attached to virtual device asm_reco1_00 (id 2)

[ 12.651326] dev_vdisk: Registering virtual vdisk_fileio device asm_sysd1_00 (ROTATIONAL)

[ 12.651384] dev_vdisk: Attached SCSI target virtual disk asm_sysd1_00 (file="/asm0/asm_sysd1_00.img", fs=1024MB, bs=512, nblocks=2097152, cyln=1024)

[ 12.651787] scst: Added device asm_sysd1_00 to group copy_manager_tgt (LUN 2, flags 0x4) to target copy_manager_tgt

[ 12.651796] scst: Attached to virtual device asm_sysd1_00 (id 3)

[ 12.652998] scst: Target iqn.2017-07.com.urdomain1:skynet3.san.asm.oracle for template iscsi registered successfully

[ 12.656501] scst: Added device asm_sysd1_00 to group lxc1 (LUN 0, flags 0x2) to target iqn.2017-07.com.urdomain1:skynet3.san.asm.oracle

[ 12.656608] scst: Added device asm_data1_00 to group lxc1 (LUN 1, flags 0x2) to target iqn.2017-07.com.urdomain1:skynet3.san.asm.oracle

[ 12.656727] scst: Added device asm_reco1_00 to group lxc1 (LUN 2, flags 0x2) to target iqn.2017-07.com.urdomain1:skynet3.san.asm.oracle

[ 12.657271] scst: Added name iqn.1993-08.org.debian:01:678a6e1e9cb to group lxc1 (target iqn.2017-07.com.urdomain1:skynet3.san.asm.oracle)

[ 12.927038] scsi host3: iSCSI Initiator over TCP/IP

[ 12.936919] scst: Using security group "lxc1" for initiator "iqn.1993-08.org.debian:01:678a6e1e9cb" (target iqn.2017-07.com.urdomain1:skynet3.san.asm.oracle)

[ 12.961263] iscsi-scst: Negotiated parameters: InitialR2T No, ImmediateData Yes, MaxConnections 1, MaxRecvDataSegmentLength 1048576, MaxXmitDataSegmentLength 262144,

[ 12.961264] iscsi-scst: MaxBurstLength 1048576, FirstBurstLength 65536, DefaultTime2Wait 0, DefaultTime2Retain 0,

[ 12.961265] iscsi-scst: MaxOutstandingR2T 1, DataPDUInOrder Yes, DataSequenceInOrder Yes, ErrorRecoveryLevel 0,

[ 12.961266] iscsi-scst: HeaderDigest None, DataDigest None, OFMarker No, IFMarker No, OFMarkInt 2048, IFMarkInt 2048, RDMAExtensions No

[ 12.961267] iscsi-scst: Target parameters set for session 10000013d0200: QueuedCommands 32, Response timeout 90, Nop-In interval 30, Nop-In timeout 30

[ 13.217998] scsi 3:0:0:0: Direct-Access SCST_FIO asm_sysd1_00 330 PQ: 0 ANSI: 6

[ 13.220475] sd 3:0:0:0: [sdb] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB)

[ 13.220478] sd 3:0:0:0: [sdb] 4096-byte physical blocks

[ 13.220527] sd 3:0:0:0: [sdb] Write Protect is off

[ 13.220530] sd 3:0:0:0: [sdb] Mode Sense: 83 00 10 08

[ 13.220615] sd 3:0:0:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA

[ 13.221477] sd 3:0:0:0: Attached scsi generic sg2 type 0

[ 13.221493] scst: Attached to scsi3, channel 0, id 0, lun 0, type 0

[ 13.230406] scsi 3:0:0:1: Direct-Access SCST_FIO asm_data1_00 330 PQ: 0 ANSI: 6

[ 13.230849] sd 3:0:0:1: [sdc] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB)

[ 13.230851] sd 3:0:0:1: [sdc] 4096-byte physical blocks

[ 13.230881] sd 3:0:0:1: [sdc] Write Protect is off

[ 13.230883] sd 3:0:0:1: [sdc] Mode Sense: 83 00 10 08

[ 13.230934] sd 3:0:0:1: [sdc] Write cache: enabled, read cache: enabled, supports DPO and FUA

[ 13.231302] sd 3:0:0:1: Attached scsi generic sg3 type 0

[ 13.231327] scst: Attached to scsi3, channel 0, id 0, lun 1, type 0

[ 13.233213] scsi 3:0:0:2: Direct-Access SCST_FIO asm_reco1_00 330 PQ: 0 ANSI: 6

[ 13.233426] sd 3:0:0:2: Attached scsi generic sg4 type 0

[ 13.233436] scst: Attached to scsi3, channel 0, id 0, lun 2, type 0

[ 13.252560] sd 3:0:0:2: [sdd] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB)

[ 13.252562] sd 3:0:0:2: [sdd] 4096-byte physical blocks

[ 13.252615] sd 3:0:0:2: [sdd] Write Protect is off

[ 13.252616] sd 3:0:0:2: [sdd] Mode Sense: 83 00 10 08

[ 13.252712] sd 3:0:0:2: [sdd] Write cache: enabled, read cache: enabled, supports DPO and FUA

[ 13.252952] sd 3:0:0:1: [sdc] Attached SCSI disk

[ 13.252970] sd 3:0:0:0: [sdb] Attached SCSI disk

[ 13.258139] sd 3:0:0:2: [sdd] Attached SCSI disk

[ 13.450231] device-mapper: multipath service-time: version 0.3.0 loaded

ubuntu@skynet3:~$

The attached script scst-files.tar has all the scripting to create the SCST debian package, install it, create the SAN, and format automatically an /etc/multipath.conf file. The scst-files.tar script archive is attached below.