From 1a5de449ef866845e4d89123cb90193d10ccd72a Mon Sep 17 00:00:00 2001 From: immarvin Date: Thu, 11 Sep 2014 20:52:23 -0700 Subject: [PATCH] fix defect #4080 investigate RH7 kdump support --- xCAT/postscripts/enablekdump | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xCAT/postscripts/enablekdump b/xCAT/postscripts/enablekdump index 1a17d2e51..3e711afff 100755 --- a/xCAT/postscripts/enablekdump +++ b/xCAT/postscripts/enablekdump @@ -99,8 +99,10 @@ if [ ! -z "$DUMP" ]; then # workaround for RHEL6 # the $KDIP:$KDPATH directory will be used to generate the initrd for kdump service MOUNTPATH="" - if (pmatch $OSVER "*6\.*" ); then + if ((pmatch $OSVER "*6\.*")); then MOUNTPATH="/tmp" + elif (pmatch $OSVER "*7\.*"); then + MOUNTPATH="/mnt" else MOUNTPATH="/var/tmp" fi @@ -214,7 +216,8 @@ EOF fi else if (pmatch $OSVER "rhel7*") || (pmatch $OSVER "rhels7*");then - /bin/mount -o nolock $KDIP:$KDPATH $MOUNTPATH + /bin/mount -o vers=3 $KDIP:$KDPATH $MOUNTPATH + #/bin/mount -o nolock $KDIP:$KDPATH $MOUNTPATH [ -d $MOUNTPATH/var/crash ] || mkdir -p $MOUNTPATH/var/crash echo "nfs $KDIP:$KDPATH" > /etc/kdump.conf echo "default shell" >> /etc/kdump.conf