ltfs
ltfs copied to clipboard
Help in the Support of HP TAPE Drive
Describe the bug Hi @piste-jp-ibm , i remember in some different discussions about the difficulty to test your code with HP drives. We have perhaps some options to help you with this HP drive compatibility test process.
We are able to emulate HP drive LTO5 in HP StorageWorks MSL 2024/4048/8096 Tape Library.
We tested the code in version of OpenLTFS in version 2.4.4.0 and i wanted to share with you the first results:
TEST FORMAT with mkltfs – LTFS Version OpenLTFS (2.4.4.0) - HP LTO5 Drive
Status: not working as expected
LTFS15041I Launched by 'mkltfs -f -d /dev/sg7 -n 000002L5'
LTFS15042I This binary is built for Linux (x86_64)
LTFS15043I GCC version is 7.3.1 20180303 (Red Hat 7.3.1-5)
LTFS17087I Kernel version: Linux version 3.10.0-1160.66.1.el7.x86_64 ([[email protected]](mailto:[email protected])) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Wed May 18 16:02:34 UTC 2022 i386
LTFS17089I Distribution: CentOS Linux release 7.9.2009 (Core)
LTFS17089I Distribution: NAME='CentOS Linux'
LTFS17089I Distribution: CentOS Linux release 7.9.2009 (Core)
LTFS17089I Distribution: CentOS Linux release 7.9.2009 (Core)
LTFS15003I Formatting device '/dev/sg7'
LTFS15004I LTFS volume blocksize: 524288
LTFS15005I Index partition placement policy: None
LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x62d010)
LTFS17085I Plugin: Loading 'sg' tape backend
LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg7)
LTFS30200I Failed to execute SG_IO ioctl, opcode = 12 (6)
LTFS30206I Cannot open device: inquiry failed (-21700)
LTFS30212I Cannot get drive identifier of /dev/sg7
LTFS12012E Cannot open device: failed backend open call
LTFS15009E Cannot open device '/dev/sg7' (-21700)
LTFS15023I Formatting failed`
TEST LTFS MOUNT – LTFS Version OpenLTFS (2.4.4.0) - HP LTO5 Drive
Status: It is working with a previously formatted Tape
LTFS14000I LTFS starting, LTFS version 2.4.4.0 (10470), log level 2.
LTFS14058I LTFS Format Specification version 2.4.0.
LTFS14104I Launched by "ltfs /mnt/Pool/41/EmptyPool/000001L5 -o devname=/dev/sg6 -o nonempty -o sync_type=time@5".
LTFS14105I This binary is built for Linux (x86_64).
LTFS14106I GCC version is 7.3.1 20180303 (Red Hat 7.3.1-5).
LTFS17087I Kernel version: Linux version 3.10.0-1160.66.1.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Wed May 18 16:02:34 UTC 2022 i386.
LTFS17089I Distribution: CentOS Linux release 7.9.2009 (Core).
LTFS17089I Distribution: NAME="CentOS Linux".
LTFS17089I Distribution: CentOS Linux release 7.9.2009 (Core).
LTFS17089I Distribution: CentOS Linux release 7.9.2009 (Core).
LTFS14063I Sync type is "time", Sync time is 300 sec.
LTFS17085I Plugin: Loading "sg" tape backend.
LTFS17085I Plugin: Loading "unified" iosched backend.
LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg6).
LTFS30250I Opened the SCSI tape device 5.0.0.0 (/dev/sg6).
LTFS30207I Vendor ID is HP .
LTFS30208I Product ID is Ultrium 5-SCSI .
LTFS30214I Firmware revision is 6.24.
LTFS30215I Drive serial is C0F9000101.
LTFS30285I The reserved buffer size of /dev/sg6 is 524288.
LTFS30205I RSOC (0xa3) returns -20500.
LTFS30263I RSOC returns Invalid Command Operation Code (-20500) /dev/sg6.
LTFS30294I Setting up timeout values from vendor and device.
LTFS17160I Maximum device block size is 1048576.
LTFS11330I Loading cartridge.
LTFS11332I Load successful.
LTFS17157I Changing the drive setting to write-anywhere mode.
LTFS11005I Mounting the volume.
LTFS30205I READ_ATTR (0x8c) returns -20501.
LTFS30263I READ_ATTR returns Invalid Field in CDB (-20501) /dev/sg6.
LTFS30205I READ_ATTR (0x8c) returns -20501.
LTFS30263I READ_ATTR returns Invalid Field in CDB (-20501) /dev/sg6.
LTFS30233I Cannot read attribute (-20501).
LTFS17227I Tape attribute: Vendor = HPE .
LTFS17227I Tape attribute: Application Name = LTFS .
LTFS17227I Tape attribute: Application Version = 3.5.0 .
LTFS17227I Tape attribute: Medium Label = 000001L5.
LTFS17228I Tape attribute: Text Localization ID = 0x00.
LTFS17227I Tape attribute: Barcode = 000001L5 .
LTFS17227I Tape attribute: Application Format Version = 2.4.0 .
LTFS17228I Tape attribute: Volume Lock Status = 0x00.
LTFS17227I Tape attribute: Media Pool name = .
LTFS11031I Volume mounted successfully. NO_BARCODE : Gen = 1 / (a, 5) -> (b, 5) / C0F9000101.
LTFS14111I Initial setup completed successfully.
LTFS14112I Invoke 'mount' command to check the result of final setup.
LTFS14113I Specified mount point is listed if succeeded.
LTFS14029I Ready to receive file system requests.
In reading the log, is is the inquiry which do not work in the format ? We can do others tests without any problem ;
OS: All tests were done with CentOS 7.9.2009
In reading the log, is is the inquiry which do not work in the format ?
It looks so to me too.
In the format operation, you use /dev/sg7. On the other hand, /dev/sg6 is used at mount operation.
Can you provide an output of ltfs -o device_list?
Here are the output of ltfs -o device_list
I have also added the ouput of lscsi -g command :
root@nodeum:~# ltfs -o device_list
7c9f LTFS14000I LTFS starting, LTFS version 2.4.4.0 (10470), log level 2.
7c9f LTFS14058I LTFS Format Specification version 2.4.0.
7c9f LTFS14104I Launched by "ltfs -o device_list".
7c9f LTFS14105I This binary is built for Linux (x86_64).
7c9f LTFS14106I GCC version is 7.3.1 20180303 (Red Hat 7.3.1-5).
7c9f LTFS17087I Kernel version: Linux version 3.10.0-1160.66.1.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Wed May 18 16:02:34 UTC 2022 i386.
7c9f LTFS17089I Distribution: CentOS Linux release 7.9.2009 (Core).
7c9f LTFS17089I Distribution: NAME="CentOS Linux".
7c9f LTFS17089I Distribution: CentOS Linux release 7.9.2009 (Core).
7c9f LTFS17089I Distribution: CentOS Linux release 7.9.2009 (Core).
7c9f LTFS17085I Plugin: Loading "sg" tape backend.
7c9f LTFS30200I Failed to execute SG_IO ioctl, opcode = 12 (6).
7c9f LTFS30206I Cannot open device: inquiry failed (-21700).
7c9f LTFS30200I Failed to execute SG_IO ioctl, opcode = 12 (6).
7c9f LTFS30206I Cannot open device: inquiry failed (-21700).
7c9f LTFS30200I Failed to execute SG_IO ioctl, opcode = 12 (6).
7c9f LTFS30206I Cannot open device: inquiry failed (-21700).
7c9f LTFS30200I Failed to execute SG_IO ioctl, opcode = 12 (6).
7c9f LTFS30206I Cannot open device: inquiry failed (-21700).
Tape Device list:.
Device Name = /dev/sg3 (3.0.1.0), Vendor ID = IBM , Product ID = ULT3580-HH5 , Serial Number = 90WT013124, Product Name =[ULT3580-HH5].
Device Name = /dev/sg2 (3.0.0.0), Vendor ID = IBM , Product ID = ULT3580-HH6 , Serial Number = 90WT054335, Product Name =[ULT3580-HH6].
root@nodeum:~# lsscsi -g
[0:2:0:0] disk DELL PERC H710P 3.13 /dev/sda /dev/sg0
[0:2:1:0] disk DELL PERC H710P 3.13 /dev/sdb /dev/sg1
[3:0:0:0] tape IBM ULT3580-HH6 G9P1 /dev/st0 /dev/sg2
[3:0:1:0] tape IBM ULT3580-HH5 F991 /dev/st1 /dev/sg3
[3:0:1:1] mediumx IBM 3573-TL E.20 /dev/sch0 /dev/sg4
[4:0:0:0] mediumx HP MSL G3 Series 6.24 /dev/sch1 /dev/sg5
[5:0:0:0] tape HP Ultrium 5-SCSI 6.24 /dev/st2 /dev/sg6
[6:0:0:0] tape HP Ultrium 5-SCSI 6.24 /dev/st3 /dev/sg7
[7:0:0:0] mediumx HP MSL G3 Series 6.24 /dev/sch2 /dev/sg8
[8:0:0:0] tape HP Ultrium 4-SCSI 6.24 /dev/st4 /dev/sg9
[9:0:0:0] tape HP Ultrium 4-SCSI 6.24 /dev/st5 /dev/sg10
root@nodeum:~#
I do believe that these 4 failed inquiries are related to the 4 HP drives defined
7c9f LTFS30200I Failed to execute SG_IO ioctl, opcode = 12 (6).
7c9f LTFS30206I Cannot open device: inquiry failed (-21700).
7c9f LTFS30200I Failed to execute SG_IO ioctl, opcode = 12 (6).
7c9f LTFS30206I Cannot open device: inquiry failed (-21700).
7c9f LTFS30200I Failed to execute SG_IO ioctl, opcode = 12 (6).
7c9f LTFS30206I Cannot open device: inquiry failed (-21700).
7c9f LTFS30200I Failed to execute SG_IO ioctl, opcode = 12 (6).
7c9f LTFS30206I Cannot open device: inquiry failed (-21700).
Note: i do know that LTO4 generation is not supported by LTFS - I wanted to test the return of LTFS mount for an unsupported device.
7c9f LTFS30200I Failed to execute SG_IO ioctl, opcode = 12 (6).
ioctl() returns errno = 6. I believe communication between drive and host is unstable. Please power down the host, check connectivity and then power on.
#define ENXIO 6 /* No such device or address */
Close this because there is no response for a long time.