xen-drbd

changeset 4:0b0a886abd08

+ xen-drbd fix
author igor
date Fri Sep 28 16:32:50 2007 +0300 (2007-09-28)
parents 3ce02620180c
children 1c7442c793a1
files eb.py xen-drbd-start.py
line diff
     1.1 --- a/eb.py	Fri Sep 28 16:08:02 2007 +0300
     1.2 +++ b/eb.py	Fri Sep 28 16:32:50 2007 +0300
     1.3 @@ -37,6 +37,22 @@
     1.4  	'apt'   :128,
     1.5  }
     1.6  
     1.7 +vcpus_table={
     1.8 +	'dozor'	:4, 
     1.9 +	'dns'	:2, 
    1.10 +	'gw' 	:1, 
    1.11 +	'igw'	:1, 
    1.12 +	'pgw' 	:1, 
    1.13 +	'ldap'	:1, 
    1.14 +	'mail'	:4, 
    1.15 +	'proxy'	:4, 
    1.16 +	'samba'	:4, 
    1.17 +	'vpn'	:4,
    1.18 +	'uucp'	:4,
    1.19 +	'vvidd'	:4,
    1.20 +	'apt'   :2,
    1.21 +}
    1.22 +
    1.23  lvm_vg_name="TURBO"
    1.24  disk_table={
    1.25  	'gw' 		: ['drbd1'], 
     2.1 --- a/xen-drbd-start.py	Fri Sep 28 16:08:02 2007 +0300
     2.2 +++ b/xen-drbd-start.py	Fri Sep 28 16:32:50 2007 +0300
     2.3 @@ -19,6 +19,7 @@
     2.4  
     2.5  
     2.6  memory=mem_table[domain]
     2.7 +vcpus=vcpus_table[domain]
     2.8  
     2.9  disk=[]
    2.10  i=0
    2.11 @@ -27,7 +28,7 @@
    2.12  	if disk_description.find(":") == -1:
    2.13  		disk.append('phy:/dev/drbd/%s,hda%s,w' % (domain,i) )
    2.14  	else:
    2.15 -		disk.append('phy:/dev/drbd/%s,hda%s,w' % ((disk_description.split(':'))[0],i) )
    2.16 +		disk.append('phy:/dev/drbd/%s,hda%s,w' % ((disk_description.split(':'))[1],i) )
    2.17  
    2.18  vif=[]
    2.19  vbridges = vbridges_table[domain]
    2.20 @@ -44,6 +45,7 @@
    2.21      print "kernel =", kernel
    2.22      print "ramdisk =", ramdisk
    2.23      print "memory =", memory
    2.24 +    print "vcpus =", vcpus
    2.25      print "disk =", disk
    2.26      print "vif =", vif
    2.27      print "root =", root