resource web { on node1.a.org { device /dev/drbd0; disk /dev/sda5; address 192.168.0.41:7789; meta-disk internal; } on node2.a.org { device /dev/drbd0; disk /dev/sda5; address 192.168.0.42:7789; meta-disk internal; } }<pre name="code" class="cpp">//复制web.res 和 global-common.conf 到 node2.a.org scp -r /etc/drbd.conf /etc/drbd.d node2:/etc
4、在两个节点上初始化已定义的资源并启动服务:1)初始化资源,在Node1和Node2上分别执行:# drbdadm create-md web
2)启动服务,在Node1和Node2上分别执行:
/etc/init.d/drbd start
3)查看启动状态:
# cat /proc/drbd