LinearTapeFileSystem / ltfs

Reference implementation of the LTFS format Spec for stand alone tape drive
BSD 3-Clause "New" or "Revised" License
257 stars 76 forks source link

Succeeding with an LTFS format but not mounting. Suggestions? #483

Open smccue2019 opened 2 months ago

smccue2019 commented 2 months ago

Ubuntu 24.04 on Dell PowerEdge R740; Dell PERC H830 12Gb RAID SAS HBA MagStor standalone deck using IBM LTO9 drive.

installer@xxxxxx:~/git/ltfs$ sudo /usr/local/bin/mkltfs -f -d /dev/st0
LTFS15000I Starting mkltfs, LTFS version 2.5.0.0 (Prelim), log level 2.
LTFS15041I Launched by "/usr/local/bin/mkltfs -f -d /dev/st0".
LTFS15042I This binary is built for Linux (x86_64).
LTFS15043I GCC version is 13.2.0.
LTFS17087I Kernel version: Linux version 6.8.0-45-generic (buildd@lcy02-amd64-115) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 i386.
LTFS17089I Distribution: PRETTY_NAME="Ubuntu 24.04.1 LTS".
LTFS17089I Distribution: DISTRIB_ID=Ubuntu.
LTFS15003I Formatting device '/dev/st0'.
LTFS15004I LTFS volume blocksize: 524288.
LTFS15005I Index partition placement policy: None.

LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x5eda9ce50dc0).
LTFS17085I Plugin: Loading "sg" tape backend.
LTFS30209I Opening a device through sg-ibmtape driver (/dev/st0).
LTFS30250I Opened the SCSI tape device 0.0.0.-1 (/dev/st0).
LTFS30207I Vendor ID is IBM     .
LTFS30208I Product ID is ULTRIUM-HH9     .
LTFS30214I Firmware revision is Q9E1.
LTFS30215I Drive serial is 1097004408.
LTFS30285I The reserved buffer size of /dev/st0 is 262144.
LTFS30294I Setting up timeout values from RSOC.
LTFS17160I Maximum device block size is 1048576.
LTFS11330I Loading cartridge.
LTFS30252I Logical block protection is disabled.
LTFS11332I Load successful.
LTFS17157I Changing the drive setting to write-anywhere mode.
LTFS15049I Checking the medium (load).
LTFS30252I Logical block protection is disabled.
LTFS15010I Creating data partition b on SCSI partition 1.
LTFS15011I Creating index partition a on SCSI partition 0.
LTFS17165I Resetting the medium's capacity proportion.
LTFS11097I Partitioning the medium.
LTFS30263I MODESELECT returns Mode Parameters Rounded (-20101) /dev/st0.
LTFS11100I Writing label to partition b.
LTFS11278I Writing index to partition b.
LTFS30205I READ_ATTR (0x8c) returns -20501.
LTFS30263I READ_ATTR returns Invalid Field in CDB (-20501) /dev/st0.
LTFS30233I Cannot read attribute (-20501).
LTFS11336I The attribute does not exist. Ignore the expected error.
LTFS17235I Writing index of NO_BARCODE to b (Reason: Format, 0 files) 1097004408.
LTFS17236I Wrote index of NO_BARCODE (Gen = 1, Part = b, Pos = 5, 1097004408).
LTFS11337I Update index-dirty flag (0) - NO_BARCODE (0x0x5eda9ce50dc0).
LTFS11100I Writing label to partition a.
LTFS11278I Writing index to partition a.
LTFS30205I READ_ATTR (0x8c) returns -20501.
LTFS30263I READ_ATTR returns Invalid Field in CDB (-20501) /dev/st0.
LTFS30233I Cannot read attribute (-20501).
LTFS11336I The attribute does not exist. Ignore the expected error.
LTFS17235I Writing index of NO_BARCODE to a (Reason: Format, 0 files) 1097004408.
LTFS17236I Wrote index of NO_BARCODE (Gen = 1, Part = a, Pos = 5, 1097004408).
LTFS15013I Volume UUID is: 396598ec-22e9-4914-b38e-e34202ef6cc2.

