Skip to contentSkip to conversation

ldiskfs build problem with rhel5.5

Lustre-devel Jay Lan 5 participants 6 messages Dec 18, 2010 – Dec 27, 2010

lore
Share & tools
lore

Jay Lan

author
#0 lore raw

Hi,

I ran into a problem in building ldiskfs-3.1.4 with 2.6.18-194.3.1.el5 kernel.
The kernel was patched with kernel patches provided by lustre-1.8.5 and ldiskfs-3.1.4.

The problem I encountered was that the kernel and kernel-devel rpms did not provide fs/ext4/*.[ch], which the build process would need.

Is there a kernel patch for this problem?

Regards,
Jay

#1 lore raw

You shouldn't apply the ldiskfs patches to the kernel at all. They are applied to a copy if the ext3/4 sources during the Lustre build process.

Cheers, Andreas

Quoted 20 lines · Jay Lan

Hi,

I ran into a problem in building ldiskfs-3.1.4 with 2.6.18-194.3.1.el5 kernel.
The kernel was patched with kernel patches provided by lustre-1.8.5 and ldiskfs-3.1.4.

The problem I encountered was that the kernel and kernel-devel rpms did not provide fs/ext4/*.[ch], which the build process would need.

Is there a kernel patch for this problem?

Regards,
Jay

_______________________________________________
Lustre-devel mailing list
Lustre-devel at lists.lustre.org
http://lists.lustre.org/mailman/listinfo/lustre-devel

#2 lore raw
Quoted 2 lines · Andreas Dilger

You shouldn't apply the ldiskfs patches to the kernel at all. They are applied to a copy if the ext3/4 sources during the Lustre build process.

Hi Andreas,

No matter if I applied ldiskfs patches to the kernel or not, the /isr/src/kernels/2.6.18-194.3.1.el5.<variant>-x86_64/fs/ext4 contains only Kconfig and Makefile. None of the .c or .h files were there. But building ldiskfs would try to apply patches to files in that directory which were not present.

Which rpm provides you those files in your rhel5.5 build environment?

Thanks,
Jay

Quoted 31 lines

Cheers, Andreas

Quoted 12 lines · Jay Lan

Hi,

I ran into a problem in building ldiskfs-3.1.4 with 2.6.18-194.3.1.el5 kernel.
The kernel was patched with kernel patches provided by lustre-1.8.5 and ldiskfs-3.1.4.

The problem I encountered was that the kernel and kernel-devel rpms did not provide fs/ext4/*.[ch], which the build process would need.

Is there a kernel patch for this problem?

Quoted 9 lines

Regards,
Jay

_______________________________________________
Lustre-devel mailing list
Lustre-devel at lists.lustre.org
http://lists.lustre.org/mailman/listinfo/lustre-devel

_______________________________________________
Lustre-devel mailing list
Lustre-devel at lists.lustre.org
http://lists.lustre.org/mailman/listinfo/lustre-devel

#3 lore raw
In reply to Jay Lan
Quoted 8 lines

Hi,

I ran into a problem in building ldiskfs-3.1.4 with 2.6.18-194.3.1.el5 kernel.
The kernel was patched with kernel patches provided by lustre-1.8.5 and ldiskfs-3.1.4.

Quoted 4 lines

The problem I encountered was that the kernel and kernel-devel rpms did not provide fs/ext4/*.[ch], which the build process would need.

Is there a kernel patch for this problem?

Does it deal with export_decode_fh ? Do you build againt OFED 1.5.2 ? If that is the case then I ran into that issue last week. OFED alters your kernel to build the modules but it doesn't alter the source tree. When lustre builds it looks at your source tree which is different then what the biniaries export. The solution is to copy what is in include-nfs/linux from OFED to your kernel source tree include/linux directory.

#4 lore raw

[Lustre-devel] Compiling source code

Hey

I am new to lustre and was trying to compile the lustre kernel and while giving a make i get the following errors. Uncaught exception from user code:
Run make dep on
at ../lustre/scripts/version_tag.pl line 171
main::get_linuxdir() called at ../lustre/scripts/version_tag.pl line 258
make[2]: *** [lustre_build_version] Error 2
make[2]: Leaving directory `/home/darbha/lustre/export/lustre-1.8.1.1/lustre'
make[1]: *** [all-sources] Error 2
make[1]: Leaving directory `/home/darbha/lustre/export/lustre-1.8.1.1'
make: *** [all-recursive] Error 1

I am using 1.8.1.1 lustre code.Could anyone please help

Thanks

Ravi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20101221/f25755b7/attachment.htm>

#5 lore raw
In reply to James Simmons
Quoted 13 lines · James Simmons
Quoted 7 lines

Hi,

I ran into a problem in building ldiskfs-3.1.4 with 2.6.18-194.3.1.el5 kernel.
The kernel was patched with kernel patches provided by lustre-1.8.5 and ldiskfs-3.1.4.

Quoted 5 lines

The problem I encountered was that the kernel and kernel-devel rpms did not provide fs/ext4/*.[ch], which the build process would need.

Is there a kernel patch for this problem?

Quoted 7 lines

Does it deal with export_decode_fh ? Do you build againt OFED 1.5.2 ? If that is the case then I ran into that issue last week. OFED alters your kernel to build the modules but it doesn't alter the source tree. When lustre builds it looks at your source tree which is different then what the biniaries export. The solution is to copy what is in include-nfs/linux from OFED to your kernel source tree include/linux directory.

Hi James,

I was building against ofed 1.5.2, but I did not run into the problem you described though. But thanks for sharing your solution.

Thanks,
Jay

Quoted 5 lines

_______________________________________________
Lustre-devel mailing list
Lustre-devel at lists.lustre.org
http://lists.lustre.org/mailman/listinfo/lustre-devel