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
This commit is contained in:
xq2005 2012-11-15 08:51:58 +00:00
parent a0bd8f6a46
commit e63d9a9967

View File

@ -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