LTFS15019I Volume capacity is 11712 GB.
LTFS30252I Logical block protection is disabled.
LTFS15024I Medium formatted successfully.
installer@xxxxxx:~/git/ltfs$ sudo /usr/local/bin/ltfs -o devname=/dev/st0 /mnt/ltfs9
8fc7 LTFS14000I LTFS starting, LTFS version 2.5.0.0 (Prelim), log level 2.
8fc7 LTFS14058I LTFS Format Specification version 2.4.0.
8fc7 LTFS14104I Launched by "/usr/local/bin/ltfs -o devname=/dev/st0 /mnt/ltfs9".
8fc7 LTFS14105I This binary is built for Linux (x86_64).
8fc7 LTFS14106I GCC version is 13.2.0.
8fc7 LTFS17087I Kernel version: Linux version 6.8.0-45-generic (buildd@lcy02-amd64-115) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 i386.
8fc7 LTFS17089I Distribution: PRETTY_NAME="Ubuntu 24.04.1 LTS".
8fc7 LTFS17089I Distribution: DISTRIB_ID=Ubuntu.
8fc7 LTFS14063I Sync type is "time", Sync time is 300 sec.
8fc7 LTFS17085I Plugin: Loading "sg" tape backend.
8fc7 LTFS17085I Plugin: Loading "unified" iosched backend.
8fc7 LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
8fc7 LTFS30209I Opening a device through sg-ibmtape driver (/dev/st0).
8fc7 LTFS30250I Opened the SCSI tape device 0.0.0.-1 (/dev/st0).
8fc7 LTFS30207I Vendor ID is IBM     .
8fc7 LTFS30208I Product ID is ULTRIUM-HH9     .
8fc7 LTFS30214I Firmware revision is Q9E1.
8fc7 LTFS30215I Drive serial is 1097004408.
8fc7 LTFS30285I The reserved buffer size of /dev/st0 is 262144.
8fc7 LTFS30294I Setting up timeout values from RSOC.
8fc7 LTFS17160I Maximum device block size is 1048576.
8fc7 LTFS11330I Loading cartridge.
8fc7 LTFS30252I Logical block protection is disabled.
8fc7 LTFS11332I Load successful.
8fc7 LTFS17157I Changing the drive setting to write-anywhere mode.
8fc7 LTFS11005I Mounting the volume from device.
8fc7 LTFS30252I Logical block protection is disabled.
8fc7 LTFS30216W Length mismatch is detected. (Act = 4096, resid = 0, resid_sense = 4016).
8fc7 LTFS12049E Cannot read: backend call failed (-21716).
8fc7 LTFS11174E Cannot read ANSI label: read failed (-21716).
8fc7 LTFS11170E Failed to read label (-21716) from partition 0.
8fc7 LTFS11009E Cannot read volume: failed to read partition labels.
8fc7 LTFS14013E Cannot mount the volume from device.
8fc7 LTFS30252I Logical block protection is disabled.

For some info about the SAS HBA:

