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

LTFS Mount read only - possible reason #448

Open
vguilleaume opened this issue Apr 22, 2024 · 6 comments
Open

LTFS Mount read only - possible reason #448

vguilleaume opened this issue Apr 22, 2024 · 6 comments
Labels

Comments

@vguilleaume
Copy link

vguilleaume commented Apr 22, 2024

Describe the bug
I'm facing to a case where the LTFS mount results with read-only mount.
This happened multiple time with different LTO9. I never get this before, and i try to understand what's happened.

To Reproduce
The steps to reproduce are the following:

  1. mklts can format the tapes
  2. ltfs mount works as expected
  3. start to copy files till a moment (i can't determine for now)
  4. dismount the tape
  5. try to mount again, and then get this mounting status.
  6. can't copy anymore file in the tape even if there are still space (around 6TB is used on a total of 17TB).

Trace Log
Here is the log of a tape where i have the problem:

8cca LTFS14058I LTFS Format Specification version 2.4.0.
8cca LTFS14104I Launched by "ltfs /mnt/Pool/5/BASE_DATA_COPY1/047129L9 -o devname=/dev/sg1 -o nonempty -o fulltrace".
8cca LTFS14105I This binary is built for Linux (x86_64).
8cca LTFS14106I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-20).
8cca LTFS17087I Kernel version: Linux version 4.18.0-477.15.1.el8_8.x86_64 (mockbuild@iad1-prod-build001.bld.equ.rockylinux.org) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-18) (GCC)) #1 SMP Wed Jun 28 15:04:18 UTC 2023 i386.
8cca LTFS17089I Distribution: Rocky Linux release 8.9 (Green Obsidian).
8cca LTFS17089I Distribution: NAME="Rocky Linux".
8cca LTFS17089I Distribution: Rocky Linux release 8.9 (Green Obsidian).
8cca LTFS17089I Distribution: Rocky Linux release 8.9 (Green Obsidian).
8cca LTFS17089I Distribution: Rocky Linux release 8.9 (Green Obsidian).
8cca LTFS14063I Sync type is "time", Sync time is 300 sec.
8cca LTFS17085I Plugin: Loading "sg" tape backend.
8cca LTFS17085I Plugin: Loading "unified" iosched backend.
8cca LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
8cca LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg1).
8cca LTFS30250I Opened the SCSI tape device 0.0.1.0 (/dev/sg1).
8cca LTFS30207I Vendor ID is IBM     .
8cca LTFS30208I Product ID is ULTRIUM-HH9     .
8cca LTFS30214I Firmware revision is PA61.
8cca LTFS30215I Drive serial is 11C97790B5.
8cca LTFS30285I The reserved buffer size of /dev/sg1 is 1048576.
8cca LTFS30294I Setting up timeout values from RSOC.
8cca LTFS39801D SCSI timeout (op_code 0x5f, timeout = 60).
8cca LTFS12023D Reserving device.
8cca LTFS30392D Backend reserve (PRO) 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x5f, timeout = 60).
8cca LTFS12028D Unlocking medium.
8cca LTFS30392D Backend allow medium removal 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x1e, timeout = 60).
8cca LTFS30392D Backend read block limits 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x05, timeout = 60).
8cca LTFS17160I Maximum device block size is 1048576.
8cca LTFS11330I Loading cartridge.
8cca LTFS30392D Backend load 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x1b, timeout = 7920).
8cca LTFS39801D SCSI timeout (op_code 0x34, timeout = 60).
8cca LTFS30398D Backend readpos: (0, 0) FM = 0 11C97790B5.
8cca LTFS30393D Backend modesense: 63 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
8cca LTFS30392D Backend test unit ready 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x00, timeout = 60).
8cca LTFS12026D Locking medium in the drive.
8cca LTFS30392D Backend prevent medium removal 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x1e, timeout = 60).
8cca LTFS39801D SCSI timeout (op_code 0x34, timeout = 60).
8cca LTFS30398D Backend readpos: (0, 0) FM = 0 11C97790B5.
8cca LTFS30392D Backend sg_set_default Resetting LBP.
8cca LTFS30393D Backend LBP Enable: 0 .
8cca LTFS30393D Backend LBP Method: 2 .
8cca LTFS30393D Backend modesense: 10 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
8cca LTFS30392D Backend modeselect 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x55, timeout = 60).
8cca LTFS30252I Logical block protection is disabled.
8cca LTFS30397D Backend logsense: (23, 0) 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x4d, timeout = 60).
8cca LTFS30397D Backend capacity part0: (122583, 122614) 11C97790B5.
8cca LTFS30397D Backend capacity part1: (10441952, 16798291) 11C97790B5.
8cca LTFS30393D Backend modesense: 16 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
8cca LTFS30392D Backend read block limits 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x05, timeout = 60).
8cca LTFS30393D Backend modesense: 16 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
8cca LTFS11332I Load successful.
8cca LTFS30392D Backend test unit ready 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x00, timeout = 60).
8cca LTFS30392D Backend test unit ready 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x00, timeout = 60).
8cca LTFS30397D Backend logsense: (23, 0) 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x4d, timeout = 60).
8cca LTFS30397D Backend capacity part0: (122583, 122614) 11C97790B5.
8cca LTFS30397D Backend capacity part1: (10441952, 16798291) 11C97790B5.
8cca LTFS30393D Backend modesense: 16 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
8cca LTFS30392D Backend modeselect 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x55, timeout = 60).
8cca LTFS17157I Changing the drive setting to write-anywhere mode.
8cca LTFS30393D Backend modesense: 16 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
8cca LTFS11005I Mounting the volume.
8cca LTFS11012D Loading the tape.
8cca LTFS30392D Backend test unit ready 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x00, timeout = 60).
8cca LTFS30392D Backend load 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x1b, timeout = 7920).
8cca LTFS39801D SCSI timeout (op_code 0x34, timeout = 60).
8cca LTFS30398D Backend readpos: (0, 0) FM = 0 11C97790B5.
8cca LTFS30393D Backend modesense: 63 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
8cca LTFS30392D Backend test unit ready 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x00, timeout = 60).
8cca LTFS39801D SCSI timeout (op_code 0x34, timeout = 60).
8cca LTFS30398D Backend readpos: (0, 0) FM = 0 11C97790B5.
8cca LTFS30392D Backend sg_set_default Resetting LBP.
8cca LTFS30393D Backend LBP Enable: 0 .
8cca LTFS30393D Backend LBP Method: 2 .
8cca LTFS30393D Backend modesense: 10 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
8cca LTFS30392D Backend modeselect 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x55, timeout = 60).
8cca LTFS30252I Logical block protection is disabled.
8cca LTFS30397D Backend logsense: (23, 0) 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x4d, timeout = 60).
8cca LTFS30397D Backend capacity part0: (122583, 122614) 11C97790B5.
8cca LTFS30397D Backend capacity part1: (10441952, 16798291) 11C97790B5.
8cca LTFS30393D Backend modesense: 16 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
8cca LTFS30392D Backend read block limits 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x05, timeout = 60).
8cca LTFS30393D Backend modesense: 16 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
8cca LTFS30397D Backend locate: (0, 0) 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x92, timeout = 2940).
8cca LTFS39801D SCSI timeout (op_code 0x34, timeout = 60).
8cca LTFS30398D Backend readpos: (0, 0) FM = 0 11C97790B5.
8cca LTFS11007D Tape is loaded.
8cca LTFS30397D Backend logsense: (23, 0) 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x4d, timeout = 60).
8cca LTFS30397D Backend capacity part0: (122583, 122614) 11C97790B5.
8cca LTFS30397D Backend capacity part1: (10441952, 16798291) 11C97790B5.
8cca LTFS11008D Reading partition labels.
8cca LTFS30393D Backend modesense: 16 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
8cca LTFS30392D Backend read block limits 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x05, timeout = 60).
8cca LTFS30397D Backend locate: (0, 0) 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x92, timeout = 2940).
8cca LTFS39801D SCSI timeout (op_code 0x34, timeout = 60).
8cca LTFS30398D Backend readpos: (0, 0) FM = 0 11C97790B5.
8cca LTFS30395D Backend read: 4096 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 4096 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30201D CDB check condition: sense = 000001, Filemark Detected.
8cca LTFS30204D READ (0x08) expected error -20004.
8cca LTFS30219D Read block: file mark detected.
8cca LTFS30395D Backend read: 4096 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 4096 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30201D CDB check condition: sense = 000001, Filemark Detected.
8cca LTFS30204D READ (0x08) expected error -20004.
8cca LTFS30219D Read block: file mark detected.
8cca LTFS30393D Backend modesense: 16 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
8cca LTFS30392D Backend read block limits 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x05, timeout = 60).
8cca LTFS30397D Backend locate: (1, 0) 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x92, timeout = 2940).
8cca LTFS39801D SCSI timeout (op_code 0x34, timeout = 60).
8cca LTFS30398D Backend readpos: (1, 0) FM = 0 11C97790B5.
8cca LTFS30395D Backend read: 4096 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 4096 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30201D CDB check condition: sense = 000001, Filemark Detected.
8cca LTFS30204D READ (0x08) expected error -20004.
8cca LTFS30219D Read block: file mark detected.
8cca LTFS30395D Backend read: 4096 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 4096 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30201D CDB check condition: sense = 000001, Filemark Detected.
8cca LTFS30204D READ (0x08) expected error -20004.
8cca LTFS30219D Read block: file mark detected.
8cca LTFS30393D Backend modesense: 15 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
8cca LTFS30392D Backend modeselect 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x55, timeout = 60).
8cca LTFS30393D Backend modesense: 16 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
8cca LTFS30392D Backend read block limits 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x05, timeout = 60).
8cca LTFS11013D Partition labels are valid.
8cca LTFS11014D Reading MAM parameters.
8cca LTFS30397D Backend readattr: (0, 5667) 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
8cca LTFS11339D Read volume lock status (4).
8cca LTFS30393D Backend modesense: 37 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
8cca LTFS30397D Backend logsense: (23, 0) 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x4d, timeout = 60).
8cca LTFS30397D Backend logsense: (23, 0) 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x4d, timeout = 60).
8cca LTFS30397D Backend readattr: (0, 2060) 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
8cca LTFS30397D Backend readattr: (1, 2060) 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
8cca LTFS30397D Backend readattr: (0, 9) 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
8cca LTFS11018D Done reading MAM parameters.
8cca LTFS11019D Checking volume consistency.
8cca LTFS11333I A cartridge with write-perm error is detected on DP. Seek the newest index (IP: Gen = 641, VCR = 1338) (DP: Gen = 640, VCR = 1304) (VCR = 1338).
8cca LTFS17286I VCR value is matched between IP-MAM and VCR (1338).
8cca LTFS17287I Making R/O mount from the location (a, 8).
8cca LTFS30397D Backend locate: (0, 8) 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x92, timeout = 2940).
8cca LTFS39801D SCSI timeout (op_code 0x34, timeout = 60).
8cca LTFS30398D Backend readpos: (0, 8) FM = 5 11C97790B5.
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30201D CDB check condition: sense = 000000, No Additional Sense Information.
8cca LTFS30204D READ (0x08) expected error -20000.
8cca LTFS30218D Read block: underrun in illegal length. residual = 142721, actual = 381567.
8cca LTFS30395D Backend read: 524288 bytes 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
8cca LTFS30201D CDB check condition: sense = 000001, Filemark Detected.
8cca LTFS30204D READ (0x08) expected error -20004.
8cca LTFS30219D Read block: file mark detected.
8cca LTFS30396D Backend space back file marks: 1 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x91, timeout = 2940).
8cca LTFS39801D SCSI timeout (op_code 0x34, timeout = 60).
8cca LTFS30398D Backend readpos: (0, 62) FM = 5 11C97790B5.
8cca LTFS30396D Backend space forward file marks: 1 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x91, timeout = 2940).
8cca LTFS39801D SCSI timeout (op_code 0x34, timeout = 60).
8cca LTFS30398D Backend readpos: (0, 63) FM = 6 11C97790B5.
8cca LTFS11025D Volume is consistent.
8cca LTFS11028D Consistency check finished.
8cca LTFS30397D Backend readattr: (0, 2048) 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
8cca LTFS30397D Backend readattr: (0, 2049) 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
8cca LTFS30397D Backend readattr: (0, 2050) 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
8cca LTFS30397D Backend readattr: (0, 2051) 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
8cca LTFS30397D Backend readattr: (0, 2053) 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
8cca LTFS30397D Backend readattr: (0, 2054) 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
8cca LTFS30397D Backend readattr: (0, 2059) 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
8cca LTFS30397D Backend readattr: (0, 5667) 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
8cca LTFS30397D Backend readattr: (0, 2056) 11C97790B5.
8cca LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
8cca LTFS17227I Tape attribute: Vendor = IBM     .
8cca LTFS17227I Tape attribute: Application Name = LTFS                            .
8cca LTFS17227I Tape attribute: Application Version = 2.4.4.1 .
8cca LTFS17227I Tape attribute: Medium Label = 047129L9.
8cca LTFS17228I Tape attribute: Text Localization ID = 0x81.
8cca LTFS17227I Tape attribute: Barcode = 047129L9                        .
8cca LTFS17227I Tape attribute: Application Format Version = 2.4.0           .
8cca LTFS17228I Tape attribute: Volume Lock Status = 0x04.
8cca LTFS17227I Tape attribute: Media Pool name = .
8cca LTFS11031I Volume mounted successfully. NO_BARCODE : Gen = 641 / (a, 8) -> (b, 17958111) / 11C97790B5.
8cca LTFS14019I Medium is write protected. Mounting read-only.
8cca LTFS14111I Initial setup completed successfully.
8cca LTFS14112I Invoke 'mount' command to check the result of final setup.
8cca LTFS14113I Specified mount point is listed if succeeded.

