[DRBD] 미러디스크 리소스 온라인중 데이터 정합성 확인 절차

1. r0.res 리소스 파일 속성값 추가

  net{

              verify-alg md5;     

        }

md5외에 crc32c , sha1 사용가능 어느 것을 사용해도 무방

2. r0.res config 적용

# drbdadm adjust r0

3. 정합성 검사 시작

# drbdadm verify r0

4.message log 확인하여 정합성이 맞는지 확인

데이터 정합이 맞는경우

Jun 10 13:43:17 test_a kernel: block drbd0: conn( Connected -> VerifyS )

Jun 10 13:43:17 test_a kernel: block drbd0: Starting Online Verify from sector 0

Jun 10 13:44:02 test_a kernel: block drbd0: Online verify done (total 44 sec; paused 0 sec; 95300 K/sec)

Jun 10 13:44:02 test_a kernel: block drbd0: conn( VerifyS -> Connected )

정합이 맞지 않는경우

May 20 08:36:20 wimpas1 kernel: drbd0: conn( Connected -> VerifyT )

May 20 08:51:42 wimpas1 kernel: drbd0: Out of sync: start=53862808, size=8 (sectors)

May 20 08:51:47 wimpas1 kernel: drbd0: Out of sync: start=54175416, size=8 (sectors)

May 20 08:51:50 wimpas1 kernel: drbd0: Out of sync: start=54300672, size=8 (sectors)

May 20 08:52:05 wimpas1 kernel: drbd0: Out of sync: start=55233848, size=8 (sectors)

May 20 09:16:22 wimpas1 kernel: drbd0: Out of sync: start=140359968, size=8 (sectors)

May 20 11:22:41 wimpas1 kernel: drbd0: Online verify done (total 9981 sec; paused 0 sec; 28716 K/sec)

5. 데이터 정합이 맞지 않는 경우 아래와 같은 절차 진행

# drbdadm disconnect r0

# drbdadm connect r0

정합을 맞추기 위해 drbd 에서 sync 진행

drbd 상태 확인