-
Notifications
You must be signed in to change notification settings - Fork 73
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
Failure to Remount Quantum LTO-7 HH Tape after Format/Write/Unmount/Eject #378
Comments
LTFS said it cannot read the ANSI label, it is placed into the position0 and size shall be 80 bytes. It is really funny behavior but I cannot make any investigation from the info you uploaded because it is a problem at writing the data or unmounting the tape if this is really a problem.
Please upload the log at unmount if you want to have more investigation. In my sense, your test scenario is little bit dangerous because Could you make a test with my recommended test scenario below?
|
Thanks @piste-jp-ibm - I didn't realize that the umount command was non-blocking.. I like the eject flag passed to ltfs on mount though. I'm going to give this method a try and see if that helps. Especially if my eject is directly acting on the /dev/st0 device while ltfs is still handling it. Will reply back with my findings, thank you. |
@piste-jp-ibm I've followed your test scenario by using the Once I reinsert the tape I try to remount using the same command:
So I followed the log and ran
After the I'm running the It would be nice if there was a way to completely rebuild the index partition from the data on the tape. I believe that the I'm going to try not statusing the tape until the ltfs process finishes. |
I think something might happens when you writing the tape. Could you send me a log while you are writing data on tape? And could you provide the output of |
Removing all uses for Summary on this issue: Do not use |
Describe the bug
I am unable to remount a tape that was formatted LTFS and copied to.. I am using ltfs-2.4-stable on RHEL 8.7 Ootpa. I am formatting the Quantum LTO-7 HH Tape, copying contents to the tape, unmounting, and ejecting the tape.
To Reproduce
Steps to reproduce the behavior:
Format Tape:
mkltfs -d /dev/sg4
Mount Tape:
ltfs -o devname=/dev/sg4 /LTFS
Copy Content:
cp files*.iso /LTFS
Unmount Tape:
umount /LTFS
Ejecting Tape:
mt -f /dev/st0 eject
** Physically removing and reinserting Tape **
To Remount Tape:
ltfs -o devname=/dev/sg4 /LTFS
Expected behavior
Expecting for the mount to succeed and be able to access the previously written files on mountpoint (/LTFS)
Additional context
I am in an airgapped environment and cannot transfer logs out of the environment, however, I can type out the log lines.
On mount, here's the errors (typed):
Any ideas if I'm able to rebuild/repair the index partition (it seems that's what it cannot read?), or maybe there's other things I can try.
I ran
ltfsck /dev/sg4 --full-recovery
and it returned:I've updated my Quantum LTO-7 Tape Drive to the latest available firmware as well using ITDT (IBM Tape Diagnostics Tool). I also used the tool to check the tape health and status on whether the Tape Drive Head was Clean.. Everything came back PASSED/OK from the ITDT tool.
Are there any suggestions to attempt to recover the content written to the tape? Maybe a way to rebuild the index partition or whatever it is failing to read from?
I can provide more logs if necessary (in a verbose mode), however, if there are sections more relevant I can provide instead of the entire log - that would be helpful (since I'm typing it out manually).
Thanks in advanced!
The text was updated successfully, but these errors were encountered: