Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents


1

...

:N 

1개의 노드에서 2개의 N개의 노드에 미러를 구성하는 방법입니다. 

Node
OS
OS  
DRBD in LAN
BSRDRX in
LAN 
LANDRX in Remote
DRBD in Remote
BSR in Remote
Windows


Code Block
titleWindows
node r0
R0
collapsetrue
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;
		
on
address 
w28r2-4
 
{ node-id 1
 31.1.1.154:7789;
	}
	on w28r2-5 {
		node-id 2;
		
}
device  
on
 
w28r2-6
 
{ node-id 3
d minor 1;
	
}
	disk   
connection DR-4-6 {
   d;
		meta-disk m;
		
host
address 
w28r2-4
 
address
 31.1.1.
154
155:
6677
7789;
via
	}
proxy
	on 
c73
w28r2-
p1
6 {
		node-id 3;
		
inside 31.1.1.191:6678
device    d minor 1;
		
outside 31.1.1.191:6679
disk      d;
		
}
meta-disk m;
		
host
address 
w28r2-6
 
address
 31.1.1.156:
6677
7789;
via
	}
proxy
	on 
c73
w28r2-
p2
7 {
		
inside 31.1.1.192:6678
node-id 4;
		
outside
device    d minor 1;
		disk      d;
		meta-disk m;
		address   31.1.1.
192
157:
6679
7789;
}

	}

	connection 
DR
4-5
-6
 {
		host w28r2-
5
4 address 31.1.1.
155
154:
6680
6677 via proxy on c73-p1 {
			inside 31.1.1.191:
6681
6678;
			outside 31.1.1.191:
6682
6679;
		}
		host w28r2-
6
5 address 31.1.1.
156
155:
6680
6677 via proxy on c73-p2 {
			inside 31.1.1.192:
6681
6678;
			outside 31.1.1.192:
6682
6679;
		}
	}

	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.
155
191:
6676
6682;
		}
} Code Block
titleLinux DRX R0
collapsetrue
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-
5
4 address 31.1.1.
155
154:
6680
6683 via proxy on c73-p1 {
			inside 31.1.1.191:
6681
6684;
			outside 31.1.1.191:
6682
6685;
		}
		host w28r2-
6
7 address 31.1.1.
156
157:
6680
6683 via proxy on c73-p2 {
			inside 31.1.1.192:
6681
6684;
			outside 31.1.1.192:
6682
6685;
		}
	}
}
  • 좌동
DRBD in LAN의 리소스 파일과 동일
Linux Centos 7.4



Code Block
titleLinux
r0
DRX R0
collapsetrue
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 2
 480M;
	}

	on 
c74
w28r2-
3
4 {
		node-id 
3
1;
		
}
device    
connection DR-4-6 { host c74-1 address
/dev/bsr1;
		disk   /dev/sdm1;
		meta-disk /dev/sdm1;
		address   31.1.1.
164
154:
6677
7789;
via
	}
proxy
	on 
c73
w28r2-
p1
5 {
		
inside 31.1.1.191:6678
node-id 2;
		
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; outside
device    /dev/bsr2;
		disk   /dev/sdm2;
		meta-disk /dev/sdm2;
		address   31.1.1.
192
155:
6679
7789;
}

	}

	connection 
DR
4-5
-6
 {
		host 
c74
w28r2-
2
4 address 31.1.1.
165
154:
6680
6677 via proxy on c73-p1 {
			inside 31.1.1.191:
6681
6678;
			outside 31.1.1.191:
6682
6679;
		}
		host 
c74
w28r2-
3
5 address 31.1.1.
166
155:
6680
6677 via proxy on c73-p2 {
			inside 31.1.1.192:
6681
6678;
			outside 31.1.1.192:
6682
6679;
	
}
	}
connection { host c74-1 address 31.1.1.164:6676; host c74-2 address 31.1.1.165:6676;

	}
}

Code Block
titleLinux DRX R0
collapsetrue
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/
drbd0
bsr2;
		disk   /dev/
sdd1
sdm2;
		meta-disk /dev/
sdb1
sdm2;
		address   31.1.1.154:7789;
	}
	on 
c74
w28r2-
1
6 {
		node-id 
1
3;
} on c74-3 { node-id 3
		device    /dev/bsr3;
		disk   /dev/sdm3;
		meta-disk /dev/sdm3;
		address   31.1.1.156:7789;
	}
	connection 
