[Comm] nfs trouble :/
Nick S. Grechukh
=?iso-8859-1?q?gns_=CE=C1_tpway=2Ecom?=
Сб Июн 3 00:03:20 MSD 2006
приветствую
вознамерился я таки разобраться с NFS, да не выходит каменный цветок
[root на bidash ~]# rpm -qf /etc/init.d/nfs
nfs-server-userland-2.2beta51-alt1
[root на bidash ~]# cat > /etc/exports << EOF
/media gns(ro)
EOF
[root на bidash ~]# service portmap start
Starting portmap service: [ DONE ]
[root на bidash ~]# service nfs start
Starting NFS daemon: [ DONE ]
Starting NFS mount service: [ DONE ]
[root на bidash ~]# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100003 2 udp 2049 nfs
100003 2 tcp 2049 nfs
100005 1 udp 815 mountd
100005 2 udp 815 mountd
100005 1 tcp 818 mountd
100005 2 tcp 818 mountd
[root на bidash ~]# netstat -lpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address
State PID/Program name
tcp 0 0 0.0.0.0:2049 0.0.0.0:*
LISTEN 9526/rpc.nfsd
tcp 0 0 0.0.0.0:707 0.0.0.0:*
LISTEN 8585/rpc.ugidd
tcp 0 0 0.0.0.0:111 0.0.0.0:*
LISTEN 9512/portmap
tcp 0 0 0.0.0.0:818 0.0.0.0:*
LISTEN 9542/rpc.mountd
tcp 0 0 0.0.0.0:22 0.0.0.0:*
LISTEN 6467/sshd
tcp 0 0 0.0.0.0:631 0.0.0.0:*
LISTEN 4216/cupsd
tcp 0 0 127.0.0.1:6010 0.0.0.0:*
LISTEN 9169/0
tcp 0 0 0.0.0.0:52666 0.0.0.0:*
LISTEN 8290/rpc.statd
udp 0 0 0.0.0.0:2049 0.0.0.0:*
9526/rpc.nfsd
udp 0 0 0.0.0.0:32771 0.0.0.0:*
8290/rpc.statd
udp 0 0 0.0.0.0:815 0.0.0.0:*
9542/rpc.mountd
udp 0 0 0.0.0.0:705 0.0.0.0:*
8585/rpc.ugidd
udp 0 0 0.0.0.0:834 0.0.0.0:*
8290/rpc.statd
udp 0 0 0.0.0.0:111 0.0.0.0:*
9512/portmap
udp 0 0 0.0.0.0:631 0.0.0.0:*
4216/cupsd
udp 0 0 10.99.1.1:123 0.0.0.0:*
4163/ntpd
udp 0 0 192.168.242.175:123 0.0.0.0:*
4163/ntpd
udp 0 0 127.0.0.1:123 0.0.0.0:*
4163/ntpd
udp 0 0 0.0.0.0:123 0.0.0.0:*
4163/ntpd
вроде все как надо? на клиенте:
[root на mordor ~]# mount -t nfs bidash.office.tpway.com:/media /mnt/nfs_cd/
mount to NFS server 'bidash.office.tpway.com' failed: server is down.
ладно.
[root на bidash ~]# apt-get install nfs-server
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
nfs-server-userland
The following NEW packages will be installed:
nfs-server
bla-bla-bla
[root на bidash ~]# service nfs start
Exporting NFS file systems: [ DONE ]
Starting NFS daemon: [FAILED]
[root на bidash ~]# tail /var/log/messages
un 2 22:58:58 bidash kernel: NFSD: Using /var/lib/nfs/v4recovery as the
NFSv4 state recovery directory
Jun 2 22:58:58 bidash kernel: NFSD: starting 90-second grace period
Jun 2 22:59:14 bidash kernel: NFSD: Using /var/lib/nfs/v4recovery as
the NFSv4 state recovery directory
Jun 2 22:59:14 bidash kernel: NFSD: starting 90-second grace period
[root на bidash ~]# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
и соответственно,
[root на mordor ~]# mount -vv -t nfs bidash:/media/mnt/nfs_cd/
mount to NFS server 'bidash.office.tpway.com' failed.
RPC Error: 15 ( Program not registered )
Подробная информация о списке рассылки community