[Lustre-discuss] Packates for Ubuntu-10.04 LTS accting as a Lustre server

Guy Coates gmpc at sanger.ac.uk
Thu Dec 15 14:09:05 UTC 2011


On 15/12/11 13:32, Ramiro Alba wrote:
> Hi all,
> 
> I've made available an Ubuntu repository:
> 

On a related note; attached is a dkms config file for lustre *client*
kernel modules.

It will give you a deb containing the kernel modules, and will
auto-magically rebuild modules when new kernels are installed. (You will
still need to build the userspace deb as normal.)

Tested on ubuntu 10.04 / 2.6.32 kernel stream, but it should work on any
distro that supports dkms and runs a kernel that is compatible with the
lustre client.


Instructions:

Stick the dkms.conf file in the top of your lustre source directory and
copy it to /usr/src.

# register the source
dkms add -m lustre -v 1.8.7wc1

# build module for currently installed kernel.
dkms build -m lustre -v 1.8.7wc1

# optionally build for other kernel versions
dkms build -m lustre -v 1.8.7wc1 -k <other kernel versions>

# build a kernel-module deb
dkms mkdeb -m lustre -v 1.8.7wc1 --all
dkms mkdsc -m lustre -v 1.8.7wc1 --all

#rpm systems (not tested)
dkms mkrpm -m lustre -v 1.8.7wc1 --all

Cheers,

Guy

-- 
Dr. Guy Coates, Informatics Systems Group
The Wellcome Trust Sanger Institute, Hinxton, Cambridge, CB10 1HH, UK
Tel: +44 (0)1223 834244 x 6925
Fax: +44 (0)1223 496802



-- 
 The Wellcome Trust Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE. 
-------------- next part --------------
# lustre kernel module dkms files

MAKE="sh ./configure --disable-server --disable-utils --with-linux=$kernel_source_dir ; make -j4"
CLEAN="make clean || true"

AUTOINSTALL=yes
PACKAGE_NAME=lustre
PACKAGE_VERSION=1.8.7wc1

#Uncomment if we want to restrict builds to a particular kernel version
#BUILD_EXCLUSIVE_KERNEL="^2.6.32*"
STRIP="no"

# Location of the modules in the source tree after build
BUILT_MODULE_LOCATION[0]="lustre/quota"
BUILT_MODULE_LOCATION[1]="lustre/lvfs"
BUILT_MODULE_LOCATION[2]="lustre/lvfs"
BUILT_MODULE_LOCATION[3]="lustre/llite"
BUILT_MODULE_LOCATION[4]="lustre/llite"
BUILT_MODULE_LOCATION[5]="lustre/mdc"
BUILT_MODULE_LOCATION[6]="lustre/ptlrpc"
BUILT_MODULE_LOCATION[7]="lustre/mgc"
BUILT_MODULE_LOCATION[8]="lustre/obdecho"
BUILT_MODULE_LOCATION[9]="lustre/osc"
BUILT_MODULE_LOCATION[10]="lustre/lov"
BUILT_MODULE_LOCATION[11]="lustre/obdclass"
BUILT_MODULE_LOCATION[12]="lustre/obdclass"
BUILT_MODULE_LOCATION[13]="lnet/libcfs"
BUILT_MODULE_LOCATION[14]="lnet/klnds/socklnd"
BUILT_MODULE_LOCATION[15]="lnet/klnds/o2iblnd"
BUILT_MODULE_LOCATION[16]="lnet/lnet"
BUILT_MODULE_LOCATION[17]="lnet/selftest"

# location of the modules in /lib/modules/ after install
DEST_MODULE_LOCATION[0]="/updates/kernel/fs/lustre"
DEST_MODULE_LOCATION[1]="/updates/kernel/fs/lustre"
DEST_MODULE_LOCATION[2]="/updates/kernel/fs/lustre"
DEST_MODULE_LOCATION[3]="/updates/kernel/fs/lustre"
DEST_MODULE_LOCATION[4]="/updates/kernel/fs/lustre"
DEST_MODULE_LOCATION[5]="/updates/kernel/fs/lustre"
DEST_MODULE_LOCATION[6]="/updates/kernel/fs/lustre"
DEST_MODULE_LOCATION[7]="/updates/kernel/fs/lustre"
DEST_MODULE_LOCATION[8]="/updates/kernel/fs/lustre"
DEST_MODULE_LOCATION[9]="/updates/kernel/fs/lustre"
DEST_MODULE_LOCATION[10]="/updates/kernel/fs/lustre"
DEST_MODULE_LOCATION[11]="/updates/kernel/fs/lustre"
DEST_MODULE_LOCATION[12]="/updates/kernel/fs/lustre"
DEST_MODULE_LOCATION[13]="/updates/kernel/net/lustre"
DEST_MODULE_LOCATION[14]="/updates/kernel/net/lustre"
DEST_MODULE_LOCATION[15]="/updates/kernel/net/lustre"
DEST_MODULE_LOCATION[16]="/updates/kernel/net/lustre"
DEST_MODULE_LOCATION[17]="/updates/kernel/net/lustre"

# Modules 
BUILT_MODULE_NAME[0]="lquota"
BUILT_MODULE_NAME[1]="lvfs"
BUILT_MODULE_NAME[2]="quotafmt_test"
BUILT_MODULE_NAME[3]="lustre"
BUILT_MODULE_NAME[4]="llite_lloop"
BUILT_MODULE_NAME[5]="mdc"
BUILT_MODULE_NAME[6]="ptlrpc"
BUILT_MODULE_NAME[7]="mgc"
BUILT_MODULE_NAME[8]="obdecho"
BUILT_MODULE_NAME[9]="osc"
BUILT_MODULE_NAME[10]="lov"
BUILT_MODULE_NAME[11]="llog_test"
BUILT_MODULE_NAME[12]="obdclass"
BUILT_MODULE_NAME[13]="libcfs"
BUILT_MODULE_NAME[14]="ksocklnd"
BUILT_MODULE_NAME[15]="ko2iblnd"
BUILT_MODULE_NAME[16]="lnet"
BUILT_MODULE_NAME[17]="lnet_selftest"


More information about the lustre-discuss mailing list