Another one without the problem (yet), i just did a LTFS format:

9447 LTFS14000I LTFS starting, LTFS version 2.4.4.1 (Prelim), log level 7.
9447 LTFS14058I LTFS Format Specification version 2.4.0.
9447 LTFS14104I Launched by "ltfs /mnt/Pool/5/BASE_DATA_COPY1/047123L9 -o devname=/dev/sg0 -o nonempty -o fulltrace".
9447 LTFS14105I This binary is built for Linux (x86_64).
9447 LTFS14106I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-20).
9447 LTFS17087I Kernel version: Linux version 4.18.0-477.15.1.el8_8.x86_64 (mockbuild@iad1-prod-build001.bld.equ.rockylinux.org) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-18) (GCC)) #1 SMP Wed Jun 28 15:04:18 UTC 2023 i386.
9447 LTFS17089I Distribution: Rocky Linux release 8.9 (Green Obsidian).
9447 LTFS17089I Distribution: NAME="Rocky Linux".
9447 LTFS17089I Distribution: Rocky Linux release 8.9 (Green Obsidian).
9447 LTFS17089I Distribution: Rocky Linux release 8.9 (Green Obsidian).
9447 LTFS17089I Distribution: Rocky Linux release 8.9 (Green Obsidian).
9447 LTFS14063I Sync type is "time", Sync time is 300 sec.
9447 LTFS17085I Plugin: Loading "sg" tape backend.
9447 LTFS17085I Plugin: Loading "unified" iosched backend.
9447 LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
9447 LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg0).
9447 LTFS30250I Opened the SCSI tape device 0.0.0.0 (/dev/sg0).
9447 LTFS30207I Vendor ID is IBM     .
9447 LTFS30208I Product ID is ULTRIUM-HH9     .
9447 LTFS30214I Firmware revision is PA61.
9447 LTFS30215I Drive serial is 11C97790BF.
9447 LTFS30285I The reserved buffer size of /dev/sg0 is 1048576.
9447 LTFS30294I Setting up timeout values from RSOC.
9447 LTFS39801D SCSI timeout (op_code 0x5f, timeout = 60).
9447 LTFS12023D Reserving device.
9447 LTFS30392D Backend reserve (PRO) 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x5f, timeout = 60).
9447 LTFS12028D Unlocking medium.
9447 LTFS30392D Backend allow medium removal 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x1e, timeout = 60).
9447 LTFS30392D Backend read block limits 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x05, timeout = 60).
9447 LTFS17160I Maximum device block size is 1048576.
9447 LTFS11330I Loading cartridge.
9447 LTFS30392D Backend load 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x1b, timeout = 7920).
9447 LTFS39801D SCSI timeout (op_code 0x34, timeout = 60).
9447 LTFS30398D Backend readpos: (0, 0) FM = 0 11C97790BF.
9447 LTFS30393D Backend modesense: 63 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
9447 LTFS30392D Backend test unit ready 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x00, timeout = 60).
9447 LTFS12026D Locking medium in the drive.
9447 LTFS30392D Backend prevent medium removal 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x1e, timeout = 60).
9447 LTFS39801D SCSI timeout (op_code 0x34, timeout = 60).
9447 LTFS30398D Backend readpos: (0, 0) FM = 0 11C97790BF.
9447 LTFS30392D Backend sg_set_default Resetting LBP.
9447 LTFS30393D Backend LBP Enable: 0 .
9447 LTFS30393D Backend LBP Method: 2 .
9447 LTFS30393D Backend modesense: 10 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
9447 LTFS30392D Backend modeselect 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x55, timeout = 60).
9447 LTFS30252I Logical block protection is disabled.
9447 LTFS30397D Backend logsense: (23, 0) 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x4d, timeout = 60).
9447 LTFS30397D Backend capacity part0: (122593, 122614) 11C97790BF.
9447 LTFS30397D Backend capacity part1: (16798280, 16798291) 11C97790BF.
9447 LTFS30393D Backend modesense: 16 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
9447 LTFS30392D Backend read block limits 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x05, timeout = 60).
9447 LTFS30393D Backend modesense: 16 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
9447 LTFS11332I Load successful.
9447 LTFS30392D Backend test unit ready 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x00, timeout = 60).
9447 LTFS30392D Backend test unit ready 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x00, timeout = 60).
9447 LTFS30397D Backend logsense: (23, 0) 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x4d, timeout = 60).
9447 LTFS30397D Backend capacity part0: (122593, 122614) 11C97790BF.
9447 LTFS30397D Backend capacity part1: (16798280, 16798291) 11C97790BF.
9447 LTFS30393D Backend modesense: 16 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
9447 LTFS30392D Backend modeselect 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x55, timeout = 60).
9447 LTFS17157I Changing the drive setting to write-anywhere mode.
9447 LTFS30393D Backend modesense: 16 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
9447 LTFS11005I Mounting the volume.
9447 LTFS11012D Loading the tape.
9447 LTFS30392D Backend test unit ready 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x00, timeout = 60).
9447 LTFS30392D Backend load 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x1b, timeout = 7920).
9447 LTFS39801D SCSI timeout (op_code 0x34, timeout = 60).
9447 LTFS30398D Backend readpos: (0, 0) FM = 0 11C97790BF.
9447 LTFS30393D Backend modesense: 63 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
9447 LTFS30392D Backend test unit ready 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x00, timeout = 60).
9447 LTFS39801D SCSI timeout (op_code 0x34, timeout = 60).
9447 LTFS30398D Backend readpos: (0, 0) FM = 0 11C97790BF.
9447 LTFS30392D Backend sg_set_default Resetting LBP.
9447 LTFS30393D Backend LBP Enable: 0 .
9447 LTFS30393D Backend LBP Method: 2 .
9447 LTFS30393D Backend modesense: 10 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
9447 LTFS30392D Backend modeselect 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x55, timeout = 60).
9447 LTFS30252I Logical block protection is disabled.
9447 LTFS30397D Backend logsense: (23, 0) 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x4d, timeout = 60).
9447 LTFS30397D Backend capacity part0: (122593, 122614) 11C97790BF.
9447 LTFS30397D Backend capacity part1: (16798280, 16798291) 11C97790BF.
9447 LTFS30393D Backend modesense: 16 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
9447 LTFS30392D Backend read block limits 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x05, timeout = 60).
9447 LTFS30393D Backend modesense: 16 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
9447 LTFS30397D Backend locate: (0, 0) 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x92, timeout = 2940).
9447 LTFS39801D SCSI timeout (op_code 0x34, timeout = 60).
9447 LTFS30398D Backend readpos: (0, 0) FM = 0 11C97790BF.
9447 LTFS11007D Tape is loaded.
9447 LTFS30397D Backend logsense: (23, 0) 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x4d, timeout = 60).
9447 LTFS30397D Backend capacity part0: (122593, 122614) 11C97790BF.
9447 LTFS30397D Backend capacity part1: (16798280, 16798291) 11C97790BF.
9447 LTFS11008D Reading partition labels.
9447 LTFS30393D Backend modesense: 16 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
9447 LTFS30392D Backend read block limits 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x05, timeout = 60).
9447 LTFS30397D Backend locate: (0, 0) 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x92, timeout = 2940).
9447 LTFS39801D SCSI timeout (op_code 0x34, timeout = 60).
9447 LTFS30398D Backend readpos: (0, 0) FM = 0 11C97790BF.
9447 LTFS30395D Backend read: 4096 bytes 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
9447 LTFS30395D Backend read: 4096 bytes 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
9447 LTFS30201D CDB check condition: sense = 000001, Filemark Detected.
9447 LTFS30204D READ (0x08) expected error -20004.
9447 LTFS30219D Read block: file mark detected.
9447 LTFS30395D Backend read: 4096 bytes 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
9447 LTFS30395D Backend read: 4096 bytes 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
9447 LTFS30201D CDB check condition: sense = 000001, Filemark Detected.
9447 LTFS30204D READ (0x08) expected error -20004.
9447 LTFS30219D Read block: file mark detected.
9447 LTFS30393D Backend modesense: 16 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
9447 LTFS30392D Backend read block limits 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x05, timeout = 60).
9447 LTFS30397D Backend locate: (1, 0) 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x92, timeout = 2940).
9447 LTFS39801D SCSI timeout (op_code 0x34, timeout = 60).
9447 LTFS30398D Backend readpos: (1, 0) FM = 0 11C97790BF.
9447 LTFS30395D Backend read: 4096 bytes 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
9447 LTFS30395D Backend read: 4096 bytes 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
9447 LTFS30201D CDB check condition: sense = 000001, Filemark Detected.
9447 LTFS30204D READ (0x08) expected error -20004.
9447 LTFS30219D Read block: file mark detected.
9447 LTFS30395D Backend read: 4096 bytes 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
9447 LTFS30395D Backend read: 4096 bytes 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
9447 LTFS30201D CDB check condition: sense = 000001, Filemark Detected.
9447 LTFS30204D READ (0x08) expected error -20004.
9447 LTFS30219D Read block: file mark detected.
9447 LTFS30393D Backend modesense: 15 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
9447 LTFS30392D Backend modeselect 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x55, timeout = 60).
9447 LTFS30393D Backend modesense: 16 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
9447 LTFS30392D Backend read block limits 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x05, timeout = 60).
9447 LTFS11013D Partition labels are valid.
9447 LTFS11014D Reading MAM parameters.
9447 LTFS30397D Backend readattr: (0, 5667) 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
9447 LTFS11339D Read volume lock status (0).
9447 LTFS30393D Backend modesense: 37 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x5a, timeout = 60).
9447 LTFS30397D Backend logsense: (23, 0) 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x4d, timeout = 60).
9447 LTFS30397D Backend logsense: (23, 0) 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x4d, timeout = 60).
9447 LTFS30397D Backend readattr: (0, 2060) 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
9447 LTFS30397D Backend readattr: (1, 2060) 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
9447 LTFS30397D Backend readattr: (0, 9) 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
9447 LTFS11018D Done reading MAM parameters.
9447 LTFS11019D Checking volume consistency.
9447 LTFS30397D Backend locate: (0, 5) 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x92, timeout = 2940).
9447 LTFS39801D SCSI timeout (op_code 0x34, timeout = 60).
9447 LTFS30398D Backend readpos: (0, 5) FM = 3 11C97790BF.
9447 LTFS30395D Backend read: 524288 bytes 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
9447 LTFS30201D CDB check condition: sense = 000000, No Additional Sense Information.
9447 LTFS30204D READ (0x08) expected error -20000.
9447 LTFS30218D Read block: underrun in illegal length. residual = 523280, actual = 1008.
9447 LTFS30395D Backend read: 524288 bytes 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x08, timeout = 2340).
9447 LTFS30201D CDB check condition: sense = 000001, Filemark Detected.
9447 LTFS30204D READ (0x08) expected error -20004.
9447 LTFS30219D Read block: file mark detected.
9447 LTFS30396D Backend space back file marks: 1 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x91, timeout = 2940).
9447 LTFS39801D SCSI timeout (op_code 0x34, timeout = 60).
9447 LTFS30398D Backend readpos: (0, 6) FM = 3 11C97790BF.
9447 LTFS30396D Backend space forward file marks: 1 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x91, timeout = 2940).
9447 LTFS39801D SCSI timeout (op_code 0x34, timeout = 60).
9447 LTFS30398D Backend readpos: (0, 7) FM = 4 11C97790BF.
9447 LTFS11025D Volume is consistent.
9447 LTFS11028D Consistency check finished.
9447 LTFS30397D Backend readattr: (0, 2048) 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
9447 LTFS30397D Backend readattr: (0, 2049) 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
9447 LTFS30397D Backend readattr: (0, 2050) 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
9447 LTFS30397D Backend readattr: (0, 2051) 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
9447 LTFS30397D Backend readattr: (0, 2053) 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
9447 LTFS30397D Backend readattr: (0, 2054) 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
9447 LTFS30397D Backend readattr: (0, 2059) 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
9447 LTFS30397D Backend readattr: (0, 5667) 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
9447 LTFS30397D Backend readattr: (0, 2056) 11C97790BF.
9447 LTFS39801D SCSI timeout (op_code 0x8c, timeout = 60).
9447 LTFS17227I Tape attribute: Vendor = IBM     .
9447 LTFS17227I Tape attribute: Application Name = LTFS                            .
9447 LTFS17227I Tape attribute: Application Version = 2.4.4.1 .
9447 LTFS17227I Tape attribute: Medium Label = 047123L9.
9447 LTFS17228I Tape attribute: Text Localization ID = 0x81.
9447 LTFS17227I Tape attribute: Barcode =                                 .
9447 LTFS17227I Tape attribute: Application Format Version = 2.4.0           .
9447 LTFS17228I Tape attribute: Volume Lock Status = 0x00.
9447 LTFS17227I Tape attribute: Media Pool name = .
9447 LTFS11031I Volume mounted successfully. NO_BARCODE : Gen = 1 / (a, 5) -> (b, 5) / 11C97790BF.
9447 LTFS14111I Initial setup completed successfully.
9447 LTFS14112I Invoke 'mount' command to check the result of final setup.
9447 LTFS14113I Specified mount point is listed if succeeded.

