Added checkpoint/restart script to setup related environment
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12325 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
34ca6ec873
commit
e743131f19
28
xCAT-IBMhpc/share/xcat/IBMhpc/ckpt/ckpt.sh
Executable file
28
xCAT-IBMhpc/share/xcat/IBMhpc/ckpt/ckpt.sh
Executable file
@ -0,0 +1,28 @@
|
||||
#! /bin/bash
|
||||
|
||||
# Checkpoint/Restart related environment setup
|
||||
|
||||
# virtualized pts support
|
||||
rm -f /dev/ptmx
|
||||
ln -s /dev/pts/ptmx /dev/ptmx
|
||||
chmod 666 /dev/ptmx
|
||||
|
||||
# unlinked file support
|
||||
for fs in ext3 ext4 nfs gpfs tmpfs; do
|
||||
FSROOTS=$(grep " $fs " /proc/mounts | cut -d ' ' -f 2)
|
||||
if [ "$FSROOTS" ]; then
|
||||
for rootfs in $FSROOTS; do
|
||||
if [ -w $rootfs ]; then
|
||||
CKPTDIR="$rootfs/lost+found"
|
||||
|
||||
[ -e $CKPTDIR ] && [ ! -d $CKPTDIR ] && rm -f $CKPTDIR
|
||||
|
||||
if [ ! -e $CKPTDIR ]; then
|
||||
mkdir -p $CKPTDIR
|
||||
[ "$?" -eq "0" ] && echo "made dir $CKPTDIR"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user