DR-
4-6 {
		host 
c74
w28r2-
1
4 address 31.1.1.
164
154:
6677
6680 via proxy on c73-p1 {
			inside 31.1.1.191:
6678
6681;
			outside 31.1.1.191:
6679
6682;
		}
		host 
c74
w28r2-
3
6 address 31.1.1.
166
156:
6677
6680 via proxy on c73-p2 {
			inside 31.1.1.192:
6678
6681;
			outside 31.1.1.192:
6679
6682;
		}
	}
}

resource r0-
1
2 {
	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/
drbd1
bsr3;
		disk   /dev/
sdd2
sdm3;
		meta-disk /dev/
sdb2
sdm3;

	
on c74-2 { node-id 2; } on c74-3 { node-id 3
	address   31.1.1.157:7789;
	}
	connection 
DR
4-
5-6
7 {
		host 
c74
w28r2-
2
4 address 31.1.1.
165
154:
6680
6683 via proxy on c73-p1 {
			inside 31.1.1.191:
6681
6684;
			outside 31.1.1.191:
6682
6685;
		}
		host 
c74
w28r2-
3
7 address 31.1.1.
166
157:
6680
6683 via proxy on c73-p2 {
			inside 31.1.1.192:
6681
6684;
			outside 31.1.1.192:
6682
6685;
	
} } }
  • 좌동
  • DRBD in LAN의 리소스 파일과 동일

2. 1:N 

1개의 노드에서 N개의 노드에 미러를 구성하는 방법입니다. 

Node OS  DRBDDRX in LANDRX in RemoteDRBD in Remote
Windows
	}
	}
}


  • 좌동
  • BSR in LAN의 리소스 파일과 동일


Linux Centos 7.4


Code Block
title
Windows
Linux R0
collapsetrue
resource r0 {
	proxy {
		memlimit 500M;
	}

	net {
		protocol A;
		on-congestion pull-ahead;
		sndbuf-size 10M;
		congestion-fill 480M;
	}

	on 
w28r2
c74-
4
1 {
		node-id 1;
		device    
d minor 1
/dev/bsr0;
		disk   
d
/dev/sdd1;
		meta-disk 
m
/dev/sdb1;
		address   31.1.1.
154
164:7789;
	}
	on 
w28r2
c74-
5
2 {
		node-id 2;
		device    
d minor 1
/dev/bsr0;
		disk   
d
/dev/sdd1;
		meta-disk 
m
/dev/sdb1;
		address   31.1.1.
155
165:7789;
	}
	on 
w28r2
c74-
6
3 {
		node-id 3;
		device    
d minor 1
/dev/bsr0;
		disk   
d
/dev/sdd1;
		meta-disk 
m
/dev/sdb1;
		address   31.1.1.
156
166:7789;
	}
	on 
w28r2
c74-
7
4 {
		node-id 4;
		device
  
d
 
minor
 
1
/dev/bsr0;
		disk   
d
/dev/sdd1;
		meta-disk 
m
/dev/sdb1;
		address   31.1.1.
157
167:7789;
	}
	connection 
4
1-
5
2 {
		host 
w28r2
c74-
4
1 address 31.1.1.
154
164:6677 via proxy on c73-p1 {
			inside 31.1.1.191:6678;
			outside 31.1.1.191:6679;
		}
		host 
w28r2
c74-
5
2 address 31.1.1.
155
165:6677 via proxy on c73-p2 {
			inside 31.1.1.192:6678;
			outside 31.1.1.192:6679;
		}
	}
	connection 
4
1-
6
3 {
		host 
w28r2
c74-
4
1 address 31.1.1.
154
164:6680 via proxy on c73-p1 {
			inside 31.1.1.191:6681;
			outside 31.1.1.191:6682;
		}
		host 
w28r2
c74-
6
3 address 31.1.1.
156
166:6680 via proxy on c73-p2 {
			inside 31.1.1.192:6681;
			outside 31.1.1.192:6682;
		}
	}
	connection 1-4
-7
 {
		host 
w28r2
c74-
4
1 address 31.1.1.
154
164:6683 via proxy on c73-p1 {
			inside 31.1.1.191:6684;
			outside 31.1.1.191:6685;
		}
		host 
w28r2
c74-
7
4 address 31.1.1.
157
167:6683 via proxy on c73-p2 {
			inside 31.1.1.192:6684;
			outside 31.1.1.192:6685;
		}
	}
}



