- Timestamp:
- Oct 9, 2007, 2:59:00 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/files/usr/sbin/sipb-xen-lvm
r146 r149 20 20 def ensureoff(machine): 21 21 # Make sure the machine is off, but we don't care about errors if it is already off. 22 rv = call(["/usr/sbin/xm", "destroy", prefix + machine] 22 rv = call(["/usr/sbin/xm", "destroy", prefix + machine]) 23 23 24 24 if subcommand == "lvremove": … … 28 28 print >>sys.stderr, "Error removing LV %s\n" %(lvname,) 29 29 sys.exit(1) 30 el seif subcommand == "lvresize":30 elif subcommand == "lvresize": 31 31 size = sys.argv[4] 32 32 ensureoff(machine) … … 35 35 print >>sys.stderr, "Error resizing LV %s\n" %(lvname,) 36 36 sys.exit(1) 37 el seif subcommand == "lvrename":37 elif subcommand == "lvrename": 38 38 newmachine = sys.argv[4] 39 39 newlvname = prefix + newmachine + "_" + disk … … 44 44 print >>sys.stderr, "Error renaming LV %s\n" %(lvname,) 45 45 sys.exit(1) 46 el seif subcommand == "lvcreate":46 elif subcommand == "lvcreate": 47 47 size = sys.argv[4] 48 48 rv = call(["/sbin/lvcreate", "-L", size + "M", "-n", lvname, vg]) … … 51 51 sys.exit(1) 52 52 53 el seif subcommand == "lvcreate-all":53 elif subcommand == "lvcreate-all": 54 54 from sipb_xen_database import * 55 55 import re
Note: See TracChangeset
for help on using the changeset viewer.