2010년 2월 17일 수요일

nfs 서버 설치

nfs 서버 프로그램 설치


<두번째 방법>

  • http://www.murga-linux.com/puppy/viewtopic.php?t=45090 페이지의 중간에서
  • nfsd-k2.6.21.7-i486.pet과 nfs_common.tar.gz 를 다운로드함
  • 바탕화면의 file을 클릭하여, Downloads 폴더의 저장된 nfsd-k2.6.21.7-i486.pet 을 인스톨함
  • 바탕화면의 Console을 클릭하여 창을 열고, nfs_common.tar.gz를 풀어 설치함
  • >> cd /
  • >> tar xvfz /root/Downloads/nfs_common.tar.gz

  • 두개의 파일이 모두 설치되었으면,
  • 재부팅 (가장 간단한 방법)


<세번째 방법>

  • nfs-utils-1.2.0.tgz 를 다운로드 함

    • Console에서 저장되어 있는 디렉터리로 이동
    • tar xvfz nfs-utils-1.2.0.tgz
    • cd nfs-utils-1.2.0-i486
    • ./install

nfsd 실행하기


  • nfsd-2.2.pet을 설치한 경우

    • cd /etc/rc.d/init.d
    • ./portmap start
    • ./nfs-user-server start

  • nfsd-k2.6.21.7-i486.pet을 설치한 경우

    • cd /etc/rc.d
    • ./rc.portmap start
    • ./rc.nfsd start

  • nfs-utils-1.2.0 을 설치한 경우

    • /etc/rc.d/init.d/nfs start

  • nfs 동작 확인

    • rpcinfo -p 를 실행하여

    • rpcinfo.png

    • 와 같이 100003/2 과 100005/1 등이 설정되어 있으면 제대로 동작하는 것임.

    • MPC850 부팅 화면에서 (아래 3줄)에서 위의 두 포트를 확인함

    • mpc-3.png

    • 위 화면 마지막 줄과 같이
    • VFS: Mounted root (nfs filesystem). 메시지가 출력되면 성공

/etc/exports 수정하기

  • mkdir /initrd/mnt/dev_save/nfs
  • 다음 내용을 /etc/exports 에 추가

    • /initrd/mnt/dev_save/nfs *(rw,no_subtree_check,no_root_squash,no_all_squash)
    • /etc/rc.d/init.d/nfs-user-server restart 또는 /etc/rc.d/init.d/nfs restart 실행

  • nfs-utils-1.2.0을 설치한 경우 다음 명령에 의하여 확인 가능
  • $ exportfs -a { 메시지가 출력되지 않아야 정상 }
  • $ showmount -e { 다음과 같은 메시지가 보여야 함}
    Export list for puppypc:

/initrd/mnt/dev_save/nfs *

또는 Rebooting Computer

hosts.allow 수정하기

  • 만약 모든 설정이 제대로 되었는데도 동작이 안된다면
  • /etc/hosts.allow

portmap rpc.mountd rpc.nfsd rpc.statd statd nfsd mountd : ALL

을 추가하자.

MPC850보드의 시동 환경 조성하기


  • nfs 서버가 설치되었다면, MPC 850 보드의 시동 환경을 조성하기 위하여 ELDK의 파일들을 복사한다. ELDK 설치 참조

  • cd {ELDK설치 디렉토리}/ppc_8xx/images

  • gunzip ramdisk_image.gz

  • mount -o loop ramdisk_image /mnt/data

  • cp -a /mnt/data/* /initrd/mnt/dev_save/nfs {exports에서 설정한 nfs 디렉토리}

댓글 없음:

댓글 쓰기