Changeset 1462 for trunk/packages


Ignore:
Timestamp:
Oct 31, 2008, 2:00:19 PM (16 years ago)
Author:
broder
Message:

Add some additional documentation on how the sysvm disk locking works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-xen-config/debian/invirt-xen-config.init

    r1460 r1462  
    4040   
    4141    if lvchange -a n "$DISK" >/dev/null 2>&1 && lvchange -a ey "$DISK" >/dev/null 2>&1; then
    42         # If we can lock on the VM's disk, then the VM isn't running
     42        # If we can disable and then re-enable the VMs disk, then the
     43        # VM can't be running. If the lvchange -a ey succeeds, then we
     44        # have an exclusive lock across the cluster on enabling the
     45        # disk, which avoids the potential race condition of two hosts
     46        # starting a VM at the same time
    4347        [ "$VERBOSE" != no ] && log_daemon_msg "Starting sysvm $VM"
    4448        xm create "sysvms/$VM" >/dev/null
Note: See TracChangeset for help on using the changeset viewer.