Code Block
titleLinux DRX R0
collapsetrue
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;
		}
	}
}


  • 좌동
  • BSR in LAN의 리소스 파일과 동일

N:1

...

N개의 노드에서 1개의 서버에 미러를 구성하는 방법입니다. 

Node OS BSR in LANDRX in LANDRX in RemoteBSR in Remote
Windows


Code Block
titleWindows R0
collapsetrue
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.
192
154:
6685
6677;
	
}
} }
  • 좌동
  • DRBD in LAN의 리소스 파일과 동일
Linux Centos 7.4 Code Block
titleLinux R0
collapsetrue
resource r0 { proxy

	on w28r2-7 {
		
memlimit 500M
device    d minor 1;
		
}
disk  
net
 
{
 
protocol
 
A
d;
		
on
meta-
congestion pull-ahead
disk  m;
		
sndbuf
node-
size
id 
10M
4;
		
congestion-fill 480M
address   31.1.1.157:6677;
	}

	connection 4-7 {
		host w28r2-4 address 31.1.1.154:6677 via proxy on 
c74
c73-
1
p1 {
			
node-id 1
inside 31.1.1.191:6678;
			outside 31.1.1.191:6679;
		
device
}
		host w28r2-7 
/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.
164
192:
7789
6679;
		}
	
on c74-2
}
}

resource r0-1 {
	proxy {
		
node-id
memlimit 
2
500M;
	}

	
device
net {
/dev/drbd0
		protocol A;
		
disk /dev/sdd1
on-congestion pull-ahead;
		
meta-disk /dev/sdb1
sndbuf-size 10M;
		
address 31.1.1.165:7789
congestion-fill 480M;
	}

	on 
c74
w28r2-
3
5 {
		
node-id 3
device    d minor 1;
		
device
disk     
/dev/drbd0
d;
		meta-disk  
/dev/sdd1
m;
		
meta
node-
disk /dev/sdb1
id 2;
		address   31.1.1.
166
155:
7789
6680;
	}
	on 
c74
w28r2-
4
7 {
		
node-id 4
device    e minor 2;
		
device
disk     
/dev/drbd0
e;
		meta-disk  
/dev/sdd1
n;
		
meta
node-
disk /dev/sdb1
id 4;
		address   31.1.1.
167
157:
7789
6680;
	}
	connection 
1
5-
2
7 {
		host 
c74
w28r2-
1
5 address 31.1.1.
164
155:
6677
6680 via proxy on c73-p1 {
			inside 31.1.1.191:
6678
6681;
			outside 31.1.1.191:
6679
6682;
		}
		host 
c74
w28r2-
2
7 address 31.1.1.
165
157:
6677
6680 via proxy on c73-p2 {
			inside 31.1.1.192:
6678
6681;
			outside 31.1.1.192:
6679; } } connection 1-3
6682;
		}
	}
}

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; outside
device    d minor 1;
		disk     d;
		meta-disk  m;
		node-id 3;
		address   31.1.1.
191
156:
6682
6683;
	
}
}
	on w28r2-7 {
		
host c74-3 address 31.1.1.166:6680 via proxy on c73-p2 { inside 31.1.1.192:6681; outside
device    f minor 3;
		disk     f;
		meta-disk  o;
		node-id 4;
		address   31.1.1.
192
157:
6682
6683;
}

	}
	connection 
1
6-
4
7 {
		host 
c74
w28r2-
1
6 address 31.1.1.
164
156:6683 via proxy on c73-p1 {
			inside 31.1.1.191:6684;
			outside 31.1.1.191:6685;
		}
		host 
c74
w28r2-
4
7 address 31.1.1.
167
157:6683 via proxy on c73-p2 {
			inside 31.1.1.192:6684;
			outside 31.1.1.192:6685;
		}
	}
}