Desktop (please complete the following information):
LTFS 2.4.4.1 is used

@piste-jp-ibm
Copy link
Member

I'm not sure your first log is produced by which step.

To Reproduce
The steps to reproduce are the following:

  1. mklts can format the tapes
  2. ltfs mount works as expected
  3. start to copy files till a moment (i can't determine for now)
  4. dismount the tape
  5. try to mount again, and then get this mounting status.
  6. can't copy anymore file in the tape even if there are still space (around 6TB is used on a total of 17TB).

But it is cerated by step5, LTFS detected a permanent write error on step4 and make it read only at step4. So the tape was mounted as R/O at step5.

The first log says the tape was mounted as R/O like below. The log produced at step3 and step4 is required if you want to investigate the reason of the permanent write error. LTFS shall generate drive dump files because of the permanent write error. You need to contact to IBM for more investigation.

8cca LTFS11333I A cartridge with write-perm error is detected on DP. Seek the newest index (IP: Gen = 641, VCR = 1338) (DP: Gen = 640, VCR = 1304) (VCR = 1338).
8cca LTFS17286I VCR value is matched between IP-MAM and VCR (1338).
8cca LTFS17287I Making R/O mount from the location (a, 8).

@vguilleaume
Copy link
Author

vguilleaume commented Apr 23, 2024

Hi @piste-jp-ibm thanks for this quick answer.
You are right the provided LTFS mount is the step5, and your answer is already helping.

I will try to find back the previous umount for this tape, and try to provide the log.
In the meantime, in the tape library logs, there are tape alert message mentioning a tape capacity problem:
49 Diminished native capacity 31h The media is either partitioned or shortened and is not configured to use full native capacity. If using partitioning, this is normal. If not, then determine why there is a partitioned cartridge present and unpartition the cartridge. 249 (Informational) No

I suspect that the tape(s) for some unknown reason are full at one stage (before raising its total capacity), and then there is no space anymore to write the index. Or something like this. Do you believe this could be a root cause?

I come back to you with the info.
Thanks in advanced,

@piste-jp-ibm
Copy link
Member

I suspect that the tape(s) for some unknown reason are full at one stage (before raising its total capacity), and then there is no space anymore to write the index. Or something like this. Do you believe this could be a root cause?

I don't think so. The TA reported from library might not be related into this problem.

Tape device is basically append device, so a permanent write error happens at a position the drive cannot write any following data. (Of course, we can issue another write at the error position and might have good response luckily and continue to write. But LTFS never does such kind of handling, because such kind of write error might cause bigger problem at read side later!)

In this case, LTFS might have a permanent write error in the step3 or step4. And LTFS make the tape R/O because of the permanent write error. This is the design of LTFS and LTFS works fine I believe.

Additional failure analysis is required by the IBM engineers to find out the root cause of the permanent write error.

@vguilleaume
Copy link
Author

I found back the previous LTFS log, and we have found i believe interesting information:

Apr 18 01:55:13 nodeum ltfs[2833710]: 2b3d34 LTFS11338I Syncing index of NO_BARCODE 11C97790B5.
Apr 18 01:55:13 nodeum ltfs[2833710]: 2b3d34 LTFS17068I Syncing index of NO_BARCODE (Reason: Periodic Sync) 11C97790B5.
Apr 18 01:55:13 nodeum ltfs[2833710]: 2b3d34 LTFS17235I Writing index of NO_BARCODE to b (Reason: Periodic Sync, 46548 files) 11C97790B5.
Apr 18 01:55:20 nodeum ltfs[2833710]: 2b3d34 LTFS17236I Wrote index of NO_BARCODE (Gen = 630, Part = b, Pos = 17648089, 11C97790B5).
Apr 18 01:55:20 nodeum ltfs[2833710]: 2b3d34 LTFS11337I Update index-dirty flag (0) - NO_BARCODE (0x0x55fcebd36760).
Apr 18 01:55:20 nodeum ltfs[2833710]: 2b3d34 LTFS17070I Synced index of NO_BARCODE (0) 11C97790B5.

Apr 18 01:55:39 nodeum ltfs[2833710]: 2b3d33 LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x55fcebd36760).

