If the lustre-client RPMs need to be rebuild against a different client kernel, follow this procedure.
NOTE This procedure assumes you are using a RPM based distribution. For example RHEL or CentOS.
If you are not currently booted into the kernel provided by
# rpmbuild --rebuild <lustre version>.src.rpm
NOTE The resulting RPMS may be named 'lustre-modules' rather than 'lustre-client-modules'
Follow the procedure above, substituting the code below for step 3.
# rpmbuild --rebuild --without servers <lustre version>.src.rpm
To build against a different kernel to the one currently running, you need to provide the chosen kernel to
rpmbuild. For example:
rpmbuild --define 'kversion 2.6.32-220.4.1.el6.x86_64' --define 'kdir /usr/src/kernels/2.6.32-220.4.1.el6.x86_64/' --rebuild lustre-client-2.1.0-2.6.32_131.6.1.el6.x86_64_g9d71fe8.src.rpm