Code Block
titleLinux DRX R0
collapsetrue
resource r0 {
	proxy {
		memlimit 500M;
	}

	net {
		protocol A;
		on-congestion pull-ahead;
		sndbuf-size 10M;
		congestion-fill 480M;
	}

	on 
c74
w28r2-
1
4 {
		
node-id 1
device /dev/bsr1;
		
device
disk     /dev/
drbd0
sdd;
		meta-disk  
/dev/
sdd1
sdm;
		
meta
node-
disk /dev/sdb1
id 1;
		address   31.1.1.
164
154:
7789
6677;
	}
	on 
c74
w28r2-
2
7 {
		
node-id 2
device /dev/bsr1;
		
device
disk     /dev/
drbd1
sdd;
		meta-disk
  /dev/
sdd1
sdm;
		
meta
node-
disk /dev/sdb1
id 4;
		address   31.1.1.
165
157:
7789
6677;
	}

	connection 
1
4-
2
7 {
		host 
c74
w28r2-
1
4 address 31.1.1.
164
154:6677 via proxy on c73-p1 {
			inside 31.1.1.191:6678;
			outside 31.1.1.191:6679;
		}
		host 
c74
w28r2-
2
7 address 31.1.1.
165
157: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
w28r2-
1
5 {
		
node-id 1
device /dev/bsr1;
		
device
disk     /dev/
drbd2
sdd;
		meta-disk
  /dev/
sdd2
sdm;
		
meta
node-
disk /dev/sdb2
id 2;
		address   31.1.1.
164
155:
7789
6680;
	}
	on 
c74
w28r2-
3
7 {
		
node-id 3;
device    /dev/
drbd2
bsr2;
		disk     /dev/
sdd2
sde;
		meta-disk  /dev/
sdb2
sdn;
		node-id 4;
		address   31.1.1.
166
157:
7789
6680;
	}
	connection 
1
5-
3
7 {
		host 
c74
w28r2-
1
5 address 31.1.1.
164
155:6680 via proxy on c73-p1 {
			inside 31.1.1.191:6681;
			outside 31.1.1.191:6682;
		}
		host 
c74
w28r2-
3
7 address 31.1.1.
166
157: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 
c74
w28r2-
1
6 {
		
node-id 1
device /dev/bsr1;
		
device
disk     /dev/
drbd3
sdd;
		meta-disk
  /dev/
sdd3
sdm;
		
meta
node-
disk /dev/sdb3
id 3;
		address   31.1.1.
164
156:
7789
6683;
	}
	on 
c74
w28r2-
4
7 {
		
node-id 4
device    /dev/bsr3;
		
device
disk     /dev/
drbd3
sdf;
		meta-disk  
/dev/
sdd3
sdo;
		
meta
node-
disk /dev/sdb3
id 4;
		address   31.1.1.
167
157:
7789
6683;
	}
	connection 
1
6-
4
7 {
		host 
c74
w28r2-
1
6 address 31.1.1.
164
156:6683 via proxy on c73-p1 {
			inside 31.1.1.191:6684;
			outside 31.1.1.191:6685;
		}
		host 
c74
w28r2-
4
7 address 31.1.1.
167
157:6683 via proxy on c73-p2 {
			inside 31.1.1.192:6684;
			outside 31.1.1.192:6685;
		}
	}
}


  • 좌동
DRBD in
  • BSR in LAN의 리소스 파일과 동일

3. N:1

N개의 노드에서 1개의 서버에 미러를 구성하는 방법입니다. 

Linux Centos 7.4
Node OS DRBD in LANDRX in LANDRX in RemoteDRBD in Remote
WindowsLinux Centos 7.4


Code Block
titleWindows Linux R0
collapsetrue
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
titleLinux DRX R0
collapsetrue
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의 리소스 파일과 동일

N:N

N개의 노드에서 N개의 노드에 미러를 구성하는 방법입니다. 

Node OS BSR in LANDRX in LANDRX in RemoteBSR in Remote
Windows


Code Block
title
Linux
Windows R0
collapsetrue
resource r0 {
	proxy {
		memlimit 500M;
	}

	net {
		protocol A;
		on-congestion pull-ahead;
		sndbuf-size 10M;
		congestion-fill 480M;
	}

	on 
c74
w28r2-
1
4 {
		device    
/dev/drbd1
d minor 1;
		disk   
/dev/sdd1
  d;
		meta-disk  
/dev/sdb1
m;
		node-id 1;
		address   31.1.1.
164
154:6677;
	}
	on 
c74
w28r2-
4
7 {
		device    d minor 
/dev/drbd1
1;
		disk     
/dev/sdd1
d;
		meta-disk 
/dev/sdb1
 m;
		node-id 4;
		address   31.1.1.
167
157:6677;
	}

	connection 
1
4-
4
7 {
		host 
c74
w28r2-
1
4 address 31.1.1.
164
154:6677 via proxy on c73-p1 {
			inside 31.1.1.191:6678;
			outside 31.1.1.191:6679;
		}
		host 
c74
w28r2-
4
7 address 31.1.1.
167
157: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
w28r2-
2
5 {
		device    
/dev/drbd2
d minor 1;
		disk     
/dev/sdd2
d;
		meta-disk  
/dev/sdb2
m;
		node-id 2;
		address   31.1.1.
165
155:6680;
	}
	on 
c74
w28r2-
4
6 {
		device    
/dev/drbd2
d minor 1;
		disk     
/dev/sdd2
d;
		meta-disk  
/dev/sdb2
m;
		node-id 
4
3;
		address   31.1.1.
167
156:6680;
	}
	connection 
2
5-
4
6 {
		host 
c74
w28r2-
2
5 address 31.1.1.
165
155:6680 via proxy on c73-p1 {
			inside 31.1.1.191:6681;
			outside 31.1.1.191:6682;
		}
		host 
c74
w28r2-
4
6 address 31.1.1.
168
156:6680 via proxy on c73-p2 {
			inside 31.1.1.192:6681;
			outside 31.1.1.192:6682;
		}
	}
}



Code Block
titleLinux DRX R0
collapsetrue
resource r0
-2
 {
	proxy {
		memlimit 500M;
	}

	net {
		protocol A;
		on-congestion pull-ahead;
		sndbuf-size 10M;
		congestion-fill 480M;
	}

	on 
c74
w28r2-
3
4 {
		device
 
/dev/
drbd3
bsr1;
		disk     /dev/
sdd3
sdd;
		meta-disk  /dev/
sdb3
sdm;
		node-id 
3
1;
		address   31.1.1.
166
154:
6683
6677;
	}
	on 
c74
w28r2-
4
7 {
		device
 /dev/
drbd3
bsr1;
		disk     /dev/
sdd3
sdd;
		meta-disk  /dev/
sdb3
sdm;
		node-id 4;
		address   31.1.1.
167
157:
6683
6677;
	}

	connection 
3
4-
4
7 {
		host 
c74
w28r2-
3
4 address 31.1.1.
166
154:
6683
6677 via proxy on c73-p1 {
			inside 31.1.1.191:
6684
6678;
			outside 31.1.1.191:
6685
6679;
		}
		host 
c74
w28r2-
4
7 address 31.1.1.
169
157:
6683
6677 via proxy on c73-p2 {
			inside 31.1.1.192:
6684
6678;
			outside 31.1.1.192:
6685
6679;
		}
	}
}
Code Block
titleLinux DRX R0
collapsetrue


resource r0-1 {
	proxy {
		memlimit 500M;
	}

	net {
		protocol A;
		on-congestion pull-ahead;
		sndbuf-size 10M;
		congestion-fill 480M;
	}

	on 
c74
w28r2-
1
5 {
		device 
/dev/
drbd1
bsr1;
		disk     /dev/
sdd1
sdd;
		meta-disk  /dev/
sdb1
sdm;
		node-id 
1
2;
		address   31.1.1.
164
155:
6677
6680;
	}
	on 
c74
w28r2-
4
6 {
		device
 /dev/
drbd1
bsr1;
		disk     /dev/
sdd1
sdd;
		meta-disk  /dev/
sdb1
sdm;
		node-id 
4
3;
		address   31.1.1.
167
156:
6677
6680;
	}
	connection 
1
5-
4
6 {
		host 
c74
w28r2-
1
5 address 31.1.1.
164
155:
6677
6680 via proxy on c73-p1 {
			inside 31.1.1.191:
6678
6681;
			outside 31.1.1.191:
6679
6682;
		}
		host 
c74
w28r2-
4
6 address 31.1.1.
167
156:
6677
6680 via proxy on c73-p2 {
			inside 31.1.1.192:
6678
6681;
			outside 31.1.1.192:
6679
6682;
		}
	}
}


  • 좌동
  • BSR in LAN의 리소스 파일과 동일
Linux Centos 7.4


Code Block
titleLinux R0
collapsetrue
resource r0
-1
 {
	proxy {
		memlimit 500M;
	}

	net {
		protocol A;
		on-congestion pull-ahead;
		sndbuf-size 10M;
		congestion-fill 480M;
	}

	on c74-
2
1 {
		device
 
/dev/
drbd2
bsr1;
		disk     /dev/
sdd2
sdd1;
		meta-disk  /dev/
sdb2
sdb1;
		node-id 
2
1;
		address   31.1.1.
165
164:
6680
6677;
	}
	on c74-4 {
		device
 /dev/
drbd2
bsr1;
		disk     /dev/
sdd2
sdd1;
		meta-disk  /dev/
sdb2
sdb1;
		node-id 4;
		address   31.1.1.167:
6680
6677;
	}

	connection 
2
1-4 {
		host c74-
2
1 address 31.1.1.
165
164:
6680
6677 via proxy on c73-p1 {
			inside 31.1.1.191:
6681
6678;
			outside 31.1.1.191:
6682
6679;
		}
		host c74-4 address 31.1.1.
168
167:
6680
6677 via proxy on c73-p2 {
			inside 31.1.1.192:
6681
6678;
			outside 31.1.1.192:
6682
6679;
		}
	}
}

resource r0-
2
1 {
	proxy {
		memlimit 500M;
	}

	net {
		protocol A;
		on-congestion pull-ahead;
		sndbuf-size 10M;
		congestion-fill 480M;
	}

	on c74-
3
2 {
		device
 /dev/
drbd3
bsr1;
		disk     /dev/
sdd3
sdd1;
		meta-disk  /dev/
sdb3
sdb1;
		node-id 
3
2;
		address   31.1.1.
166
165:
6683
6680;
	}
	on c74-
4
3 {
		device
 /dev/
drbd3
bsr1;
		disk     /dev/
sdd3
sdd1;
		meta-disk  /dev/
sdb3
sdb1;
		node-id 
4
3;
		address   31.1.1.
167
166:
6683
6680;
	}
	connection 2-3
-4
 {
		host c74-
3
2 address 31.1.1.
166
165:
6683
6680 via proxy on c73-p1 {
			inside 31.1.1.191:
6684
6681;
			outside 31.1.1.191:
6685
6682;
		}
		host c74-
4
3 address 31.1.1.
169
166:
6683
6680 via proxy on c73-p2 {
			inside 31.1.1.192:
6684
6681;
			outside 31.1.1.192:
6685
6682;
		}
	
} }
  • 좌동
  • DRBD in LAN의 리소스 파일과 동일

4. N:N

N개의 노드에서 N개의 노드에 미러를 구성하는 방법입니다. 

Node OS DRBD in LANDRX in LANDRX in RemoteDRBD in Remote
Windows
}
}



Code Block
titleWindows Linux DRX R0
collapsetrue
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;
		}
	}
}


  • 좌동
  • BSR in LAN의 리소스 파일과 동일

