add the work around for kdump on sles diskless node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12593 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
75a543f116
commit
40976c739a
@ -92,7 +92,15 @@ if [ ! -z "$DUMP" ]; then
|
||||
KDPATH=${KDPATH//\//\\\/}
|
||||
KDPATH="nfs:\/\/${KDIP}${KDPATH}"
|
||||
sed -i "s/^KDUMP_SAVEDIR=.*$/KDUMP_SAVEDIR=\"${KDPATH}\"/" /etc/sysconfig/kdump
|
||||
sed -i "s/^KDUMP_COPY_KERNEL=.*$/KDUMP_COPY_KERNEL=no/" /etc/sysconfig/kdump
|
||||
#change the mount and remount shell scripts' name, workaround for kdump on stateless node
|
||||
oldmount=`ls /lib/mkinitrd/boot/*-mount.sh`
|
||||
oldremount=`ls /lib/mkinitrd/boot/*-remount.sh`
|
||||
mv $oldmount ${oldmount}.bak
|
||||
mv $oldremount ${oldremount}.bak
|
||||
/etc/init.d/boot.kdump restart
|
||||
mv ${oldmount}.bak $oldmount
|
||||
mv ${oldremount}.bak $oldremount
|
||||
else
|
||||
if (pmatch $OSVER "fedora*") || (pmatch $OSVER "rhel6*") || (pmatch $OSVER "rhels6*") || [ -f /etc/fedora-release ] || [ -f /etc/redhat-release ];then
|
||||
echo "net $KDIP:$KDPATH" > /etc/kdump.conf
|
||||
|
Loading…
Reference in New Issue
Block a user