[Lustre-discuss] Lustre 1.8.2 patchless with RHEL5.5?
Trent Johnson
trent at trentjohnson.net
Sat Jun 5 12:05:02 PDT 2010
Until the weak modules support is added to the Oracle provided rpms, I
am using the script in /etc/rc.modules with centos 5.5. It will detect
a new kernel without lustre modules installed at boot time, and create
symlinks to the currently installed lustre-client-modules package.
#!/bin/bash
LVERSION=`rpm -ql lustre-client-modules | grep lib/modules |head -n 1 |
cut -d "/" -f 4`
if [ ! -z $LVERSION ]; then
if [ ! -d "/lib/modules/`uname -r`/kernel/fs/lustre" ]; then
echo "Current kernel does not have lustre modules..."
echo "Promoting modules from $LVERSION to `uname -r`"
mount -o remount,rw /
mkdir -p /lib/modules/`uname -r`/kernel/{fs,net}/lustre/
ln -s /lib/modules/$LVERSION/kernel/fs/lustre/*
/lib/modules/`uname -r`/kernel/fs/lustre/
ln -s /lib/modules/$LVERSION/kernel/net/lustre/*
/lib/modules/`uname -r`/kernel/net/lustre/
depmod
mount -o remount,ro /
else
echo "lustre-client-modules not installed"
fi
else
echo "lustre-client-modules already installed in `uname -r`"
fi
More information about the lustre-discuss
mailing list