Created attachment 606226 [details] vdsm + spm logs Description of problem: on a host that is the SPM, no information is being written to spm-lock.log Version-Release number of selected component (if applicable): vdsm-4.9.6-29.0.el6_3.x86_64 How reproducible: 100% Steps to Reproduce: On a host that is SPM, nothing is being written to the log file vdsm logs and spm-lock.log attached.
As far as I see in the logs the domains were V3 and therefore the logging took place in sanlock (/var/log/sanlock.log). What we may want to do is provide an sos plugin to fetch also the sanlock logs. Renaming the bug accordingly.
So what application is producing sanlock.log
A patch has been proposed upstream: commit 12e71c8cfd684ef6ab68c9e19c4cc1abb1dfd62f Author: Federico Simoncelli <fsimonce> Date: Thu Aug 23 10:08:51 2012 -0400 sos/plugins: add plugin for sanlock Signed-off-by: Federico Simoncelli <fsimonce> https://lists.fedorahosted.org/pipermail/sanlock-devel/2012-August/000262.html
Thanks for the patch - looks good - I'll add this to the queue for RHEL6. You can also post sos patches to the sos-devel mailing list for review: http://www.redhat.com/mailman/listinfo/sos-devel They'll reach a wider audience of sos contributors there than bugzilla. One thing to check is whether any of the files contain anything that we should elide for security reasons? I don't think so but I'm not very familiar with sanlock so it would be good to get that signed off by someone who knows the package well.
This is the sanlock helper that provides SCSI-3 PR support for e.g. cluster - patch looks good.
The cause here is not correct -- sanlock is not related to scsi3 PR. It uses disk blocks and two new algorithms to implement cluster leases. It also uses the watchdog to protect recovery of those leases. It's been developed for RHEV, but I've also applied it in a minimal fashion to use for fencing in a cluster. https://fedorahosted.org/sanlock/ http://git.fedorahosted.org/cgit/sanlock.git/plain/fence_sanlock/fence_sanlock.8
verified on sos-2.2-32.el6.noarch: gold-vdsd-2012102814141351426470/sos_commands/sanlock gold-vdsd-2012102814141351426470/etc/logrotate.d/sanlock gold-vdsd-2012102814141351426470/etc/rc.d/init.d/sanlock gold-vdsd-2012102814141351426470/etc/sysconfig/sanlock
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-0474.html