markh794 / mhvtl

Linux based Virtual Tape Library
http://sites.google.com/site/linuxvtl2/
Other
137 stars 65 forks source link

Add support in VHF to indicate whether or not drive needs to be cleaned #118

Open rohr22 opened 1 year ago

rohr22 commented 1 year ago

Hi, Mark.

Can mhvtl be updated so that the very high frequency (VHF) data which indicates whether a drive needs to be cleaned or not could be added? Our application is logging a debug message which indicates we cannot get the VHF data to check the clean state. It would be nice if mhvtl supported the clean state, so we don't see this debug log message.

Thank you, Peter

markh794 commented 1 year ago

Hi Peter, Just looking at the IBM Ultrium specs for the VHF now. What a useful log page. Some of the fields may require a little thought on how to integrate correctly - especially the Device Activity field. The medium present / medium seated bits should be quite simple. As should the CRQST & QRQRD.

Thank you for highlighting this log page. Now to find "spare" time to implement :)

Cheers Mark

rohr22 commented 4 months ago

Hi, Mark. Any news on updating MHVTL to handle this situation? We are seeing a lot of debug messages related to this when we use IBM LTO-6 tape drives with MHVTL.

markh794 commented 4 months ago

Hey Peter, Thanks for the prompt. To be honest, I've forgotten about this - just being busy with work and general life stuff. Let me re-visit this.

markh794 commented 4 months ago

Hello Peter, thanks for hanging in there. I've now added basic support for Log Page 0x11 - VHF Currently, only for the IBM Ultrium LTO3 and above emulations. Please let me know if it works for you and what bits of the documentation I've misinterpreted :)

rohr22 commented 4 months ago

Hi, Mark. Thank you very much. We will give this a try and let you know how it works.

rohr22 commented 4 months ago

With VERBOSE=3 in the /etc/mhvtl.conf file, I noticed messages like this are getting logged almost constantly:

May 2 12:04:13 testtwox86-rh9 /usr/bin/vtltape[112187]: lookup_log_pg(): Looking for: log page 0x11 May 2 12:04:13 testtwox86-rh9 /usr/bin/vtltape[112187]: lookup_log_pg(): Device Status (0x11) May 2 12:04:13 testtwox86-rh9 /usr/bin/vtltape[112184]: lookup_log_pg(): Looking for: log page 0x11 May 2 12:04:13 testtwox86-rh9 /usr/bin/vtltape[112184]: lookup_log_pg(): Device Status (0x11)

grep -c "lookup_log_pg" /var/log/messages 1707020

Previously, I didn't see stuff getting that logged from vtl when using VERBOSE=3. Is the logging too verbose now?

markh794 commented 4 months ago

Thanks for the bug report. Although harmless, it was annoying. A fix 8a88fa87861411e46782dd711e3be5a7c4bbbbbb has been applied

markh794 commented 4 months ago

Just to state the obvious. Verbosity above 1 does impact the performance (thoughput)