View previous topic :: View next topic |
Author |
Message |
Exhaust n00b
Joined: 26 Jul 2009 Posts: 24 Location: Umeå, Sweden
|
Posted: Sun Jul 26, 2009 10:39 pm Post subject: device-mapper is blocking LVM2 |
|
|
Hi there,
Tried to emerge --update world today and i got into problems with device-mapper and LVM2.
sadly i unmerged them both then emerged device-mapper again, then tried LVM2 but now i can't emerge LVM2 at all
this is my emerge attempt:
Quote: |
portage # emerge --pretend --verbose lvm2
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] sys-fs/lvm2-2.02.49-r1 USE="lvm1 readline static -clvm (-cman) (-selinux)" 0 kB
[blocks B ] sys-fs/device-mapper ("sys-fs/device-mapper" is blocking sys-fs/lvm2-2.02.49-r1)
Total: 1 package (1 new), Size of downloads: 0 kB
Conflict: 1 block (1 unsatisfied)
* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.
('ebuild', '/', 'sys-fs/lvm2-2.02.49-r1', 'merge') pulled in by
lvm2
('installed', '/', 'sys-fs/device-mapper-1.02.28', 'nomerge') pulled in by
sys-fs/device-mapper required by world
|
I've got a little desperate now because if i have a power failure or reboot I can't get to my LVM volumes
Please, any help would be great.
thanks
/Fredrik |
|
Back to top |
|
|
Exhaust n00b
Joined: 26 Jul 2009 Posts: 24 Location: Umeå, Sweden
|
Posted: Sun Jul 26, 2009 11:42 pm Post subject: |
|
|
I'm a bit confused here...is evice-mapper no longer required as a separate package with LVM2? Is the same functions included in LVM2 package now?
If I run "emerge lvm2" it never says it needs the device-mapper package. Is everything ok then?
thanks
/Fredrik |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Mon Jul 27, 2009 1:00 am Post subject: |
|
|
I have sys-fs/lvm2-2.02.49 installed but no device-mapper. Don't seem to need it.
You probably have device-mapper in your world file unless there is something else (maybe even an older version of lvm) pulling it in.
If you boot your CD and chroot your box, then unmerge device-mapper and emerge lvm2, you should be ok.
Remember to add lvm to rc-update add lvm boot for lvm2. |
|
Back to top |
|
|
Exhaust n00b
Joined: 26 Jul 2009 Posts: 24 Location: Umeå, Sweden
|
Posted: Mon Jul 27, 2009 1:32 am Post subject: |
|
|
thanks for the reply.
Sounds very good that you don't have device mapper and it works.
I unmerged my old device mapper, and my old lvm2. Then i emerged lvm2 again to the newest version sys-fs/lvm2-2.02.49-r1.
No complaints from the lvm install, and no dependencies to device-mapper reported
I was afraid it still needs the device-mapper, but something was wrong as it wasn't complaining about it missing.
I guess your reply helps me to collect the courage to try and reboot without the device-mapper tomorrow, to see if it's still working If no one says otherwise until then that is :p
I already have lvm added to boot from my previous version.
thanks
/Fredrik |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Mon Jul 27, 2009 3:21 am Post subject: |
|
|
hrmmm
Code: |
laptop01 ~ # equery belongs device-mapper
[ Searching for file(s) device-mapper in *... ]
sys-kernel/gentoo-sources-2.6.29-r5 (/usr/src/linux-2.6.29-gentoo-r5/Documentation/device-mapper)
sys-fs/device-mapper-1.02.24-r1 (/etc/init.d/device-mapper)
sys-fs/device-mapper-1.02.24-r1 (/etc/conf.d/device-mapper)
|
Code: |
laptop01 ~ # equery depends device-mapper
[ Searching for packages depending on device-mapper... ]
sys-fs/cryptsetup-1.0.6-r2 (>=sys-fs/device-mapper-1.00.07-r1)
sys-fs/lvm2-2.02.36 (>=sys-fs/device-mapper-1.02.24)
|
maybe you can figure out what's up with equery provided by gentoolkit package? |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Mon Jul 27, 2009 3:32 am Post subject: |
|
|
wait
your USE flags have lvm1
do
Code: |
USE="-lvm1 lvm2" emerge -pv lvm2
|
EDIT:
If i were to hazard a guess, I'd say your device-mapper being built with USE="lvm1" is blocking the merge ov LVM2
I am no export on portage, so take that with a grain of salt, but it seems to make sense in my weird little world.
Do this:
Code: |
quickpkg device-mapper
|
(for backup purposes)
edit your make.conf and remove lvm1 if it's in there
then
Code: |
emerge -C device-mapper
echo "sys-fs/device-mapper lvm2" >> /etc/portage/package.use
emerge device-mapper lvm2
|
Note that you currently have LVM running without the LVM2 package installed, yes? So your LVM is done differently.
I would look around and see if you can dig up some doc on what's required to move to LVM2 from LVM1
What i posted above may be sufficient, but as LVM is fairly new to me too (though I love it!) I cannot guarantee my advice won't break things |
|
Back to top |
|
|
Exhaust n00b
Joined: 26 Jul 2009 Posts: 24 Location: Umeå, Sweden
|
Posted: Mon Jul 27, 2009 11:54 am Post subject: |
|
|
I actually already run LVM2 on the machine, I'm only trying to upgrade to a newer version. My previous install of device-mapper and LVM2 was done with the same USE flags as now.
By the looks of things they have included a device-mapper function in the newer LVM2 packages!?
LVM2 package no longer asks for, or tries to install the device-mapper package.
I have unmerged both my old device-mapper and LVM2, then emerged the newest LVM2 package. That works fine and no errors or dependency problems.
It just makes me confused that I can't find any info on that LVM2 no longer needs the device-mapper package.
Another ting that bothers me is that if a system with LVM2 no longer can have the device-mapper installed. Then what if i have other things that need the device-mapper? I don't but maybe others do.
I have not yet tried to reboot my system to se if LVM still works.
thanks
/Fredrik |
|
Back to top |
|
|
Exhaust n00b
Joined: 26 Jul 2009 Posts: 24 Location: Umeå, Sweden
|
Posted: Mon Jul 27, 2009 11:57 am Post subject: |
|
|
I "think" the lvm USE flag is there only for backward compatibility. To make lvm2 to handle old lvm volumes!?
Thanks
/Fredrik |
|
Back to top |
|
|
depontius Advocate
Joined: 05 May 2004 Posts: 3526
|
Posted: Mon Jul 27, 2009 12:51 pm Post subject: |
|
|
Mike Hunt wrote: | Remember to add lvm to rc-update add lvm boot for lvm2. |
Can you explain a little further...
I've been running lvm2 for years, and never added it to boot. In fact, I installed a machine last week and never added lvm to boot, and was a little surprised to see the initscript there, but the system was running and booting just fine. It's worth mentioning that on this particular machine, /, /usr, and /var are on regular partitions, but /home and /media are in lvm2. All mount just fine.
Perhaps it's simplest to ask if I'm really using lvm2, or just lvm? I first set this system up using Gentoo HowTo's several years ago, and I thought it was lvm2.
How do I tell?
Does it matter? _________________ .sigs waste space and bandwidth |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Mon Jul 27, 2009 1:34 pm Post subject: |
|
|
depontius wrote: | Mike Hunt wrote: | Remember to add lvm to rc-update add lvm boot for lvm2. |
Can you explain a little further...
I've been running lvm2 for years, and never added it to boot. In fact, I installed a machine last week and never added lvm to boot, and was a little surprised to see the initscript there, but the system was running and booting just fine. It's worth mentioning that on this particular machine, /, /usr, and /var are on regular partitions, but /home and /media are in lvm2. All mount just fine.
Perhaps it's simplest to ask if I'm really using lvm2, or just lvm? I first set this system up using Gentoo HowTo's several years ago, and I thought it was lvm2.
How do I tell?
Does it matter? |
as I understand it, that depends on what revision of baselayout you're currently on
for baselayout 1.x you don't need to add it to boot
for baselayout 2.x you do
(check the LVM2 guide on the doc pages) |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Mon Jul 27, 2009 1:38 pm Post subject: |
|
|
Exhaust wrote: | I actually already run LVM2 on the machine, I'm only trying to upgrade to a newer version. My previous install of device-mapper and LVM2 was done with the same USE flags as now.
|
Quote: |
ebuild N ] sys-fs/lvm2-2.02.49-r1 USE="lvm1 readline static -clvm (-cman) (-selinux)" 0 kB
|
Note the "N" - this is a brand new package that has never before been installed
If it were an upgrade, it would have been marked with "U" |
|
Back to top |
|
|
Exhaust n00b
Joined: 26 Jul 2009 Posts: 24 Location: Umeå, Sweden
|
Posted: Mon Jul 27, 2009 3:22 pm Post subject: |
|
|
Quote: |
Note the "N" - this is a brand new package that has never before been installed
If it were an upgrade, it would have been marked with "U" |
Yes but at the time I issued that command I had already unmerged both device-mapper and lvm2.
that was my attempt to install it again.
My first upgrade attempt was similar, but i guess it said U when i did it the first time.
thanks
/Fredrik[/quote] |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Mon Jul 27, 2009 3:25 pm Post subject: |
|
|
Exhaust wrote: | Quote: |
Note the "N" - this is a brand new package that has never before been installed
If it were an upgrade, it would have been marked with "U" |
Yes but at the time I issued that command I had already unmerged both device-mapper and lvm2.
that was my attempt to install it again.
My first upgrade attempt was similar, but i guess it said U when i did it the first time.
thanks
/Fredrik | [/quote]
ahhh, ok, that makes more sense now.
I'll think on it some more and get back to you, as I'm sure some others will too |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Mon Jul 27, 2009 3:25 pm Post subject: |
|
|
I have no lvm* USE flag manually set anywhere, so that lvm1 flag must be set by portage.
Code: | emerge -pv lvm2 device-mapper
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] sys-fs/lvm2-2.02.49-r1 USE="lvm1 readline static -clvm (-cman) (-selinux)" 0 kB
[ebuild N ] sys-fs/device-mapper-1.02.28 USE="(-selinux)" 199 kB |
emerge wrote: | * Messages for package sys-fs/lvm2-2.02.49-r1:
* Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with
* their static versions. If you need the static binaries,
* you must append .static the filename!
* USE flag nocman is deprecated and replaced
* with the cman USE flag.
*
* USE flags clvm and cman are masked
* by default and need to be unmasked to use them
*
* Rebuild your genkernel initramfs if you are using lvm
* lvm volumes are no longer automatically created for
* baselayout-2 users. If you are using baselayout-2, be sure to
* run: # rc-update add lvm boot
* Do NOT add it if you are using baselayout-1 still.
|
Code: | # df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 20G 4.8G 15G 25% /
/dev/root 20G 4.8G 15G 25% /
rc-svcdir 1.0M 96K 928K 10% /lib/rc/init.d
udev 10M 68K 10M 1% /dev
shm 442M 4.0K 442M 1% /dev/shm
/dev/mapper/vg-portage 2.0G 530M 1.4G 28% /usr/portage
/dev/mapper/vg-distfiles 4.0G 2.1G 1.8G 54% /usr/portage/distfiles
/dev/mapper/vg-home 2.7G 974M 1.8G 36% /home
/dev/mapper/vg-tmp 2.0G 3.1M 1.9G 1% /tmp
/dev/mapper/vg-vartmp 6.0G 333M 5.3G 6% /var/tmp |
Works for me. |
|
Back to top |
|
|
Exhaust n00b
Joined: 26 Jul 2009 Posts: 24 Location: Umeå, Sweden
|
Posted: Mon Jul 27, 2009 3:34 pm Post subject: |
|
|
Yes The USE flag must be set by default because I haven't changed anything either.
How strange that it works for you to install device-mapper AND lvm2
seems to be the same versions too.
I'm really confused??
thanks
/Fredrik |
|
Back to top |
|
|
Exhaust n00b
Joined: 26 Jul 2009 Posts: 24 Location: Umeå, Sweden
|
Posted: Mon Jul 27, 2009 3:41 pm Post subject: |
|
|
Anyone knows if this could be a problem caused by some error in my ebuild database?
Could
resolve these kind of issues?
thanks
/Fredrik |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Mon Jul 27, 2009 4:03 pm Post subject: |
|
|
Exhaust wrote: | Yes The USE flag must be set by default because I haven't changed anything either.
How strange that it works for you to install device-mapper AND lvm2
seems to be the same versions too.
I'm really confused??
thanks
/Fredrik |
No, no, I don't have lvm2 and device-mapper installed. This shows that lvm2 is installed but device-mapper is not installed.
ebuild R = already installed
ebuild N = not installed
Code: | emerge -pv lvm2 device-mapper
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] sys-fs/lvm2-2.02.49-r1 USE="lvm1 readline static -clvm (-cman) (-selinux)" 0 kB
[ebuild N ] sys-fs/device-mapper-1.02.28 USE="(-selinux)" 199 kB |
Sorry if I wasn't clear. |
|
Back to top |
|
|
Exhaust n00b
Joined: 26 Jul 2009 Posts: 24 Location: Umeå, Sweden
|
Posted: Mon Jul 27, 2009 4:38 pm Post subject: |
|
|
Ohh yes I saw that now I wasn't looking hard enough.
But that means you are running LVM2 without the use och device-mapper wich could be good news for me then. ?
It means there are a possibility my LVM2 will still work.
BUT I'm still confused that you don't get the same block as me
I still get this
Code: |
# emerge --pretend --verbose device-mapper
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] sys-fs/device-mapper-1.02.28 USE="(-selinux)" 0 kB
[blocks B ] sys-fs/device-mapper ("sys-fs/device-mapper" is blocking sys-fs/lvm2-2.02.49-r1)
Total: 1 package (1 new), Size of downloads: 0 kB
Conflict: 1 block (1 unsatisfied)
* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.
('ebuild', '/', 'sys-fs/device-mapper-1.02.28', 'merge') pulled in by
device-mapper
('installed', '/', 'sys-fs/lvm2-2.02.49-r1', 'nomerge') pulled in by
sys-fs/lvm2 required by world
For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked
|
thanks
/Fredrik |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Mon Jul 27, 2009 4:52 pm Post subject: |
|
|
Oh, sure I get that too, but since I don't have it or need it it's a non-issue.
Code: | # emerge --pretend --verbose device-mapper
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] sys-fs/device-mapper-1.02.28 USE="(-selinux)" 199 kB
[blocks B ] sys-fs/device-mapper ("sys-fs/device-mapper" is blocking sys-fs/lvm2-2.02.49-r1)
Total: 1 package (1 new), Size of downloads: 199 kB
Conflict: 1 block (1 unsatisfied)
* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.
('ebuild', '/', 'sys-fs/device-mapper-1.02.28', 'merge') pulled in by
device-mapper
('installed', '/', 'sys-fs/lvm2-2.02.49-r1', 'nomerge') pulled in by
sys-fs/lvm2 required by @world
For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked
| Sorry again if I wasn't clear enough. |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Mon Jul 27, 2009 4:54 pm Post subject: |
|
|
this should probably be moved to "Portage and Programming"
mods? anyone? I don't think this is getting enough of the right kind of visibility here |
|
Back to top |
|
|
Exhaust n00b
Joined: 26 Jul 2009 Posts: 24 Location: Umeå, Sweden
|
Posted: Mon Jul 27, 2009 5:11 pm Post subject: |
|
|
Yes I thought about putting it there too, but I found 1 or 2 old lvm/device-mapper threads in this category thats why i placed it here.
Please move it if thats more appropriate
Thanks
/Fredrik |
|
Back to top |
|
|
Exhaust n00b
Joined: 26 Jul 2009 Posts: 24 Location: Umeå, Sweden
|
Posted: Mon Jul 27, 2009 5:13 pm Post subject: |
|
|
Mike Hunt wrote: | Oh, sure I get that too, but since I don't have it or need it it's a non-issue.
Code: | # emerge --pretend --verbose device-mapper
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] sys-fs/device-mapper-1.02.28 USE="(-selinux)" 199 kB
[blocks B ] sys-fs/device-mapper ("sys-fs/device-mapper" is blocking sys-fs/lvm2-2.02.49-r1)
Total: 1 package (1 new), Size of downloads: 199 kB
Conflict: 1 block (1 unsatisfied)
* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.
('ebuild', '/', 'sys-fs/device-mapper-1.02.28', 'merge') pulled in by
device-mapper
('installed', '/', 'sys-fs/lvm2-2.02.49-r1', 'nomerge') pulled in by
sys-fs/lvm2 required by @world
For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked
| Sorry again if I wasn't clear enough. |
Oh great, so you think I should dare to reboot now and hope it still works? |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Mon Jul 27, 2009 5:54 pm Post subject: |
|
|
Exhaust wrote: | Yes I thought about putting it there too, but I found 1 or 2 old lvm/device-mapper threads in this category thats why i placed it here.
Please move it if thats more appropriate
Thanks
/Fredrik |
no worries, I don't think any of us mind.
I just want to make sure your issue gets attention from the right people, and with something as critical as this I don't think we can afford to *guess*. Best to not make any changes, and wait on somebody who *knows* what is correct - I personally do not, and am making guesses (marginally-educated ones at that) |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Mon Jul 27, 2009 6:04 pm Post subject: |
|
|
Exhaust wrote: | Oh great, so you think I should dare to reboot now and hope it still works? |
Sure, if mine works, there is no reason yours shouldn't, it's not a guess it is a proven fact.
And now thanks to our cach0rr0's alacrity we have a confirmation that "with lvm2 2.02.45, the device-mapper library is built-in instead of supplied by sys-fs/device-mapper".
So by all means go ahead and reboot. |
|
Back to top |
|
|
|