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:
parent
a0bd8f6a46
commit
e63d9a9967
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user