Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263243 - lvm2 version bump to 2.02.45
Summary: lvm2 version bump to 2.02.45
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 265599
  Show dependency tree
 
Reported: 2009-03-21 13:16 UTC by Caleb Tennis (RETIRED)
Modified: 2009-12-11 08:52 UTC (History)
4 users (show)

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


Attachments
Patch for lvm2-2.02.45 compileage (lvm-2.02.45-dmeventd.patch,455 bytes, patch)
2009-03-22 13:10 UTC, Caleb Tennis (RETIRED)
Details | Diff
New config file patch (lvm.conf-2.02.45.patch,2.59 KB, patch)
2009-03-22 13:18 UTC, Caleb Tennis (RETIRED)
Details | Diff
Replacement device-mapper-export patch (lvm2-2.02.45-device-mapper-export-format.patch,10.08 KB, patch)
2009-03-22 13:28 UTC, Caleb Tennis (RETIRED)
Details | Diff
The ebuild itself (lvm2-2.02.45.ebuild,5.42 KB, text/plain)
2009-03-22 13:31 UTC, Caleb Tennis (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Caleb Tennis (RETIRED) gentoo-dev 2009-03-21 13:16:09 UTC
I've been playing with this, and it's a bit complicated, but I wanted to track progress here and get your input on changes/design or find out if you're already working on this.
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2009-03-21 13:21:23 UTC
The first few obvious notes here:

device-mapper is now included in lvm2.  I'm guessing we just want to build it all as the same package vs. having two separate ones, and use a blocker.  The only hangup to this is that lilo has a dep on device-mapper.

The major patch for device-mapper and the major patch for lvm2 don't apply cleanly.  The former is one I'm not familiar with, but the latter is just a config file change so it should be easy to sort out.

The build itself fails when using "static".  I'm building without for now, but will investigate how to sort that issue out too, if necessary.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-03-21 21:47:20 UTC
Adding agk as the upstream maintainer.
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2009-03-22 13:10:15 UTC
Created attachment 185856 [details, diff]
Patch for lvm2-2.02.45 compileage

The current build of lvm2 doesn't work when you add the --static_link option, as there's a problem with dmeventd.  It doesn't built the libdevmapper-event.a static library by default, which causes issues when linkage happens later.  The attached patch fixes this.
Comment 4 Caleb Tennis (RETIRED) gentoo-dev 2009-03-22 13:18:34 UTC
Created attachment 185857 [details, diff]
New config file patch

New config file patch
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2009-03-22 13:28:47 UTC
Created attachment 185859 [details, diff]
Replacement device-mapper-export patch

The original patch from the device-mapper program mostly applies, this is just the cleanup of it for this package.
Comment 6 Caleb Tennis (RETIRED) gentoo-dev 2009-03-22 13:31:05 UTC
Created attachment 185860 [details]
The ebuild itself

The fixed up lvm2 ebuild.  Note that this requires you have copied over the startup/stop and other scripts from the device-mapper ebuild directory as well, as it's now all encompassed in this single package.
Comment 7 Caleb Tennis (RETIRED) gentoo-dev 2009-03-22 15:16:49 UTC
To note, the necessity of the -dmeventd patch shows up on a new build.  If you already have lvm2/device-mapper installed on the system, it won't manifest itself because it will link against the system libraries.
Comment 8 Xake 2009-03-29 18:18:44 UTC
Seems to work nice here, just do not forget to add "|| die" to all newins and doins, as currently it does not fail if it fails to find the files you should copy in from device-mapper/files.
Comment 9 Alessandro Zarrilli 2009-03-29 20:40:10 UTC
As a side note, lvm2 versions >=2.02.40 care about the underlying md device (software RAID), aligning physical extents to RAID chunks: this way filesystem parameters as XFS sunit and swidth can be really effective. People report huge benefits from proper alignment. It is possible to do it manually in versions <2.02.40 with --metadatasize pvcreate parameter, but few people care or know about it, and it's not so trivial which value to use. So please try to stabilize 2.02.45, or at least 2.02.42 that is already in the tree.
Comment 10 Xake 2009-03-29 21:05:39 UTC
also maybe add --enable-pkgconfig

Not much using it yet, but I do not think it hurts, and for us experimenting with devicekit-disks and similar it has its advantages.
Comment 11 Caleb Tennis (RETIRED) gentoo-dev 2009-04-01 11:09:05 UTC
I'm going to commit (with fixes noted) in the next few days unless anyone objects.
Comment 12 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-04-01 11:41:25 UTC
I was hoping that agk would chime in if it was a bad release to add, as he's told us to hold off before on certain LVM releases.
Comment 13 Caleb Tennis (RETIRED) gentoo-dev 2009-04-09 23:00:42 UTC
seems to be the version other distros are using, and it's playing with my XFS lvs nicely.  Going to give it a shot, send flames my way.

Committed.
Comment 14 Seemant Kulleen 2009-04-10 13:07:48 UTC
By having an integrated device-mapper, this screws with cryptsetup and also evms -- thereby preventing one from having lvms2 installed in conjunction with the others.
Comment 15 Caleb Tennis (RETIRED) gentoo-dev 2009-04-10 13:15:02 UTC
Seemant, what's the fix?
Comment 16 Xake 2009-04-10 13:20:45 UTC
For me the fix was to unmerge device-mapper and change the dependencies of those packages that like cryptsetup depends on device-mapper.

|| ( ( >=sys-fs/device-mapper-1.00.07-r1 ) ( >=sys-fs/lvm2-2.02.45 ) )

is what is in my cryptsetup ebuild in my overlay. I have yet to find a problem with that setup.
Comment 17 Doug Goldstein (RETIRED) gentoo-dev 2009-04-10 14:46:18 UTC
Caleb,

You broke the tree. There are several items that still explicitly depend on device-mapper without having the following:

|| ( ( >=sys-fs/lvm2-2.02.45 ) ( >=sys-fs/device-mapper-1.00.07-r1 ) )

Additionally, the above the the proper way to do it to resolve issues going forward.

I'm masking the new lvm2 until you can fix up the tree, Caleb.
Comment 18 Caleb Tennis (RETIRED) gentoo-dev 2009-04-10 17:05:29 UTC
All issues should be fixed.  Leaving open for more feedback.
Comment 19 Andreas Sturmlechner gentoo-dev 2009-04-11 16:42:17 UTC
here, emerging lvm2-2.02.45 fails with the following errors:

ln: creating symbolic link `./lvmcache.h': File exists
ln: creating symbolic link `./errors.h': File exists  
/bin/sed -e "s/#VERSION#/2.02.45 (2009-03-03)/" lvm.8.in > lvm.8
ln: creating symbolic link `./toolcontext.h': File exists 
/bin/sed -e "s/#VERSION#/2.02.45 (2009-03-03)/" lvmchange.8.in > lvmchange.8
ln: creating symbolic link `./config.h': File exists  
ln: /bin/sed -e "s/#VERSION#/2.02.45 (2009-03-03)/" lvmdiskscan.8.in > lvmdiskscan.8
creating symbolic link `./defaults.h': File exists
ln: creating symbolic link `./btree.h': File exists
ln: /bin/sed -e "s/#VERSION#/2.02.45 (2009-03-03)/" lvmdump.8.in > lvmdump.8
creating symbolic link `./lvm-types.h': File exists
ln: creating symbolic link `./str_list.h': File exists
/bin/sed -e "s/#VERSION#/2.02.45 (2009-03-03)/" lvreduce.8.in > lvreduce.8  
ln: creating symbolic link `./dev-cache.h': File exists 
ln: creating symbolic link `./device.h': File exists  
ln: creating symbolic link `./display.h': File exists 
ln: creating symbolic link `./filter-composite.h': File exists  
ln: creating symbolic link `./filter-md.h': File exists 
ln: creating symbolic link `./filter-persistent.h': File exists 
ln: creating symbolic link `./filter-regex.h': File exists
ln: creating symbolic link `./filter-sysfs.h': File exists
ln: creating symbolic link `./filter.h': File exists  
ln: creating symbolic link `./format1.h': File exists 
ln: creating symbolic link `./format_pool.h': File exists
Comment 20 Andreas Sturmlechner gentoo-dev 2009-04-11 16:46:58 UTC
(In reply to comment #19)
> here, emerging lvm2-2.02.45 fails with the following errors:
> 

fixed, by looking up the other bug report about .45 and temporarily setting MAKEOPTS="-j1" for the emerge. ;)
Comment 21 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-04-12 20:36:40 UTC
This is already in the tree and the makeopts stuff is resolved.
Comment 22 Oleg Gawriloff 2009-12-11 08:52:26 UTC
(In reply to comment #1)
> The first few obvious notes here:
> 
> device-mapper is now included in lvm2.  I'm guessing we just want to build it
> all as the same package vs. having two separate ones, and use a blocker.  The
> only hangup to this is that lilo has a dep on device-mapper.
Parted is depends on device-mapper too.