Apr 18 02:00:20 nodeum ltfs[2833710]: 2b3d34 LTFS11338I Syncing index of NO_BARCODE 11C97790B5.
Apr 18 02:00:20 nodeum ltfs[2833710]: 2b3d34 LTFS17068I Syncing index of NO_BARCODE (Reason: Periodic Sync) 11C97790B5.
Apr 18 02:00:20 nodeum ltfs[2833710]: 2b3d34 LTFS17235I Writing index of NO_BARCODE to b (Reason: Periodic Sync, 46552 files) 11C97790B5.
Apr 18 02:00:27 nodeum ltfs[2833710]: 2b3d34 LTFS17236I Wrote index of NO_BARCODE (Gen = 631, Part = b, Pos = 17680536, 11C97790B5).
Apr 18 02:00:27 nodeum ltfs[2833710]: 2b3d34 LTFS11337I Update index-dirty flag (0) - NO_BARCODE (0x0x55fcebd36760).
Apr 18 02:00:27 nodeum ltfs[2833710]: 2b3d34 LTFS17070I Synced index of NO_BARCODE (0) 11C97790B5.
Apr 18 02:00:54 nodeum ltfs[2833710]: 2b3d33 LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x55fcebd36760).

Apr 18 02:05:27 nodeum ltfs[2833710]: 2b3d34 LTFS11338I Syncing index of NO_BARCODE 11C97790B5.
Apr 18 02:05:27 nodeum ltfs[2833710]: 2b3d34 LTFS17068I Syncing index of NO_BARCODE (Reason: Periodic Sync) 11C97790B5.
Apr 18 02:05:27 nodeum ltfs[2833710]: 2b3d34 LTFS17235I Writing index of NO_BARCODE to b (Reason: Periodic Sync, 46556 files) 11C97790B5.

