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

📄 test4.conf

📁 Linux Distributed Replication Block Device
💻 CONF
字号:
#
# test3.conf
#
# turn off all disks and turn them on again after a while
#

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 primary {resource}', on node1, rc 0;
  expected 'st', on node1, state 'Primary/Secondary', timeout 2;
  sleep 2;

  cmd 'dmsetup supend {dm_device}', rc 50;
  expected 'st', state 'Secondary/Secondary', timeout 2;
  
  cmd 'dmsetup resume {dm_device}', rc 10;
  expected 'cs', state 'Connected', timeout 10;
  expected 'st', on node1, state 'Primary/Secondary', timeout 2;

}


⌨️ 快捷键说明

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