[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] Can't create snapshot



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]