installer@xxxxxxx:~/git/ltfs$ sudo dmesg | grep -i sas
[    2.265820] megasas: 07.727.03.00-rc1
[    2.266216] megaraid_sas 0000:18:00.0: BAR:0x1  BAR's base_addr(phys):0x000000009de00000  mapped virt_addr:0x000000004d8a5ced
[    2.266222] megaraid_sas 0000:18:00.0: FW now in Ready state
[    2.266225] megaraid_sas 0000:18:00.0: 63 bit DMA mask and 32 bit consistent mask
[    2.266752] megaraid_sas 0000:18:00.0: firmware supports msix    : (96)
[    2.270079] megaraid_sas 0000:18:00.0: requested/available msix 89/89 poll_queue 0
[    2.270103] megaraid_sas 0000:18:00.0: current msix/online cpus  : (89/88)
[    2.270106] megaraid_sas 0000:18:00.0: RDPQ mode : (disabled)
[    2.270110] megaraid_sas 0000:18:00.0: Current firmware supports maximum commands: 928    LDIO threshold: 0
[    2.274525] megaraid_sas 0000:18:00.0: Performance mode :Latency (latency index = 1)
[    2.274530] megaraid_sas 0000:18:00.0: FW supports sync cache    : No
[    2.274535] megaraid_sas 0000:18:00.0: megasas_disable_intr_fusion is called outbound_intr_mask:0x40000009
[    2.322978] megaraid_sas 0000:18:00.0: FW provided supportMaxExtLDs: 1   max_lds: 240
[    2.322989] megaraid_sas 0000:18:00.0: controller type   : MR(2048MB)
[    2.322996] megaraid_sas 0000:18:00.0: Online Controller Reset(OCR)  : Enabled
[    2.323001] megaraid_sas 0000:18:00.0: Secure JBOD support   : No
[    2.323006] megaraid_sas 0000:18:00.0: NVMe passthru support : No
[    2.323010] megaraid_sas 0000:18:00.0: FW provided TM TaskAbort/Reset timeou: 0 secs/0 secs
[    2.323016] megaraid_sas 0000:18:00.0: JBOD sequence map support : No
[    2.323020] megaraid_sas 0000:18:00.0: PCI Lane Margining support    : No
[    2.787924] megaraid_sas 0000:18:00.0: megasas_enable_intr_fusion is called outbound_intr_mask:0x40000000
[    2.787936] megaraid_sas 0000:18:00.0: INIT adapter done
[    2.787941] megaraid_sas 0000:18:00.0: JBOD sequence map is disabled megasas_setup_jbod_map 5796
[    2.791588] megaraid_sas 0000:18:00.0: pci id        : (0x1000)/(0x005d)/(0x1028)/(0x1f41)
[    2.791602] megaraid_sas 0000:18:00.0: unevenspan support    : yes
[    2.791608] megaraid_sas 0000:18:00.0: firmware crash dump   : no
[    2.791613] megaraid_sas 0000:18:00.0: JBOD sequence map : disabled
[    2.791891] megaraid_sas 0000:18:00.0: Max firmware commands: 927 shared with default hw_queues = 88 poll_queues 0
[    2.791900] scsi host6: Avago SAS based MegaRAID driver
[    2.793608] megaraid_sas 0000:3b:00.0: BAR:0x1  BAR's base_addr(phys):0x00000000ab100000  mapped virt_addr:0x000000000f440297
[    2.793621] megaraid_sas 0000:3b:00.0: FW now in Ready state
[    2.793626] megaraid_sas 0000:3b:00.0: 63 bit DMA mask and 32 bit consistent mask
[    2.794571] megaraid_sas 0000:3b:00.0: firmware supports msix    : (96)
[    2.800418] megaraid_sas 0000:3b:00.0: requested/available msix 89/89 poll_queue 0
[    2.800470] megaraid_sas 0000:3b:00.0: current msix/online cpus  : (89/88)
[    2.800476] megaraid_sas 0000:3b:00.0: RDPQ mode : (disabled)
[    2.800482] megaraid_sas 0000:3b:00.0: Current firmware supports maximum commands: 928    LDIO threshold: 0
[    2.805948] megaraid_sas 0000:3b:00.0: Performance mode :Latency (latency index = 1)
[    2.805953] megaraid_sas 0000:3b:00.0: FW supports sync cache    : No
[    2.805958] megaraid_sas 0000:3b:00.0: megasas_disable_intr_fusion is called outbound_intr_mask:0x40000009
[    2.870998] megaraid_sas 0000:3b:00.0: FW provided supportMaxExtLDs: 1   max_lds: 64
[    2.871008] megaraid_sas 0000:3b:00.0: controller type   : MR(2048MB)
[    2.871014] megaraid_sas 0000:3b:00.0: Online Controller Reset(OCR)  : Enabled
[    2.871019] megaraid_sas 0000:3b:00.0: Secure JBOD support   : No
[    2.871023] megaraid_sas 0000:3b:00.0: NVMe passthru support : No
[    2.871027] megaraid_sas 0000:3b:00.0: FW provided TM TaskAbort/Reset timeou: 0 secs/0 secs
[    2.871032] megaraid_sas 0000:3b:00.0: JBOD sequence map support : No
[    2.871036] megaraid_sas 0000:3b:00.0: PCI Lane Margining support    : No
[    2.896739] megaraid_sas 0000:3b:00.0: megasas_enable_intr_fusion is called outbound_intr_mask:0x40000000
[    2.896751] megaraid_sas 0000:3b:00.0: INIT adapter done
[    2.896756] megaraid_sas 0000:3b:00.0: JBOD sequence map is disabled megasas_setup_jbod_map 5796
[    2.902201] megaraid_sas 0000:3b:00.0: pci id        : (0x1000)/(0x005d)/(0x1028)/(0x1f47)
[    2.902210] megaraid_sas 0000:3b:00.0: unevenspan support    : yes
[    2.902215] megaraid_sas 0000:3b:00.0: firmware crash dump   : no
[    2.902219] megaraid_sas 0000:3b:00.0: JBOD sequence map : disabled
[    2.902406] megaraid_sas 0000:3b:00.0: Max firmware commands: 927 shared with default hw_queues = 88 poll_queues 0
[    2.902414] scsi host15: Avago SAS based MegaRAID driver
TulioLazarini commented 2 months ago

