1
...
:N
1개의 노드에서 2개의 N개의 노드에 미러를 구성하는 방법입니다.
OSDRBD in LAN LAN DRBD in Remote node r0 | resource r0 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on w28r2-4 {
node-id 1;
device d minor 1;
disk d;
meta-disk m;
|
|
onw28r2-4{
node-id 1 31.1.1.154:7789;
}
on w28r2-5 {
node-id 2;
|
|
} onw28r2-6{
node-id 3} connection DR-4-6 {hostw28r2-4address1546677viaproxy c73p1inside 31.1.1.191:6678 outside 31.1.1.191:6679}hostw28r2-6address6677viaproxy c73p2 inside 31.1.1.192:6678 outsidedevice d minor 1;
disk d;
meta-disk m;
address 31.1.1. |
|
1926679
}
DR-6515566806677 via proxy on c73-p1 {
inside 31.1.1.191: |
|
66816678;
outside 31.1.1.191: |
|
6682615666806677 via proxy on c73-p2 {
inside 31.1.1.192: |
|
66816678;
outside 31.1.1.192: |
|
6682
connection 4-6 {
host w28r2-4 address 31.1.1.154: |
|
6676;6680 via proxy on c73-p1 {
|
|
host w28r2-5 address inside 31.1.1.191:6681;
outside 31.1.1. |
|
1556676} Code Block |
---|
title | Linux DRX R0 |
---|
collapse | true |
---|
|
resource r0 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
device /dev/drbd0;
disk /dev/sdd;
meta-disk /dev/sdm;
on w28r2-4 {
node-id 1;
}
on w28r2-6 {
node-id 3;
}
connection DR-4-6 {
host w28r2-4 address 31.1.1.154:6677 via proxy on c73-p1 {
inside 31.1.1.191:6678;
outside 31.1.1.191:6679;
}
host w28r2-6 address 31.1.1.156:6677 via proxy on c73-p2 {
inside 31.1.1.192:6678;
outside 31.1.1.192:6679;
}
}
}
resource r0-1 {
proxy {
memlimit 500M;
}
net {
protocol A;
verify-alg crc32c;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
device /dev/drbd1;
disk /dev/sdd1;
meta-disk /dev/sdm1;
on w28r2-5 {
node-id 2;
}
on w28r2-6 {
node-id 3;
}
connection DR-5-6 host w28r2-6 address 31.1.1.156:6680 via proxy on c73-p2 {
inside 31.1.1.192:6681;
outside 31.1.1.192:6682;
}
}
connection 4-7 {
host w28r2- |
|
515566806683 via proxy on c73-p1 {
inside 31.1.1.191: |
|
66816684;
outside 31.1.1.191: |
|
6682615666806683 via proxy on c73-p2 {
inside 31.1.1.192: |
|
66816684;
outside 31.1.1.192: |
|
6682 | DRBD in LAN의 리소스 파일과 동일Linux Centos 7.4 | r0 | resource r0 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill |
|
480M;
}
device /dev/drbd0;
disk /dev/sdd1;
meta-disk /dev/sdb1;
on c74-1 {
node-id 1;
}
on c74-2 {
node-id 2c7433} connection DR-4-6 {
host c74-1 address/dev/bsr1;
disk /dev/sdm1;
meta-disk /dev/sdm1;
address 31.1.1. |
|
1646677viaproxy c73p1 inside 31.1.1.191:6678 outside 31.1.1.191:6679;
}
host c74-3 address 31.1.1.166:6677 via proxy on c73-p2 {
inside 31.1.1.192:6678;
outsidedevice /dev/bsr2;
disk /dev/sdm2;
meta-disk /dev/sdm2;
address 31.1.1. |
|
1926679
}
DR-6c74216566806677 via proxy on c73-p1 {
inside 31.1.1.191: |
|
66816678;
outside 31.1.1.191: |
|
6682c74316666806677 via proxy on c73-p2 {
inside 31.1.1.192: |
|
66816678;
outside 31.1.1.192: |
|
6682 }
connection {
host c74-1 address 31.1.1.164:6676;
host c74-2 address 31.1.1.165:6676; Code Block |
---|
title | Linux DRX R0 |
---|
collapse | true |
---|
|
resource r0-1 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on w28r2-4 {
node-id 1;
device /dev/ |
|
drbd0sdd1sdb1sdm2;
address 31.1.1.154:7789;
}
on |
|
c7411 }
on c74-3 {
node-id 3 device /dev/bsr3;
disk /dev/sdm3;
meta-disk /dev/sdm3;
address 31.1.1.156:7789;
}
|
|
DR-c74116466776680 via proxy on c73-p1 {
inside 31.1.1.191: |
|
66786681;
outside 31.1.1.191: |
|
6679c74316666776680 via proxy on c73-p2 {
inside 31.1.1.192: |
|
66786681;
outside 31.1.1.192: |
|
667912 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill |
|
480M;
}
device 480M;
}
on w28r2-4 {
node-id 1;
device /dev/bsr3;
disk /dev/sdm3;
meta-disk /dev/sdm3;
address 31.1.1.154:7789;
}
on w28r2-7 {
node-id 4;
device /dev/ |
|
drbd1sdd2sdb2
on c74-2 {
node-id 2;
}
on c74-3 {
node-id 3 address 31.1.1.157:7789;
}
|
|
DR5-6c74216566806683 via proxy on c73-p1 {
inside 31.1.1.191: |
|
66816684;
outside 31.1.1.191: |
|
6682c74316666806683 via proxy on c73-p2 {
inside 31.1.1.192: |
|
66816684;
outside 31.1.1.192: |
|
6682 }
}
}
2. 1:N
1개의 노드에서 N개의 노드에 미러를 구성하는 방법입니다.
Node OS | DRBD | DRX in LAN | DRX in Remote | DRBD in Remote |
---|
Windows | |
|
Linux Centos 7.4 |
Windows | resource r0 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on | w28r24d minor 1 dm/dev/sdb1;
address 31.1.1. | 154w28r25d minor 1 dm/dev/sdb1;
address 31.1.1. | 155w28r26d minor 1 dm/dev/sdb1;
address 31.1.1. | 156w28r27 dminor1 dm/dev/sdb1;
address 31.1.1. | 15745w28r24154164:6677 via proxy on c73-p1 {
inside 31.1.1.191:6678;
outside 31.1.1.191:6679;
}
host | w28r25155165:6677 via proxy on c73-p2 {
inside 31.1.1.192:6678;
outside 31.1.1.192:6679;
}
}
connection | 46w28r24154164:6680 via proxy on c73-p1 {
inside 31.1.1.191:6681;
outside 31.1.1.191:6682;
}
host | w28r26156166:6680 via proxy on c73-p2 {
inside 31.1.1.192:6681;
outside 31.1.1.192:6682;
}
}
connection 1-4 | -7w28r24154164:6683 via proxy on c73-p1 {
inside 31.1.1.191:6684;
outside 31.1.1.191:6685;
}
host | w28r27157167:6683 via proxy on c73-p2 {
inside 31.1.1.192:6684;
outside 31.1.1.192:6685;
}
}
} |
|
Code Block |
---|
title | Linux DRX R0 |
---|
collapse | true |
---|
| resource r0 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on w28r2c74-41 {
node-id 1;
device /dev/drbd1bsr0;
disk /dev/sdm1sdd1;
meta-disk /dev/sdm1sdb1;
address 31.1.1.154164:7789;
}
on w28r2c74-52 {
node-id 2;
device /dev/drbd2bsr1;
disk /dev/sdm2sdd1;
meta-disk /dev/sdm2sdb1;
address 31.1.1.155165:7789;
}
connection 41-52 {
host w28r2c74-41 address 31.1.1.154164:6677 via proxy on c73-p1 {
inside 31.1.1.191:6678;
outside 31.1.1.191:6679;
}
host w28r2c74-52 address 31.1.1.155165:6677 via proxy on c73-p2 {
inside 31.1.1.192:6678;
outside 31.1.1.192:6679;
}
}
}
resource r0-1 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on w28r2c74-41 {
node-id 1;
device /dev/drbd2bsr2;
disk /dev/sdm2sdd2;
meta-disk /dev/sdm2sdb2;
address 31.1.1.154164:7789;
}
on w28r2c74-63 {
node-id 3;
device /dev/drbd3bsr2;
disk /dev/sdm3sdd2;
meta-disk /dev/sdm3sdb2;
address 31.1.1.156166:7789;
}
connection 41-63 {
host w28r2c74-41 address 31.1.1.154164:6680 via proxy on c73-p1 {
inside 31.1.1.191:6681;
outside 31.1.1.191:6682;
}
host w28r2c74-63 address 31.1.1.156166:6680 via proxy on c73-p2 {
inside 31.1.1.192:6681;
outside 31.1.1.192:6682;
}
}
}
resource r0-2 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on w28r2c74-41 {
node-id 1;
device /dev/drbd3bsr3;
disk /dev/sdm3sdd3;
meta-disk /dev/sdm3sdb3;
address 31.1.1.154164:7789;
}
on w28r2c74-74 {
node-id 4;
device /dev/drbd3bsr3;
disk /dev/sdm3sdd3;
meta-disk /dev/sdm3sdb3;
address 31.1.1.157167:7789;
}
connection 1-4-7 {
host w28r2 {
host c74-1 address 31.1.1.164:6683 via proxy on c73-p1 {
inside 31.1.1.191:6684;
outside 31.1.1.191:6685;
}
host c74-4 address 31.1.1.154167:6683 via proxy on c73-p1p2 {
inside 31.1.1.191192:6684;
outside 31.1.1.192:6685;
}
}
}
|
| | |
N:1
...
N개의 노드에서 1개의 서버에 미러를 구성하는 방법입니다.
Node OS | BSR in LAN | DRX in LAN | DRX in Remote | BSR in Remote |
---|
Windows |
Code Block |
---|
title | Windows R0 |
---|
collapse | true |
---|
| resource r0 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on w28r2-4 {
device d minor 1;
disk d;
meta-disk m;
node-id 1;
address 31.1.1. |
|
1926685
}
}
| Linux Centos 7.4 | Code Block |
---|
title | Linux R0 |
---|
collapse | true |
---|
|
resource r0 {
proxymemlimit 500M} net{ protocolAoncongestion pull-aheadsndbufsize10Mcongestion-fill 480Maddress 31.1.1.157:6677;
}
connection 4-7 {
host w28r2-4 address 31.1.1.154:6677 via proxy on |
|
c741node-id 1inside 31.1.1.191:6678;
outside 31.1.1.191:6679;
|
|
device /dev/drbd0;
disk /dev/sdd1;
meta-disk /dev/sdb1;
address address 31.1.1.157:6677 via proxy on c73-p2 {
inside 31.1.1.192:6678;
outside 31.1.1. |
|
1647789on c74-2}
}
resource r0-1 {
proxy {
|
|
node-id2device /dev/drbd0disk /dev/sdd1on-congestion pull-ahead;
|
|
meta-disk /dev/sdb1address 31.1.1.165:7789congestion-fill 480M;
}
on |
|
c743node-id 3device/dev/drbd0 /dev/sdd1metadisk /dev/sdb11667789c744node-id 4device/dev/drbd0 /dev/sdd1metadisk /dev/sdb1167778912c74116466776680 via proxy on c73-p1 {
inside 31.1.1.191: |
|
66786681;
outside 31.1.1.191: |
|
6679c74216566776680 via proxy on c73-p2 {
inside 31.1.1.192: |
|
66786681;
outside 31.1.1.192: |
|
6679;
}
}
connection 1-36682;
}
}
}
resource r0-2 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on w28r2-6 {
|
|
host c74-1 address 31.1.1.164:6680 via proxy on c73-p1 {
inside 31.1.1.191:6681;
outsidedevice d minor 1;
disk d;
meta-disk m;
node-id 3;
address 31.1.1. |
|
1916682 }host c74-3 address 31.1.1.166:6680 via proxy on c73-p2 {
inside 31.1.1.192:6681;
outsidedevice f minor 3;
disk f;
meta-disk o;
node-id 4;
address 31.1.1. |
|
1926682
}14c741164156:6683 via proxy on c73-p1 {
inside 31.1.1.191:6684;
outside 31.1.1.191:6685;
}
host |
|
c744167157:6683 via proxy on c73-p2 {
inside 31.1.1.192:6684;
outside 31.1.1.192:6685;
}
}
}
|
|
Code Block |
---|
title | Linux DRX R0 |
---|
collapse | true |
---|
| resource r0 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on |
|
c741node-id 1devicedrbd0 sdd1metadisk /dev/sdb11647789c742node-id 2devicedrbd1 sdd1metadisk /dev/sdb1165778912c741164154:6677 via proxy on c73-p1 {
inside 31.1.1.191:6678;
outside 31.1.1.191:6679;
}
host |
|
c742165157:6677 via proxy on c73-p2 {
inside 31.1.1.192:6678;
outside 31.1.1.192:6679;
}
}
}
resource r0-1 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on |
|
c741node-id 1devicedrbd2 sdd2metadisk /dev/sdb21647789c743node-id 3;
drbd2sdd2sdb2sdn;
node-id 4;
address 31.1.1. |
|
166778913c741164155:6680 via proxy on c73-p1 {
inside 31.1.1.191:6681;
outside 31.1.1.191:6682;
}
host |
|
c743166157:6680 via proxy on c73-p2 {
inside 31.1.1.192:6681;
outside 31.1.1.192:6682;
}
}
}
resource r0-2 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on |
|
c741node-id 1devicedrbd3 sdd3metadisk /dev/sdb31647789c744node-id 4devicedrbd3 sdd3metadisk /dev/sdb3167778914c741164156:6683 via proxy on c73-p1 {
inside 31.1.1.191:6684;
outside 31.1.1.191:6685;
}
host |
|
c744167157:6683 via proxy on c73-p2 {
inside 31.1.1.192:6684;
outside 31.1.1.192:6685;
}
}
}
|
| |
DRBD in 3. N:1
N개의 노드에서 1개의 서버에 미러를 구성하는 방법입니다.
Node OS | DRBD in LAN | DRX in LAN | DRX in Remote | DRBD in Remote |
---|
WindowsLinux Centos 7.4 |
Code Block |
---|
title | Windows Linux R0 |
---|
collapse | true |
---|
| resource r0 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on w28r2c74-41 {
device d minor 1/dev/bsr1;
disk d/dev/sdd1;
meta-disk m/dev/sdb1;
node-id 1;
address 31.1.1.154164:6677;
}
on w28r2c74-74 {
device d minor 1/dev/bsr1;
disk d/dev/sdd1;
meta-disk m/dev/sdb1;
node-id 4;
address 31.1.1.157167:6677;
}
connection 1-4-7 {
host w28r2c74-41 address 31.1.1.154164:6677 via proxy on c73-p1 {
inside 31.1.1.191:6678;
outside 31.1.1.191:6679;
}
host w28r2c74-74 address 31.1.1.157167:6677 via proxy on c73-p2 {
inside 31.1.1.192:6678;
outside 31.1.1.192:6679;
}
}
}
resource r0-1 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on w28r2c74-52 {
device d minor 1/dev/bsr2;
disk d/dev/sdd2;
meta-disk m/dev/sdb2;
node-id 2;
address 31.1.1.155165:6680;
}
on w28r2c74-74 {
device e minor 2/dev/bsr2;
disk e/dev/sdd2;
meta-disk n/dev/sdb2;
node-id 4;
address 31.1.1.157167:6680;
}
connection 52-74 {
host w28r2c74-52 address 31.1.1.155165:6680 via proxy on c73-p1 {
inside 31.1.1.191:6681;
outside 31.1.1.191:6682;
}
host w28r2c74-74 address 31.1.1.157168:6680 via proxy on c73-p2 {
inside 31.1.1.192:6681;
outside 31.1.1.192:6682;
}
}
}
resource r0-2 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on w28r2c74-63 {
device d minor 1/dev/bsr3;
disk d/dev/sdd3;
meta-disk m/dev/sdb3;
node-id 3;
address 31.1.1.156166:6683;
}
on w28r2c74-74 {
device f minor 3 /dev/bsr3;
disk f/dev/sdd3;
meta-disk o/dev/sdb3;
node-id 4;
address 31.1.1.157167:6683;
}
connection 63-74 {
host w28r2c74-63 address 31.1.1.156166:6683 via proxy on c73-p1 {
inside 31.1.1.191:6684;
outside 31.1.1.191:6685;
}
host w28r2c74-74 address 31.1.1.157169:6683 via proxy on c73-p2 {
inside 31.1.1.192:6684;
outside 31.1.1.192:6685;
}
}
}
|
|
Code Block |
---|
title | Linux DRX R0 |
---|
collapse | true |
---|
| resource r0 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on w28r2c74-41 {
device /dev/drbd1bsr1;
disk /dev/sddsdd1;
meta-disk /dev/sdmsdb1;
node-id 1;
address 31.1.1.154164:6677;
}
on w28r2c74-74 {
device /dev/drbd1bsr1;
disk /dev/sddsdd1;
meta-disk /dev/sdmsdb1;
node-id 4;
address 31.1.1.157167:6677;
}
connection 1-4-7 {
host w28r2c74-41 address 31.1.1.154164:6677 via proxy on c73-p1 {
inside 31.1.1.191:6678;
outside 31.1.1.191:6679;
}
host w28r2c74-74 address 31.1.1.157167:6677 via proxy on c73-p2 {
inside 31.1.1.192:6678;
outside 31.1.1.192:6679;
}
}
}
resource r0-1 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on w28r2c74-52 {
device /dev/drbd1bsr2;
disk /dev/sddsdd2;
meta-disk /dev/sdmsdb2;
node-id 2;
address 31.1.1.155165:6680;
}
on w28r2c74-74 {
device /dev/drbd2bsr2;
disk /dev/sdesdd2;
meta-disk /dev/sdnsdb2;
node-id 4;
address 31.1.1.157167:6680;
}
connection 52-74 {
host w28r2c74-52 address 31.1.1.155165:6680 via proxy on c73-p1 {
inside 31.1.1.191:6681;
outside 31.1.1.191:6682;
}
host w28r2c74-74 address 31.1.1.157168:6680 via proxy on c73-p2 {
inside 31.1.1.192:6681;
outside 31.1.1.192:6682;
}
}
}
resource r0-2 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on w28r2c74-63 {
device /dev/drbd1bsr3;
disk /dev/sddsdd3;
meta-disk /dev/sdmsdb3;
node-id 3;
address 31.1.1.156166:6683;
}
on w28r2c74-74 {
device /dev/drbd3bsr3;
disk /dev/sdfsdd3;
meta-disk /dev/sdosdb3;
node-id 4;
address 31.1.1.157167:6683;
}
connection 63-74 {
host w28r2c74-63 address 31.1.1.156166:6683 via proxy on c73-p1 {
inside 31.1.1.191:6684;
outside 31.1.1.191:6685;
}
host w28r2c74-74 address 31.1.1.157169:6683 via proxy on c73-p2 {
inside 31.1.1.192:6684;
outside 31.1.1.192:6685;
}
}
}
|
| | - DRBD in BSR in LAN의 리소스 파일과 동일
| Linux Centos 7.4 |
N:N
N개의 노드에서 N개의 노드에 미러를 구성하는 방법입니다.
Node OS | BSR in LAN | DRX in LAN | DRX in Remote | BSR in Remote |
---|
Windows | |
Linux | resource r0 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on |
|
c741 /dev/drbd1/dev/sdd1/dev/sdb1m;
node-id 1;
address 31.1.1. |
|
164c744/dev/drbd1/dev/sdd1/dev/sdb1 m;
node-id 4;
address 31.1.1. |
|
16714c741164154:6677 via proxy on c73-p1 {
inside 31.1.1.191:6678;
outside 31.1.1.191:6679;
}
host |
|
c744167157:6677 via proxy on c73-p2 {
inside 31.1.1.192:6678;
outside 31.1.1.192:6679;
}
}
}
resource r0-1 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on |
|
c742/dev/drbd2/dev/sdd2/dev/sdb2m;
node-id 2;
address 31.1.1. |
|
165c744 /dev/drbd2/dev/sdd2/dev/sdb2416724c742165155:6680 via proxy on c73-p1 {
inside 31.1.1.191:6681;
outside 31.1.1.191:6682;
}
host |
|
c744168156:6680 via proxy on c73-p2 {
inside 31.1.1.192:6681;
outside 31.1.1.192:6682;
}
}
}
|
|
|
Code Block |
---|
title | Linux DRX R0 |
---|
collapse | true |
---|
| resource r0 |
|
-2 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on |
|
c743 drbd3sdd3sdb331666683c744 drbd3sdd3sdb3sdm;
node-id 4;
address 31.1.1. |
|
167668334c74316666836677 via proxy on c73-p1 {
inside 31.1.1.191: |
|
66846678;
outside 31.1.1.191: |
|
6685c74416966836677 via proxy on c73-p2 {
inside 31.1.1.192: |
|
66846678;
outside 31.1.1.192: |
|
6685
Code Block |
---|
title | Linux DRX R0 |
---|
collapse | true |
---|
|
resource r0-1 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on |
|
c741 drbd1sdd1sdb111646677c744 drbd1sdd1sdb141676677
14c74116466776680 via proxy on c73-p1 {
inside 31.1.1.191: |
|
66786681;
outside 31.1.1.191: |
|
6679c74416766776680 via proxy on c73-p2 {
inside 31.1.1.192: |
|
66786681;
outside 31.1.1.192: |
|
6679
| | |
Linux Centos 7.4 |
Code Block |
---|
title | Linux R0 |
---|
collapse | true |
---|
| resource r0 |
|
-1 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on c74- |
|
2 drbd2sdd2sdb2216566806677;
}
on c74-4 {
device |
|
drbd2sdd2sdb2sdb1;
node-id 4;
address 31.1.1.167: |
|
66802216566806677 via proxy on c73-p1 {
inside 31.1.1.191: |
|
66816678;
outside 31.1.1.191: |
|
66826679;
}
host c74-4 address 31.1.1. |
|
16866806677 via proxy on c73-p2 {
inside 31.1.1.192: |
|
66816678;
outside 31.1.1.192: |
|
668221 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on c74- |
|
3 drbd3sdd3sdb3316666834 drbd3sdd3sdb341676683-4316666836680 via proxy on c73-p1 {
inside 31.1.1.191: |
|
66846681;
outside 31.1.1.191: |
|
6685416966836680 via proxy on c73-p2 {
inside 31.1.1.192: |
|
66846681;
outside 31.1.1.192: |
|
6685}
}
| | 4. N:N
N개의 노드에서 N개의 노드에 미러를 구성하는 방법입니다.
Node OS | DRBD in LAN | DRX in LAN | DRX in Remote | DRBD in Remote |
---|
Windows |
Code Block |
---|
title | Windows Linux DRX R0 |
---|
collapse | true |
---|
| resource r0 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on w28r2c74-41 {
device d minor 1/dev/bsr1;
disk d/dev/sdd1;
meta-disk m/dev/sdb1;
node-id 1;
address 31.1.1.154164:6677;
}
on w28r2c74-74 {
device d minor 1/dev/bsr1;
disk d/dev/sdd1;
meta-disk m/dev/sdb1;
node-id 4;
address 31.1.1.157167:6677;
}
connection 1-4-7 {
host w28r2c74-41 address 31.1.1.154164:6677 via proxy on c73-p1 {
inside 31.1.1.191:6678;
outside 31.1.1.191:6679;
}
host w28r2c74-74 address 31.1.1.157167:6677 via proxy on c73-p2 {
inside 31.1.1.192:6678;
outside 31.1.1.192:6679;
}
}
}
resource r0-1 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on w28r2c74-52 {
device d minor 1/dev/bsr1;
disk d/dev/sdd1;
meta-disk m/dev/sdb1;
node-id 2;
address 31.1.1.155165:6680;
}
on w28r2c74-63 {
device d minor 1/dev/bsr1;
disk d/dev/sdd1;
meta-disk m/dev/sdb1;
node-id 3;
address 31.1.1.156166:6680;
}
connection 52-63 {
host w28r2c74-52 address 31.1.1.155165:6680 via proxy on c73-p1 {
inside 31.1.1.191:6681;
outside 31.1.1.191:6682;
}
host w28r2c74-63 address 31.1.1.156166:6680 via proxy on c73-p2 {
inside 31.1.1.192:6681;
outside 31.1.1.192:6682;
}
}
}
|
| | |
MDR
Mirror DR (MDR) 구성은 1개의 노드에서 2개의 노드에 미러를 구성하는 방법입니다.
Node OS | BSR in LAN | DRX in LAN | DRX in Remote | BSR in Remote |
---|
Windows | |
Linux DRX R0Windows node r0 | collapse | true |
---|
| resource r0 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion |
|
-fill 480M-fill 480M;
}
device d;
disk d;
meta-disk m;
on w28r2-4 {
node-id 1;
} |
|
4device /dev/drbd1disk /dev/sdd;metadisk /dev/sdm node-id 1;addresshost w28r2-4 address 31.1.1.154:6677 |
|
; } w28r27device /dev/drbd1;
disk /dev/sdd;
meta-disk /dev/sdm;
node-id 4;
address inside 31.1.1.191:6678;
outside 31.1.1.191:6679;
}
host w28r2-6 address 31.1.1.156:6677 via proxy on c73-p2 {
inside 31.1.1.192:6678;
outside 31.1.1. |
|
157667747415466776680 via proxy on c73-p1 {
inside 31.1.1.191: |
|
66786681;
outside 31.1.1.191: |
|
6679715766776680 via proxy on c73-p2 {
inside 31.1.1.192:6681;
outside 31.1.1.192:6682;
|
|
inside}
}
connection {
host w28r2-4 address 31.1.1. |
|
1926678 outsidehost w28r2-5 address 31.1.1. |
|
1926679 }
}
|
Code Block |
---|
title | Linux DRX R0 |
---|
collapse | true |
---|
| resource r0 |
|
-1 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf |
|
-size 10M;
congestion-fill 480M;
}
on w28r2-5 {
device /dev/drbd1;
disk /dev/sdd;
meta-disk /dev/sdm;
node-id 2;
address 31.1.1.155:6680;
}
on w28r2-6 {
-size 10M;
congestion-fill 480M;
}
device /dev/ |
|
drbd1 /dev/sdm;
on w28r2-4 {
node-id |
|
3 address 31.1.1.156:6680}
on w28r2-6 {
node-id 3;
}
connection |
|
5515566806677 via proxy on c73-p1 {
inside 31.1.1.191: |
|
66816678;
outside 31.1.1.191: |
|
66826679;
}
host w28r2-6 address 31.1.1.156: |
|
66806677 via proxy on c73-p2 {
inside 31.1.1.192: |
|
66816678;
outside 31.1.1.192: |
|
6682 | | Linux Centos 7.4 | Code Block |
---|
title | Linux R0 |
---|
collapse | true |
---|
|
resource r0-1 {
proxy {
memlimit 500M;
}
net {
protocol A;
verify-alg crc32c;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
} |
|
on c74-1{ drbd1 sdb1 node-id 1;address 31.1.1.164:6677c744
device /dev/drbd1;
disk /dev/sdd1;meta-disk /dev/sdb1;
4;
address 31.1.1.167:667714c74116466776680 via proxy on c73-p1 {
inside 31.1.1.191: |
|
66786681;
outside 31.1.1.191: |
|
6679c74416766776680 via proxy on c73-p2 {
inside 31.1.1.192: |
|
66786681;
outside 31.1.1.192: |
|
6679
| | |
Linux Centos 7.4 |
Code Block |
---|
title | Linux r0 |
---|
collapse | true |
---|
| resource r0 |
|
-1 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
device /dev/bsr0;
disk |
|
net/dev/sdd1;
meta-disk /dev/sdb1;
on c74-1 {
|
|
protocolA-congestionpullahead;
sndbuf-size 10M;
congestion-fill 480M
2device /dev/drbd1 disk/dev/sdd1;
meta-disk /dev/sdb1;
node-id 2;
address host c74-1 address 31.1.1.164:6677 via proxy on c73-p1 {
inside 31.1.1. |
|
1656680}
on c74-3 {device /dev/drbd1;diskhost c74-3 address 31.1.1.166:6677 |
|
/dev/sdd1;
meta-disk /dev/sdb1;
node-id 3;
address via proxy on c73-p2 {
inside 31.1.1.192:6678;
outside 31.1.1. |
|
1666680236 {
host c74-2 address 31.1.1.165:6680 via proxy on c73-p1 {
inside 31.1.1.191:6681;
outside 31.1.1.191:6682;
}
host c74-3 |
|
address address 31.1.1.166:6680 via proxy on c73-p2 {
inside 31.1.1.192:6681;
outside 31.1.1. |
|
1666680 via proxy on c73-p2 insidehost c74-1 address 31.1.1. |
|
1926681 outsidehost c74-2 address 31.1.1. |
|
1926682 } |
Code Block |
---|
title | Linux DRX R0 |
---|
collapse | true |
---|
| resource r0 {
proxy {
memlimit 500M;
}
net {
protocol A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M |
|
;
}
on c74-1 {
device /dev/drbd1;
disk /dev/sdd1;
meta-disk /dev/sdb1;
node-id 1;
address 31.1.1.164:6677
on c74-4{ drbd1 /dev/sdb1;
on c74-1 {
node-id |
|
4 address 31.1.1.167:6677}
on c74-3 {
node-id 3;
}
connection |
|
1DR-4-6 {
host c74-1 address 31.1.1.164:6677 via proxy on c73-p1 {
inside 31.1.1.191:6678;
outside 31.1.1.191:6679;
}
host c74- |
|
4167166:6677 via proxy on c73-p2 {
inside 31.1.1.192:6678;
outside 31.1.1.192:6679;
}
}
}
resource r0-1 {
proxy {
memlimit 500M;
}
net {
protocol |
|
A;
on-congestion pull-ahead;
sndbuf-size 10M;
congestion-fill 480M;
}
on c74-2 {
device /dev/drbd1;
disk /dev/sdd1metadisk /dev/sdb1nodeid2address 31.1.1.165:6680
onc74-3{
drbd1 sdd1 sdb1;3 address 31.1.1.166:6680}
on c74-3 {
node-id 3;
}
connection |
|
236 {
host c74-2 address 31.1.1.165:6680 via proxy on c73-p1 {
inside 31.1.1.191:6681;
outside 31.1.1.191:6682;
}
host c74-3 address 31.1.1.166:6680 via proxy on c73-p2 {
inside 31.1.1.192:6681;
outside 31.1.1.192:6682;
}
}
}
|
| |
DRBD in ...
SDR
공유 디스크를 사용하는 노드에서 DR노드에 미러를 구성하는 방법입니다.
Node OS | DRBD in BSR in LAN | DRX in LAN | DRX in Remote | DRBD in RemoteBSR in Remote |
---|
Windows |
Code Block |
---|
title | Windows Node R0 |
---|
collapse | true |
---|
| resource r0 {
options {
svc-autostart no; # => SDR 구성시 필수!(DR 노드 설정에선 제외)
}
protocol A;
device d minor 1;
disk d;
meta-disk m;
net {
ping-timeout 300;
}
proxy {
memlimit 500M;
}
floating 31.1.1.240:7780 {
#node-id 0;
proxy on 74a1p-1 {
inside 31.1.1.191:7801;
outside 31.1.1.191:7802;
}
}
floating 31.1.1.243:7780 {
#node-id 1;
proxy on 74a1p-2 {
inside 31.1.1.192:7801;
outside 31.1.1.192:7802;
}
}
}
|
|
Code Block |
---|
title | Linux DRX R0 |
---|
collapse | true |
---|
| resource r0 {
protocol A;
device /dev/drbd1bsr1; # minor 1;
disk /dev/sdb1;
meta-disk internal;
proxy {
memlimit 500M;
}
net {
#on-congestion pull-ahead;
#congestion-fill 550M;
}
floating 31.1.1.240:7780 {
#node-id 0;
proxy on 74a1p-1 {
inside 31.1.1.191:7801;
outside 31.1.1.191:7802;
}
}
floating 31.1.1.143:7780 {
#node-id 1;
proxy on 74a1p-2 {
inside 31.1.1.192:7801;
outside 31.1.1.192:7802;
}
}
} |
| |
Code Block |
---|
title | Windows DR R0 |
---|
collapse | true |
---|
| resource r0 {
protocol A;
device d minor 1;
disk d;
meta-disk m;
net {
ping-timeout 300;
}
proxy {
memlimit 500M;
}
floating 31.1.1.240:7780 {
#node-id 0;
proxy on 74a1p-1 {
inside 31.1.1.191:7801;
outside 31.1.1.191:7802;
}
}
floating 31.1.1.243:7780 {
#node-id 1;
proxy on 74a1p-2 {
inside 31.1.1.192:7801;
outside 31.1.1.192:7802;
}
}
}
|
|
Linux Centos 7.4 |
Code Block |
---|
title | Linux R0 |
---|
collapse | true |
---|
| resource r0 {
protocol A;
device /dev/ |
drbd1bsr1; # minor 1;
disk /dev/sdb;
meta-disk internal;
proxy {
memlimit 500M;
}
floating 31.1.1.140:7780 {
#node-id 0;
proxy on 74a1p-1 {
inside 31.1.1.191:7801;
outside 31.1.1.191:7802;
}
}
floating 31.1.1.143:7780 {
#node-id 1;
proxy on 74a1p-2 {
inside 31.1.1.192:7801;
outside 31.1.1.192:7802;
}
}
}
|
|
Code Block |
---|
title | Linux DRX R0 |
---|
collapse | true |
---|
| resource r0 {
protocol A;
device /dev/drbd1bsr1; # minor 1;
disk /dev/sdb;
meta-disk internal;
proxy {
memlimit 500M;
}
floating 31.1.1.140:7780 {
#node-id 0;
proxy on 74a1p-1 {
inside 31.1.1.191:7801;
outside 31.1.1.191:7802;
}
}
floating 31.1.1.143:7780 {
#node-id 1;
proxy on 74a1p-2 {
inside 31.1.1.192:7801;
outside 31.1.1.192:7802;
}
}
}
|
| | - DRBD in BSR in LAN의 리소스 파일과 동일
|