Commit 73587639 authored by Kristian Feldsam's avatar Kristian Feldsam
Browse files

Migrate helper script - Try to speedup qemu img convert

Signed-off-by: Kristian Feldsam's avatarKristián Feldsam <>
parent 38eeceea
......@@ -77,7 +77,7 @@ subprocess.check_call('%s/sh/ %d %s' % (base_path, lun_no, wwn),
# covert qcow2 to raw directly to block device
print 'Convert qcow2 to raw and write to exported lun'
print subprocess.check_output('qemu-img convert -f qcow2 -O raw /var/data/tmp/%s /dev/mapper/3%s' % (name, wwn), shell=True)
print subprocess.check_output('qemu-img convert -p -t none -O raw /var/data/tmp/%s /dev/mapper/3%s' % (name, wwn), shell=True)
# flush volume
print 'Flushing LUN...'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment