rv = call(["lvcreate", "-L", str(d.size) + "M", "-n", lvname, vg])
if rv != 0:
print >>sys.stderr, "Error creating LV %s\n" %(lvname,)
rv = call(["lvcreate", "-L", str(d.size) + "M", "-n", lvname, vg])
if rv != 0:
print >>sys.stderr, "Error creating LV %s\n" %(lvname,)