⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test2.conf

📁 Linux Distributed Replication Block Device
💻 CONF
字号:
# testcase_1
# set both nodes secondary and afterwards both nodes primary (at the same time)

node node1 {
  addr  10.25.91.10;
  port  4000;
}

node node2 {
  addr  10.25.91.11;
  port  4000;
}

defaults {
  timeout  30;
  latency  0.05;
}

seq-commands {
  cmd 'drbdadm -- DDFFC66571C5E5CB::::1 set-gi {resource}', rc 0;
  cmd 'drbdadm up {resource}', rc 0;
  expected 'cs', state 'Connected', timeout 10;

  cmd 'drbdadm secondary {resource}', rc 0;
  expected 'st', state 'Secondary/Secondary', timeout 2;
	
  sleep 2;

  
  cmd 'drbdadm primary {resource}', rc 10;
  expected 'st', on node1, state 'Primary/Secondary', timeout 2;
  expected 'st', on node2, state 'Secondary/Primary', timeout 2;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -