Shi Jin
2009-Mar-23 15:31 UTC
[Lustre-discuss] mismatching versions between kernel and client
Hi there, I am trying to install a patchless Lustre client on a CentOS 5.2 system from RPM. I downloaded the following two RPMs: * lustre-client-1.6.7-2.6.18_92.1.17.el5_lustre.1.6.7smp.i686.rpm * lustre-client-modules-1.6.7-2.6.18_92.1.17.el5_lustre.1.6.7smp.i686.rpm However, the kernel of my system is slightly different: 2.6.18-92.e15. Therefore, the installed modules are located in a different directory in /lib/modules to the system kernel. I manually created symbolic links of the fs and net directories into the system kernel directory. However, I am still not able to load the lustre modules. Note that the files at the top directory such as modules.dep are not copied. The whole problem comes from the slight difference between the versions of the kernel and the modules. I am wondering if there is a simple way to get the modules loaded without installing a new kernel. Any help will be greatly appreciated. Thanks a lot. Shi Jin
Brian J. Murrell
2009-Mar-23 15:46 UTC
[Lustre-discuss] mismatching versions between kernel and client
On Mon, 2009-03-23 at 08:31 -0700, Shi Jin wrote:> Hi there, > > I am trying to install a patchless Lustre client on a CentOS 5.2 system from RPM. I downloaded the following two RPMs: > * lustre-client-1.6.7-2.6.18_92.1.17.el5_lustre.1.6.7smp.i686.rpm > * lustre-client-modules-1.6.7-2.6.18_92.1.17.el5_lustre.1.6.7smp.i686.rpm > > However, the kernel of my system is slightly different: 2.6.18-92.e15.You have two choices. Either upgrade the kernel on your system to 2.6.18_92.1.17.el5 (which is the suggested route as it gets you a newer kernel with more recent patches applied) or rebuild lustre from the lustre-source rpm using the kernel-devel for the kernel you wish to use.> Therefore, the installed modules are located in a different directory in /lib/modules to the system kernel. I manually created symbolic links of the fs and net directories into the system kernel directory.You can''t/shouldn''t do this.> However, I am still not able to load the lustre modules.Right. This is not surprising. You really do need to match the lustre modules to the right kernel.> The whole problem comes from the slight difference between the versions of the kernel and the modules. I am wondering if there is a simple way to get the modules loaded without installing a new kernel.The only other option, as I mentioned is to build the lustre modules for the kernel you wish to use. b. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url : http://lists.lustre.org/pipermail/lustre-discuss/attachments/20090323/606b4621/attachment.bin
Shi Jin
2009-Mar-23 16:06 UTC
[Lustre-discuss] mismatching versions between kernel and client
> You have two choices.? Either upgrade the kernel on > your system to > 2.6.18_92.1.17.el5 (which is the suggested route as it gets > you a newer > kernel with more recent patches applied) or rebuild lustre > from the > lustre-source rpm using the kernel-devel for the kernel you > wish to use. >Thank you very much. I actually wanted to build the lustre module for my kernel. But when I tried to download the lustre-source, the RPM comes with is a specific kernel version associated with it. Is it OK for me to download the source where the kernel version from the file name is different from the kernel version I am using? Specifically, shall I get lustre-client-source-1.6.7-2.6.16.60_0.31_lustre.1.6.7_bigsmp.i686.rpm? (but its kernel version does not match mine) Or shall I get rhel5-i686-client-lustre-1.6.7.tar.gz (is it different from sles10-i686-client-lustre-1.6.7.tar.gz?)? Does rhel5 covers all minor version changes such as rhel5.3? Thank you very much for your help. Shi Jin
Brian J. Murrell
2009-Mar-23 16:18 UTC
[Lustre-discuss] mismatching versions between kernel and client
On Mon, 2009-03-23 at 09:06 -0700, Shi Jin wrote:> Thank you very much.You are welcome.> I actually wanted to build the lustre module for my kernel. But when I tried to download the lustre-source, the RPM comes with is a specific kernel version associated with it. Is it OK for me to download the source where the kernel version from the file name is different from the kernel version I am using?Indeed, it is. That brings up an interesting point in the naming of the lustre-source RPM though. I will give this some thought.> Specifically, shall I get lustre-client-source-1.6.7-2.6.16.60_0.31_lustre.1.6.7_bigsmp.i686.rpm? (but its kernel version does not match mine) Or shall I get rhel5-i686-client-lustre-1.6.7.tar.gz (is it different from sles10-i686-client-lustre-1.6.7.tar.gz?)? Does rhel5 covers all minor version changes such as rhel5.3?You should get the lustre-source rpm that most closely matches your kernel, which IIRC was a RHEL5 kernel, so get the lustre-source for the 2.6.18-whatever kernel.> Thank you very much for your help.NP. b. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url : http://lists.lustre.org/pipermail/lustre-discuss/attachments/20090323/a7bab3eb/attachment.bin
Shi Jin
2009-Mar-23 18:32 UTC
[Lustre-discuss] mismatching versions between kernel and client
Thank you very much. I downloaded rhel5-i686-client-lustre-1.6.7.tar.gz and installed it on my CentOS 5.2 by doing ./configure --with-linux=/usr/src/kernels/2.6.18-92.1.22.el5-i686/ * make; make install Now in my /lib/modules/`uname -r`/kernel I have the lustre modules in both fs and net. However, I still get [root at host136-159-94-201 kernel]# modprobe lustre FATAL: Module lustre not found. There is no error in the whole building process. Did I miss anything? Thanks a lot. Shi
Shi Jin
2009-Mar-23 18:52 UTC
[Lustre-discuss] mismatching versions between kernel and client
One more question:>From the download site, we havelustre-client-source-1.6.7-2.6.16.60_0.31_lustre.1.6.7_bigsmp.i686.rpm lustre-source-1.6.7-2.6.16.60_0.31_lustre.1.6.7_bigsmp.i686.rpm rhel5-i686-client-lustre-1.6.7.tar.gz rhel5-i686-lustre-1.6.7.tar.gz It seems that the lustre and lustre-client files are nearly identical. Is there a reason to provide two files and which one should I use? Thank you very much. Shi
Papp Tamas
2009-Mar-23 19:02 UTC
[Lustre-discuss] mismatching versions between kernel and client
Shi Jin wrote:> Thank you very much. > I downloaded rhel5-i686-client-lustre-1.6.7.tar.gz and installed it on my CentOS 5.2 by doing > ./configure --with-linux=/usr/src/kernels/2.6.18-92.1.22.el5-i686/ > * make; make install > Now in my /lib/modules/`uname -r`/kernel I have the lustre modules in both fs and net. However, I still get > [root at host136-159-94-201 kernel]# modprobe lustre > FATAL: Module lustre not found. > > There is no error in the whole building process. Did I miss anything? Thanks a lot. >Have you done ''depmod -a''? tamas