LinearTapeFileSystem / LinearTapeFileSystem/ltfs

HP LTO5 Modesens invalid field

Open
#201 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug good first issue help wanted
Dominant language
C
Stars
352
Forks
110
Avg merge
2h 50m
Merged PRs (30d)
2

Description

Hello,

I´ve compiled the multivendor package, runs like a charm!
But I get an error at the mount command, I dont know what that means but mabe it is interesting for you?
"3cad LTFS30263I MODESENSE returns Invalid Field in CDB (-20501) /dev/sg0."

3cad LTFS14000I LTFS starting, LTFS version 2.4.2.1 (Prelim), log level 2.
3cad LTFS14058I LTFS Format Specification version 2.4.0.
3cad LTFS14104I Launched by "ltfs -o nonempty -o devname=/dev/sg0 /mnt/ltfs".
3cad LTFS14105I This binary is built for Linux (x86_64).
3cad LTFS14106I GCC version is 8.3.0.
3cad LTFS17087I Kernel version: Linux version 5.4.44-1-pve (root@nora) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP PVE 5.4.44-1 (Fri, 12 Jun 2020 08:18:46 +0200) i386.
3cad LTFS17089I Distribution: PRETTY_NAME="Debian GNU/Linux 10 (buster)".
3cad LTFS14063I Sync type is "time", Sync time is 300 sec.
3cad LTFS17085I Plugin: Loading "sg" tape backend.
3cad LTFS17085I Plugin: Loading "unified" iosched backend.
3cad LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
3cad LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg0).
3cad LTFS30250I Opened SCSI tape device 6.0.0.0 (/dev/sg0).
3cad LTFS30207I Vendor ID is HP .
3cad LTFS30208I Product ID is Ultrium 5-SCSI .
3cad LTFS30214I Firmware revision is Z6ED.
3cad LTFS30215I Drive serial is xxxxxxxx.
3cad LTFS30285I Reserved buffer size of /dev/sg0 is 1048576.
3cad LTFS17160I Maximum device block size is 1048576.
3cad LTFS11330I Loading cartridge.
3cad LTFS11332I Load successful.
3cad LTFS17157I Changing the drive setting to write-anywhere mode.
3cad LTFS11005I Mounting the volume.

3cad LTFS30205I MODESENSE (0x5a) returns -20501.
3cad LTFS30263I MODESENSE returns Invalid Field in CDB (-20501) /dev/sg0.

3cad LTFS11026I Performing a full medium consistency check.
3cad LTFS11233I Updating MAM coherency data.
3cad LTFS17227I Tape attribute: Vendor = IBM .
3cad LTFS17227I Tape attribute: Application Name = LTFS .
3cad LTFS17227I Tape attribute: Application Version = 2.4.2.1 .
3cad LTFS17227I Tape attribute: Medium Label = .
3cad LTFS17228I Tape attribute: Text Localization ID = 0x81.
3cad LTFS17227I Tape attribute: Barcode = .
3cad LTFS17227I Tape attribute: Application Format Version = 2.4.0 .
3cad LTFS17228I Tape attribute: Volume Lock Status = 0x00.
3cad LTFS17227I Tape attribute: Media Pool name = .
3cad LTFS14111I Initial setup completed successfully.
3cad LTFS14112I Invoke 'mount' command to check the result of final setup.
3cad LTFS14113I Specified mount point is listed if succeeded.

I can share further debug infos if you tell me what you need to fix that.

greetings from Austria

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported mount on the HP Ultrium 5-SCSI drive with firmware Z6ED, then review the MODESENSE (0x5a) diagnostic from the sg-ibmtape backend. Confirm whether the invalid-field message affects mounting, which the log says ultimately completes successfully, and document the verified result or required device-specific change.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
backend, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.