Vincenzo Spinoso
2009-Feb-25 16:45 UTC
[Lustre-discuss] Building 1.6.7 fails on SL5 with kernel 2.6.22.14
Hi all, my goal is to build all lustre 1.6.7 RPMS from scratch on a customized vanilla kernel of mine to test it on a single machine (and then pass to production if things work). During these days I''ve followed the instructions on http://wiki.lustre.org/index.php?title=Lustre_Quick_Start#Building_Lustre_from_Source_Code patching the kernel 2.6.22.14 (vanilla) with both lustre 1.6.6 and 1.6.7 successfully; it works fine on Scientific Linux 4 (see RHEL4 rebuilt from sources), using this kind of syntax: ./configure --with-linux=/usr/src/redhat/BUILD/kernel-2.6.22.14 --with- kernel-source-header=/usr/src/redhat/BUILD/kernel-2.6.22.14 && make rpms Now: I''ve used the same procedure to build 1.6.7 on SL5 (RHEL5 rebuilt from sources), having this error while making: /usr/src/redhat/BUILD/lustre-1.6.7/lustre/lvfs/lvfs_linux.c:530:2: error: #error rdonly patchset must be updated [cfs bz11248] make[8]: *** [/usr/src/redhat/BUILD/lustre-1.6.7/lustre/lvfs/ lvfs_linux.o] Error 1 make[7]: *** [/usr/src/redhat/BUILD/lustre-1.6.7/lustre/lvfs] Error 2 make[7]: *** Waiting for unfinished jobs.... make[6]: *** [/usr/src/redhat/BUILD/lustre-1.6.7/lustre] Error 2 make[5]: *** [_module_/usr/src/redhat/BUILD/lustre-1.6.7] Error 2 make[5]: Leaving directory `/usr/src/redhat/BUILD/kernel-2.6.22.14'' make[4]: *** [modules] Error 2 make[4]: Leaving directory `/usr/src/redhat/BUILD/lustre-1.6.7'' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/src/redhat/BUILD/lustre-1.6.7'' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/src/redhat/BUILD/lustre-1.6.7'' error: Bad exit status from /var/tmp/rpm-tmp.17974 (%build) Summary: same kernel, same lustre, change distro: SLC4 -> SL5 => ERROR Now I konw that someone has had similar problems in the past: http://osdir.com/ml/file-systems.lustre.user/2007-07/msg00172.html but that solution (commenting ifdefs) does not work for me; however, if I understand, that would work for building just the client. Any suggestions? Where could I be wrong? Thank you, best regards, Vincenzo
Brian J. Murrell
2009-Feb-25 17:06 UTC
[Lustre-discuss] Building 1.6.7 fails on SL5 with kernel 2.6.22.14
On Wed, 2009-02-25 at 17:45 +0100, Vincenzo Spinoso wrote:> patching the kernel 2.6.22.14 (vanilla) with both lustre 1.6.6 and > 1.6.7 successfully;Can you please describe (or better yet, paste a transcript) of your patching process?> /usr/src/redhat/BUILD/lustre-1.6.7/lustre/lvfs/lvfs_linux.c:530:2: > error: #error rdonly patchset must be updated [cfs bz11248]This indicates that the kernel patch is either deficient or didn''t apply properly. The transcript you provide above should help determine which. 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/20090225/ac70abb5/attachment.bin
Vincenzo Spinoso
2009-Feb-25 17:59 UTC
[Lustre-discuss] Building 1.6.7 fails on SL5 with kernel 2.6.22.14
Il giorno 25/feb/09, alle ore 18:06, Brian J. Murrell ha scritto:> On Wed, 2009-02-25 at 17:45 +0100, Vincenzo Spinoso wrote: >> patching the kernel 2.6.22.14 (vanilla) with both lustre 1.6.6 and >> 1.6.7 successfully; > > Can you please describe (or better yet, paste a transcript) of your > patching process?I''ve restarted building from scratch, pacthing a fresh untarred kernel, and now it works. So I suppose that it''s mandatory to make rpms immediately after patching... Maybe some intermediate menuconfig has dirtied the three (I have to compile Openafs also, I will do after building Lustre). A transcript follows, reporting also the output of quilt -av (which belongs to patching process you refer to), hope it can be generally useful. Thank you for your (fast) suggestion! Vincenzo # mkdir /root/kernel && cd /root/kernel # tar xjf linux-2.6.22.14.tar.bz2 # tar xzf rhel4-x86_64-lustre-1.6.7.tar.gz # rpm -ivh quilt-0.46-1.el4.i386.rpm # cd linux-2.6.22.14 # ln -s /root/kernel/lustre-1.6.7/lustre/kernel_patches/series/2.6.22- vanilla.series series # ln -s /root/kernel/lustre-1.6.7/lustre/kernel_patches/patches patches # quilt push -av Applying patch patches/lustre_version.patch patching file include/linux/lustre_version.h Applying patch patches/vfs_races-2.6.22-vanilla.patch patching file fs/dcache.c patching file include/linux/dcache.h Applying patch patches/i_filter_data.patch patching file include/linux/fs.h Hunk #1 succeeded at 569 with fuzz 2 (offset 36 lines). Applying patch patches/jbd-jcberr-2.6.18-vanilla.patch patching file include/linux/jbd.h Hunk #1 succeeded at 359 (offset 3 lines). Hunk #3 succeeded at 414 (offset 3 lines). Hunk #4 succeeded at 459 with fuzz 1. Hunk #5 succeeded at 593 (offset 3 lines). Hunk #6 succeeded at 945 (offset -1 lines). patching file fs/jbd/checkpoint.c Hunk #1 succeeded at 689 (offset 1 line). patching file fs/jbd/commit.c Hunk #1 succeeded at 755 (offset 47 lines). patching file fs/jbd/journal.c Hunk #1 succeeded at 57 (offset -1 lines). patching file fs/jbd/transaction.c Hunk #1 succeeded at 51 with fuzz 1 (offset 1 line). Hunk #3 succeeded at 1308 with fuzz 1 (offset 14 lines). Hunk #4 succeeded at 1397 (offset 1 line). Applying patch patches/iopen-misc-2.6.22-vanilla.patch patching file Documentation/filesystems/ext2.txt patching file fs/dcache.c patching file include/linux/dcache.h Applying patch patches/export-truncate-2.6.18-vanilla.patch patching file include/linux/mm.h Hunk #1 succeeded at 559 (offset 30 lines). patching file mm/truncate.c Hunk #1 succeeded at 89 with fuzz 1 (offset 56 lines). Hunk #2 succeeded at 49 with fuzz 2 (offset 1 line). Applying patch patches/export_symbols-2.6.22-vanilla.patch patching file fs/filesystems.c patching file fs/namespace.c patching file fs/dcache.c patching file include/linux/fs.h Applying patch patches/dev_read_only-2.6.22-vanilla.patch patching file block/ll_rw_blk.c Hunk #1 succeeded at 3102 (offset 1 line). Hunk #3 succeeded at 3859 (offset 1 line). patching file fs/block_dev.c patching file include/linux/fs.h Applying patch patches/export-2.6.18-vanilla.patch patching file fs/open.c Hunk #1 succeeded at 653 (offset -155 lines). patching file fs/jbd/journal.c Hunk #1 succeeded at 73 (offset -1 lines). Applying patch patches/8kstack-2.6.12.patch patching file include/asm-i386/thread_info.h Applying patch patches/export-show_task-2.6.18-vanilla.patch patching file kernel/sched.c Hunk #1 succeeded at 4972 with fuzz 2 (offset 320 lines). Hunk #2 succeeded at 4685 with fuzz 2 (offset -13 lines). Applying patch patches/sd_iostats-2.6.22-vanilla.patch patching file drivers/scsi/Kconfig patching file drivers/scsi/scsi_proc.c patching file drivers/scsi/sd.c Hunk #3 succeeded at 1002 (offset 2 lines). Hunk #5 succeeded at 1762 (offset 2 lines). Hunk #7 succeeded at 2264 (offset 2 lines). patching file include/scsi/sd.h Applying patch patches/quota-large-limits-rhel5.patch patching file fs/dquot.c Hunk #1 succeeded at 1613 (offset 25 lines). Hunk #3 succeeded at 1665 (offset 25 lines). patching file fs/quota_v1.c patching file fs/quota_v2.c Hunk #8 succeeded at 481 with fuzz 2. patching file include/linux/dqblk_v2.h patching file include/linux/quota.h Hunk #1 succeeded at 150 (offset 2 lines). patching file include/linux/quotaio_v2.h Applying patch patches/md-mmp-unplug-dev.patch patching file drivers/md/raid5.c Now at patch patches/md-mmp-unplug-dev.patch # make menuconfig && make rpm && rpm -ivh /usr/src/redhat/RPMS/x86_64/ kernel-2.6.22.14-1.x86_64.rpm && mkinitrd -f /boot/ initrd-2.6.22.14.img 2.6.22.14 (at this point I''m able to update GRUB and reboot the system with the new kernel). # cd ../lustre-1.6.7 # ./configure --with-linux=/usr/src/redhat/BUILD/kernel-2.6.22.14 -- with-kernel-source-header=/usr/src/redhat/BUILD/kernel-2.6.22.14 && make rpms
Brian J. Murrell
2009-Feb-25 18:04 UTC
[Lustre-discuss] Building 1.6.7 fails on SL5 with kernel 2.6.22.14
On Wed, 2009-02-25 at 18:59 +0100, Vincenzo Spinoso wrote:> > I''ve restarted building from scratch, pacthing a fresh untarred > kernel, and now it works.Excellent. I am glad you are up and going now.> Thank you for your (fast) suggestion!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/20090225/9f33f0fb/attachment-0001.bin