Comments (10)
Are you able to share the virtual media with me ?
The write did occur (for this use case). I will need all files.
The other option is to create a utility that will report various CRC32C seeding options
from mhvtl.
The other option is to create a utility that will report various CRC32C seeding options
What do you have in mind for this?
from mhvtl.
Hi Peter,
I've just pushed a patch which will log the CRC using the following combinations:
- Seed using values of '0' and '0xffffffff'
- Returned value, and returned value bit inverted.
Can you apply the patch and 're-crash the car' (reproduce the write) and provide the /var/log/messages.
Thanks
from mhvtl.
OK, I applied your patch and recreated the problem. Attached is a tar file with vtl entries from when the problem occurred.
Thank you,
Peter
from mhvtl.
thanks for the log..
Jan 10 20:14:03 choctaw /usr/bin/vtltape[7093]: ERROR: get_lbp_crc(): CRC32C mismatch - LBP: 0xcc1e58d7, calculated: 0xd7581ecc Jan 10 20:14:03 choctaw /usr/bin/vtltape[7093]: ERROR: writeBlock_lzo(): LBP mis-compare on write : Returning E_LOGICAL_BLOCK_GUARD_FAILED Jan 10 20:14:03 choctaw /usr/bin/vtltape[7093]: return_sense(): [Key/ASC/ASCQ] [04 10 01] Jan 10 20:14:03 choctaw /usr/bin/vtltape[7093]: ERROR: log_crc_options(): Legacy CRC32C: 0xd7581ecc Jan 10 20:14:03 choctaw /usr/bin/vtltape[7093]: ERROR: log_crc_options(): CRC32C with seed 0: 0xd7581ecc Jan 10 20:14:03 choctaw /usr/bin/vtltape[7093]: ERROR: log_crc_options(): Inverted CRC32C with seed 0: 0x28a7e133 Jan 10 20:14:03 choctaw /usr/bin/vtltape[7093]: ERROR: log_crc_options(): CRC32C with seed 0xffffffff: 0x0892032f Jan 10 20:14:03 choctaw /usr/bin/vtltape[7093]: ERROR: log_crc_options(): Inverted CRC32C with seed 0xffffffff: 0xf76dfcd0
Took me a little while staring at it to realise it's a big-endian/little-endian thing. I didn't need that additional debugging Information after all.
e.g.
ERROR: get_lbp_crc(): CRC32C mismatch - LBP: 0xcc1e58d7, calculated: 0xd7581ecc
I'll hopefully get a fix out ASAP.
from mhvtl.
Took me a little while staring at it to realise it's a big-endian/little-endian thing. I didn't need that additional debugging Information after all.
Good. I wonder why it doesn't occur with LTO-6 tapes.
from mhvtl.
LTO-6 only use RS-CRC - that routine I coped from the IBM SCSI reference manual appendix. It returns the RS-CRC value in big-end order.
from mhvtl.
uploaded patch 5837bb924f1e9e54d9b83cb2e383777e12ed7f7b - untested, but should fix the CRC32C bug.
from mhvtl.
This seems to fix the problem. I can now write to tape with logical block protection with IBM LTO-6, LTO-7, and LTO-8!
Thank you.
from mhvtl.
Closing this out. Thanks for the verification.
from mhvtl.
Related Issues (20)
- Server reboot stucked due to unkillable mhvtl (SCSI Target: 15) HOT 4
- mhvtl not creating library contents in /opt/mhvtl HOT 1
- mhvtl website unreachable HOT 1
- Compile on el9 / 5.14 kernel HOT 2
- compatible with nbu 10.1? HOT 7
- New MHVTL release for recent kernels HOT 2
- The default L80 library works fine but the L700 fails in somewhat random ways. HOT 18
- compilation issue in usr/vtltape.c HOT 3
- Add support in VHF to indicate whether or not drive needs to be cleaned HOT 8
- Tape load no longer working for STK-L700 emulation HOT 5
- Not able to open mhvtl gui. HOT 2
- WORM capability doesn't work in mhvtl. HOT 34
- Unloading a tape, then loading it back in, mt status shows EOT instead of BOT HOT 3
- Selecting tape and library emulations HOT 3
- Can't turn off verbose logging HOT 1
- I/O error when accessing the tape device HOT 2
- The flags are wrong in the long form response of read position? HOT 3
- Build error with ssc_log_sense in ssc.c HOT 2
- kernel crash when restarting mhvtl.target HOT 8
- Enhancement idea: update vtlcmd to show the commit number and date released HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mhvtl.