'전체 글'에 해당되는 글 1435건

  1. 2008.03.30 CENT OS 5.0 설치후 named 데몬 에러날때
  2. 2008.03.30 리눅스에서 하드디스크 추가 장착하기

반응형

센트OS 5.0 설치시 RPM으로 BIND 설치 했으나 설치후에 네임서버 구축하기 위하여 named 데몬를 시작하면 named.conf 파일이 없다고 하면서 더 이상 진행이 되지 않는다. 대부분 이럴때 재설치 하여도 동일한 현상이 나타나기 때문에 난감한 경우가 있다. 어떻게 대처 하는지 살쳐보자


CentOS의 bind-9.3.3 버전에서는 named.conf와 같은 config 파일을 더이상 기본으로 설치해 주지 않는다.

이것은 버그가 아니라, 신중히 고려한 결과로 선택한 사항이다. 기본적으로  /usr/share/doc/bind-9.x.x/sample/etc 나 /usr/share/doc/bind-9.x.x/sample/var/ 에서 설정파일을 복사하여 사용하면 된다.

혹은 system-config-bind를 이용하여 설정할 수도 있다.

[root@ns root]# rpm -qa | grep bind

bind-9.3.3
bind-libs-9.3.3
bind-utils-9.3.3

[root@ns root]# rpm -qa | grep nameserver

caching-nameserver-9.3.3


이상의 패키지가 설치되어 있는지 확인한다.

caching-nameserver-9.3.3 패키지가 설치되어 있다면,
/etc/named.conf를 대신하여 /etc/named.caching-nameserver.conf가 BIND 설정파일이 된다.

별도의 설정을 사용하고자 한다면, /etc/named.conf을 만들어주면,
BIND 서비스 재시작시 자동으로 /etc/named.conf를 설정파일로 이용한다.

별다른 error 없이 서비스 할 수 있을 것이다.

bind-chroot 패키지를 설치하였다면, BIND 서비스는 /var/named/chroot 디렉토리를 통하여 실행된다.

또한 모든 설정파일도 /var/named/chroot 디렉토리로 이동될 것이다.

named.conf 설정 파일도 /etc 디렉토리에 위치하는 것이 아니라 /var/named/chroot/etc/ 디렉토리에 위치하게 된다.


-------------- 원문 ------------------



=============================================================
Bind is broken in CentOS 5
No, it's not. Yes, it looks like it, as bind-9.3.3 in CentOS doesn't install the config files anymore, at least not, where you would expect them. That was a deliberate choice by our upstream vendor. See this bugzilla entry.

Basically you can just copy the example files from /usr/share/doc/bind-9.x.x/sample/etc/ and /usr/share/doc/bind-9.x.x/sample/var/ to start your own configuration from.

Or you can use system-config-bind to set things up.

Documentation on bind can be found in the Deployment Guide, see Chapter 16.



Note
If you have installed the bind-chroot package, the BIND service will run in the /var/named/chroot environment. All configuration files will be moved there. As such, named.conf will be located in /var/named/chroot/etc/named.conf, and so on.

Tip
If you have installed the caching-nameserver package, the default configuration file is /etc/named.caching-nameserver.conf. To override this default configuration, you can create your own custom configuration file in /etc/named.conf. BIND will use the /etc/named.conf custom file instead of the default configuration file after you restart.

출처: hong's blog

반응형
,

반응형
리눅스에서 하드디스크 추가 장착하기

리눅스 시스템에서 운영체제 설치후에 추가로 하드디스크를 장착해야 할 경우가 있다. 핫스왑이 지원이 되긴 하지만 어떻게 장착하고 명령어는 어떻게 사용하는지를 살펴 본다.

우선 하드디스크 베이에 추가할 하드디스크를  장착한다.

1. fdisk /dev/sdb 하드가 정확히 올라오는지 확인한후 파티션을 잡는다.

# fdisk  /dev/sdb 명령어후 m, p 명령어를 이용하여 디바이스 장치명을 알아낸다.
  대부분 SCSI 하드디스크의 경우 /sda , /sdb /sdc....이런 순으로 배열이 된다.  


**RAID의 경우 이름이 틀리다.(EX HP:fdisk /dev/cciss/c0d1p1)

2. 파일시스템을 포맷한다.

    mkfs -t ext2 /dev/sdb1 =>EXT2 포맷
    mke2fs -j /dev/sdb1   =>EXT3 포맷
 
3. 포맷후 마운트를 해본다.
    mount -t ext3 /dev/sdb1 /home2

4. 자동인식되겠끔 fstab에 잡아준다.
   /dev/sdb1      ext3        default  0 1

   재부팅해서 올라오는지 확인해본다.
 
간단한 사항지지만 많은 사람들이 잘 모르거나 급할경우에 또 찾아야 하는 경우가 있다. 몇번 실습후에 아예 암기해 놓으면 작업시 빠르게 진행 할수 있다. 참고 하시기 바란다.



반응형
,