delete the old dump file before creating the dump file

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14334 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2012-11-15 08:51:36 +00:00
parent 53012f4e45
commit cdddc737a0

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