NFS サーバ(2)

Debian LS-GL

内向きサーバの LS-GL に NFS サーバを設定したのだが、、、、
ude:/srv/nfs# mkdir /tmp/nfs
ude:/srv/nfs# mount ude:/srv/nfs/rootfsv1.0 /tmp/nfs
mount.nfs: mount to NFS server 'ude' failed: RPC Error: Program not registered
ude:/srv/nfs# mount ude:/rootfsv1.0 /tmp/nfs
mount.nfs: mount to NFS server 'ude' failed: RPC Error: Program not registered
ude:/srv/nfs#
となって、NFS マウントできない。

nfs-kernel-server では動かない?
nfs-user-server を試す。

nfs-kernel-server のアンインストール

ude:/srv/nfs# apt-get remove nfs-kernel-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libnfsidmap2 libevent1 librpcsecgss3 libgssglue1 portmap nfs-common
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  nfs-kernel-server
0 upgraded, 0 newly installed, 1 to remove and 25 not upgraded.
After this operation, 365kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 10267 files and directories currently installed.)
Removing nfs-kernel-server ...
Stopping NFS kernel daemon: mountd nfsd.
Unexporting directories for NFS kernel daemon....
Processing triggers for man-db ...
ude:/srv/nfs#

nfs-user-server のインストール

ude:/srv/nfs# apt-get install nfs-user-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libnfsidmap2 libevent1 librpcsecgss3 libgssglue1 nfs-common
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  nfs-user-server
0 upgraded, 1 newly installed, 0 to remove and 25 not upgraded.
Need to get 103kB of archives.
After this operation, 270kB of additional disk space will be used.
Get:1 http://ftp.jp.debian.org lenny/main nfs-user-server 2.2beta47-25 [103kB]
Fetched 103kB in 0s (185kB/s)
Selecting previously deselected package nfs-user-server.
(Reading database ... 10242 files and directories currently installed.)
Unpacking nfs-user-server (from .../nfs-user-server_2.2beta47-25_armel.deb) ...
Processing triggers for man-db ...
Setting up nfs-user-server (2.2beta47-25) ...
Starting NFS servers: nfsd mountd.
ude:/srv/nfs#

/etc/exports の確認

ude:/srv/nfs# cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
#               to NFS clients.  See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes       hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)
#
/srv/nfs        *(rw,sync,no_root_squash)
ude:/srv/nfs#
purge していないので、そのまま残っている

確認

マウントして確認する。
ude:/srv/nfs# mount ude:/srv/nfs/rootfsv1.0 /tmp/nfs
ude:/srv/nfs# ls /tmp/nfs/
bin  dev  etc  lib  linuxrc  mnt  proc  sbin  usr
ude:/srv/nfs#
OK?

LS-GL
バッファローダイレクト
楽天市場
Amazon
Yahoo!ショッピング
livedoor デパート
ドスパラ


NFS サーバ
ハックの記録
LinkStation/玄箱 をハックしよう

まっさらにする

Copyright (C) 2003-2009 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市