mhvtl
mhvtl copied to clipboard
Can't turn off verbose logging
One of my mhvtl installations seems to be stuck in verbose logging mode. The flood of detailed logging messages makes it difficult to work other issues. Example:
Feb 5 09:27:15 bend /usr/bin/vtllibrary[403379]: processMessageQ(): 10: Received from sender id: 32768, msg : verbose Feb 5 09:27:15 bend /usr/bin/vtllibrary[403379]: processMessageQ(): verbose: disabled at level 0 Feb 5 09:27:57 bend systemd[1]: Started Amanda Backup System. Feb 5 09:27:57 bend systemd[1]: amanda-udp.service: Deactivated successfully. Feb 5 09:27:57 bend systemd[1]: Started Amanda Backup System. Feb 5 09:27:57 bend kernel: mhvtl:_mhvtl_queuecommand_lck: (4265973) 12 bytes b8 11 00 01 00 01 00 00 0f e8 00 00 Feb 5 09:27:57 bend systemd[1]: amanda-udp.service: Deactivated successfully. Feb 5 09:27:58 bend kernel: mhvtl:_mhvtl_queuecommand_lck: (4265974) 6 bytes 12 00 00 00 38 00 Feb 5 09:27:58 bend kernel: mhvtl:_mhvtl_queuecommand_lck: (4265975) 6 bytes 1a 08 1d 00 88 00 Feb 5 09:27:58 bend kernel: mhvtl:_mhvtl_queuecommand_lck: (4265976) 12 bytes b8 12 03 e8 00 27 00 00 0f e8 00 00 Feb 5 09:27:58 bend kernel: mhvtl:_mhvtl_queuecommand_lck: (4265977) 12 bytes b8 13 00 0a 00 04 00 00 0f e8 00 00 Feb 5 09:27:58 bend kernel: mhvtl:_mhvtl_queuecommand_lck: (4265978) 12 bytes b8 14 01 f4 00 04 00 00 0f e8 00 00 Feb 5 09:27:58 bend kernel: mhvtl:_mhvtl_queuecommand_lck: (4265979) 12 bytes b8 11 00 01 00 01 00 00 0f e8 00 00 Feb 5 09:27:58 bend kernel: mhvtl:_mhvtl_queuecommand_lck: (4265980) 6 bytes 12 00 00 00 38 00 Feb 5 09:27:58 bend kernel: mhvtl:_mhvtl_queuecommand_lck: (4265981) 6 bytes 1a 08 1d 00 88 00
Note that I have set the verbosity to disabled but I'm still getting the mhvtl_queuecommand_lck messages. The above is a partial sample from doing an amanda amcheck. I'm also getting rsyslogd complaints like the following when the actual backup runs.
--------------------- rsyslogd Begin ------------------------
**** Unmatched entries **** imjournal: 54133 messages lost due to rate-limiting (20000 allowed within 600 seconds) : 1 Times
Just for completeness:
[root@bend ~]# cat /var/log/messages | grep 'Feb 5' | grep mhvtl | wc -l 41345
Hi David, Thanks for the report. The messages are derived from the mhvtl.ko. To stop the sys_emit() from the kernel module : cat /sys/bus/mhvtl/drivers/mhvtl/opts (Should be '0' for no logging : 1, 2 or 3 - where 3 is max logging) echo 0 > /sys/bus/mhvtl/drivers/mhvtl/opts (will stop it - non persistent across module reload) grep VTL_DEBUG /etc/mhvtl/mhvtl.conf is persistent (if using systemd startup to load.)
otherwise : stop daemons, unload kernel module, load with opts set to '0' and restart daemons. systemctl stop mhvtl.target rmmod mhvtl modprobe mhvtl opts=0 systemctl start mhvtl.target
Please let me know if the above makes sense (and more importantly that it worked :) )