linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Alasdair G Kergon <agk@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Can't create snapshot
Date: Tue, 7 Aug 2007 21:35:12 +0100	[thread overview]
Message-ID: <20070807203512.GX2064@agk.fab.redhat.com> (raw)
In-Reply-To: <46B17A68.4070700@idmedia.com>

On Thu, Aug 02, 2007 at 08:32:08AM +0200, Falko Zurell wrote:
> I still have problems creating snapshots on my Ubuntu Linux box. Most of 
> the time, snapshots can't be created with an strange error message. I 
> startet the lvcreate with very verbose output, so you can see all the 
> gory details.
 
> #activate/activate.c:762   LV vg0/daily-snap-opt in use: not deactivating
> #lvcreate.c:772   Couldn't deactivate new snapshot.

> I don't have an idea why "deactivating" of the snapshot wont work and 
> what this for.
 
Usually a problem with your udev configuration.

lvm activates it temporarily to write to it, udev opens it, lvm tries
to remove it (before reconfiguration) but can't because udev is using it.
Either udev should not be opening it, or lvm should be waiting for udev to
finish the (pointless) stuff it wants to do, depending on your point of view.
There are ongoing discussions about changing the way lvm and udev interact to
fix this properly for the long term.

Meanwhile one simple workaround is to temporarily turn off udev while creating
the snapshot.  Another involves changing your udev configuration to totally
ignore such devices.

Alasdair
-- 
agk@redhat.com

      reply	other threads:[~2007-08-07 20:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-02  6:32 [linux-lvm] Can't create snapshot Falko Zurell
2007-08-07 20:35 ` Alasdair G Kergon [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070807203512.GX2064@agk.fab.redhat.com \
    --to=agk@redhat.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).