Two things that I'd observed: should one be using /dev/sgxx rather than /dev/stxx? I'm afraid LTFS uses sg backend, not st... Another thing is the fact the tape was formatted as a 12TB one, and not 18TB. Is that correct?

Tulio Lazarini Soli Deo Gloria

On Thu, 26 Sept 2024, 18:03 smccue2019, @.***> wrote:

Ubuntu 24.04 on Dell PowerEdge R740; Dell PERC H830 12Gb RAID SAS HBA MagStor standalone deck using IBM LTO9 drive.

@.:~/git/ltfs$ sudo /usr/local/bin/mkltfs -f -d /dev/st0 LTFS15000I Starting mkltfs, LTFS version 2.5.0.0 (Prelim), log level 2. LTFS15041I Launched by "/usr/local/bin/mkltfs -f -d /dev/st0". LTFS15042I This binary is built for Linux (x86_64). LTFS15043I GCC version is 13.2.0. LTFS17087I Kernel version: Linux version 6.8.0-45-generic @.) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #45 https://github.com/LinearTapeFileSystem/ltfs/issues/45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 i386. LTFS17089I Distribution: PRETTY_NAME="Ubuntu 24.04.1 LTS". LTFS17089I Distribution: DISTRIB_ID=Ubuntu. LTFS15003I Formatting device '/dev/st0'. LTFS15004I LTFS volume blocksize: 524288. LTFS15005I Index partition placement policy: None.

LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x5eda9ce50dc0). LTFS17085I Plugin: Loading "sg" tape backend. LTFS30209I Opening a device through sg-ibmtape driver (/dev/st0). LTFS30250I Opened the SCSI tape device 0.0.0.-1 (/dev/st0). LTFS30207I Vendor ID is IBM . LTFS30208I Product ID is ULTRIUM-HH9 . LTFS30214I Firmware revision is Q9E1. LTFS30215I Drive serial is 1097004408. LTFS30285I The reserved buffer size of /dev/st0 is 262144. LTFS30294I Setting up timeout values from RSOC. LTFS17160I Maximum device block size is 1048576. LTFS11330I Loading cartridge. LTFS30252I Logical block protection is disabled. LTFS11332I Load successful. LTFS17157I Changing the drive setting to write-anywhere mode. LTFS15049I Checking the medium (load). LTFS30252I Logical block protection is disabled. LTFS15010I Creating data partition b on SCSI partition 1. LTFS15011I Creating index partition a on SCSI partition 0. LTFS17165I Resetting the medium's capacity proportion. LTFS11097I Partitioning the medium. LTFS30263I MODESELECT returns Mode Parameters Rounded (-20101) /dev/st0. LTFS11100I Writing label to partition b. LTFS11278I Writing index to partition b. LTFS30205I READ_ATTR (0x8c) returns -20501. LTFS30263I READ_ATTR returns Invalid Field in CDB (-20501) /dev/st0. LTFS30233I Cannot read attribute (-20501). LTFS11336I The attribute does not exist. Ignore the expected error. LTFS17235I Writing index of NO_BARCODE to b (Reason: Format, 0 files) 1097004408. LTFS17236I Wrote index of NO_BARCODE (Gen = 1, Part = b, Pos = 5, 1097004408). LTFS11337I Update index-dirty flag (0) - NO_BARCODE (0x0x5eda9ce50dc0). LTFS11100I Writing label to partition a. LTFS11278I Writing index to partition a. LTFS30205I READ_ATTR (0x8c) returns -20501. LTFS30263I READ_ATTR returns Invalid Field in CDB (-20501) /dev/st0. LTFS30233I Cannot read attribute (-20501). LTFS11336I The attribute does not exist. Ignore the expected error. LTFS17235I Writing index of NO_BARCODE to a (Reason: Format, 0 files) 1097004408. LTFS17236I Wrote index of NO_BARCODE (Gen = 1, Part = a, Pos = 5, 1097004408). LTFS15013I Volume UUID is: 396598ec-22e9-4914-b38e-e34202ef6cc2.

