# global section simply sets values explicitly # using the default values for hast replication memsync timeout 20 control uds:///var/run/hastctl pidfile /var/run/hastd.pid metaflush on # tell each system what to listen on on iscsi-0 { listen tcp4://10.128.50.1 } on iscsi-1 { listen tcp4://10.128.50.2 } # now, set up our resources # Note that since we don't have the second node # set up yet, we use remote none to get around # our timeout issues resource disk0 { on iscsi-0 { local /dev/da0 source tcp4://10.128.50.1 # remote tcp4://10.128.5.2 remote none } on iscsi-1 { local /dev/da0 source tcp4://10.128.50.2 remote tcp4://10.128.50.1 } } resource disk1 { on iscsi-0 { local /dev/da1 source tcp4://10.128.50.1 # remote tcp4://10.128.5.2 remote none } on iscsi-1 { local /dev/da1 source tcp4://10.128.50.2 remote tcp4://10.128.50.1 } } resource disk2 { on iscsi-0 { local /dev/da2 source tcp4://10.128.50.1 # remote tcp4://10.128.5.2 remote none } on iscsi-1 { local /dev/da2 source tcp4://10.128.50.2 remote tcp4://10.128.50.1 } } resource disk3 { on iscsi-0 { local /dev/da3 source tcp4://10.128.50.1 # remote tcp4://10.128.5.2 remote none } on iscsi-1 { local /dev/da3 source tcp4://10.128.50.2 remote tcp4://10.128.50.1 } } resource disk4 { on iscsi-0 { local /dev/da4 source tcp4://10.128.50.1 # remote tcp4://10.128.5.2 remote none } on iscsi-1 { local /dev/da4 source tcp4://10.128.50.2 remote tcp4://10.128.50.1 } } resource disk5 { on iscsi-0 { local /dev/da5 source tcp4://10.128.50.1 # remote tcp4://10.128.5.2 remote none } on iscsi-1 { local /dev/da5 source tcp4://10.128.50.2 remote tcp4://10.128.50.1 } } resource disk6 { on iscsi-0 { local /dev/da6 source tcp4://10.128.50.1 # remote tcp4://10.128.5.2 remote none } on iscsi-1 { local /dev/da6 source tcp4://10.128.50.2 remote tcp4://10.128.50.1 } } resource disk7 { on iscsi-0 { local /dev/da7 source tcp4://10.128.50.1 # remote tcp4://10.128.5.2 remote none } on iscsi-1 { local /dev/da7 source tcp4://10.128.50.2 remote tcp4://10.128.50.1 } } resource disk8 { on iscsi-0 { local /dev/da8 source tcp4://10.128.50.1 # remote tcp4://10.128.5.2 remote none } on iscsi-1 { local /dev/da8 source tcp4://10.128.50.2 remote tcp4://10.128.50.1 } } resource disk9 { on iscsi-0 { local /dev/da9 source tcp4://10.128.50.1 # remote tcp4://10.128.5.2 remote none } on iscsi-1 { local /dev/da9 source tcp4://10.128.50.2 remote tcp4://10.128.50.1 } }