MDR  

Mirror DR (MDR) 구성은 1개의 노드에서 2개의 노드에 미러를 구성하는 방법입니다. 


Node OSBSR in LANDRX in LAN DRX in RemoteBSR in Remote

Windows


Code Block
title
Linux DRX R0
Windows node r0
collapsetrue
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;
	}

	on w28r2-
4
5 {
		
device /dev/drbd1
node-id 2;
	}
	
disk
on 
/dev/sdd;
w28r2-6 {
		
meta
node-
disk /dev/sdm
id 3;
	
node-id 1;
}

	connection DR-4-6 {
		
address
host w28r2-4 address 31.1.1.154:6677
;
 via 
}
proxy 
on 
w28r2
c73-
7
p1 {
			
device /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.
157
192:
6677
6679;
		}
	}

	connection 
4
DR-5-
7
6 {
		host w28r2-
4
5 address 31.1.1.
154
155:
6677
6680 via proxy on c73-p1 {
			inside 31.1.1.191:
6678
6681;
			outside 31.1.1.191:
6679
6682;
		}
		host w28r2-
7
6 address 31.1.1.
157
156:
6677
6680 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.
192
154:
6678
6676;
		
outside
host w28r2-5 address 31.1.1.
192
155:
6679
6676;
	}
} }
}



