Versions Compared

Key

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

Table of Contents

...


MDR  

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


Node OSBSR in LANDRX in LAN DRX in RemoteBSR in Remote

Windows


Code Block
titleWindows node r0
collapsetrue
resource r0 {
	proxy {
		memlimit 500M;
	}

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

	device d;
	disk  d;
	meta-disk m;

	on w28r2-4 {
		node-id 1;
	}
	on w28r2-5 {
		node-id 2;
	}
	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;
		}
	}

	connection DR-5-6 {
		host w28r2-5 address 31.1.1.155:6680 via proxy on c73-p1 {
			inside 31.1.1.191:6681;
			outside 31.1.1.191:6682;
		}
		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 {
		host w28r2-4 address 31.1.1.154:6676;
		host w28r2-5 address 31.1.1.155: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;
	}

	device /dev/bsr0;
	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/bsr1;
	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-5 address 31.1.1.155:6680 via proxy on c73-p1 {
			inside 31.1.1.191:6681;
			outside 31.1.1.191:6682;
		}
		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;
		}
	}
}


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


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

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

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

	on c74-1 {
		node-id 1;
	}
	on c74-2 {
		node-id 2;
	}
	on c74-3 {
		node-id 3;
	}

	connection 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-3 address 31.1.1.166:6677 via proxy on c73-p2 {
			inside 31.1.1.192:6678;
			outside 31.1.1.192:6679;
		}
	}

	connection DR-5-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;
		}
	}

	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 {
	proxy {
		memlimit 500M;
	}

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

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

	on c74-1 {
		node-id 1;
	}
	on c74-3 {
		node-id 3;
	}

	connection 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-3 address 31.1.1.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;
	}

	device /dev/bsr1;
	disk  /dev/sdd2;
	meta-disk /dev/sdb2;

	on c74-2 {
		node-id 2;
	}
	on c74-3 {
		node-id 3;
	}

	connection DR-5-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;
		}
	}
}


  • 좌동


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

...



1:N 

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

Node OS  BSRDRX 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 {
		node-id 1;
		device    d  minor 1;
		disk      d;
		meta-disk m;
		address   31.1.1.154:7789;
	}
	on w28r2-5 {
		node-id 2;
		device    d minor 1;
		disk      d;
		meta-disk m;
		address   31.1.1.155:7789;
	}
	on w28r2-6 {
		node-id 3;
		device    d minor 1;
		disk      d;
		meta-disk m;
		address   31.1.1.156:7789;
	}
	on w28r2-7 {
		node-id 4;
		device    d minor 1;
		disk      d;
		meta-disk m;
		address   31.1.1.157:7789;
	}
	connection 4-5 {
		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-5 address 31.1.1.155:6677 via proxy on c73-p2 {
			inside 31.1.1.192:6678;
			outside 31.1.1.192:6679;
		}
	}
	connection 4-6 {
		host w28r2-4 address 31.1.1.154:6680 via proxy on c73-p1 {
			inside 31.1.1.191:6681;
			outside 31.1.1.191:6682;
		}
		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-4 address 31.1.1.154:6683 via proxy on c73-p1 {
			inside 31.1.1.191:6684;
			outside 31.1.1.191:6685;
		}
		host w28r2-7 address 31.1.1.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 w28r2-4 {
		node-id 1;
		device    /dev/bsr1;
		disk   /dev/sdm1;
		meta-disk /dev/sdm1;
		address   31.1.1.154:7789;
	}
	on w28r2-5 {
		node-id 2;
		device    /dev/bsr2;
		disk   /dev/sdm2;
		meta-disk /dev/sdm2;
		address   31.1.1.155:7789;
	}
	connection 4-5 {
		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-5 address 31.1.1.155: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 w28r2-4 {
		node-id 1;
		device    /dev/bsr2;
		disk   /dev/sdm2;
		meta-disk /dev/sdm2;
		address   31.1.1.154:7789;
	}
	on w28r2-6 {
		node-id 3;
		device    /dev/bsr3;
		disk   /dev/sdm3;
		meta-disk /dev/sdm3;
		address   31.1.1.156:7789;
	}
	connection 4-6 {
		host w28r2-4 address 31.1.1.154:6680 via proxy on c73-p1 {
			inside 31.1.1.191:6681;
			outside 31.1.1.191:6682;
		}
		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;
		}
	}
}

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

	net {
		protocol A;
		on-congestion pull-ahead;
		sndbuf-size 10M;
		congestion-fill 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/bsr3;
		disk   /dev/sdm3;
		meta-disk /dev/sdm3;
		address   31.1.1.157:7789;
	}
	connection 4-7 {
		host w28r2-4 address 31.1.1.154:6683 via proxy on c73-p1 {
			inside 31.1.1.191:6684;
			outside 31.1.1.191:6685;
		}
		host w28r2-7 address 31.1.1.157:6683 via proxy on c73-p2 {
			inside 31.1.1.192:6684;
			outside 31.1.1.192:6685;
		}
	}
}


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


