Hello,

same thing here.

Environment Ubuntu 7.04:
----------------------------------
Linux titan 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007 i686 GNU/Linux
ii  dmsetup                             1.02.08-1ubuntu10                   The 
Linux Kernel Device Mapper userspace library
ii  libdevmapper1.02                    1.02.08-1ubuntu10                   The 
Linux Kernel Device Mapper userspace library
ii  libvolume-id0                       108-0ubuntu4                        
volume identification library
ii  lvm2                                2.02.06-2ubuntu9                    The 
Linux Logical Volume Manager
ii  mdadm                               2.5.6-7ubuntu5                      
tool to administer Linux MD arrays (software RAID)
ii  udev                                108-0ubuntu4                        
rule-based device node and kernel event manager
ii  volumeid                            108-0ubuntu4                        
volume identification tool

Example:
+ lvcreate -A n -s -n opt_0.backup -L 1G /dev/vgsys/opt
  LV vgsys/opt_0.backup in use: not deactivating
  Couldn't deactivate new snapshot.
+ sleep 1
+ lvremove -A n -f /dev/vgsys/opt_0.backup
+ lvcreate -A n -s -n opt_0.backup -L 1G /dev/vgsys/opt
=> one second after first lvcreate failed it worked fine

I had same problem with openSuSE 10.1 very often 
(see https://bugzilla.novell.com/show_bug.cgi?id=178321), 
with Ubuntu it's less often but from time to it also happens.

So I use this workaround in my backup script:
        i=$VGRETRYC
        sleepint=0
        while ! lvcreate -A n -s -n "$snapname" -L 1G "$VGBASE/$lvname"; do
                sleep $((sleepint=sleepint+1))
                lvremove -A n -f "$VGBASE/$snapname"
                let i-- || break
        done
        test $i -lt 0 && return 1

Kind regards,
Roland

-- 
lvm snapshot failed
https://bugs.launchpad.net/bugs/122867
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to