Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
lvm2 conflict
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
CoderMan
Apprentice
Apprentice


Joined: 10 Aug 2009
Posts: 173

PostPosted: Mon May 03, 2010 7:24 pm    Post subject: lvm2 conflict Reply with quote

I ran emerge -va lvm2 and received this output. Could somebody suggest the safest way to resolves this (while updating to the latest version of lvm2)?

Code:
[ebuild     U ] sys-apps/util-linux-2.16.2 [2.14.2] USE="crypt nls perl%* -loop-aes -old-linux (-selinux) -slang (-uclibc) -unicode*" 3,440 kB
[uninstall    ] sys-fs/e2fsprogs-1.41.3-r1  USE="nls"
[blocks b     ] <sys-fs/e2fsprogs-1.41.8 ("<sys-fs/e2fsprogs-1.41.8" is blocking sys-apps/util-linux-2.16.2)
[uninstall    ] sys-libs/e2fsprogs-libs-1.41.3-r1  USE="nls"
[blocks b     ] <sys-libs/e2fsprogs-libs-1.41.8 ("<sys-libs/e2fsprogs-libs-1.41.8" is blocking sys-apps/util-linux-2.16.2)
[ebuild     U ] sys-fs/lvm2-2.02.56-r2 [2.02.36] USE="lvm1 readline static -clvm (-cman) (-selinux)" 804 kB
[blocks B     ] sys-fs/device-mapper ("sys-fs/device-mapper" is blocking sys-fs/lvm2-2.02.56-r2)

