2

I'm trying to capture what looks like a kernel error/stack trace when I run the command sudo zpool import. There error starts with:

[104.877657] BUG: unable to handle kernel paging request at 00000000ffff4167

...

I've tried simply redirecting stderr to a file with sudo zpool import &> err_file but that doesn't seem to capture it (I'm using bash) - the error still prints to the screen.

How can I grab the entire error message?

  • You will most probably need to redirect the error to the file as at the moment, it is redirecting to screen and so use "sudo zpool import 2> err_file" – Raman Sailopal Feb 1 '18 at 12:10
2

The error message isn't being written to the console by the zpool command. The kernel is writing the message. It's most likely being written to the console via syslog/rsyslog.

You might be able to find the error message by running dmesg which will print the kernel messages. dmesg > err_file

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.