LTFS15019I Volume capacity is 11712 GB. LTFS30252I Logical block protection is disabled. LTFS15024I Medium formatted successfully.

@.:~/git/ltfs$ sudo /usr/local/bin/ltfs -o devname=/dev/st0 /mnt/ltfs9 8fc7 LTFS14000I LTFS starting, LTFS version 2.5.0.0 (Prelim), log level 2. 8fc7 LTFS14058I LTFS Format Specification version 2.4.0. 8fc7 LTFS14104I Launched by "/usr/local/bin/ltfs -o devname=/dev/st0 /mnt/ltfs9". 8fc7 LTFS14105I This binary is built for Linux (x86_64). 8fc7 LTFS14106I GCC version is 13.2.0. 8fc7 LTFS17087I Kernel version: Linux version 6.8.0-45-generic @.) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #45 https://github.com/LinearTapeFileSystem/ltfs/issues/45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 i386. 8fc7 LTFS17089I Distribution: PRETTY_NAME="Ubuntu 24.04.1 LTS". 8fc7 LTFS17089I Distribution: DISTRIB_ID=Ubuntu. 8fc7 LTFS14063I Sync type is "time", Sync time is 300 sec. 8fc7 LTFS17085I Plugin: Loading "sg" tape backend. 8fc7 LTFS17085I Plugin: Loading "unified" iosched backend. 8fc7 LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection. 8fc7 LTFS30209I Opening a device through sg-ibmtape driver (/dev/st0). 8fc7 LTFS30250I Opened the SCSI tape device 0.0.0.-1 (/dev/st0). 8fc7 LTFS30207I Vendor ID is IBM . 8fc7 LTFS30208I Product ID is ULTRIUM-HH9 . 8fc7 LTFS30214I Firmware revision is Q9E1. 8fc7 LTFS30215I Drive serial is 1097004408. 8fc7 LTFS30285I The reserved buffer size of /dev/st0 is 262144. 8fc7 LTFS30294I Setting up timeout values from RSOC. 8fc7 LTFS17160I Maximum device block size is 1048576. 8fc7 LTFS11330I Loading cartridge. 8fc7 LTFS30252I Logical block protection is disabled. 8fc7 LTFS11332I Load successful. 8fc7 LTFS17157I Changing the drive setting to write-anywhere mode. 8fc7 LTFS11005I Mounting the volume from device. 8fc7 LTFS30252I Logical block protection is disabled. 8fc7 LTFS30216W Length mismatch is detected. (Act = 4096, resid = 0, resid_sense = 4016). 8fc7 LTFS12049E Cannot read: backend call failed (-21716). 8fc7 LTFS11174E Cannot read ANSI label: read failed (-21716). 8fc7 LTFS11170E Failed to read label (-21716) from partition 0. 8fc7 LTFS11009E Cannot read volume: failed to read partition labels. 8fc7 LTFS14013E Cannot mount the volume from device. 8fc7 LTFS30252I Logical block protection is disabled.

