By default lvm tools are built with O_DIRECT enabled if available, unless told otherwise (--disable-o_direct configure switch). This however breaks lvm2 on hppa, tested with lvm2-2.01.09 and -2.00.33. Reproducible: Always Steps to Reproduce: 1. emerge lvm2 2. pvcreate /dev/sda6 /dev/sdb1 3. pvscan -v, no physical volumes detected, vgcreate fails with no pvs found Actual Results: pvcreate /dev/sda6 /dev/sdb1 doesn't show any errors. hppa lvm2 # pvscan -v Wiping cache of LVM-capable devices Wiping internal VG cache Walking through all physical volumes No matching physical volumes found Expected Results: after adding use hppa && myconf="${myconf} --disable-o_direct" to the ebuild and reemerging: hppa lvm2 # pvscan -v Wiping cache of LVM-capable devices Wiping internal VG cache Walking through all physical volumes PV /dev/sda6 VG vg00 lvm2 [11.30 GB / 11.30 GB free] PV /dev/sdb1 VG vg00 lvm2 [16.96 GB / 16.96 GB free] Total: 2 [28.26 GB] / in use: 2 [28.26 GB] / in no VG: 0 [0 ] Possible drawback: configure: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up Portage 2.0.51.22-r1 (default-linux/hppa/2005.0, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.12.2-pa2 parisc) ================================================================= System uname: 2.6.12.2-pa2 parisc PA8600 (PCX-W+) Gentoo Base System version 1.6.12 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.10 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="hppa" AUTOCLEAN="yes" CBUILD="hppa2.0-unknown-linux-gnu" CFLAGS="-O2 -pipe -march=2.0" CHOST="hppa2.0-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -march=2.0" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="hppa berkdb crypt gdbm ncurses nls pam ssl tcpd userlocales userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Could you send a patch comparing your ebuild to the original? I will get this in.
Created attachment 63826 [details, diff] disables O_DIRECT support on hppa
Applied