From e63d9a9967d363d7df392634e5804d2f1dfe9061 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Thu, 15 Nov 2012 08:51:58 +0000 Subject: [PATCH] delete the old dump file before creating the dump file git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@14335 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/enablekdump | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT/postscripts/enablekdump b/xCAT/postscripts/enablekdump index 9490df54c..92d628982 100755 --- a/xCAT/postscripts/enablekdump +++ b/xCAT/postscripts/enablekdump @@ -161,6 +161,9 @@ if [ -e /proc/vmcore ];then /bin/mkdir /mnt /bin/mount -t nfs -o nolock ${KDIP}:${KDPATH} /mnt + if [ -e /mnt/$HOSTNAME ];then + /bin/rm -f /mnt/$HOSTNAME + fi /bin/makedumpfile -c /proc/vmcore /mnt/$HOSTNAME /bin/umount -l /mnt /sbin/reboot -d -f