xen-drbd
diff xen-drbd-start.py @ 4:0b0a886abd08
+ xen-drbd fix
author | igor |
---|---|
date | Fri Sep 28 16:32:50 2007 +0300 (2007-09-28) |
parents | b6dc3480caae |
children | 1c7442c793a1 |
line diff
1.1 --- a/xen-drbd-start.py Thu Sep 27 18:56:29 2007 +0300 1.2 +++ b/xen-drbd-start.py Fri Sep 28 16:32:50 2007 +0300 1.3 @@ -19,6 +19,7 @@ 1.4 1.5 1.6 memory=mem_table[domain] 1.7 +vcpus=vcpus_table[domain] 1.8 1.9 disk=[] 1.10 i=0 1.11 @@ -27,7 +28,7 @@ 1.12 if disk_description.find(":") == -1: 1.13 disk.append('phy:/dev/drbd/%s,hda%s,w' % (domain,i) ) 1.14 else: 1.15 - disk.append('phy:/dev/drbd/%s,hda%s,w' % ((disk_description.split(':'))[0],i) ) 1.16 + disk.append('phy:/dev/drbd/%s,hda%s,w' % ((disk_description.split(':'))[1],i) ) 1.17 1.18 vif=[] 1.19 vbridges = vbridges_table[domain] 1.20 @@ -44,6 +45,7 @@ 1.21 print "kernel =", kernel 1.22 print "ramdisk =", ramdisk 1.23 print "memory =", memory 1.24 + print "vcpus =", vcpus 1.25 print "disk =", disk 1.26 print "vif =", vif 1.27 print "root =", root