-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant format a LTO-6 tape on a Tandberg LTO-6 #343
Comments
the controller/ cable works perfect with a IBM Ultrium-HH5 Rev. C7R3, but ofc thats only lto5.. same tape the lto6 tape drive couldnt handle without errors also. thats operation is not documented here in this case, only the trying to format a lto-6 tape. |
In this case, the CAM backend is saying the PF bit (Byte1, Bit4) of MODESELECT is not correct. Please try the quick hack below. Change ltfs/src/tape_drivers/freebsd/cam/cam_tc.c Line 1992 in ffc63ac
/*scsi_page_fmt*/ 1, This is the function call includes L1992. ltfs/src/tape_drivers/freebsd/cam/cam_tc.c Lines 1988 to 1998 in ffc63ac
|
The quick dirty hack, seems do the trick.. now i can format and mount tapes.. will try write/read and other stuff later.. i have appended the log for it here: mkltfs -d /dev/sa0 -n test -f -tLTFS15000I Starting mkltfs, LTFS version 2.5.0.0 (Prelim), log level 3. LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x802456000). LTFS15019I Volume capacity is 2524 GB. |
and the ltfs mount of the same tape: ltfs /tmp/ltfs/ -o trace18c25 LTFS14000I LTFS starting, LTFS version 2.5.0.0 (Prelim), log level 3. |
In the sg backend for Linux PF bit (page_format) is set. So my previous hack looks correct to the CAM backend also. I will fix this later. ltfs/src/tape_drivers/linux/sg/sg_tape.c Lines 3264 to 3267 in ffc63ac
|
awesome job, thanks a lot for your efforts. |
Sorry for reopening this old thread, but I have a big problem with LTFS on my Tandberg LTO-6 drive. So far I used Windows 10 for LTFS, but since the 22H2 update it does not work anymore. So I would like to move to Ubuntu Linux 22.04LTS. What is the status of your software for Tandberg drives? Is it worth trying? Did you get feedback from other users meanwhile? I use the Tandberg LTO-6 drive on Ubuntu for backup via bacula already. That works very well, so it would be just great if I could get LTFS running on Ubuntu as well. Any comment would be very much appreciated. |
It looks an entry is existing into the table and it might be accepted by HP drive handling. ltfs/src/tape_drivers/hp_tape.c Lines 65 to 74 in f95a9a4
|
Thank you very much for your quick reply! That looks promising, indeed. So, I will definitely give it a try. |
i cant format a tape, it keep on failing with some scsi error..
i have tried now two different controllers, in ltfs for windows i can format the tapes without any errors, with both controllers.
One Dell and now one lsi one, both in it mode.
Any suggestions?
mkltfs --device=/dev/sa0 --rules="size=100K" -t
LTFS15000I Starting mkltfs, LTFS version 2.5.0.0 (Prelim), log level 3.
LTFS15041I Launched by "mkltfs --device=/dev/sa0 --rules=size=100K -t".
LTFS15042I This binary is built for FreeBSD.
LTFS15043I GCC version is FreeBSD Clang 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe).
LTFS17087I Kernel version: FreeBSD 13.0-RELEASE-p7 #0: Mon Jan 31 18:24:03 UTC 2022
root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC
.
LTFS15025D Validating command line options.
LTFS15037D Command line options are valid.
LTFS15003I Formatting device '/dev/sa0'.
LTFS15004I LTFS volume blocksize: 524288.
LTFS15005I Index partition placement policy: size=100K.
LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x802456000).
LTFS15006D Opening the device.
LTFS17085I Plugin: Loading "cam" tape backend.
LTFS31223I Opening a device through CAM driver (/dev/sa0)
LTFS31228I Product ID is 'LTO-6 HH'
LTFS31229I Vendor ID is TANDBERG
LTFS31232I Firmware revision is 3579
LTFS31233I Drive serial is HUJ527449P
LTFS12023D Reserving device.
LTFS31392D Backend reserve unit (6) HUJ527449P
LTFS12028D Unlocking medium.
LTFS31392D Backend allow medium removal HUJ527449P
LTFS31392D Backend read block limits HUJ527449P
LTFS17160I Maximum device block size is 1048576.
LTFS11330I Loading cartridge.
LTFS31392D Backend load HUJ527449P
LTFS31398D Backend readpos: (0, 0) FM = 0 HUJ527449P
LTFS12026D Locking medium in the drive.
LTFS31392D Backend prevent medium removal HUJ527449P
LTFS31398D Backend readpos: (0, 0) FM = 0 HUJ527449P
LTFS31392D Backend camtape_set_default Setting SILI bit
LTFS31392D Backend camtape_set_default Setting EOT model to 1FM
LTFS31392D Backend read block limits HUJ527449P
LTFS11332I Load successful.
LTFS31213I Error on modeselect: (pass5:mps0:0:1:0): MODE SELECT(10). CDB: 55 00 00 00 00 00 00 00 30 00
(pass5:mps0:0:1:0): CAM status: SCSI Status Error
(pass5:mps0:0:1:0): SCSI status: Check Condition
(pass5:mps0:0:1:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB)
(pass5:mps0:0:1:0): Command byte 1 bit 4 is invalid
(-20501) HUJ527449P
LTFS17103E Cannot set PEWS: Mode Select for Device Configuration Extension failed (-20501).
LTFS17157I Changing the drive setting to write-anywhere mode.
LTFS15007D Device opened.
LTFS15049I Checking the medium (mount).
LTFS11012D Loading the tape.
LTFS31392D Backend load HUJ527449P
LTFS31398D Backend readpos: (0, 0) FM = 0 HUJ527449P
LTFS31398D Backend readpos: (0, 0) FM = 0 HUJ527449P
LTFS31392D Backend camtape_set_default Setting SILI bit
LTFS31392D Backend camtape_set_default Setting EOT model to 1FM
LTFS31392D Backend read block limits HUJ527449P
LTFS31397D Backend locate: (0, 0) HUJ527449P
LTFS31398D Backend readpos: (0, 0) FM = 0 HUJ527449P
LTFS11007D Tape is loaded.
LTFS15010I Creating data partition b on SCSI partition 1.
LTFS15011I Creating index partition a on SCSI partition 0.
LTFS31392D Backend read block limits HUJ527449P
LTFS17165I Resetting the medium's capacity proportion.
LTFS31392D Backend load HUJ527449P
LTFS31398D Backend readpos: (0, 0) FM = 0 HUJ527449P
LTFS11097I Partitioning the medium.
LTFS31392D Backend load HUJ527449P
LTFS31398D Backend readpos: (0, 0) FM = 0 HUJ527449P
LTFS31213I Error on modeselect: (pass5:mps0:0:1:0): MODE SELECT(10). CDB: 55 00 00 00 00 00 00 00 20 00
(pass5:mps0:0:1:0): CAM status: SCSI Status Error
(pass5:mps0:0:1:0): SCSI status: Check Condition
(pass5:mps0:0:1:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB)
(pass5:mps0:0:1:0): Command byte 1 bit 4 is invalid
(-20501) HUJ527449P
LTFS31392D Backend format HUJ527449P
LTFS31213I Error on format: (pass5:mps0:0:1:0): FORMAT MEDIUM. CDB: 04 00 01 00 00 00
(pass5:mps0:0:1:0): CAM status: SCSI Status Error
(pass5:mps0:0:1:0): SCSI status: Check Condition
(pass5:mps0:0:1:0): SCSI sense: ILLEGAL REQUEST asc:26,2 (Parameter value invalid)
(-20500) HUJ527449P
LTFS12053E Cannot format medium: backend call failed (-20500).
LTFS11098E Cannot format: failed to partition the medium (-20500).
LTFS15012E Failed to format the medium.
LTFS12028D Unlocking medium.
LTFS31392D Backend allow medium removal HUJ527449P
LTFS31213I Error on modeselect: (pass5:mps0:0:1:0): MODE SELECT(10). CDB: 55 00 00 00 00 00 00 00 30 00
(pass5:mps0:0:1:0): CAM status: SCSI Status Error
(pass5:mps0:0:1:0): SCSI status: Check Condition
(pass5:mps0:0:1:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB)
(pass5:mps0:0:1:0): Command byte 1 bit 4 is invalid
(-20501) HUJ527449P
LTFS17155E Cannot set WRITE MODE: Mode Select for Device Configuration Extension failed (-20501).
LTFS12025D Releasing device.
LTFS31392D Backend release unit (6) HUJ527449P
LTFS31392D Backend rewind HUJ527449P
LTFS31398D Backend readpos: (0, 0) FM = 0 HUJ527449P
LTFS31213I Error on modesense: (pass5:mps0:0:1:0): MODE SENSE(10). CDB: 5a 00 24 00 00 00 00 00 28 00
(pass5:mps0:0:1:0): CAM status: SCSI Status Error
(pass5:mps0:0:1:0): SCSI status: Check Condition
(pass5:mps0:0:1:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB)
(pass5:mps0:0:1:0): Command byte 2 bit 5 is invalid
(-20501) HUJ527449P
LTFS15023I Formatting failed.
The text was updated successfully, but these errors were encountered: