R.A. Epigonos et al.

[debian] nfs サーバのセットアップ

nfs サーバのインストール、設定など

apt-cache で検索。nfs-kernel-server パッケージをインストール

# apt-cache --names-only search nfs
argonaut-fai-nfsroot - Argonaut (tools, queues and status management)
daemonfs - real time monitoring software
fai-nfsroot - Fully Automatic Installation nfsroot package
libfile-nfslock-perl - perl module to do NFS (or not) locking
libnfs-dev - NFS client library (development files)
libnfs4 - NFS client library (shared library)
libnfsidmap-dev - header files and docs for libnfsidmap
libnfsidmap2 - NFS idmapping library
libyanfs-java - Yet Another NFS - a Java NFS library
nfs-common - NFS support files common to client and server
nfs-kernel-server - support for NFS kernel server
nfs4-acl-tools - Commandline and GUI ACL utilities for the NFSv4 client
nfswatch - Program to monitor NFS traffic for the console
unionfs-fuse - Fuse implementation of unionfs

インストールは apt-get で。

# apt-get install nfs-kernel-server
(snip)

export したいディレクトリは /etc/exports に書き込む。今回は export したいディレクトリにデバイスをマウントするのでその設定を /etc/fstab に書き込む。設定後は以下の様な感じ。これで再起動後に別マシンからこのマシンの /mnt/sdd1 をマウントする準備が整った。

# grep --regexp='/mnt/sdd1' /etc/exports
/mnt/sdd1  *(rw,sync,no_subtree_check)
# grep --regexp='/mnt/sdd1' /etc/fstab
UUID=????????-????-????-????-???????????? /mnt/sdd1     ext4    defaults     0
        1

NFS クライアント側で以下のコマンドを使ってマウントテスト。

# mount 192.168.???.???:/********** /********************

NFS クライアント側で設定を永続化するために /etc/fstab に書き込む

# grep --regexp='^192.168' /etc/fstab
192.168.???.???:/**********       /********************       nfs     defaults,noauto 0    0

リファレンス

  1. NFSServerSetup - Debian Wiki

ソーシャルブックマーク

  1. はてなブックマーク
  2. Google Bookmarks
  3. del.icio.us

ChangeLog

  1. Posted: 2010-07-22T15:19:22+09:00
  2. Modified: 2010-07-22T15:19:22+09:00
  3. Generated: 2023-08-27T23:09:11+09:00