Total: 2 packages (2 upgrades, 2 uninstalls), Size of downloads: 4,243 kB
Conflict: 3 blocks (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.56-r2', 'merge') pulled in by
    lvm2


Code:
 # emerge --info
Portage 2.1.8.3 (hardened/linux/x86/10.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r6-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-1.12.11.1
Timestamp of tree: Mon, 03 May 2010 18:15:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.2-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -mtune=generic -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=core2 -mtune=generic -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.arcticnetwork.ca/pub/gentoo/ "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="acl alsa bash-completion battery berkdb bindist bzip2 cli cpufreq cracklib crypt cups cxx dbus dri emacs gdbm gpm hal hardened iconv lm_sensors mmx modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pic pppd python readline reflection session spl sse sse2 ssl sysfs tcpd threads urandom x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1    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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

_________________
Like computers but don't like programming? Then you missed the whole point.
frigidcode.com
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Mon May 03, 2010 8:27 pm    Post subject: Reply with quote

Updating every once in awhile is really good idea.

device-mapper has been merged upstream into (no longer that) recent lvm2.
Back to top
View user's profile Send private message
CoderMan
Apprentice
Apprentice


Joined: 10 Aug 2009
Posts: 173

PostPosted: Mon May 03, 2010 9:18 pm    Post subject: Reply with quote

VoidMage wrote:
Updating every once in awhile is really good idea.

device-mapper has been merged upstream into (no longer that) recent lvm2.


I want to update now, but I am afraid to unmerge device-mapper first, as my system is built on LVM (and luks). If I unmerge the device-mapper package, will my system continue to run so I can merge the lvm2 update?
_________________
Like computers but don't like programming? Then you missed the whole point.
frigidcode.com
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Mon May 03, 2010 10:58 pm    Post subject: Reply with quote

yes, it should

you only need the userland tools to set up the devices - once the devices are there and in use you can unmerge the userland tools (until you need to set them up again next time you boot)

I ran that update the same way ages ago and it worked without problems
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Tue May 04, 2010 2:53 am    Post subject: Reply with quote

To elaborate a bit on the warning that frostschutz implied, you will probably need to get the new lvm2 package built before your next reboot. So, when you are ready, remove the old device-mapper package and then immediately install the updated lvm2. On the other hand, if your system has / in lvm, then you probably use an initramfs with an onboard lvm2, and it will not be harmed by your removal of device-mapper.
Back to top
View user's profile Send private message
cayenne
l33t
l33t


Joined: 17 Oct 2002
Posts: 945
Location: New Orleans

PostPosted: Sat Oct 02, 2010 4:27 pm    Post subject: Same boat.. Reply with quote

Hu wrote:
To elaborate a bit on the warning that frostschutz implied, you will probably need to get the new lvm2 package built before your next reboot. So, when you are ready, remove the old device-mapper package and then immediately install the updated lvm2. On the other hand, if your system has / in lvm, then you probably use an initramfs with an onboard lvm2, and it will not be harmed by your removal of device-mapper.


I think I'm in the same predicament as this.

I've been working the problem from my other post..and think I'm at this point.

Can someone elaborate on what is meant here by having "/" in your lvm2? I think from my error messages I have this?
Quote:
emerge -p lvm2

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild U ] sys-libs/glibc-2.11.2 [2.8_p20080602-r1] USE="gd*"
[ebuild U ] sys-devel/binutils-2.20.1-r1 [2.18-r3]
[ebuild U ] sys-apps/util-linux-2.17.2 [2.14.2] USE="perl%*"
[uninstall ] sys-fs/e2fsprogs-1.41.3-r1
[blocks b ] <sys-fs/e2fsprogs-1.41.8 ("<sys-fs/e2fsprogs-1.41.8" is blocking sys-apps/util-linux-2.17.2)
[uninstall ] sys-libs/e2fsprogs-libs-1.41.3-r1
[blocks b ] <sys-libs/e2fsprogs-libs-1.41.8 ("<sys-libs/e2fsprogs-libs-1.41.8" is blocking sys-apps/util-linux-2.17.2)
[ebuild U ] sys-fs/udev-151-r4 [124-r2] USE="-devfs-compat% -extras% -old-hd-rules% -test%"
[ebuild U ] sys-fs/lvm2-2.02.73-r1 [2.02.36]
[blocks b ] <sys-fs/lvm2-2.02.45 ("<sys-fs/lvm2-2.02.45" is blocking sys-fs/udev-151-r4)
[blocks B ] sys-fs/device-mapper ("sys-fs/device-mapper" is blocking sys-fs/udev-151-r4)
[blocks B ] sys-fs/device-mapper ("sys-fs/device-mapper" is blocking sys-fs/lvm2-2.02.73-r1)

* 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.73-r1', 'merge') pulled in by
lvm2


What is "initramfs"...?

Thanks in advance,

cayenne :?:
_________________
Light travels faster than sound. This is why some people appear bright until you hear them speak.........
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Sat Oct 02, 2010 5:54 pm    Post subject: Re: Same boat.. Reply with quote

cayenne wrote:
Can someone elaborate on what is meant here by having "/" in your lvm2? I think from my error messages I have this?
Having "/" on lvm2 means that your root filesystem is on a device node managed by LVM, rather than being directly on a partition. The output you have supplied is inconclusive on this point because it is talking about something completely different.
cayenne wrote:
What is "initramfs"...?
If you have to ask, you probably do not have one and do not need to worry about it. It stands for initial RAM filesystem. It is required for booting exotic configurations that the kernel cannot mount unassisted. To be sure, check the output of zgrep INITR /proc/config.gz. If you get any output, post it here. If you get no output, you are probably not using an initramfs and you have a different problem.
Back to top
View user's profile Send private message
cayenne
l33t
l33t


Joined: 17 Oct 2002
Posts: 945
Location: New Orleans

PostPosted: Sat Oct 02, 2010 6:18 pm    Post subject: Re: Same boat.. Reply with quote

Hu wrote:
cayenne wrote:
Can someone elaborate on what is meant here by having "/" in your lvm2? I think from my error messages I have this?
Having "/" on lvm2 means that your root filesystem is on a device node managed by LVM, rather than being directly on a partition. The output you have supplied is inconclusive on this point because it is talking about something completely different.
cayenne wrote:
What is "initramfs"...?
If you have to ask, you probably do not have one and do not need to worry about it. It stands for initial RAM filesystem. It is required for booting exotic configurations that the kernel cannot mount unassisted. To be sure, check the output of zgrep INITR /proc/config.gz. If you get any output, post it here. If you get no output, you are probably not using an initramfs and you have a different problem.


Thank you for the reply.
Ok..results were:
Quote:
zgrep INITR /proc/config.gz
gzip: /proc/config.gz: No such file or directory


So, looks like I do not have initramfs.

Ok..looking at my fstab:cat /etc/fstab

Quote:

# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs> <mountpoint> <type> <opts> <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1 /boot ext3 noauto,noatime 1 2
/dev/sda3 / ext3 noatime 0 1
/dev/sda2 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0

#Logical Volumes
/dev/vg/usr /usr xfs noatime 0 2
/dev/vg/home /home xfs noatime 0 2
/dev/vg/var /var xfs noatime 0 2
/dev/vg/opt /opt xfs noatime 0 2
/dev/vg/tmp /tmp xfs noatime 0 2
/dev/vg/download /download xfs noatime 0 2


# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0


And fdisk shows:

Quote:
fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sda1 * 1 9 72261 83 Linux
/dev/sda2 10 72 506047+ 82 Linux swap / Solaris
/dev/sda3 73 316 1959930 83 Linux
/dev/sda4 317 121601 974221762+ 8e Linux LVM


So, it appears (I've not looked at this machine in awhile) I do not have my / on LVM.

So, with respect to the earlier posts in this thread...it should be safe for me to emerge --unmerge device-mapper
so that I can emerge -u lvm2?

Thanks again for the advice!!

cayenne
_________________
Light travels faster than sound. This is why some people appear bright until you hear them speak.........
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum