On Thursday 27 November 2008 10:02:03 Richard (MQ) wrote:
Carlos E. R. wrote:
My factory beta 5.2 freezes completely, randomly. I assume it is the kernel. There is nothing in logs.
I assume I could connect the machine via serial port to another, and make kernel log everything there. But how?
I's suggest that you do here what we often have to do for installation problems:
1. On another networked machine set up a writeable share using NFS (or maybe Samba if you like). I assume you know how to do this! Permissions can be fiddly, I usually end up with 777. For installations, you will need to create a directory YaST2 too.
2. On the target machine, if installing set it to start a shell before running YaST. If installation is already complete, you could perhaps add a shell to /etc/init.d/boot.local or - if you can get to a prompt before problems appear - just do it manually.
3. Then in that shell mount the NFS share exported above over the appropriate section of /var/log (or maybe over all of it, though you may need to create an empty directory structure first). You may also need option "-o nolock" especially during installation. Again, I assume you know how to do all this.
It may be worth testing before exiting the shell e.g. by touching a new file and / or appending something to /var/log/messages using cat or echo. See note above regarding permissions.
A more sophisticated approach might be to mount the share elsewhere and tee specific files to it.
4. Quit the shell, and watch for the log files to appear!
5. Try to unmount it nicely if you can...
That is such a baroque improvisation for remote logging! This wheel has been invented before, and it's a little rounder that this :-) syslogd has an option that allows it to receive logs from a remote system. See the man page of syslog and /etc/sysconfig/syslog The thing is that openSUSE uses syslog-ng since a few versions ago. I don't know how to do remote logging with syslog-ng, never needed it. You either study that or simply replace syslog-ng with syslog classic and get the job done. Yes, I know that it doesn't use real authentication and such, but it's simple and quick on a test system. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org