For some info about the SAS HBA:

@.***:~/git/ltfs$ sudo dmesg | grep -i sas [ 2.265820] megasas: 07.727.03.00-rc1 [ 2.266216] megaraid_sas 0000:18:00.0: BAR:0x1 BAR's base_addr(phys):0x000000009de00000 mapped virt_addr:0x000000004d8a5ced [ 2.266222] megaraid_sas 0000:18:00.0: FW now in Ready state [ 2.266225] megaraid_sas 0000:18:00.0: 63 bit DMA mask and 32 bit consistent mask [ 2.266752] megaraid_sas 0000:18:00.0: firmware supports msix : (96) [ 2.270079] megaraid_sas 0000:18:00.0: requested/available msix 89/89 poll_queue 0 [ 2.270103] megaraid_sas 0000:18:00.0: current msix/online cpus : (89/88) [ 2.270106] megaraid_sas 0000:18:00.0: RDPQ mode : (disabled) [ 2.270110] megaraid_sas 0000:18:00.0: Current firmware supports maximum commands: 928 LDIO threshold: 0 [ 2.274525] megaraid_sas 0000:18:00.0: Performance mode :Latency (latency index = 1) [ 2.274530] megaraid_sas 0000:18:00.0: FW supports sync cache : No [ 2.274535] megaraid_sas 0000:18:00.0: megasas_disable_intr_fusion is called outbound_intr_mask:0x40000009 [ 2.322978] megaraid_sas 0000:18:00.0: FW provided supportMaxExtLDs: 1 max_lds: 240 [ 2.322989] megaraid_sas 0000:18:00.0: controller type : MR(2048MB) [ 2.322996] megaraid_sas 0000:18:00.0: Online Controller Reset(OCR) : Enabled [ 2.323001] megaraid_sas 0000:18:00.0: Secure JBOD support : No [ 2.323006] megaraid_sas 0000:18:00.0: NVMe passthru support : No [ 2.323010] megaraid_sas 0000:18:00.0: FW provided TM TaskAbort/Reset timeou: 0 secs/0 secs [ 2.323016] megaraid_sas 0000:18:00.0: JBOD sequence map support : No [ 2.323020] megaraid_sas 0000:18:00.0: PCI Lane Margining support : No [ 2.787924] megaraid_sas 0000:18:00.0: megasas_enable_intr_fusion is called outbound_intr_mask:0x40000000 [ 2.787936] megaraid_sas 0000:18:00.0: INIT adapter done [ 2.787941] megaraid_sas 0000:18:00.0: JBOD sequence map is disabled megasas_setup_jbod_map 5796 [ 2.791588] megaraid_sas 0000:18:00.0: pci id : (0x1000)/(0x005d)/(0x1028)/(0x1f41) [ 2.791602] megaraid_sas 0000:18:00.0: unevenspan support : yes [ 2.791608] megaraid_sas 0000:18:00.0: firmware crash dump : no [ 2.791613] megaraid_sas 0000:18:00.0: JBOD sequence map : disabled [ 2.791891] megaraid_sas 0000:18:00.0: Max firmware commands: 927 shared with default hw_queues = 88 poll_queues 0 [ 2.791900] scsi host6: Avago SAS based MegaRAID driver [ 2.793608] megaraid_sas 0000:3b:00.0: BAR:0x1 BAR's base_addr(phys):0x00000000ab100000 mapped virt_addr:0x000000000f440297 [ 2.793621] megaraid_sas 0000:3b:00.0: FW now in Ready state [ 2.793626] megaraid_sas 0000:3b:00.0: 63 bit DMA mask and 32 bit consistent mask [ 2.794571] megaraid_sas 0000:3b:00.0: firmware supports msix : (96) [ 2.800418] megaraid_sas 0000:3b:00.0: requested/available msix 89/89 poll_queue 0 [ 2.800470] megaraid_sas 0000:3b:00.0: current msix/online cpus : (89/88) [ 2.800476] megaraid_sas 0000:3b:00.0: RDPQ mode : (disabled) [ 2.800482] megaraid_sas 0000:3b:00.0: Current firmware supports maximum commands: 928 LDIO threshold: 0 [ 2.805948] megaraid_sas 0000:3b:00.0: Performance mode :Latency (latency index = 1) [ 2.805953] megaraid_sas 0000:3b:00.0: FW supports sync cache : No [ 2.805958] megaraid_sas 0000:3b:00.0: megasas_disable_intr_fusion is called outbound_intr_mask:0x40000009 [ 2.870998] megaraid_sas 0000:3b:00.0: FW provided supportMaxExtLDs: 1 max_lds: 64 [ 2.871008] megaraid_sas 0000:3b:00.0: controller type : MR(2048MB) [ 2.871014] megaraid_sas 0000:3b:00.0: Online Controller Reset(OCR) : Enabled [ 2.871019] megaraid_sas 0000:3b:00.0: Secure JBOD support : No [ 2.871023] megaraid_sas 0000:3b:00.0: NVMe passthru support : No [ 2.871027] megaraid_sas 0000:3b:00.0: FW provided TM TaskAbort/Reset timeou: 0 secs/0 secs [ 2.871032] megaraid_sas 0000:3b:00.0: JBOD sequence map support : No [ 2.871036] megaraid_sas 0000:3b:00.0: PCI Lane Margining support : No [ 2.896739] megaraid_sas 0000:3b:00.0: megasas_enable_intr_fusion is called outbound_intr_mask:0x40000000 [ 2.896751] megaraid_sas 0000:3b:00.0: INIT adapter done [ 2.896756] megaraid_sas 0000:3b:00.0: JBOD sequence map is disabled megasas_setup_jbod_map 5796 [ 2.902201] megaraid_sas 0000:3b:00.0: pci id : (0x1000)/(0x005d)/(0x1028)/(0x1f47) [ 2.902210] megaraid_sas 0000:3b:00.0: unevenspan support : yes [ 2.902215] megaraid_sas 0000:3b:00.0: firmware crash dump : no [ 2.902219] megaraid_sas 0000:3b:00.0: JBOD sequence map : disabled [ 2.902406] megaraid_sas 0000:3b:00.0: Max firmware commands: 927 shared with default hw_queues = 88 poll_queues 0 [ 2.902414] scsi host15: Avago SAS based MegaRAID driver

