Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 193811 - LVM can't create snapshots w/ sys-fs/udev-114
Summary: LVM can't create snapshots w/ sys-fs/udev-114
Status: RESOLVED DUPLICATE of bug 189404
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-25 22:21 UTC by Mike Williams
Modified: 2007-09-26 06:22 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Williams 2007-09-25 22:21:34 UTC
Ever since upgrading from sys-fs/udev-104-r12 to sys-fs/udev-114 I've been unable to make LVM snapshots.
I use snapshots to backup my Xen VMs from dom0, and have been doing so in this way for months.

Since the update it seems almost all snapshot lvcreates "fail" like this:
# /sbin/lvcreate -L2G --quiet -pr -s -n ${lv}_backup ${lv}
  LV vgxen/${lv}_backup in use: not deactivating
  Couldn't deactivate new snapshot.
# lvscan | grep ${lv}
  ACTIVE            '${lv}' [3.00 GB] inherit
  ACTIVE            '${lv}_backup' [2.00 GB] inherit

Annoyingly this is an "almost always" failure, sometimes the lvcreate works!
The resultant LV when it fails is not a snapshot (as shown above), but appears to be a regular LV, naturally with no filesystem. Luckily for me this is a good thing, as the failure to mount the snapshot is caught preventing the backup from being screwed up.

I'm seeing exactly the same problem on multiple servers, which have all had all config files updated, and udevd restarted separately as they can't be rebooted easily.

This exact same problem has been seen by multiple distributions over the last year or so from my googling, so why Gentoo is only seeing it now is beyond me.
A rather hackish stopgap "solution" which has worked for me is this:
http://www.scalix.com/forums/viewtopic.php?p=34069#34069


Portage 2.1.3.9 (hardened/amd64/multilib, gcc-3.4.6, glibc-2.5-r4, 2.6.18-xen x86_64)
=================================================================
System uname: 2.6.18-xen x86_64 Dual-Core AMD Opteron(tm) Processor 2214
Timestamp of tree: Thu, 20 Sep 2007 21:00:01 +0000
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.61
sys-devel/automake:  1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=opteron -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages/opteron"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/xen"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 apache2 bash-completion berkdb cgi cjk cli cracklib crypt ctype curl expat extraengine fastbuild fastcgi force-cgi-redirect ftp gd gdbm gencertdaily gpm hardened hardenedphp hash hpn iconv idn imap ioemu iproute2 ipv6 justify memlimit midi mpm-worker mysql mysqli ncurses nls noauthcram nptl nptlonly pam pcre pdo perl pic posix postgres pygrub python readline reflection ruby screen session simplexml snmp soap sockets spell spl sqlite sse sse2 ssl status tcpd threads tidy tokenizer truetype unicode urandom xml xmlreader xmlrpc xmlwriter xorg xsl zip zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-09-26 06:22:43 UTC

*** This bug has been marked as a duplicate of bug 189404 ***