fix bug in the lvcreate-all script.
[invirt/packages/invirt-remote.git] / files / usr / sbin / sipb-xen-lvm
index 72d3bdb..304e08d 100755 (executable)
@@ -58,7 +58,7 @@ elif subcommand == "lvcreate-all":
         check(re.match('^[A-Za-z0-9]+$', d.guest_device_name))
         machine = Machine.get(d.machine_id)
         check(re.match('^[A-Za-z0-9][A-Za-z0-9._-]*$', machine.name))
-        lvname = machine.name + "_" + d.guest_device_name
+        lvname = prefix + machine.name + "_" + d.guest_device_name
         if not os.path.exists("/dev/%s/%s" % (vg, lvname)):
             # LV doesn't exist
             print >>sys.stderr, "Creating LV %s..." % (lvname,)