— Reply to this email directly, view it on GitHub https://github.com/LinearTapeFileSystem/ltfs/issues/483, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADAYKVBJ4XWAAAS4ZUOPYG3ZYRZC3AVCNFSM6AAAAABO525IC2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2TCNJSG4ZDMOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

smccue2019 commented 2 months ago

I came to add that I had built the code adding switches "--enable-buggy-ifs --enable-lintape" to the configure call.

Hello, thank you for responding!

I believe the reflection of a 12TB volume is because my blank media is an LTO8 cartridge.

Per your suggestion I reran mkltfs and lfts using sg0. Same results and line by line messaging as resulted from using st0. [I've come from CentOS where the st devices were used.]

piste-jp commented 2 months ago

It looks your HBA MegaRAID might not support transfer length count at all. I believe this HBA only supports block device, but supports RAID. But I'm not sure this supports streaming device correctly.

8fc7 LTFS11005I Mounting the volume from device.
8fc7 LTFS30252I Logical block protection is disabled.
8fc7 LTFS30216W Length mismatch is detected. (Act = 4096, resid = 0, resid_sense = 4016).

My recommendation is to use HBA that IBM says supported. Please visit the SSIC provided from IBM and choose a correct HBA.

piste-jp commented 1 month ago

Hi @TulioLazarini , Sorry for my missing something.

From the lines like below, I think --enable-buggy-ifs highly likely works as @smccue2019 said.

8fc7 LTFS30216W Length mismatch is detected. (Act = 4096, resid = 0, resid_sense = 4016).

See also, https://github.com/LinearTapeFileSystem/ltfs/issues/369#issuecomment-1951539217.