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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.