Apr 18 02:05:43 nodeum ltfs[2833710]: 2b3d34 LTFS17236I Wrote index of NO_BARCODE (Gen = 632, Part = b, Pos = 17707012, 11C97790B5).
Apr 18 02:05:43 nodeum ltfs[2833710]: 2b3d34 LTFS11337I Update index-dirty flag (0) - NO_BARCODE (0x0x55fcebd36760).
Apr 18 02:05:43 nodeum ltfs[2833710]: 2b3d34 LTFS17070I Synced index of NO_BARCODE (0) 11C97790B5.

Apr 18 02:05:57 nodeum ltfs[2833710]: 2b3d33 LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x55fcebd36760).

Apr 18 02:10:43 nodeum ltfs[2833710]: 2b3d34 LTFS11338I Syncing index of NO_BARCODE 11C97790B5.
Apr 18 02:10:43 nodeum ltfs[2833710]: 2b3d34 LTFS17068I Syncing index of NO_BARCODE (Reason: Periodic Sync) 11C97790B5.
Apr 18 02:10:43 nodeum ltfs[2833710]: 2b3d34 LTFS17235I Writing index of NO_BARCODE to b (Reason: Periodic Sync, 46556 files) 11C97790B5.
Apr 18 02:10:50 nodeum ltfs[2833710]: 2b3d34 LTFS17236I Wrote index of NO_BARCODE (Gen = 633, Part = b, Pos = 17739914, 11C97790B5).
Apr 18 02:10:50 nodeum ltfs[2833710]: 2b3d34 LTFS11337I Update index-dirty flag (0) - NO_BARCODE (0x0x55fcebd36760).
Apr 18 02:10:50 nodeum ltfs[2833710]: 2b3d34 LTFS17070I Synced index of NO_BARCODE (0) 11C97790B5.
Apr 18 02:11:15 nodeum ltfs[2833710]: 2b3d33 LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x55fcebd36760).

