root / trunk / shell / c-i-a-b.common @ 26
Historique | Voir | Annoter | Télécharger (4,4 ko)
1 | 17 | storres | # ST - 2012-03-09 |
---|---|---|---|
2 | 16 | storres | # Constants that no one should not change. |
3 | 18 | storres | CONST_NULL_DISK_SIZE=0G # For several configuration files. |
4 | 21 | storres | CONST_NO_DHCP="NO_DHCP" |
5 | 23 | storres | CONST_FRONT_END_TEMPLATE_NAME="front-end.cfg" |
6 | 3 | storres | # |
7 | 18 | storres | # Constant that may change with another Xen version. |
8 | 23 | storres | CONST_XEN_BRIDGE_PREFIX="bridge=" |
9 | 23 | storres | CONST_XEN_DHCP_STANZA="dhcp ='dhcp'" |
10 | 23 | storres | CONST_XEN_CONFIG_DIR="/etc/xen" |
11 | 21 | storres | CONST_XEN_DOM0_CPUS_ALL="(dom0-cpus 0)" |
12 | 21 | storres | CONST_XEN_DOM0_NAME=Domain-0 |
13 | 23 | storres | CONST_XEN_IP_PREFIX="ip=" |
14 | 23 | storres | CONST_XEN_MAC_PREFIX="mac=" |
15 | 21 | storres | CONST_XEN_NOSWAP="noswap = 1" # For /etc/xen-tools/xen-tools.conf. |
16 | 21 | storres | CONST_XEN_NETWORK_SCRIPT_KEYWORD=network-script # For /etc/xen/xend-config.sxp. |
17 | 24 | storres | CONST_XEN_SYSTEM_DISK_ROOT_DEVICE="/dev/xvda1 ro" |
18 | 23 | storres | CONST_XEN_VIF_STANZA_POSTFIX="' ]" |
19 | 23 | storres | CONST_XEN_VIF_STANZA_PREFIX="vif = [ '" |
20 | 18 | storres | # |
21 | 16 | storres | # Common user defined configuration variables |
22 | 16 | storres | # |
23 | 18 | storres | CLUSTER_ARCH=amd64 |
24 | 21 | storres | CLUSTER_BRIDGE_NAME=internal |
25 | 18 | storres | CLUSTER_BRIDGE_SCRIPT=network-bridge-internal |
26 | 22 | storres | CLUSTER_BRIDGE_STANZA="($CONST_NETWORK_SCRIPT_KEYWORD $CLUSTER_BRIDGE_SCRIPT)" |
27 | 25 | storres | CLUSTER_DOMAIN_NAME=ciab.lip.ens-lyon.fr |
28 | 22 | storres | CLUSTER_EXTERNAL_ADDRESSES_BY_DHCP=1 |
29 | 23 | storres | CLUSTER_EXTERNAL_MAC_PREFIX="00:16:3E:33:A6:" |
30 | 25 | storres | CLUSTER_EXTERNAL_DOMAIN_NAME=lip.ens-lyon.fr |
31 | 18 | storres | CLUSTER_IMAGE=full |
32 | 25 | storres | CLUSTER_MAC_ADDRESS_PREFIX="00:16:3E:0F:6A" |
33 | 21 | storres | CLUSTER_NOSWAP="$CONST_XEN_NOSWAP" |
34 | 23 | storres | CLUSTER_STATIC_EXTERNAL_PREFIX="140.77.15" |
35 | 3 | storres | CLUSTER_STATIC_NETWORK_PREFIX="192.168.1" |
36 | 18 | storres | CLUSTER_SWAP_SIZE=$CONST_NULL_DISK_SIZE |
37 | 23 | storres | # |
38 | 21 | storres | COMPUTE_NODE_BRIDGE=$CLUSTER_BRIDGE_NAME |
39 | 3 | storres | COMPUTE_NODE_CPUS_FILE=compute-nodes-cpus |
40 | 3 | storres | COMPUTE_NODE_DISK_MOUNT_POINT=/mnt/compute-node-system-disk |
41 | 16 | storres | COMPUTE_NODE_INTERFACES_TEMPLATE=interfaces.compute-node |
42 | 3 | storres | COMPUTE_NODE_KERNEL=/boot/vmlinuz-`uname -r` |
43 | 3 | storres | COMPUTE_NODE_MAX_NUM=250 |
44 | 3 | storres | COMPUTE_NODE_MEMORY=3072 |
45 | 23 | storres | COMPUTE_NODE_MODEL_EXTERNAL_MAC_ADDRESS="${CLUSTER_EXTERNAL_MAC_PREFIX}01" |
46 | 3 | storres | COMPUTE_NODE_MODEL_STATIC_NETWORK_POSTFIX=252 |
47 | 21 | storres | COMPUTE_NODE_MODEL_STATIC_IP_EXTERNAL= |
48 | 23 | storres | COMPUTE_NODE_MODEL_HOST_NAME="tamadi-1-cnm" |
49 | 3 | storres | COMPUTE_NODE_NAME_PREFIX="compute-node-" |
50 | 23 | storres | COMPUTE_NODE_RAMDISK=/boot/initrd.img-`uname -r` |
51 | 3 | storres | COMPUTE_NODE_STATIC_NETWORK_PREFIX=$CLUSTER_STATIC_NETWORK_PREFIX |
52 | 23 | storres | COMPUTE_NODE_SWAP_DISK_POSTFIX="-swap" |
53 | 23 | storres | COMPUTE_NODE_SWAP_DISK_PREFIX="compute-node-" |
54 | 23 | storres | COMPUTE_NODE_SWAP_DISK_SIZE=1G |
55 | 23 | storres | SWAP_DISK_VOLUME_GROUP=/dev/vg_fast |
56 | 25 | storres | # |
57 | 3 | storres | DHCP_HOSTSFILE_BASENAME=dhcp-hostsfile |
58 | 25 | storres | # |
59 | 18 | storres | DOM0_CPUS_LIST="0 4" |
60 | 18 | storres | DOM0_CPUS_NUM=2 |
61 | 18 | storres | DOM0_CPUS_CLAUSE="(dom0-cpus $DOM0_CPUS_NUM)" |
62 | 21 | storres | FRONT_END_CPUS_LIST="8 12 16" |
63 | 25 | storres | FRONT_END_EXTERNAL_INTERFACE_STATIC_NETMASK=255.255.255.0 |
64 | 25 | storres | FRONT_END_EXTERNAL_INTERFACE_STATIC_NETWORK=140.77.15.0 |
65 | 25 | storres | FRONT_END_EXTERNAL_INTERFACE_STATIC_GATEWAY=140.77.15.1 |
66 | 25 | storres | FRONT_END_EXTERNAL_INTERFACE_STATIC_BROADCAST=140.77.15.255 |
67 | 26 | storres | FRONT_END_EXTERNAL_INTERFACE_STATIC_DNS_NAMESERVERS="140.77.1.32 140.77.167.2" |
68 | 25 | storres | FRONT_END_EXTERNAL_INTERFACE_STATIC_DNS_SEARCH="lip.ens-lyon.fr ens-lyon.fr resam.ens-lyon.fr" |
69 | 23 | storres | FRONT_END_EXTERNAL_MAC_ADDRESS="${CLUSTER_EXTERNAL_MAC_PREFIX}02" |
70 | 23 | storres | FRONT_END_HOME_DISK=front-end-home-disk |
71 | 23 | storres | FRONT_END_HOME_DISK_FILE_SYSTEM=ext3 |
72 | 23 | storres | #FRONT_END_HOME_DISK_SIZE=512G |
73 | 24 | storres | FRONT_END_HOME_DISK_SIZE=5G |
74 | 17 | storres | FRONT_END_HOME_VOLUME_GROUP=vg_slow |
75 | 17 | storres | FRONT_END_HOME_VOLUME_GROUP_DEVICE="/dev/$FRONT_END_HOME_VOLUME_GROUP" |
76 | 23 | storres | FRONT_END_HOST_NAME="tamadi-1-fe" |
77 | 21 | storres | FRONT_END_INTERFACES_TEMPLATE=interfaces.front-end |
78 | 21 | storres | FRONT_END_KERNEL=/boot/vmlinuz-`uname -r` |
79 | 24 | storres | FRONT_END_MEMORY=8192 # Must be in Mb for Xen 4.0 |
80 | 23 | storres | FRONT_END_STATIC_NETWORK_POSTFIX=251 |
81 | 23 | storres | FRONT_END_CLUSTER_STATIC_IP="$CLUSTER_STATIC_NETWORK_PREFIX.$FRONT_END_STATIC_NETWORK_POSTFIX" |
82 | 23 | storres | FRONT_END_EXTERNAL_STATIC_IP="$CLUSTER_STATIC_NETWORK_PREFIX.$FRONT_END_STATIC_NETWORK_POSTFIX" |
83 | 21 | storres | FRONT_END_RAMDISK=/boot/initrd.img-`uname -r` |
84 | 16 | storres | FRONT_END_SWAP_DISK="frontend-swap" |
85 | 17 | storres | #FRONT_END_SWAP_DISK_SIZE=$CONST_NULL_DISK_SIZE # 0G means no swap disk. |
86 | 17 | storres | FRONT_END_SWAP_DISK_SIZE=1G # 0G means no swap disk. |
87 | 21 | storres | FRONT_END_SWAP_VOLUME_GROUP=vg_fast |
88 | 21 | storres | FRONT_END_SWAP_VOLUME_GROUP_DEVICE="/dev/$FRONT_END_SWAP_VOLUME_GROUP" |
89 | 16 | storres | FRONT_END_SYSTEM_DISK="frontend-system-disk" |
90 | 23 | storres | #FRONT_END_SYSTEM_DISK_SIZE=46G |
91 | 23 | storres | FRONT_END_SYSTEM_DISK_SIZE=10G |
92 | 16 | storres | FRONT_END_SYSTEM_DISK_FILE_SYSTEM=ext3 |
93 | 16 | storres | FRONT_END_SYSTEM_DISK_MOUNT_POINT=/mnt/frontend-system-disk |
94 | 17 | storres | FRONT_END_SYSTEM_VOLUME_GROUP=vg_fast |
95 | 17 | storres | FRONT_END_SYSTEM_VOLUME_GROUP_DEVICE="/dev/$FRONT_END_SYSTEM_VOLUME_GROUP" |
96 | 21 | storres | FRONT_END_VCPUS_NUM=3 |
97 | 3 | storres | HOSTS_FILE_BASENAME=hosts |
98 | 3 | storres | SYSTEM_DISK_CLONE_POSTFIX="-disk" |
99 | 3 | storres | SYSTEM_DISK_CLONE_PREFIX=$COMPUTE_NODE_NAME_PREFIX |
100 | 3 | storres | SYSTEM_DISK_CLONE_SIZE=20G # Half of the master size. |
101 | 3 | storres | SYSTEM_DISK_FILE_SYSTEM=ext3 |
102 | 16 | storres | SYSTEM_DISK_LOGICAL_VOLUME=/dev/vg_slow |
103 | 3 | storres | SYSTEM_DISK_MASTER=$SYSTEM_DISK_LOGICAL_VOLUME/compute-node-model-disk |
104 | 3 | storres | TEMPLATES_DIR=templates |
105 | 3 | storres | USERS_HOME_DISK="users-home-disk" |
106 | 3 | storres | USERS_HOME_DISK_SIZE=40G |