[問題]ubuntu上建立drbd的問題

作者: mmxmmxmmx (***********先生)   2014-11-11 17:23:32
我現在的問題是建立drbd到了兩台主機要sudo drbdadm create-md r0 後就卡在那邊一點
訊息也沒有,我用的是drbd8-utils
server1的hosts設定如下
127.0.0.1 localhost
127.0.1.1 server1.dom23.com server1.dom23.com
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
10.120.223.1 server1.dom23.com server1.dom23.com
10.120.223.2 server2.dom23.com server2.dom23.com
server2的hosts設定如下
127.0.0.1 localhost
127.0.1.1 server2.dom23.com server2.dom23.com
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
10.120.223.1 server1.dom23.com server1.dom23.com
10.120.223.2 server2.dom23.com server2.dom23.com
在server1的/etc/fstab設定如下
UUID=bf895aa3-5892-4cc7-afd2-3d696716e283 / ext4
errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=f9953345-5e7d-41a2-a958-41babe1bbe42 none swap sw
0 0/dev/sdb1 /DRBD ext3 defaults 0 0
在server2的/etc/fstab設定如下
UUID=90d60978-95c7-418a-adeb-112f1cd6df33 / ext4
errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=bc733dc4-f37d-4d0a-80aa-c704163cf5ea none swap sw
0 0
/dev/sdb1 /DRBD ext3 defaults 0 0
server1合server2 /etc/drbd.conf設定如下
global { usage-count no; }
common { syncer { rate 10M; } }
resource r0 {
protocol C;
startup {
wfc-timeout 60;
degr-wfc-timeout 60;
}
net {
cram-hmac-alg sha1;
shared-secret "secret";
}
on server1.dom23.com {
device /dev/drbd0;
disk /dev/sdb1;
address 10.120.223.1:7788;
meta-disk internal;
}
on server2.dom23.com {
device /dev/drbd0;
disk /dev/sdb1;
address 10.120.223.2:7788;
meta-disk internal;
}
}
而server1的主機名稱是server1.dom23.com server2的主機名稱是server2.dom23.com,
server1的eth0是10.120.223.1 eth1是10.120.230.1 ,server2的eth0是10.120.223.2
eth1是10.120.223.2
,想請問我打sudo drbdadm create-md r0 會完全連個訊息都沒有,我看網路上至少都會有

Writing meta data...頂多是error掉但我是什麼都沒有然後按enter選yes會出現下面的
訊息
md_offset 32211202048
al_offset 32211169280
bm_offset 32210186240
Found ext3 filesystem
31456256 kB data area apparently used
31455260 kB left usable by current configuration
Device size would be truncated, which
would corrupt data and result in
'access beyond end of device' errors.
You need to either
* use external meta data (recommended)
* shrink that filesystem first
* zero out the device (destroy the filesystem)
Operation refused.
Command 'drbdmeta 0 v08 /dev/sdb1 internal create-md' terminated with exit
code 40
不知道有沒有大大可以幫初學linux指點明路,謝謝~
作者: x000032001 (版廢了該走了)   2014-11-11 17:49:00
You need to either ... Operation refused.
作者: mmxmmxmmx (***********先生)   2014-11-11 17:53:00
我本來以為是權限不足但是我都照網站給最大權限,跟30G的sba1的空間了
作者: x000032001 (版廢了該走了)   2014-11-11 17:54:00
查exit code 40 應該有辦法解
作者: mmxmmxmmx (***********先生)   2014-11-11 17:57:00
抱歉大大如何查詢code exit40阿?exit code 40 才對
作者: x000032001 (版廢了該走了)   2014-11-11 17:58:00
google

Links booklink

Contact Us: admin [ a t ] ucptt.com