Skip to content
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

Open
ia2115 opened this issue Mar 22, 2022 · 9 comments
Open

Cant format a LTO-6 tape on a Tandberg LTO-6 #343

ia2115 opened this issue Mar 22, 2022 · 9 comments
Assignees
Labels

Comments

@ia2115
Copy link

ia2115 commented Mar 22, 2022

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.

@ia2115
Copy link
Author

ia2115 commented Mar 22, 2022

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.

@piste-jp-ibm
Copy link
Member

TANDBERG drive support is experimental and not tested at all. Because we don't have any equipment. We just accept it and assume it behaves as same as IBM tape drive.

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

/*scsi_page_fmt*/ 0,
to

						 /*scsi_page_fmt*/ 1,

This is the function call includes L1992.

scsi_mode_select_len(&ccb->csio,
/*retries*/ 1,
/*cbfcnp*/ NULL,
/*tag_action*/ MSG_SIMPLE_Q_TAG,
/*scsi_page_fmt*/ 0,
/*save_pages*/ 0,
/*param_buf*/ buf,
/*param_len*/ size,
/*minimum_cmd_len*/ 10,
/*sense_len*/ SSD_FULL_SIZE,
/*timeout*/ timeout);

@ia2115
Copy link
Author

ia2115 commented Mar 23, 2022

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 -t

LTFS15000I Starting mkltfs, LTFS version 2.5.0.0 (Prelim), log level 3.
LTFS15041I Launched by "mkltfs -d /dev/sa0 -n test -f -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-p8 #0: Tue Mar 15 09:36:28 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: None.

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.
LTFS17157I Changing the drive setting to write-anywhere mode.
LTFS15007D Device opened.
LTFS15049I Checking the medium (load).
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
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
LTFS31392D Backend format HUJ527449P
LTFS11100I Writing label to partition b.
LTFS31397D Backend locate: (1, 0) HUJ527449P
LTFS31398D Backend readpos: (1, 0) FM = 0 HUJ527449P
LTFS31395D Backend write: 80 bytes HUJ527449P
LTFS31396D Backend writefm: 1 HUJ527449P
LTFS31398D Backend readpos: (1, 2) FM = 1 HUJ527449P
LTFS31395D Backend write: 491 bytes HUJ527449P
LTFS31396D Backend writefm: 1 HUJ527449P
LTFS31398D Backend readpos: (1, 4) FM = 2 HUJ527449P
LTFS11278I Writing index to partition b.
LTFS31213I Error on readattr: (pass5:mps0:0:3:0): READ ATTRIBUTE. CDB: 8c 00 00 00 00 00 00 00 16 23 00 00 00 0a 00 00
(pass5:mps0:0:3:0): CAM status: SCSI Status Error
(pass5:mps0:0:3:0): SCSI status: Check Condition
(pass5:mps0:0:3:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB)
(pass5:mps0:0:3:0): Command byte 8 bit 7 is invalid
(-20501) HUJ527449P
LTFS31260I 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) HUJ527449P.
LTFS31396D Backend writefm: 1 HUJ527449P
LTFS31398D Backend readpos: (1, 5) FM = 3 HUJ527449P
LTFS31395D Backend write: 895 bytes HUJ527449P
LTFS31396D Backend writefm: 1 HUJ527449P
LTFS31398D Backend readpos: (1, 7) FM = 4 HUJ527449P
LTFS17236I Wrote index of NO_BARCODE (Gen = 1, Part = b, Pos = 5, HUJ527449P).
LTFS11337I Update index-dirty flag (0) - NO_BARCODE (0x0x802456000).
LTFS11100I Writing label to partition a.
LTFS31397D Backend locate: (0, 0) HUJ527449P
LTFS31398D Backend readpos: (0, 0) FM = 0 HUJ527449P
LTFS31395D Backend write: 80 bytes HUJ527449P
LTFS31396D Backend writefm: 1 HUJ527449P
LTFS31398D Backend readpos: (0, 2) FM = 1 HUJ527449P
LTFS31395D Backend write: 491 bytes HUJ527449P
LTFS31396D Backend writefm: 1 HUJ527449P
LTFS31398D Backend readpos: (0, 4) FM = 2 HUJ527449P
LTFS11278I Writing index to partition a.
LTFS31213I Error on readattr: (pass5:mps0:0:3:0): READ ATTRIBUTE. CDB: 8c 00 00 00 00 00 00 00 16 23 00 00 00 0a 00 00
(pass5:mps0:0:3:0): CAM status: SCSI Status Error
(pass5:mps0:0:3:0): SCSI status: Check Condition
(pass5:mps0:0:3:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB)
(pass5:mps0:0:3:0): Command byte 8 bit 7 is invalid
(-20501) HUJ527449P
LTFS31260I Cannot read attribute (-20501)
LTFS11336I The attribute does not exist. Ignore the expected error.
LTFS31396D Backend writefm: 0 HUJ527449P
LTFS31398D Backend readpos: (0, 4) FM = 2 HUJ527449P
LTFS17235I Writing index of NO_BARCODE to a (Reason: Format, 0 files) HUJ527449P.
LTFS31396D Backend writefm: 1 HUJ527449P
LTFS31398D Backend readpos: (0, 5) FM = 3 HUJ527449P
LTFS31395D Backend write: 1006 bytes HUJ527449P
LTFS31396D Backend writefm: 1 HUJ527449P
LTFS31398D Backend readpos: (0, 7) FM = 4 HUJ527449P
LTFS17236I Wrote index of NO_BARCODE (Gen = 1, Part = a, Pos = 5, HUJ527449P).
LTFS15013I Volume UUID is: bcc75879-2a6c-4892-8339-4bcc6f9b39df.

