block drbd0: Unrelated data, aborting! とエラーが出た

今日、primary 側が StandAlone になっていたので、Secondary 側で
# drbdadm – –  – -discard-my-data connect r0
で primary 側で
# drbdadm connect r0
としても、両方共 StandAlone のままだ!なのでログを見る(抜粋 /var/log/message)と
kernel: block drbd0: uuid_compare()=-1000 by rule 100
kernel: block drbd0: Unrelated data, aborting!
となっている!。どうも又メタデーターがおかしいみたい。
なので、Secondary 側で(参考:https://support.sciencelogic.com/s/article/3518)DRBDを止め、作業をする。
# systemctl stop drbd
# drbdadm down r0
# drbdadm wipe-md r0
Do you really want to wipe out the DRBD meta data?
[need to type ‘yes’ to confirm] yes
Wiping meta data…
DRBD meta data block successfully wiped out.
Do you really want to wipe out the DRBD meta data?
[need to type ‘yes’ to confirm] yes
Wiping meta data…
DRBD meta data block successfully wiped out.
# drbdadm create-md r0
md_offset 53687087104
al_offset 53687054336
bm_offset 53685415936

Found xfs filesystem
52427164 kB data area apparently used
52427164 kB left usable by current configuration

Even though it looks like this would place the new meta data into
unused space, you still need to confirm, as this is only a guess.

Do you want to proceed?
[need to type ‘yes’ to confirm] yes

initializing activity log
initializing bitmap (1600 KB) to all zero
Writing meta data…
New drbd meta data block successfully created.
success
md_offset 53687087104
al_offset 53687054336
bm_offset 53685415936

Found xfs filesystem
52427164 kB data area apparently used
52427164 kB left usable by current configuration

Even though it looks like this would place the new meta data into
unused space, you still need to confirm, as this is only a guess.

Do you want to proceed?
[need to type ‘yes’ to confirm] yes

initializing activity log
initializing bitmap (1600 KB) to all zero
Writing meta data…
New drbd meta data block successfully created.
success
# drbdadm up r0
# drbdadm disconnect r0
# drbdadm connect r0
# cat /proc/drbd
version: 8.4.11-1 (api:1/proto:86-101)
GIT-hash: 66145a308421e9c124ec391a7848ac20203bb03c build by mockbuild@, 2020-04-05 02:58:18
0: cs:SyncTarget ro:Secondary/Primary ds:Inconsistent/UpToDate C r—–
ns:0 nr:7700 dw:23928 dr:0 al:8 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:52407248
[>………………..] sync’ed: 0.1% (51176/51184)M
finish: 14:09:11 speed: 996 (996) want: 1,480 K/sec
1: cs:SyncTarget ro:Secondary/Primary ds:Inconsistent/UpToDate C r—–
ns:0 nr:16384 dw:49500 dr:0 al:8 bm:0 lo:1 pe:1 ua:0 ap:0 ep:1 wo:f oos:52378012
[>………………..] sync’ed: 0.1% (51148/51164)M
finish: 6:12:36 speed: 2,340 (2,340) want: 3,880 K/sec
とシンクロが始まった。

フジマル について

1947年生れ、東京電機大学二部電気通信工学科卒、最後はスリランカ航空で営業だったのですが2018年に㈱インパック・ジャパンに再就職。趣味:登山、スキー、車いじり、コンピューター
カテゴリー: DRBDに挑戦(CentOS7) パーマリンク

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA


このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください