WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-bugs

[Xen-bugs] [Bug 1411] New: (User created) Race between XEN and LVM leave

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 1411] New: (User created) Race between XEN and LVM leaves open logical volumes
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Tue, 27 Jan 2009 08:37:12 -0800
Delivery-date: Tue, 27 Jan 2009 08:37:17 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-bugs-request@lists.xensource.com?subject=help>
List-id: Xen Bugzilla <xen-bugs.lists.xensource.com>
List-post: <mailto:xen-bugs@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bugs@xxxxxxxxxxxxxxxxxx
Sender: xen-bugs-bounces@xxxxxxxxxxxxxxxxxxx
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1411

           Summary: (User created) Race between XEN and LVM leaves open
                    logical volumes
           Product: Xen
           Version: unspecified
          Platform: x86-64
        OS/Version: Linux-2.6
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Tools
        AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
        ReportedBy: pehrs@xxxxxx


I am running XEN (3.3.1_18494_03-1.8) on an OpenSUSE 11.1 system
(2.6.27.7-9-xen). I am using a storage based on LVM2 snapshots for the XEN
instances. Regularly I want to remove all the systems and create fresh systems
using snapshots. 

If I have 20 instances running and execute a simple script that does:

xm shutdown <20 instances>
and then directly
lvremove -f <20 related snapshots>

Something strange will happen in LVM. I get an error of the type: 

â??Can't remove open logical volumeâ??

for 2-4 of the snapshots that are left with an open reference. This makes
sense, as XEN might not have completed shutting down. However, this open
reference remains after xen completes shutdown and the instances are no longer
visible in xm list. The reference does not show up anywhere but in the
lvdisplay where the open counter is â??1â??. Fuser and similar commands does
not show it. 

This makes it impossible to remove the snapshot. To remove the open reference I
have to reboot the server or to recreate the xen instance and then shut it down
again.

Simply waiting a bit between the two commands, so the virtual instances
completes shutdown, is enough to prevent this from happening. I suspect that
trying to destroy the snapshot during the shutdown sequence somehow leaves the
open reference.

Trying to destroy the storage of a running system is never a good idea, but i
don't think it's good that  the volume is left open after the instance that was
using it is shut down.


-- 
Configure bugmail: 
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-bugs

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-bugs] [Bug 1411] New: (User created) Race between XEN and LVM leaves open logical volumes, bugzilla-daemon <=