LTFS15019I Volume capacity is 2524 GB.
LTFS15020D Closing the device.
LTFS12028D Unlocking medium.
LTFS31392D Backend allow medium removal HUJ527449P
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:3:0): MODE SENSE(10). CDB: 5a 00 24 00 00 00 00 00 28 00
(pass5:mps0:0:3:0): CAM status: SCSI Status Error
(pass5:mps0:0:3:0): SCSI status: Check Condition
(pass5:mps0:0:3:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB)
(pass5:mps0:0:3:0): Command byte 2 bit 5 is invalid
(-20501) HUJ527449P
LTFS15022D Device closed.
LTFS15024I Medium formatted successfully.

@ia2115
Copy link
Author

ia2115 commented Mar 23, 2022

and the ltfs mount of the same tape:

ltfs /tmp/ltfs/ -o trace

18c25 LTFS14000I LTFS starting, LTFS version 2.5.0.0 (Prelim), log level 3.
18c25 LTFS14058I LTFS Format Specification version 2.4.0.
18c25 LTFS14104I Launched by "ltfs /tmp/ltfs/ -o trace".
18c25 LTFS14105I This binary is built for FreeBSD.
18c25 LTFS14106I GCC version is FreeBSD Clang 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe).
18c25 LTFS17087I Kernel version: FreeBSD 13.0-RELEASE-p8 #0: Tue Mar 15 09:36:28 UTC 2022
root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC
.
18c25 LTFS14063I Sync type is "time", Sync time is 300 sec.
18c25 LTFS17085I Plugin: Loading "cam" tape backend.
18c25 LTFS17085I Plugin: Loading "unified" iosched backend.
18c25 LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
18c25 LTFS31223I Opening a device through CAM driver (/dev/sa0)
18c25 LTFS31228I Product ID is 'LTO-6 HH'
18c25 LTFS31229I Vendor ID is TANDBERG
18c25 LTFS31232I Firmware revision is 3579
18c25 LTFS31233I Drive serial is HUJ527449P
18c25 LTFS12023D Reserving device.
18c25 LTFS31392D Backend reserve unit (6) HUJ527449P
18c25 LTFS12028D Unlocking medium.
18c25 LTFS31392D Backend allow medium removal HUJ527449P
18c25 LTFS31392D Backend read block limits HUJ527449P
18c25 LTFS17160I Maximum device block size is 1048576.
18c25 LTFS11330I Loading cartridge.
18c25 LTFS31392D Backend load HUJ527449P
18c25 LTFS31398D Backend readpos: (0, 0) FM = 0 HUJ527449P
18c25 LTFS12026D Locking medium in the drive.
18c25 LTFS31392D Backend prevent medium removal HUJ527449P
18c25 LTFS31398D Backend readpos: (0, 0) FM = 0 HUJ527449P
18c25 LTFS31392D Backend camtape_set_default Setting SILI bit
18c25 LTFS31392D Backend camtape_set_default Setting EOT model to 1FM
18c25 LTFS31392D Backend read block limits HUJ527449P
18c25 LTFS11332I Load successful.
18c25 LTFS17157I Changing the drive setting to write-anywhere mode.
18c25 LTFS11005I Mounting the volume from device.
18c25 LTFS11012D Loading the tape.
18c25 LTFS31392D Backend load HUJ527449P
18c25 LTFS31398D Backend readpos: (0, 0) FM = 0 HUJ527449P
18c25 LTFS31398D Backend readpos: (0, 0) FM = 0 HUJ527449P
18c25 LTFS31392D Backend camtape_set_default Setting SILI bit
18c25 LTFS31392D Backend camtape_set_default Setting EOT model to 1FM
18c25 LTFS31392D Backend read block limits HUJ527449P
18c25 LTFS31397D Backend locate: (0, 0) HUJ527449P
18c25 LTFS31398D Backend readpos: (0, 0) FM = 0 HUJ527449P
18c25 LTFS11007D Tape is loaded.
18c25 LTFS11008D Reading partition labels.
18c25 LTFS31392D Backend read block limits HUJ527449P
18c25 LTFS31397D Backend locate: (0, 0) HUJ527449P
18c25 LTFS31398D Backend readpos: (0, 0) FM = 0 HUJ527449P
18c25 LTFS31206D IOCTL: sense = 00/0001
18c25 LTFS31236D Read block: file mark detected
18c25 LTFS31206D IOCTL: sense = 00/0001
18c25 LTFS31236D Read block: file mark detected
18c25 LTFS31392D Backend read block limits HUJ527449P
18c25 LTFS31397D Backend locate: (1, 0) HUJ527449P
18c25 LTFS31398D Backend readpos: (1, 0) FM = 0 HUJ527449P
18c25 LTFS31206D IOCTL: sense = 00/0001
18c25 LTFS31236D Read block: file mark detected
18c25 LTFS31206D IOCTL: sense = 00/0001
18c25 LTFS31236D Read block: file mark detected
18c25 LTFS31392D Backend read block limits HUJ527449P
18c25 LTFS11013D Partition labels are valid.
18c25 LTFS11014D Reading MAM parameters.
18c25 LTFS11339D Read volume lock status (0).
18c25 LTFS31213I Error on modesense: (pass5:mps0:0:3:0): MODE SENSE(10). CDB: 5a 00 25 00 00 00 00 00 30 00
(pass5:mps0:0:3:0): CAM status: SCSI Status Error
(pass5:mps0:0:3:0): SCSI status: Check Condition
(pass5:mps0:0:3:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB)
(pass5:mps0:0:3:0): Command byte 2 bit 5 is invalid
(-20501) HUJ527449P
18c25 LTFS11018D Done reading MAM parameters.
18c25 LTFS11019D Checking volume consistency.
18c25 LTFS31397D Backend locate: (0, 5) HUJ527449P
18c25 LTFS31398D Backend readpos: (0, 5) FM = 3 HUJ527449P
18c25 LTFS31209D IOCTL: no sense info
18c25 LTFS31238D Read block: underlength condition is detected. shortage = 523282, actual = 1006
18c25 LTFS31206D IOCTL: sense = 00/0001
18c25 LTFS31236D Read block: file mark detected
18c25 LTFS31394D Backend space back file marks: 1 HUJ527449P
18c25 LTFS31398D Backend readpos: (0, 6) FM = 3 HUJ527449P
18c25 LTFS31394D Backend space forward file marks: 1 HUJ527449P
18c25 LTFS31398D Backend readpos: (0, 7) FM = 4 HUJ527449P
18c25 LTFS11025D Volume is consistent.
18c25 LTFS11028D Consistency check finished.
18c25 LTFS17227I Tape attribute: Vendor = IBM .
18c25 LTFS17227I Tape attribute: Application Name = LTFS .
18c25 LTFS17227I Tape attribute: Application Version = 2.5.0.0 .
18c25 LTFS17227I Tape attribute: Medium Label = test.
18c25 LTFS17228I Tape attribute: Text Localization ID = 0x81.
18c25 LTFS17227I Tape attribute: Barcode = .
18c25 LTFS17227I Tape attribute: Application Format Version = 2.4.0 .
18c25 LTFS17228I Tape attribute: Volume Lock Status = 0x00.
18c25 LTFS17227I Tape attribute: Media Pool name = .
18c25 LTFS11031I Volume mounted successfully. NO_BARCODE : Gen = 1 / (a, 5) -> (b, 5) / HUJ527449P.
18c25 LTFS14122I Index will not be captured.
18c25 LTFS14111I Initial setup completed successfully.
18c25 LTFS14112I Invoke 'mount' command to check the result of final setup.
18c25 LTFS14113I Specified mount point is listed if succeeded.

