[Crash-utility] Re: kdump and lvm ?

Jan-Frode Myklebust janfrode at tanso.net
Wed Oct 31 14:08:58 UTC 2007


Also reported this to bugzilla.redhat.com, and think I found
the problem:

	https://bugzilla.redhat.com/show_bug.cgi?id=360111

Proposed fix to mkdumprd:

--------------------------------------------------------------------
--- /root/sbin-mkdumprd.original	2007-10-31 13:54:01.000000000 +0100
+++ mkdumprd	2007-10-31 13:55:40.000000000 +0100
@@ -1409,7 +1409,7 @@
     emit "DM_NUM=0"
     emit "for i in \`lvm lvs | awk '{ if (NR > 1) print \$1}'\`"
     emit "do"
-    emit "   VGRP=\`lvm lvs | grep \$i | cut -d\" \" -f4\`"
+    emit "   VGRP=\`lvm lvs | grep \$i | awk '{ print \$2 }'\`"
     emit "   mkdir -p /dev/\$VGRP"
     emit "   if [ ! -e /dev/\$VGRP/\$i ]"
     emit "   then" 
--------------------------------------------------------------------



  -jf




More information about the Crash-utility mailing list