Closed simonwaid closed 1 year ago
Please see the Quick Start page.
You need to specify the device name or drive serial which is listed by ltfs -o device_list
.
Thanks, and sorry for my stupidity.
Formatting now seems to work, but the file system is not mounted. Not sure if I should close this issue and open another one or if I'm again just too stupid to read the documentation properly.
sudo mkltfs -d /dev/sg0
LTFS15000I Starting mkltfs, LTFS version 2.5.0.0 (Prelim), log level 2.
LTFS15041I Launched by "mkltfs -d /dev/sg0".
LTFS15042I This binary is built for Linux (x86_64).
LTFS15043I GCC version is 11.3.0.
LTFS17087I Kernel version: Linux version 6.0.7-060007-generic (kernel@gloin) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.2.0-3ubuntu1) 12.2.0, GNU ld (GNU Binutils for Ubuntu) 2.39) #202211031652 SMP PREEMPT_DYNAMIC Thu Nov 3 18:33:21 UTC 2022 i386.
LTFS17089I Distribution: DISTRIB_ID=Ubuntu.
LTFS17089I Distribution: PRETTY_NAME="Ubuntu 22.04.1 LTS".
LTFS15003I Formatting device '/dev/sg0'.
LTFS15004I LTFS volume blocksize: 524288.
LTFS15005I Index partition placement policy: None.
LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x56038b550780).
LTFS17085I Plugin: Loading "sg" tape backend.
LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg0).
LTFS30250I Opened the SCSI tape device 0.0.86.0 (/dev/sg0).
LTFS30207I Vendor ID is TANDBERG.
LTFS30208I Product ID is LTO-6 HH .
LTFS30214I Firmware revision is 3319.
LTFS30215I Drive serial is HUJ4220H84.
LTFS30285I The reserved buffer size of /dev/sg0 is 327680.
LTFS30205I RSOC (0xa3) returns -20000.
LTFS30263I RSOC returns No Additional Sense Information (-20000) /dev/sg0.
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.
LTFS15049I Checking the medium (mount).
LTFS30205I READ (0x08) returns -20801.
LTFS30263I READ returns End-of-Data (EOD) Detected (-20801) /dev/sg0.
LTFS12049E Cannot read: backend call failed (-20801).
LTFS11174E Cannot read ANSI label: read failed (-20801).
LTFS11009E Cannot read volume: failed to read partition labels.
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.
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/sg0.
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) HUJ4220H84.
LTFS17236I Wrote index of NO_BARCODE (Gen = 1, Part = b, Pos = 5, HUJ4220H84).
LTFS11337I Update index-dirty flag (0) - NO_BARCODE (0x0x56038b550780).
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/sg0.
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) HUJ4220H84.
LTFS17236I Wrote index of NO_BARCODE (Gen = 1, Part = a, Pos = 5, HUJ4220H84).
LTFS15013I Volume UUID is: c3da3e2b-6287-48b1-b960-cbdeac6f8a57.
LTFS15019I Volume capacity is 2524 GB.
LTFS30205I MODESELECT (0x55) returns -20500.
LTFS30263I MODESELECT returns Invalid Field in Parameter List (-20500) /dev/sg0.
LTFS15024I Medium formatted successfully.
sudo ltfs -o devname=/dev/sg0 /media/tape/
1453 LTFS14000I LTFS starting, LTFS version 2.5.0.0 (Prelim), log level 2.
1453 LTFS14058I LTFS Format Specification version 2.4.0.
1453 LTFS14104I Launched by "ltfs -o devname=/dev/sg0 /media/tape/".
1453 LTFS14105I This binary is built for Linux (x86_64).
1453 LTFS14106I GCC version is 11.3.0.
1453 LTFS17087I Kernel version: Linux version 6.0.7-060007-generic (kernel@gloin) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.2.0-3ubuntu1) 12.2.0, GNU ld (GNU Binutils for Ubuntu) 2.39) #202211031652 SMP PREEMPT_DYNAMIC Thu Nov 3 18:33:21 UTC 2022 i386.
1453 LTFS17089I Distribution: DISTRIB_ID=Ubuntu.
1453 LTFS17089I Distribution: PRETTY_NAME="Ubuntu 22.04.1 LTS".
1453 LTFS14063I Sync type is "time", Sync time is 300 sec.
1453 LTFS17085I Plugin: Loading "sg" tape backend.
1453 LTFS17085I Plugin: Loading "unified" iosched backend.
1453 LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
1453 LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg0).
1453 LTFS30250I Opened the SCSI tape device 0.0.86.0 (/dev/sg0).
1453 LTFS30207I Vendor ID is TANDBERG.
1453 LTFS30208I Product ID is LTO-6 HH .
1453 LTFS30214I Firmware revision is 3319.
1453 LTFS30215I Drive serial is HUJ4220H84.
1453 LTFS30285I The reserved buffer size of /dev/sg0 is 327680.
1453 LTFS30294I Setting up timeout values from RSOC.
1453 LTFS17160I Maximum device block size is 1048576.
1453 LTFS11330I Loading cartridge.
1453 LTFS11332I Load successful.
1453 LTFS17157I Changing the drive setting to write-anywhere mode.
1453 LTFS11005I Mounting the volume from device.
1453 LTFS30216W Length mismatch is detected. (Act = 4096, resid = 0, resid_sense = 4016).
1453 LTFS12049E Cannot read: backend call failed (-21716).
1453 LTFS11174E Cannot read ANSI label: read failed (-21716).
1453 LTFS11170E Failed to read label (-21716) from partition 0.
1453 LTFS11009E Cannot read volume: failed to read partition labels.
1453 LTFS14013E Cannot mount the volume from device.
1453 LTFS30205I MODESELECT (0x55) returns -20500.
1453 LTFS30263I MODESELECT returns Invalid Field in Parameter List (-20500) /dev/sg0.
I should note that the drive I have is actually HP made. Tandberg Data sold both rebranded IBM and HP drives. Not sure if this is useful, but what might work on one Tandberg drive might fail on another, if it's from a different manufacturer.
It looks your HBA have a funny behavior. Try the --enable-buggy-ifs
option in the configure
script. -> https://github.com/LinearTapeFileSystem/ltfs/wiki/HBA-info#note-for-buggy-hbas
Also you can refer the issues below.
Thanks! a lot for the help! That brought me further, but mounting still fails. I'll buy a new HBA. For anyone finding this: The HBA which is not working is a LSI SAS8888ELP.
Here are the outputs I got after compiling with --enable-buggy-ifs
sudo mkltfs -f -d /dev/sg0
[sudo] Passwort für natsim:
LTFS15000I Starting mkltfs, LTFS version 2.5.0.0 (Prelim), log level 2.
LTFS15041I Launched by "mkltfs -f -d /dev/sg0".
LTFS15042I This binary is built for Linux (x86_64).
LTFS15043I GCC version is 11.3.0.
LTFS17087I Kernel version: Linux version 6.0.7-060007-generic (kernel@gloin) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.2.0-3ubuntu1) 12.2.0, GNU ld (GNU Binutils for Ubuntu) 2.39) #202211031652 SMP PREEMPT_DYNAMIC Thu Nov 3 18:33:21 UTC 2022 i386.
LTFS17089I Distribution: DISTRIB_ID=Ubuntu.
LTFS17089I Distribution: PRETTY_NAME="Ubuntu 22.04.1 LTS".
LTFS15003I Formatting device '/dev/sg0'.
LTFS15004I LTFS volume blocksize: 524288.
LTFS15005I Index partition placement policy: None.
LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x5558a07937b0).
LTFS17085I Plugin: Loading "sg" tape backend.
LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg0).
LTFS30250I Opened the SCSI tape device 0.0.86.0 (/dev/sg0).
LTFS30207I Vendor ID is TANDBERG.
LTFS30208I Product ID is LTO-6 HH .
LTFS30214I Firmware revision is 3519.
LTFS30215I Drive serial is HUJ4220H84.
LTFS30285I The reserved buffer size of /dev/sg0 is 327680.
LTFS30205I RSOC (0xa3) returns -20000.
LTFS30263I RSOC returns No Additional Sense Information (-20000) /dev/sg0.
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.
LTFS15049I Checking the medium (load).
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.
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/sg0.
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) HUJ4220H84.
LTFS17236I Wrote index of NO_BARCODE (Gen = 1, Part = b, Pos = 5, HUJ4220H84).
LTFS11337I Update index-dirty flag (0) - NO_BARCODE (0x0x5558a07937b0).
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/sg0.
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) HUJ4220H84.
LTFS17236I Wrote index of NO_BARCODE (Gen = 1, Part = a, Pos = 5, HUJ4220H84).
LTFS15013I Volume UUID is: c6ffc832-aab1-415d-ae0b-7f91dd106c11.
LTFS15019I Volume capacity is 2524 GB.
LTFS30205I MODESELECT (0x55) returns -20500.
LTFS30263I MODESELECT returns Invalid Field in Parameter List (-20500) /dev/sg0.
LTFS15024I Medium formatted successfully.
sudo ltfs -o devname=/dev/sg0 /media/tape/
150e LTFS14000I LTFS starting, LTFS version 2.5.0.0 (Prelim), log level 2.
150e LTFS14058I LTFS Format Specification version 2.4.0.
150e LTFS14104I Launched by "ltfs -o devname=/dev/sg0 /media/tape/".
150e LTFS14105I This binary is built for Linux (x86_64).
150e LTFS14106I GCC version is 11.3.0.
150e LTFS17087I Kernel version: Linux version 6.0.7-060007-generic (kernel@gloin) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.2.0-3ubuntu1) 12.2.0, GNU ld (GNU Binutils for Ubuntu) 2.39) #202211031652 SMP PREEMPT_DYNAMIC Thu Nov 3 18:33:21 UTC 2022 i386.
150e LTFS17089I Distribution: DISTRIB_ID=Ubuntu.
150e LTFS17089I Distribution: PRETTY_NAME="Ubuntu 22.04.1 LTS".
150e LTFS14063I Sync type is "time", Sync time is 300 sec.
150e LTFS17085I Plugin: Loading "sg" tape backend.
150e LTFS17085I Plugin: Loading "unified" iosched backend.
150e LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
150e LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg0).
150e LTFS30250I Opened the SCSI tape device 0.0.86.0 (/dev/sg0).
150e LTFS30207I Vendor ID is TANDBERG.
150e LTFS30208I Product ID is LTO-6 HH .
150e LTFS30214I Firmware revision is 3519.
150e LTFS30215I Drive serial is HUJ4220H84.
150e LTFS30285I The reserved buffer size of /dev/sg0 is 327680.
150e LTFS30294I Setting up timeout values from RSOC.
150e LTFS17160I Maximum device block size is 1048576.
150e LTFS11330I Loading cartridge.
150e LTFS11332I Load successful.
150e LTFS17157I Changing the drive setting to write-anywhere mode.
150e LTFS11005I Mounting the volume from device.
150e LTFS30205I MODESENSE (0x5a) returns -20501.
150e LTFS30263I MODESENSE returns Invalid Field in CDB (-20501) /dev/sg0.
150e LTFS11026I Performing a full medium consistency check.
150e LTFS30200I Failed to execute SG_IO ioctl, opcode = 08 (22).
150e LTFS30263I READ returns ioctl error (-21700) /dev/sg0.
150e LTFS12049E Cannot read: backend call failed (-21700).
150e LTFS17039E XML parser: failed to read a block from the medium (-21700).
150e LTFS17037E XML parser: failed to read from XML stream.
150e LTFS17273E XML parser: Detected an I/O error on reading an index from the tape (-21700).
150e LTFS17016E Cannot parse index direct from medium (-21700).
150e LTFS11194W Cannot read index: failed to read and parse XML data (-21700).
150e LTFS30200I Failed to execute SG_IO ioctl, opcode = 08 (22).
150e LTFS30263I READ returns ioctl error (-21700) /dev/sg0.
150e LTFS12049E Cannot read: backend call failed (-21700).
150e LTFS17039E XML parser: failed to read a block from the medium (-21700).
150e LTFS17037E XML parser: failed to read from XML stream.
150e LTFS17273E XML parser: Detected an I/O error on reading an index from the tape (-21700).
150e LTFS17016E Cannot parse index direct from medium (-21700).
150e LTFS11194W Cannot read index: failed to read and parse XML data (-21700).
150e LTFS11253E No index found in the medium.
150e LTFS11027E Cannot mount volume: medium consistency check failed.
150e LTFS14013E Cannot mount the volume from device.
150e LTFS30205I MODESELECT (0x55) returns -20500.
150e LTFS30263I MODESELECT returns Invalid Field in Parameter List (-20500) /dev/sg0.
Dear all,
I'd like to use ltfs with a Tandberg LTO-6 HH drive (which I think was actually made by HP, at least guessing from how it looks like). I was trying to format the tape using the following command:
sudo mkltfs -d /dev/st0
Unfortunately, I got the following error message:
The messages say nothing to me, help would be appreciated.
The SAS Adapter is an LSI SAS8888ELP. Linux kernel: 6.0.7
Full terminal output: