Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 898 - LVM Update
Summary: LVM Update
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Donny Davies (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-28 16:09 UTC by Thilo Bangert (RETIRED) (RETIRED)
Modified: 2013-03-06 02:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Makes zvols a recognized block type for lvm. (zvol_patch,327 bytes, patch)
2013-03-06 02:21 UTC, Karl Hakimian
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2002-02-28 16:09:53 UTC
Hi,

today i tried to setup a LVM on a ataraid device. This failed because, LVM-1.0.1-rc4 does not 
support ataraid devices. i atteched a new lvm-user ebuild which updates LVM to 1.0.3 (which 
includes support for ataraid devices)... it's basically a copy+paste of the old one.
it compiled nicely on my homemachine - and i will use it with the gentoo bootdisc tommorrow...


thanks
Thilo



===
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Daniel Robbins <drobbins@gentoo.org>
# /space/gentoo/cvsroot/gentoo-x86/sys-apps/lvm-user/lvm-user-1.0.1_rc4-r1.ebuild,v 1.1 
2002/02/08 16:56:29 drobbins Exp

NV=1.0.3
S=${WORKDIR}/LVM/${NV}
DESCRIPTION="User-land utilities for LVM (Logical Volume Manager) software"
SRC_URI="ftp://ftp.sistina.com/pub/LVM/1.0/lvm_${NV}.tar.gz"
HOMEPAGE="http://www.mosix.org"

DEPEND="virtual/glibc"

KS=/usr/src/linux

src_compile() {
        cd ${S}
        #This ebuild doesn't like this opt setting; closes bug #598
        export CFLAGS="${CFLAGS/-fomit-frame-pointer/}"
        [ -f "Makefile" ] && ( make clean || die )
        CFLAGS="${CFLAGS} -I${KS}/include" \
                ./configure --prefix=/ \
                --mandir=/usr/share/man \
                --with-kernel_dir="${KS}" || die
        make || die
}

src_install () {
        cd ${S}/tools
        CFLAGS="${CFLAGS} -I${KS}/include" \
                make install \
                -e prefix=${D} \
                mandir=${D}/usr/share/man \
                sbindir=${D}/sbin \
                libdir=${D}/lib || die
        #no need for a static library in /lib
        dodir /usr/lib
        mv ${D}/lib/*.a ${D}/usr/lib
}
Comment 1 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2002-03-07 18:20:05 UTC
if you change NV=1.0.2you would get a version that matches kernel 2.4.18 (if i am not mistaken)regardsThilo
Comment 2 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2002-04-05 16:03:47 UTC
in kernel 2.4.19 is lvm 1.0.3 included - its time to update the tools, i'd say
Comment 3 Donny Davies (RETIRED) gentoo-dev 2002-04-05 17:04:14 UTC
okay, thanks for the tip.  i'll get to it soon.

you're saying the ebuild you pasted in here works perfectly?
i dont use LVM so Ill have to take your word for it.
i hope you've tested it?  I dont want to commit something to
cvs that is not tested, or that is going to break very soon.

please email me privately your perfectly working, fully tested
ebuild as an attachment.  im not happy with cutting and pasting
text from the bugzilla.

thanks :)
Comment 4 Donny Davies (RETIRED) gentoo-dev 2002-04-09 22:44:09 UTC
done
Comment 5 Karl Hakimian 2013-03-06 02:21:40 UTC
Created attachment 341064 [details, diff]
Makes zvols a recognized block type for lvm.

Trivial patch to make lvm recognize zvols
Comment 6 Karl Hakimian 2013-03-06 02:22:12 UTC
Oops. Added patch to wrong bug. Sorry