The sNow! domain configuration file (domains.conf) provides a table of parameters for each sNow! domain, including the associated roles which define the services provided by each domain (see active-domains.conf) and also the network parameters.
This file is generated by executing the snow init
command, but it can be modified to accommodate site specific requirements.
Do it now, and then run:
snow init
When you run snow init it not only creates the domains.conf file, it also:
- Creates the NFS configuration (if required) : ${SNOW_CONF}/system_files/etc/exports.d/snow.exports
- Creates domains.conf : ${SNOW_CONF}/system_files/etc/domains.conf
- It updates /etc/hosts with the compute nodes defined in the snow.conf : ${SNOW_CONF}/system_files/etc/static_hosts
- It updates /etc/ssh/ssh_known_hosts
- It sets up /etc/ssh/shosts.equiv
- It sets up the default /etc/ssh/ssh_config
On the domains.conf file the first column contains the hostname of the domain, the second column contains the role or list or roles associated with the domain. The following columns provides information regarding the network configuration such as the network bridge, gateway, netmask, IP, etc.
scenario A
for your network configuration, be aware that, by default, the secondary network is not setup. If you need to expose a service to the public network, you need to update the ip_vif1
field with an static IP address or with dhcp
. The default value is none
.Like in active-domains.conf, each domain can have one or more roles. In the case of multiple roles, roles MUST be separated with a colon and without any space in between. See examples below. If a domain can have multiple roles, each role will be executed in the order defined in this file. More information regarding key sNow! roles is available in active-domains.conf man pages.
- hostname
- role
- vif0
- ip_vif0
- br_vif0
- mac_vif0
- masq_vif0
- gw_vif0
- vif1
- ip_vif1
- br_vif1
- mac_vif1
- masq_vif1
- gw_vif1
The following lines represent a typical example of domains.conf configuration file:
#-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------#
# hostname role vif0 ip_vif0 br_vif0 mac_vif0 masq_vif0 gw_vif0 vif1 ip_vif1 br_vif1 mac_vif1 masq_vif1 gw_vif1 #
#-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------#
snow01 snow eth0 10.1.0.1 xsnow0 76:fd:31:9e:01:01 255.255.0.0 10.1.0.1 eth1 none xpub0 76:fd:31:9e:01:02 dhcp
snow02 snow eth0 10.1.0.2 xsnow0 76:fd:31:9e:02:01 255.255.0.0 10.1.0.1 eth1 none xpub0 76:fd:31:9e:02:02 dhcp
deploy01 deploy eth0 10.1.0.3 xsnow0 76:fd:31:9e:03:01 255.255.0.0 10.1.0.1 eth1 none xpub0 76:fd:31:9e:03:02 dhcp
ldap01 ldap-master eth0 10.1.0.4 xsnow0 76:fd:31:9e:04:01 255.255.0.0 10.1.0.1 eth1 none xpub0 76:fd:31:9e:04:02 dhcp
syslog01 syslog eth0 10.1.0.5 xsnow0 76:fd:31:9e:05:01 255.255.0.0 10.1.0.1 eth1 none xpub0 76:fd:31:9e:05:02 dhcp
proxy01 proxy eth0 10.1.0.6 xsnow0 76:fd:31:9e:06:01 255.255.0.0 10.1.0.1 eth1 none xpub0 76:fd:31:9e:06:02 dhcp
slurmdb01 slurmdbd eth0 10.1.0.7 xsnow0 76:fd:31:9e:07:01 255.255.0.0 10.1.0.1 eth1 none xpub0 76:fd:31:9e:07:02 dhcp
slurm01 slurmctld-master eth0 10.1.0.8 xsnow0 76:fd:31:9e:08:01 255.255.0.0 10.1.0.1 eth1 none xpub0 76:fd:31:9e:08:02 dhcp
monitor01 monitor eth0 10.1.0.9 xsnow0 76:fd:31:9e:09:01 255.255.0.0 10.1.0.1 eth1 none xpub0 76:fd:31:9e:09:02 dhcp
login01 login,cfs eth0 10.1.0.10 xsnow0 76:fd:31:9e:10:01 255.255.0.0 10.1.0.1 eth1 none xpub0 76:fd:31:9e:10:02 dhcp
systemctl restart nfs-kernel-server