Hi, with genkernel --multipath option and fixed gen_initramfs.sh (see http://bugs.gentoo.org/show_bug.cgi?id=284589) the resulting initramfs contains the tools multipath, kpartx, scsi_id, dmsetup, mpath_prio_* The tools have missing libraries e.g. libaio, ... Reproducible: Always Steps to Reproduce: 1. genkernel --multipath --menuconfig initramfs 2. mkdir /tmp/irfs; cd /tmp/irmfs; zcat /boot/initramfs | cpio -i; cd sbin 3. ./multipath Actual Results: missing dependencies to libaio, librt, libpthread, linux-vdso Expected Results: running multipath-tools: multipath, kpartx, scsi_id, mpath_prio_* Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 x86_64) ================================================================= System uname: Linux-2.6.30-gentoo-r4-x86_64-Intel-R-_Xeon-R-_CPU_X5260_@_3.33GHz-with-gentoo-1.12.11.1 Timestamp of tree: Fri, 11 Sep 2009 01:45:01 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.6.2-r1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.mneisen.org/ http://de-mirror.org/distro/gentoo/ " LDFLAGS="-Wl,-O1" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="acl amd64 berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog mmx mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
This should also be fixed now in git. I made sure that libpthread,librt, libaio, etc are copied now. Vsdo should automatically be there as its a virtual dynamic shared object that's part of the kernel itself. Please test it out when you can and let me know but for now I'm closing this as resolved. Thank you for submitting this to me so I was aware =).
hi Joshua, which git repo shall I use? I could not find the right one. cheers Carsten
Hi Joshua, retest on a freshly setup gentoo, with news git from wolf31o2.org (as tgz!, could not git clone myself) did not work :-( gen_initramfs.sh@147 has issues with for i in /usr/lib/{libaio*}. I guess it should be /usr/lib/libaoi* instead. see genkernel output below. Cheers Carsten gentoobugfix genkernel # genkernel --kernname=bf284589 --multipath --lvm initramfs * Gentoo Linux Genkernel; Version 3.4.10.906 * Running with options: --kernname=bf284589 --multipath --lvm initramfs * Linux Kernel 2.6.30-gentoo-r4 for x86_64... * busybox: >> Using cache * initramfs: >> Initializing... * >> Appending base_layout cpio data... * >> Appending auxilary cpio data... * >> Appending busybox cpio data... * >> Appending lvm cpio data... * LVM: Adding support (using local static binaries)... * >> Appending multipath cpio data... * Multipath support being added cp: cannot stat `/usr/lib/{libaio*}': No such file or directory * ERROR: Could not copy file /usr/lib/{libaio*} for MULTIPATH * -- Grepping log... -- * >> Appending multipath cpio data... * Multipath support being added * Gentoo Linux Genkernel; Version 3.4.10.906 * Running with options: --kernname=bf284589 --multipath --lvm initramfs * ERROR: Could not copy file /usr/lib/{libaio*} for MULTIPATH * -- End log... -- * Please consult /var/log/genkernel.log for more information and any * errors that were reported above. * Report any genkernel bugs to bugs.gentoo.org and * assign your bug to genkernel@gentoo.org. Please include * as much information as you can in your bug report; attaching * /var/log/genkernel.log so that your issue can be dealt with effectively. * * Please do *not* report compilation failures as genkernel bugs! *
pushed a new fix, I know why it didn't work I should of done it without the brackets as it is libaio.*. Sorry for you having trouble getting the git. I'll mention it to Chris that you were not able to just do a git clone, or have an easy way to get it before a new release is rolled at some point in the future. Sorry to ask you to test once more but could you try once more as I don't actually use genkernel myself. Just out of curiosity as well since you seem to use the multipath setup, would you make use of an iscsi option as well?
no worries, about the git repo. I have found several clones of genkernel repo. but they were in miserable states. finally i have taken a look into the ebuild. there it says where the main git repo is located. I have found a tgz download and used that instead of a git clone. I am currently compiling a gentoo kernel for several hundred IBM blades HS22 as a cloud. We have a multipathed SAN fabric IBM DS6000 based. Personally and currently I do not have any demand for booting on an iSCSI device. but how knows what will be tomorrow? I will retest on a fresh setup tomorrow Cheers Carsten
Thanks for the update Carsten. I used to work for a company that was an IBM shop with DS4800's and HS/JS 21-22 model blades with a few thousand blades so wish you luck with the project. As always if there's more that would be helpful etc let us know.