Linux Centos 7.4


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

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

	on c74-1 {
		node-id 1;
		device    /dev/bsr0;
		disk   /dev/sdd1;
		meta-disk /dev/sdb1;
		address   31.1.1.164:7789;
	}
	on c74-2 {
		node-id 2;
		device    /dev/bsr0;
		disk   /dev/sdd1;
		meta-disk /dev/sdb1;
		address   31.1.1.165:7789;
	}
	on c74-3 {
		node-id 3;
		device    /dev/bsr0;
		disk   /dev/sdd1;
		meta-disk /dev/sdb1;
		address   31.1.1.166:7789;
	}
	on c74-4 {
		node-id 4;
		device    /dev/bsr0;
		disk   /dev/sdd1;
		meta-disk /dev/sdb1;
		address   31.1.1.167:7789;
	}
	connection 1-2 {
		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-2 address 31.1.1.165:6677 via proxy on c73-p2 {
			inside 31.1.1.192:6678;
			outside 31.1.1.192:6679;
		}
	}
	connection 1-3 {
		host c74-1 address 31.1.1.164: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;
		}
	}
	connection 1-4 {
		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.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 c74-1 {
		node-id 1;
		device    /dev/bsr0;
		disk   /dev/sdd1;
		meta-disk /dev/sdb1;
		address   31.1.1.164:7789;
	}
	on c74-2 {
		node-id 2;
		device    /dev/bsr1;
		disk   /dev/sdd1;
		meta-disk /dev/sdb1;
		address   31.1.1.165:7789;
	}
	connection 1-2 {
		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-2 address 31.1.1.165: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-1 {
		node-id 1;
		device    /dev/bsr2;
		disk   /dev/sdd2;
		meta-disk /dev/sdb2;
		address   31.1.1.164:7789;
	}
	on c74-3 {
		node-id 3;
		device    /dev/bsr2;
		disk   /dev/sdd2;
		meta-disk /dev/sdb2;
		address   31.1.1.166:7789;
	}
	connection 1-3 {
		host c74-1 address 31.1.1.164: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;
		}
	}
}
resource r0-2 {
	proxy {
		memlimit 500M;
	}

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

	on c74-1 {
		node-id 1;
		device    /dev/bsr3;
		disk   /dev/sdd3;
		meta-disk /dev/sdb3;
		address   31.1.1.164:7789;
	}
	on c74-4 {
		node-id 4;
		device    /dev/bsr3;
		disk   /dev/sdd3;
		meta-disk /dev/sdb3;
		address   31.1.1.167:7789;
	}
	connection 1-4 {
		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.167:6683 via proxy on c73-p2 {
			inside 31.1.1.192: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.154:6677;
	}
	on w28r2-7 {
		device    d minor 1;
		disk     d;
		meta-disk  m;
		node-id 4;
		address   31.1.1.157:6677;
	}

	connection 4-7 {
		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-7 address 31.1.1.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 w28r2-5 {
		device    d minor 1;
		disk     d;
		meta-disk  m;
		node-id 2;
		address   31.1.1.155:6680;
	}
	on w28r2-7 {
		device    e minor 2;
		disk     e;
		meta-disk  n;
		node-id 4;
		address   31.1.1.157:6680;
	}
	connection 5-7 {
		host w28r2-5 address 31.1.1.155:6680 via proxy on c73-p1 {
			inside 31.1.1.191:6681;
			outside 31.1.1.191:6682;
		}
		host w28r2-7 address 31.1.1.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 w28r2-6 {
		device    d minor 1;
		disk     d;
		meta-disk  m;
		node-id 3;
		address   31.1.1.156:6683;
	}
	on w28r2-7 {
		device    f minor 3;
		disk     f;
		meta-disk  o;
		node-id 4;
		address   31.1.1.157:6683;
	}
	connection 6-7 {
		host w28r2-6 address 31.1.1.156:6683 via proxy on c73-p1 {
			inside 31.1.1.191:6684;
			outside 31.1.1.191:6685;
		}
		host w28r2-7 address 31.1.1.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 w28r2-4 {
		device /dev/bsr1;
		disk     /dev/sdd;
		meta-disk  /dev/sdm;
		node-id 1;
		address   31.1.1.154:6677;
	}
	on w28r2-7 {
		device /dev/bsr1;
		disk     /dev/sdd;
		meta-disk  /dev/sdm;
		node-id 4;
		address   31.1.1.157:6677;
	}

	connection 4-7 {
		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-7 address 31.1.1.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 w28r2-5 {
		device /dev/bsr1;
		disk     /dev/sdd;
		meta-disk  /dev/sdm;
		node-id 2;
		address   31.1.1.155:6680;
	}
	on w28r2-7 {
		device    /dev/bsr2;
		disk     /dev/sde;
		meta-disk  /dev/sdn;
		node-id 4;
		address   31.1.1.157:6680;
	}
	connection 5-7 {
		host w28r2-5 address 31.1.1.155:6680 via proxy on c73-p1 {
			inside 31.1.1.191:6681;
			outside 31.1.1.191:6682;
		}
		host w28r2-7 address 31.1.1.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 w28r2-6 {
		device /dev/bsr1;
		disk     /dev/sdd;
		meta-disk  /dev/sdm;
		node-id 3;
		address   31.1.1.156:6683;
	}
	on w28r2-7 {
		device    /dev/bsr3;
		disk     /dev/sdf;
		meta-disk  /dev/sdo;
		node-id 4;
		address   31.1.1.157:6683;
	}
	connection 6-7 {
		host w28r2-6 address 31.1.1.156:6683 via proxy on c73-p1 {
			inside 31.1.1.191:6684;
			outside 31.1.1.191:6685;
		}
		host w28r2-7 address 31.1.1.157:6683 via proxy on c73-p2 {
			inside 31.1.1.192:6684;
			outside 31.1.1.192:6685;
		}
	}
}


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


Code Block
titleLinux 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/bsr1;
		disk   /dev/sdd1;
		meta-disk /dev/sdb1;
		node-id 1;
		address   31.1.1.164:6677;
	}
	on c74-4 {
		device    /dev/bsr1;
		disk   /dev/sdd1;
		meta-disk /dev/sdb1;
		node-id 4;
		address   31.1.1.167:6677;
	}

	connection 1-4 {
		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 address 31.1.1.167: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/bsr2;
		disk   /dev/sdd2;
		meta-disk /dev/sdb2;
		node-id 2;
		address   31.1.1.165:6680;
	}
	on c74-4 {
		device    /dev/bsr2;
		disk   /dev/sdd2;
		meta-disk /dev/sdb2;
		node-id 4;
		address   31.1.1.167:6680;
	}
	connection 2-4 {
		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-4 address 31.1.1.168: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-3 {
		device    /dev/bsr3;
		disk   /dev/sdd3;
		meta-disk /dev/sdb3;
		node-id 3;
		address   31.1.1.166:6683;
	}
	on c74-4 {
		device    /dev/bsr3;
		disk   /dev/sdd3;
		meta-disk /dev/sdb3;
		node-id 4;
		address   31.1.1.167:6683;
	}
	connection 3-4 {
		host c74-3 address 31.1.1.166: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.169: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-1 {
		device    /dev/bsr1;
		disk   /dev/sdd1;
		meta-disk /dev/sdb1;
		node-id 1;
		address   31.1.1.164:6677;
	}
	on c74-4 {
		device    /dev/bsr1;
		disk   /dev/sdd1;
		meta-disk /dev/sdb1;
		node-id 4;
		address   31.1.1.167:6677;
	}

	connection 1-4 {
		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 address 31.1.1.167: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/bsr2;
		disk   /dev/sdd2;
		meta-disk /dev/sdb2;
		node-id 2;
		address   31.1.1.165:6680;
	}
	on c74-4 {
		device    /dev/bsr2;
		disk   /dev/sdd2;
		meta-disk /dev/sdb2;
		node-id 4;
		address   31.1.1.167:6680;
	}
	connection 2-4 {
		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-4 address 31.1.1.168: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-3 {
		device    /dev/bsr3;
		disk   /dev/sdd3;
		meta-disk /dev/sdb3;
		node-id 3;
		address   31.1.1.166:6683;
	}
	on c74-4 {
		device    /dev/bsr3;
		disk   /dev/sdd3;
		meta-disk /dev/sdb3;
		node-id 4;
		address   31.1.1.167:6683;
	}
	connection 3-4 {
		host c74-3 address 31.1.1.166: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.169:6683 via proxy on c73-p2 {
			inside 31.1.1.192:6684;
			outside 31.1.1.192:6685;
		}
	}
}


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

...

N:N

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

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.154:6677;
	}
	on w28r2-7 {
		device    d minor 1;
		disk     d;
		meta-disk  m;
		node-id 4;
		address   31.1.1.157:6677;
	}

	connection 4-7 {
		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-7 address 31.1.1.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 w28r2-5 {
		device    d minor 1;
		disk     d;
		meta-disk  m;
		node-id 2;
		address   31.1.1.155:6680;
	}
	on w28r2-6 {
		device    d minor 1;
		disk     d;
		meta-disk  m;
		node-id 3;
		address   31.1.1.156:6680;
	}
	connection 5-6 {
		host w28r2-5 address 31.1.1.155:6680 via proxy on c73-p1 {
			inside 31.1.1.191:6681;
			outside 31.1.1.191:6682;
		}
		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;
		}
	}
}



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 w28r2-4 {
		device /dev/bsr1;
		disk     /dev/sdd;
		meta-disk  /dev/sdm;
		node-id 1;
		address   31.1.1.154:6677;
	}
	on w28r2-7 {
		device /dev/bsr1;
		disk     /dev/sdd;
		meta-disk  /dev/sdm;
		node-id 4;
		address   31.1.1.157:6677;
	}

	connection 4-7 {
		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-7 address 31.1.1.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 w28r2-5 {
		device /dev/bsr1;
		disk     /dev/sdd;
		meta-disk  /dev/sdm;
		node-id 2;
		address   31.1.1.155:6680;
	}
	on w28r2-6 {
		device /dev/bsr1;
		disk     /dev/sdd;
		meta-disk  /dev/sdm;
		node-id 3;
		address   31.1.1.156:6680;
	}
	connection 5-6 {
		host w28r2-5 address 31.1.1.155:6680 via proxy on c73-p1 {
			inside 31.1.1.191:6681;
			outside 31.1.1.191:6682;
		}
		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;
		}
	}
}


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


Code Block
titleLinux 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/bsr1;
		disk     /dev/sdd1;
		meta-disk  /dev/sdb1;
		node-id 1;
		address   31.1.1.164:6677;
	}
	on c74-4 {
		device /dev/bsr1;
		disk     /dev/sdd1;
		meta-disk  /dev/sdb1;
		node-id 4;
		address   31.1.1.167:6677;
	}

	connection 1-4 {
		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 address 31.1.1.167: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/bsr1;
		disk     /dev/sdd1;
		meta-disk  /dev/sdb1;
		node-id 2;
		address   31.1.1.165:6680;
	}
	on c74-3 {
		device /dev/bsr1;
		disk     /dev/sdd1;
		meta-disk  /dev/sdb1;
		node-id 3;
		address   31.1.1.166:6680;
	}
	connection 2-3 {
		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;
		}
	}
}



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/bsr1;
		disk     /dev/sdd1;
		meta-disk  /dev/sdb1;
		node-id 1;
		address   31.1.1.164:6677;
	}
	on c74-4 {
		device /dev/bsr1;
		disk     /dev/sdd1;
		meta-disk  /dev/sdb1;
		node-id 4;
		address   31.1.1.167:6677;
	}

	connection 1-4 {
		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 address 31.1.1.167: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/bsr1;
		disk     /dev/sdd1;
		meta-disk  /dev/sdb1;
		node-id 2;
		address   31.1.1.165:6680;
	}
	on c74-3 {
		device /dev/bsr1;
		disk     /dev/sdd1;
		meta-disk  /dev/sdb1;
		node-id 3;
		address   31.1.1.166:6680;
	}
	connection 2-3 {
		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;
		}
	}
}


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

...

SDR

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

...