Code Block
titleLinux DRX R0
collapsetrue
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
bsr0;
	disk  
/dev/sdd;
	meta-disk 
/dev/sdm;

	on w28r2-4 {
		node-id 
3
1;
	
address 31.1.1.156:6680
}
	on w28r2-6 {
		node-id 3;
	}

	connection 
5
DR-4-6 {
		host w28r2-
5
4 address 31.1.1.
155
154:
6680
6677 via proxy on c73-p1 {
			inside 31.1.1.191:
6681
6678;
			outside 31.1.1.191:
6682
6679;
		}
		host w28r2-6 address 31.1.1.156:
6680
6677 via proxy on c73-p2 {
			inside 31.1.1.192:
6681
6678;
			outside 31.1.1.192:
6682
6679;
		}
	}
}
  • 좌동
  • DRBD in LAN의 리소스 파일과 동일
Linux Centos 7.4 Code Block
titleLinux R0
collapsetrue

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

{

	device /dev/
drbd1
bsr1;
	disk
  
/dev/sdd1;
	
meta-disk
 /dev/
sdb1
sdm1;

	
node-id 1;
on w28r2-5 {
		
address 31.1.1.164:6677
node-id 2;
	}
	on 
c74
w28r2-
4
6 {
device /dev/drbd1; disk /dev/sdd1;

		
meta-disk /dev/sdb1;
node-id 
4; address 31.1.1.167:6677
3;
	}

	connection 
1
DR-5-
4
6 {
		host 
c74
w28r2-
1
5 address 31.1.1.
164
155:
6677
6680 via proxy on c73-p1 {
			inside 31.1.1.191:
6678
6681;
			outside 31.1.1.191:
6679
6682;
		}
		host 
c74
w28r2-
4
6 address 31.1.1.
167
156:
6677
6680 via proxy on c73-p2 {
			inside 31.1.1.192:
6678
6681;
			outside 31.1.1.192:
6679
6682;
		}
	}
}


  • 좌동
  • BSR in LAN의 리소스 파일과 동일
