리눅스 분류
DRBD 관련 오류
작성자 정보
- route 작성
- 작성일
컨텐츠 정보
- 2,334 조회
- 1 댓글
- 0 추천
- 목록
본문
안녕하세요~
리눅스 서버 운영 초보자 입니다 ㅜ
drbd 설치하고 있는 도중에 문제가 발생하여 도움을 요청합니다...
drbd 스타트 명령을 수행하니 아래와 같은 오류가 뜨더군요.
# /etc/init.d/drbd start
Starting DRBD resources: [ d(r0) 0: Failure: (104) Can not open backing device.
[r0] cmd /sbin/drbdsetup 0 disk /dev/sda /dev/sda internal --set-defaults --create-device --on-io-error=detach failed - continuing!
왜 이렇게 나오는 걸까요 ㅜㅜ
아시는 분께서는 답변 달아주시면 정말 감사하겠습니다 !! ㅜ
아래는 설정 정보입니다. 필요한 정보 있으시면 말씀해주세요
감사합니다.
# vi /etc/drbd.conf
global {
usage-count yes;
}
common {
syncer{rate 100M;}
}
resource r0 {
protocol C;
disk {on-io-error detach;}
syncer{
}
on purple1 {
device /dev/drbd0;
disk /dev/sda;
address 192.168.1.4:7789;
meta-disk internal;
}
on purple2 {
device /dev/drbd0;
disk /dev/sda;
address 192.168.1.11:7789;
meta-disk internal;
}
}
# fdisk -l
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 fd Linux raid autodetect
/dev/sda2 14 30271 243047385 fd Linux raid autodetect
/dev/sda3 30272 30401 1044225 fd Linux raid autodetect
Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13 104391 fd Linux raid autodetect
/dev/sdb2 14 30271 243047385 fd Linux raid autodetect
/dev/sdb3 30272 30401 1044225 fd Linux raid autodetect
Disk /dev/md1: 248.8 GB, 248880431104 bytes
2 heads, 4 sectors/track, 60761824 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md1 doesn't contain a valid partition table
Disk /dev/md2: 1069 MB, 1069219840 bytes
2 heads, 4 sectors/track, 261040 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md2 doesn't contain a valid partition table
Disk /dev/md0: 106 MB, 106823680 bytes
2 heads, 4 sectors/track, 26080 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md0 doesn't contain a valid partition table
관련자료
-
이전
-
다음
댓글 1
쭈운님의 댓글
- 쭈운
- 작성일
device /dev/drbd0;
disk /dev/sda;
이부분이 문제인데요....
빈 파티션을 먼저 만들어 줘야 하고.. 그쪽 파티션으로 연결해야 합니다.
예를들면 2번 디스크를 추가하고 파티션을 잡아줬다면
device /dev/drbd0;
disk /dev/sdb1;
이런식이 되겠죠.
disk /dev/sda;
이부분이 문제인데요....
빈 파티션을 먼저 만들어 줘야 하고.. 그쪽 파티션으로 연결해야 합니다.
예를들면 2번 디스크를 추가하고 파티션을 잡아줬다면
device /dev/drbd0;
disk /dev/sdb1;
이런식이 되겠죠.