Apr 18 02:15:50 nodeum ltfs[2833710]: 2b3d34 LTFS11338I Syncing index of NO_BARCODE 11C97790B5.
Apr 18 02:15:50 nodeum ltfs[2833710]: 2b3d34 LTFS17068I Syncing index of NO_BARCODE (Reason: Periodic Sync) 11C97790B5.
Apr 18 02:15:50 nodeum ltfs[2833710]: 2b3d34 LTFS17235I Writing index of NO_BARCODE to b (Reason: Periodic Sync, 46560 files) 11C97790B5.

Apr 18 02:15:58 nodeum ltfs[2833710]: 2b3d34 LTFS17236I Wrote index of NO_BARCODE (Gen = 634, Part = b, Pos = 17770198, 11C97790B5).
Apr 18 02:15:58 nodeum ltfs[2833710]: 2b3d34 LTFS11337I Update index-dirty flag (0) - NO_BARCODE (0x0x55fcebd36760).
Apr 18 02:15:58 nodeum ltfs[2833710]: 2b3d34 LTFS17070I Synced index of NO_BARCODE (0) 11C97790B5.

Apr 18 02:16:17 nodeum ltfs[2833710]: 2b3d33 LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x55fcebd36760).

Apr 18 02:20:58 nodeum ltfs[2833710]: 2b3d34 LTFS11338I Syncing index of NO_BARCODE 11C97790B5.
Apr 18 02:20:58 nodeum ltfs[2833710]: 2b3d34 LTFS17068I Syncing index of NO_BARCODE (Reason: Periodic Sync) 11C97790B5.
Apr 18 02:20:58 nodeum ltfs[2833710]: 2b3d34 LTFS17235I Writing index of NO_BARCODE to b (Reason: Periodic Sync, 46564 files) 11C97790B5.

Apr 18 02:21:05 nodeum ltfs[2833710]: 2b3d34 LTFS17236I Wrote index of NO_BARCODE (Gen = 635, Part = b, Pos = 17801577, 11C97790B5).
Apr 18 02:21:05 nodeum ltfs[2833710]: 2b3d34 LTFS11337I Update index-dirty flag (0) - NO_BARCODE (0x0x55fcebd36760).
Apr 18 02:21:05 nodeum ltfs[2833710]: 2b3d34 LTFS17070I Synced index of NO_BARCODE (0) 11C97790B5.

Apr 18 02:21:23 nodeum ltfs[2833710]: 2b3d33 LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x55fcebd36760).

Apr 18 02:26:05 nodeum ltfs[2833710]: 2b3d34 LTFS11338I Syncing index of NO_BARCODE 11C97790B5.
Apr 18 02:26:05 nodeum ltfs[2833710]: 2b3d34 LTFS17068I Syncing index of NO_BARCODE (Reason: Periodic Sync) 11C97790B5.
Apr 18 02:26:05 nodeum ltfs[2833710]: 2b3d34 LTFS17235I Writing index of NO_BARCODE to b (Reason: Periodic Sync, 46568 files) 11C97790B5.

Apr 18 02:26:12 nodeum ltfs[2833710]: 2b3d34 LTFS17236I Wrote index of NO_BARCODE (Gen = 636, Part = b, Pos = 17834481, 11C97790B5).
Apr 18 02:26:12 nodeum ltfs[2833710]: 2b3d34 LTFS11337I Update index-dirty flag (0) - NO_BARCODE (0x0x55fcebd36760).
Apr 18 02:26:12 nodeum ltfs[2833710]: 2b3d34 LTFS17070I Synced index of NO_BARCODE (0) 11C97790B5.

Apr 18 02:27:09 nodeum ltfs[2833710]: 2b3d33 LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x55fcebd36760).