Linux Centos 7.4


Code Block
titleLinux r0
collapsetrue
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 {
		
protocol
node-id 
A
1;
	}
	on
-congestion
 
pull
c74-
ahead; sndbuf-size 10M; congestion-fill 480M
2 {
		node-id 2;
	}

	on c74-
2
3 {
		
device /dev/drbd1
node-id 3;
	
disk
}

	connection DR-4-6 {
/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.
165
191:
6680
6678;
		
}
	
on c74-3 {
outside 31.1.1.191:6679;
		
device /dev/drbd1;
}
		
disk
host 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.
166
192:
6680
6679;
		}
	}

	connection 
2
DR-5-
3
6 {
		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.
166
192:
6680 via proxy on c73-p2
6682;
		}
	}

	connection {
		
inside
host c74-1 address 31.1.1.
192
164:
6681
6676;
		
outside
host c74-2 address 31.1.1.
192
165:
6682
6676;
	
}
}
}



Code Block
titleLinux DRX R0
collapsetrue
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

{

	device /dev/
drbd1
bsr0;
	disk
  
/dev/sdd1;
	
meta-disk
 /dev/sdb1;

	on c74-1 {
		node-id 
4
1;
	
address 31.1.1.167:6677
}
	on c74-3 {
		node-id 3;
	}

	connection 
1
DR-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-
4
3 address 31.1.1.
167
166: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/sdd1
 A;
		
meta
on-
disk /dev/sdb1
congestion pull-ahead;
		
node
sndbuf-
id
size 
2
10M;
		
address 31.1.1.165:6680
congestion-fill 480M;
	}
on

c74-3

{
	device /dev/
drbd1
bsr1;
	disk
  
/dev/
sdd1
sdd2;
	meta-disk 
/dev/
sdb1;
sdb2;

	on c74-2 {
		node-id 
3
2;
	
address 31.1.1.166:6680
}
	on c74-3 {
		node-id 3;
	}

	connection 
2
DR-5-
3
6 {
		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


  • BSR in LAN의 리소스 파일과 동일

...



SDR

공유 디스크를 사용하는 노드에서 DR노드에 미러를 구성하는 방법입니다. 

Node OS DRBD in BSR in LANDRX in LANDRX in RemoteDRBD in RemoteBSR in Remote
Windows


Code Block
titleWindows Node R0
collapsetrue
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
titleLinux DRX R0
collapsetrue
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
titleWindows DR R0
collapsetrue
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
titleLinux R0
collapsetrue
resource r0 {
	protocol A;
	device /dev/
drbd1
bsr1; # 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
titleLinux DRX R0
collapsetrue
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의 리소스 파일과 동일