svn path=/trunk/scripts/; revision=1633
if 0 != subprocess.call(['lvcreate', '-L%sM' % str(disk.size), '-n', lvname, 'xenvg']):
success = False
if 0 != subprocess.call(['lvcreate', '-L%sM' % str(disk.size), '-n', lvname, 'xenvg']):
success = False
ssh = subprocess.Popen(['ssh', '-o', 'GSSAPIDelegateCredentials=no',
'torchwood-institute.mit.edu',
ssh = subprocess.Popen(['ssh', '-o', 'GSSAPIDelegateCredentials=no',
'torchwood-institute.mit.edu',
stdin=ssh.stdout)
if 0 != dd.wait():
success = False
stdin=ssh.stdout)
if 0 != dd.wait():
success = False
if 0 != ssh.wait():
success = False
if 0 != ssh.wait():
success = False
if not success:
restore_data(machine, dev_sess)
if not success:
restore_data(machine, dev_sess)