Apr 18 02:31:12 nodeum ltfs[2833710]: 2b3d34 LTFS11338I Syncing index of NO_BARCODE 11C97790B5.
Apr 18 02:31:12 nodeum ltfs[2833710]: 2b3d34 LTFS17068I Syncing index of NO_BARCODE (Reason: Periodic Sync) 11C97790B5.
Apr 18 02:31:12 nodeum ltfs[2833710]: 2b3d34 LTFS17235I Writing index of NO_BARCODE to b (Reason: Periodic Sync, 46572 files) 11C97790B5.
Apr 18 02:31:21 nodeum ltfs[2833710]: 2b3d34 LTFS17236I Wrote index of NO_BARCODE (Gen = 637, Part = b, Pos = 17861869, 11C97790B5).
Apr 18 02:31:21 nodeum ltfs[2833710]: 2b3d34 LTFS11337I Update index-dirty flag (0) - NO_BARCODE (0x0x55fcebd36760).
Apr 18 02:31:21 nodeum ltfs[2833710]: 2b3d34 LTFS17070I Synced index of NO_BARCODE (0) 11C97790B5.
Apr 18 02:31:31 nodeum ltfs[2833710]: 2b3d33 LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x55fcebd36760).
...
Apr 18 02:36:21 nodeum ltfs[2833710]: 2b3d34 LTFS11338I Syncing index of NO_BARCODE 11C97790B5.
Apr 18 02:36:21 nodeum ltfs[2833710]: 2b3d34 LTFS17068I Syncing index of NO_BARCODE (Reason: Periodic Sync) 11C97790B5.
Apr 18 02:36:21 nodeum ltfs[2833710]: 2b3d34 LTFS17235I Writing index of NO_BARCODE to b (Reason: Periodic Sync, 46576 files) 11C97790B5.
...
Apr 18 02:36:28 nodeum ltfs[2833710]: 2b3d34 LTFS17236I Wrote index of NO_BARCODE (Gen = 638, Part = b, Pos = 17895940, 11C97790B5).
Apr 18 02:36:28 nodeum ltfs[2833710]: 2b3d34 LTFS11337I Update index-dirty flag (0) - NO_BARCODE (0x0x55fcebd36760).
Apr 18 02:36:28 nodeum ltfs[2833710]: 2b3d34 LTFS17070I Synced index of NO_BARCODE (0) 11C97790B5.
...
Apr 18 02:36:56 nodeum ltfs[2833710]: 2b3d33 LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x55fcebd36760).
...
Apr 18 02:41:28 nodeum ltfs[2833710]: 2b3d34 LTFS11338I Syncing index of NO_BARCODE 11C97790B5.
Apr 18 02:41:28 nodeum ltfs[2833710]: 2b3d34 LTFS17068I Syncing index of NO_BARCODE (Reason: Periodic Sync) 11C97790B5.
Apr 18 02:41:28 nodeum ltfs[2833710]: 2b3d34 LTFS17235I Writing index of NO_BARCODE to b (Reason: Periodic Sync, 46576 files) 11C97790B5.
...
Apr 18 02:41:37 nodeum ltfs[2833710]: 2b3d34 LTFS17236I Wrote index of NO_BARCODE (Gen = 639, Part = b, Pos = 17926814, 11C97790B5).
Apr 18 02:41:37 nodeum ltfs[2833710]: 2b3d34 LTFS11337I Update index-dirty flag (0) - NO_BARCODE (0x0x55fcebd36760).
Apr 18 02:41:37 nodeum ltfs[2833710]: 2b3d34 LTFS17070I Synced index of NO_BARCODE (0) 11C97790B5.
...
Apr 18 02:42:04 nodeum ltfs[2833710]: 2b3d33 LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x55fcebd36760).
...
Apr 18 02:46:37 nodeum ltfs[2833710]: 2b3d34 LTFS11338I Syncing index of NO_BARCODE 11C97790B5.
Apr 18 02:46:37 nodeum ltfs[2833710]: 2b3d34 LTFS17068I Syncing index of NO_BARCODE (Reason: Periodic Sync) 11C97790B5.
Apr 18 02:46:37 nodeum ltfs[2833710]: 2b3d34 LTFS17235I Writing index of NO_BARCODE to b (Reason: Periodic Sync, 46580 files) 11C97790B5.
Apr 18 02:46:47 nodeum ltfs[2833710]: 2b3d34 LTFS17236I Wrote index of NO_BARCODE (Gen = 640, Part = b, Pos = 17958111, 11C97790B5).
Apr 18 02:46:47 nodeum ltfs[2833710]: 2b3d34 LTFS11337I Update index-dirty flag (0) - NO_BARCODE (0x0x55fcebd36760).
Apr 18 02:46:47 nodeum ltfs[2833710]: 2b3d34 LTFS17070I Synced index of NO_BARCODE (0) 11C97790B5.
...
Apr 18 02:47:13 nodeum ltfs[2833710]: 2b3d33 LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x55fcebd36760).
...
Apr 18 02:58:33 nodeum ltfs[2833710]: 2b3d33 LTFS30205I WRITE (0x0a) returns -20301.
Apr 18 02:58:33 nodeum ltfs[2833710]: 2b3d33 LTFS30263I WRITE returns Cartridge Fault (-20301) /dev/sg1.
Apr 18 02:58:33 nodeum ltfs[2833710]: 2b3d33 LTFS30261I Taking drive dump in buffer.
Apr 18 02:58:33 nodeum ltfs[2833710]: 2b3d33 LTFS30253I Saving drive dump to /tmp/ltfs_11C97790B5_2024_0418_025833.dmp.
Apr 18 02:58:53 nodeum ltfs[2833710]: 2b3d33 LTFS30262I Forcing drive dump.
Apr 18 02:58:54 nodeum ltfs[2833710]: 2b3d33 LTFS30253I Saving drive dump to /tmp/ltfs_11C97790B5_2024_0418_025833_f.dmp.
Apr 18 02:59:07 nodeum ltfs[2833710]: 2b3d33 LTFS12045E Cannot write block: backend call failed (-20301). Dropping to read-only mode.
Apr 18 02:59:07 nodeum ltfs[2833710]: 2b3d33 LTFS11072E Cannot write blocks: failed to write to the medium (-20301).
Apr 18 02:59:07 nodeum ltfs[2833710]: 2b3d33 LTFS11077E Cannot write: failed to write blocks to the medium (-20301).
Apr 18 02:59:07 nodeum ltfs[2833710]: 2b3d33 LTFS13014W Data partition writer: failed to write data to the tape (-20301).
Apr 18 02:59:07 nodeum ltfs[2833710]: 2b3d33 LTFS13024I Clean up extents and append index at index partition (-20301).
Apr 18 02:59:09 nodeum ltfs[2833710]: 2b3d33 LTFS13025I Get error position (17974866, 524288).
Apr 18 02:59:09 nodeum ltfs[2833710]: 2b3d33 LTFS11334I Remove extent : 200412_092027_Scanner_1.rxp (17971127, 1960837120).
Apr 18 02:59:09 nodeum ltfs[2833710]: 2b3d33 LTFS11343I Try to write an index on the IP on NO_BARCODE because of a permanent write error on the DP..
Apr 18 03:01:10 nodeum ltfs[2833710]: 2b3d33 LTFS17235I Writing index of NO_BARCODE to a (Reason: Write perm, 46584 files) 11C97790B5.
Apr 18 03:01:19 nodeum ltfs[2833710]: 2b3d33 LTFS17236I Wrote index of NO_BARCODE (Gen = 641, Part = a, Pos = 8, 11C97790B5).
Apr 18 03:01:19 nodeum ltfs[2833710]: 2b3d33 LTFS11337I Update index-dirty flag (0) - NO_BARCODE (0x0x55fcebd36760).
Apr 18 03:01:19 nodeum ltfs[2833710]: 2b3d34 LTFS11030I Failed to sync volume (-1126). Stop the periodic sync thread.
Apr 18 03:01:19 nodeum ltfs[2833710]: 2b3d2e LTFS17265I Skip writing the index because of the volume is not dirty and current self pointer points IP.
Apr 18 03:01:19 nodeum ltfs[2833710]: 2b3d2e LTFS11034I Volume unmounted successfully.
Apr 18 03:01:19 nodeum ltfs[2833710]: 2b3d2e LTFS30252I Logical block protection is disabled.

And specially this extract:


Apr 18 02:47:13 nodeum ltfs[2833710]: 2b3d33 LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x55fcebd36760).
...
Apr 18 02:58:33 nodeum ltfs[2833710]: 2b3d33 LTFS30205I WRITE (0x0a) returns -20301.
Apr 18 02:58:33 nodeum ltfs[2833710]: 2b3d33 LTFS30263I WRITE returns Cartridge Fault (-20301) /dev/sg1.
Apr 18 02:58:33 nodeum ltfs[2833710]: 2b3d33 LTFS30261I Taking drive dump in buffer.
Apr 18 02:58:33 nodeum ltfs[2833710]: 2b3d33 LTFS30253I Saving drive dump to /tmp/ltfs_11C97790B5_2024_0418_025833.dmp.
Apr 18 02:58:53 nodeum ltfs[2833710]: 2b3d33 LTFS30262I Forcing drive dump.
Apr 18 02:58:54 nodeum ltfs[2833710]: 2b3d33 LTFS30253I Saving drive dump to /tmp/ltfs_11C97790B5_2024_0418_025833_f.dmp.
Apr 18 02:59:07 nodeum ltfs[2833710]: 2b3d33 LTFS12045E Cannot write block: backend call failed (-20301). Dropping to read-only mode.
Apr 18 02:59:07 nodeum ltfs[2833710]: 2b3d33 LTFS11072E Cannot write blocks: failed to write to the medium (-20301).
Apr 18 02:59:07 nodeum ltfs[2833710]: 2b3d33 LTFS11077E Cannot write: failed to write blocks to the medium (-20301).
Apr 18 02:59:07 nodeum ltfs[2833710]: 2b3d33 LTFS13014W Data partition writer: failed to write data to the tape (-20301).
Apr 18 02:59:07 nodeum ltfs[2833710]: 2b3d33 LTFS13024I Clean up extents and append index at index partition (-20301).
Apr 18 02:59:09 nodeum ltfs[2833710]: 2b3d33 LTFS13025I Get error position (17974866, 524288).
Apr 18 02:59:09 nodeum ltfs[2833710]: 2b3d33 LTFS11334I Remove extent : 200412_092027_Scanner_1.rxp (17971127, 1960837120).
Apr 18 02:59:09 nodeum ltfs[2833710]: 2b3d33 LTFS11343I Try to write an index on the IP on NO_BARCODE because of a permanent write error on the DP..
Apr 18 03:01:10 nodeum ltfs[2833710]: 2b3d33 LTFS17235I Writing index of NO_BARCODE to a (Reason: Write perm, 46584 files) 11C97790B5.
Apr 18 03:01:19 nodeum ltfs[2833710]: 2b3d33 LTFS17236I Wrote index of NO_BARCODE (Gen = 641, Part = a, Pos = 8, 11C97790B5).
Apr 18 03:01:19 nodeum ltfs[2833710]: 2b3d33 LTFS11337I Update index-dirty flag (0) - NO_BARCODE (0x0x55fcebd36760).
Apr 18 03:01:19 nodeum ltfs[2833710]: 2b3d34 LTFS11030I Failed to sync volume (-1126). Stop the periodic sync thread.
Apr 18 03:01:19 nodeum ltfs[2833710]: 2b3d2e LTFS17265I Skip writing the index because of the volume is not dirty and current self pointer points IP.
Apr 18 03:01:19 nodeum ltfs[2833710]: 2b3d2e LTFS11034I Volume unmounted successfully.
Apr 18 03:01:19 nodeum ltfs[2833710]: 2b3d2e LTFS30252I Logical block protection is disabled.

If you have some explanation of what happened , this could help to troubleshoot the problem.
Thanks again,

@piste-jp-ibm
Copy link
Member

It looks everything works as expected.

  1. Write error happens with -20301, it is 03/0900 Read Perm or Write perm (see ltfs_error.h).
Apr 18 02:58:33 nodeum ltfs[2833710]: 2b3d33 LTFS30205I WRITE (0x0a) returns -20301.
Apr 18 02:58:33 nodeum ltfs[2833710]: 2b3d33 LTFS30263I WRITE returns Cartridge Fault (-20301) /dev/sg1.
  1. Take drive dumps.
Apr 18 02:58:33 nodeum ltfs[2833710]: 2b3d33 LTFS30261I Taking drive dump in buffer.
Apr 18 02:58:33 nodeum ltfs[2833710]: 2b3d33 LTFS30253I Saving drive dump to /tmp/ltfs_11C97790B5_2024_0418_025833.dmp.
Apr 18 02:58:53 nodeum ltfs[2833710]: 2b3d33 LTFS30262I Forcing drive dump.
Apr 18 02:58:54 nodeum ltfs[2833710]: 2b3d33 LTFS30253I Saving drive dump to /tmp/ltfs_11C97790B5_2024_0418_025833_f.dmp.
  1. Change the mounting file system to read-only mode (No more write is not permitted)
Apr 18 02:59:07 nodeum ltfs[2833710]: 2b3d33 LTFS12045E Cannot write block: backend call failed (-20301). Dropping to read-only mode.
Apr 18 02:59:07 nodeum ltfs[2833710]: 2b3d33 LTFS11072E Cannot write blocks: failed to write to the medium (-20301).
Apr 18 02:59:07 nodeum ltfs[2833710]: 2b3d33 LTFS11077E Cannot write: failed to write blocks to the medium (-20301).
Apr 18 02:59:07 nodeum ltfs[2833710]: 2b3d33 LTFS13014W Data partition writer: failed to write data to the tape (-20301).
  1. Make the tape read-only LTFS volume because the reason of the write error in the step1 is medium reason. (SCSI sense 03/0900 shows it is medium reason, more4 specific SK 03/ means medium reason. Please refer the SCSI spec of drive...)
Apr 18 02:59:07 nodeum ltfs[2833710]: 2b3d33 LTFS13024I Clean up extents and append index at index partition (-20301).
Apr 18 02:59:09 nodeum ltfs[2833710]: 2b3d33 LTFS13025I Get error position (17974866, 524288).
Apr 18 02:59:09 nodeum ltfs[2833710]: 2b3d33 LTFS11334I Remove extent : 200412_092027_Scanner_1.rxp (17971127, 1960837120).
Apr 18 02:59:09 nodeum ltfs[2833710]: 2b3d33 LTFS11343I Try to write an index on the IP on NO_BARCODE because of a permanent write error on the DP..
Apr 18 03:01:10 nodeum ltfs[2833710]: 2b3d33 LTFS17235I Writing index of NO_BARCODE to a (Reason: Write perm, 46584 files) 11C97790B5.
Apr 18 03:01:19 nodeum ltfs[2833710]: 2b3d33 LTFS17236I Wrote index of NO_BARCODE (Gen = 641, Part = a, Pos = 8, 11C97790B5).

@piste-jp-ibm
Copy link
Member

If you want to know more detail of the permanent write error, please contact to IBM support with the dump files, /tmp/ltfs_11C97790B5_2024_0418_025833.dmp and ltfs_11C97790B5_2024_0418_025833_f.dmp.

LTFS doesn't know the symptom of write error and it is not a scope of LTFS. LTFS just takes actions against error code (SCSI sense key). In this case, action is

  1. Make the mounting filesystem R/O
  2. Make the tape R/O from LTFS format spec perspective
  • Write fresh metadata information as an index on IP (because medium reason write error happens on DP)
  • Mark a medium reason write error on the non-volatile memory on tape. (LTFS check the non-volatile memory at the next mount and mount this tape as R/O.)

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

2 participants