Toggle navigation
主页
工具
归档
标签
DRBD
0
无
2020-09-03 11:44:51
0
0
myron
DRBD源码编译: source http://oss.linbit.com/drbd/ ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-km make make install cd /etc/drbd.d/ Linux VI 命令 global_common.conf net { ## added by maguirun. protocol C; allow-two-primaries yes; } Linux VI 命令 r0.res ############## ## created by maguirun. resource r0 { on testdb3{ device /dev/drbd1; disk /dev/sdb; address 10.3.2.243:7789; meta-disk internal; } on testdb4{ device /dev/drbd1; disk /dev/sdb; address 10.3.2.85:7789; meta-disk internal; } } ################ drbdadm create-md r0 drbdsetup primary /dev/drbd1 --force=yes fdisk /dev/sdb 突然想起:partx -a /dev/sda 原来的/dev/sda4已经在内核中有记录了。 于是乎就执行partx -d /dev/sda 将/dev/sda4的记录删掉。(直接partx -d /dev/sda4出错) 再执行partx -a /dev/sda (此时/dev/sda4就没有出现) 再进行格式化,就OK了。 ____________________________________________________________ DRBD allows you to reconfigure resources while they are operational. To that end, make any necessary changes to the resource configuration in /etc/drbd.conf, synchronize your /etc/drbd.conf file between both nodes, issue the drbdadm adjust <resource> command on both nodes.
Postgres-XL
Pgpool
0
赞
1 人读过
新浪微博
微信
更多分享
腾讯微博
QQ空间
人人网
文档导航