@piste-jp-ibm
Copy link
Member

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.

/* Build CDB */
cdb[0] = MODE_SELECT10;
cdb[1] = 0x10; /* Set PF bit */
ltfs_u16tobe(cdb + 7, size);

@piste-jp-ibm piste-jp-ibm self-assigned this Mar 23, 2022
@ia2115
Copy link
Author

ia2115 commented Mar 26, 2022

awesome job, thanks a lot for your efforts.

@Rolf-Hempel
Copy link

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.

@piste-jp-ibm
Copy link
Member

piste-jp-ibm commented Jun 19, 2023

It looks an entry is existing into the table and it might be accepted by HP drive handling.

struct supported_device *hp_supported_drives[] = {
TAPEDRIVE( HP_VENDOR_ID, "Ultrium 5-SCSI", VENDOR_HP, DRIVE_LTO5, "[Ultrium 5-SCSI]" ), /* HP Ultrium Gen 5 */
TAPEDRIVE( HP_VENDOR_ID, "Ultrium 6-SCSI", VENDOR_HP, DRIVE_LTO6, "[Ultrium 6-SCSI]" ), /* HP Ultrium Gen 6 */
TAPEDRIVE( HP_VENDOR_ID, "Ultrium 7-SCSI", VENDOR_HP, DRIVE_LTO7, "[Ultrium 7-SCSI]" ), /* HP Ultrium Gen 7 */
TAPEDRIVE( HPE_VENDOR_ID, "Ultrium 8-SCSI", VENDOR_HP, DRIVE_LTO8, "[Ultrium 8-SCSI]" ), /* HPE Ultrium Gen 8 */
TAPEDRIVE( TANDBERG_VENDOR_ID, "LTO-5 HH", VENDOR_HP, DRIVE_LTO5_HH, "[TANDBERG LTO5]" ), /* TANDBERG LTO-5 HH */
TAPEDRIVE( TANDBERG_VENDOR_ID, "LTO-6 HH", VENDOR_HP, DRIVE_LTO6_HH, "[TANDBERG LTO6]" ), /* TANDBERG LTO-6 HH */
/* End of supported_devices */
NULL
};

@Rolf-Hempel
Copy link

Thank you very much for your quick reply! That looks promising, indeed. So, I will definitely give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants