After installing the kernel source... rpm -Uvh kernel-2.6.18-194.3.1.0.1.el5.src.rpm rpmbuild -bp kernel-2.6.spec intalling the lustre source... lustre-source-1.8.4-2.6.18_194.3.1.0.1.el5_lustre.1.8.4.x86_64.rpm and patching the kernel... ln -s /usr/src/lustre-1.8.4/ldiskfs/kernel_patches/patches . ln -s /usr/src/lustre-1.8.4/ldiskfs/kernel_patches/series/ldiskfs-2.6- rhel5.series series quilt push -av, we attempt to build the kernel and get.... CC fs/compat_ioctl.o In file included from include/linux/ext3_jbd.h:20, from fs/compat_ioctl.c:50: include/linux/ext3_fs.h: In function ?ext3_new_blocks?: include/linux/ext3_fs.h:1057: error: ?EXT2_MOUNT_MBALLOC? undeclared (first use in this function) include/linux/ext3_fs.h:1057: error: (Each undeclared identifier is reported only once include/linux/ext3_fs.h:1057: error: for each function it appears in.) This seems easy enough to fix but doing so just results in more of the same (and worse) down the road. Shouldn''t this "just work"? Is there a problem with the source RPMs? Charlie Taylor UF HPC Center
On 2010-09-03, at 09:46, Charles Taylor wrote:> and patching the kernel... > > ln -s /usr/src/lustre-1.8.4/ldiskfs/kernel_patches/patches . > ln -s /usr/src/lustre-1.8.4/ldiskfs/kernel_patches/series/ldiskfs-2.6- > rhel5.series seriesYou shouldn''t patch the kernel with the ldiskfs patch series. That is done automatically during the lustre build to create the "ldiskfs" module (which is the patched and renamed ext3 or ext4 code). Please see the "how to build a lustre kernel" page: http://wiki.lustre.org/index.php/Applying_Lustre_Patches_to_a_Kernel Cheers, Andreas -- Andreas Dilger Lustre Technical Lead Oracle Corporation Canada Inc.
On Sep 3, 2010, at 1:25 PM, Andreas Dilger wrote:> On 2010-09-03, at 09:46, Charles Taylor wrote: >> and patching the kernel... >> >> ln -s /usr/src/lustre-1.8.4/ldiskfs/kernel_patches/patches . >> ln -s /usr/src/lustre-1.8.4/ldiskfs/kernel_patches/series/ >> ldiskfs-2.6- >> rhel5.series series > > You shouldn''t patch the kernel with the ldiskfs patch series. That > is done automatically during the lustre build to create the > "ldiskfs" module (which is the patched and renamed ext3 or ext4 code). > > Please see the "how to build a lustre kernel" page: > > http://wiki.lustre.org/index.php/Applying_Lustre_Patches_to_a_KernelArghh! That''s the guide I was using. Just an oversight. I''m a dork. Thanks for catching it. Regards, Charlie Taylor UF HPC Center