Changeset 1716 for trunk


Ignore:
Timestamp:
Nov 18, 2008, 11:55:50 AM (16 years ago)
Author:
broder
Message:

I know this is the wrong answer, but doing lvchange -a n twice before
deleting an LV tends to make it less likely to error out

Location:
trunk/packages/invirt-remote-host
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-remote-host/debian/changelog

    r1630 r1716  
     1invirt-remote-host (0.0.8) unstable; urgency=low
     2
     3  * I know this is the wrong answer, but doing lvchange -a n twice before
     4    deleting an LV tends to make it less likely to error out
     5
     6 -- Evan Broder <broder@mit.edu>  Tue, 18 Nov 2008 11:55:22 -0500
     7
    18invirt-remote-host (0.0.7) unstable; urgency=low
    29
  • trunk/packages/invirt-remote-host/files/usr/sbin/invirt-lvm

    r1239 r1716  
    4545        print >>sys.stderr, "Error removing LV %s\n" % lvname
    4646        sys.exit(1)
     47    # I know this is the wrong answer, but sometimes the first
     48    # lvchange -a n fails for no particularly good reason, so this is
     49    # a pretty good workaround
     50    call(["/sbin/lvchange", "-a", "n", lvpath])
    4751    rv = call(["/sbin/lvchange", "-a", "n", lvpath])
    4852    if rv != 0:
Note: See TracChangeset for help on using the changeset viewer.