The OpenNET Project / Index page

[ новости /+++ | форум | wiki | теги | ]



"nfs client (nanostation 2) на openwrt, nfs server на дебиан "
Вариант для распечатки  
Пред. тема | След. тема 
Форум Открытые системы на рабочей станции (Сеть / Linux)
Изначальное сообщение [ Отслеживать ]

"nfs client (nanostation 2) на openwrt, nfs server на дебиан "  +/
Сообщение от nnfemail (ok), 21-Окт-19, 15:48 
Просидел неделю не могу кдиента и сервер соединить

route на сервере

root@r:~# route
Kernel IP routing table server
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         ser.mshome.net  0.0.0.0         UG    100    0        0 eth0
192.168.0.0     0.0.0.0         255.255.255.0   U     100    0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     101    0        0 eth1

ip server 192.168.1.2, ip clenta 192.168.1.1

client
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 br-lan
root@client:~#

root@r:/etc/init.d# exportfs -rav
exporting *:/home/nfs4
exporting *:/home/nfs
root@r:/etc/init.d#

root@r:/etc/init.d# showmount -e 192.168.1.2
Export list for 192.168.1.2:
/home/nfs4 *
/home/nfs  *

root@r:/etc/init.d# showmount -e 192.168.1.1
clnt_create: RPC: Unable to receive

запустил в ручную portmap
root@r:/etc/init.d# showmount -e 192.168.1.1
clnt_create: RPC: Program not registered
с стороны клиента
root@client:/usr/sbin# showmount -e 192.168.1.1
clnt_create: RPC: Program not registered

root@client:/usr/sbin# showmount -e 192.168.1.2
Export list for 192.168.1.2:
/home/nfs4 *
/home/nfs  *

файл hosts на клиенте
root@client:/etc# cat hosts
127.0.0.1 localhost
192.168.1.1 client
192.168.1.2 r

на сервере

127.0.0.1    localhost
#127.0.1.1    r
192.168.1.2     r
192.168.1.1     client

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

запуск на сервере

root@r:/etc/init.d# mount -t nfs4 -o nolock 192.168.1.1:/home/nfs4/ /home/nfs4/ -vvv
mount.nfs4: timeout set for Mon Oct 21 16:33:57 2019
mount.nfs4: trying text-based options 'nolock,vers=4.2,addr=192.168.1.1,clientaddr=192.168.1.2'
mount.nfs4: mount(2): Connection refused
mount.nfs4: trying text-based options 'nolock,addr=192.168.1.1'
mount.nfs4: prog 100003, trying vers=3, prot=6
mount.nfs4: portmap query retrying: RPC: Program not registered
mount.nfs4: prog 100003, trying vers=3, prot=17
mount.nfs4: portmap query failed: RPC: Program not registered
mount.nfs4: requested NFS version or transport protocol is not supported


запуск на клиенте
root@client:/sbin# mount -t nfs4 -o nolock 192.168.1.2:/home/nfs4/ /home/nfs4/ -
vvv
mount.nfs4: No such device
mount: mounting 192.168.1.2:/home/nfs4/ on /home/nfs4/ failed: No such device
root@client:/sbin# mount.nfs4 -o nolock 192.168.1.2:/home/nfs4/ /home/nfs4/ -vvv
mount.nfs4: timeout set for Thu Sep  8 17:41:11 2011
mount.nfs4: trying text-based options 'nolock,addr=192.168.1.2,clientaddr=192.168.1.1'
mount.nfs4: mount(2): No such device
mount.nfs4: No such device

root@r:/etc/init.d# rpcinfo
   program version netid     address                service    owner
    100000    4    tcp6      ::.0.111               portmapper superuser
    100000    3    tcp6      ::.0.111               portmapper superuser
    100000    4    udp6      ::.0.111               portmapper superuser
    100000    3    udp6      ::.0.111               portmapper superuser
    100000    4    tcp       0.0.0.0.0.111          portmapper superuser
    100000    3    tcp       0.0.0.0.0.111          portmapper superuser
    100000    2    tcp       0.0.0.0.0.111          portmapper superuser
    100000    4    udp       0.0.0.0.0.111          portmapper superuser
    100000    3    udp       0.0.0.0.0.111          portmapper superuser
    100000    2    udp       0.0.0.0.0.111          portmapper superuser
    100000    4    local     /run/rpcbind.sock      portmapper superuser
    100000    3    local     /run/rpcbind.sock      portmapper superuser
    100005    1    udp       0.0.0.0.147.17         mountd     superuser
    100005    1    tcp       0.0.0.0.202.45         mountd     superuser
    100005    1    udp6      ::.237.156             mountd     superuser
    100005    1    tcp6      ::.151.11              mountd     superuser
    100005    2    udp       0.0.0.0.206.119        mountd     superuser
    100005    2    tcp       0.0.0.0.132.71         mountd     superuser
    100005    2    udp6      ::.222.149             mountd     superuser
    100005    2    tcp6      ::.169.71              mountd     superuser
    100005    3    udp       0.0.0.0.172.26         mountd     superuser
    100005    3    tcp       0.0.0.0.205.91         mountd     superuser
    100005    3    udp6      ::.199.204             mountd     superuser
    100005    3    tcp6      ::.199.175             mountd     superuser
    100003    3    tcp       0.0.0.0.8.1            nfs        superuser
    100003    4    tcp       0.0.0.0.8.1            nfs        superuser
    100003    3    udp       0.0.0.0.8.1            nfs        superuser
    100003    3    tcp6      ::.8.1                 nfs        superuser
    100003    4    tcp6      ::.8.1                 nfs        superuser
    100003    3    udp6      ::.8.1                 nfs        superuser
    100021    1    udp       0.0.0.0.217.191        nlockmgr   superuser
    100021    3    udp       0.0.0.0.217.191        nlockmgr   superuser
    100021    4    udp       0.0.0.0.217.191        nlockmgr   superuser
    100021    1    tcp       0.0.0.0.171.111        nlockmgr   superuser
    100021    3    tcp       0.0.0.0.171.111        nlockmgr   superuser
    100021    4    tcp       0.0.0.0.171.111        nlockmgr   superuser
    100021    1    udp6      ::.159.47              nlockmgr   superuser
    100021    3    udp6      ::.159.47              nlockmgr   superuser
    100021    4    udp6      ::.159.47              nlockmgr   superuser
    100021    1    tcp6      ::.163.9               nlockmgr   superuser
    100021    3    tcp6      ::.163.9               nlockmgr   superuser
    100021    4    tcp6      ::.163.9               nlockmgr   superuser

запуск на сервере
mount -t nfs4 -o nolock 192.168.1.1:/home/nfs4/ /home/nfs4/ -vvv
mount.nfs4: timeout set for Mon Oct 21 17:09:07 2019
mount.nfs4: trying text-based options 'nolock,vers=4.2,addr=192.168.1.1,clientaddr=192.168.1.2'
mount.nfs4: mount(2): Connection refused
mount.nfs4: trying text-based options 'nolock,addr=192.168.1.1'
mount.nfs4: prog 100003, trying vers=3, prot=6
mount.nfs4: portmap query retrying: RPC: Program not registered
mount.nfs4: prog 100003, trying vers=3, prot=17
mount.nfs4: portmap query failed: RPC: Program not registered
mount.nfs4: requested NFS version or transport protocol is not supported
root@r:/etc/init.d#

запуск с стороны клиента

root@r:/etc/init.d# nfsstat
Server rpc stats:
calls      badcalls   badfmt     badauth    badclnt
61         2          2          0          0      

Server nfs v3:
null             getattr          setattr          lookup           access          
4        16%     6        24%     0         0%     4        16%     2         8%    
readlink         read             write            create           mkdir            
0         0%     0         0%     0         0%     0         0%     0         0%    
symlink          mknod            remove           rmdir            rename          
0         0%     0         0%     0         0%     0         0%     0         0%    
link             readdir          readdirplus      fsstat           fsinfo          
0         0%     0         0%     0         0%     3        12%     4        16%    
pathconf         commit          
2         8%     0         0%    

Server nfs v4:
null             compound        
2         5%     34       94%    

Server nfs v4 operations:
op0-unused       op1-unused       op2-future       access           close            
0         0%     0         0%     0         0%     2         2%     0         0%    
commit           create           delegpurge       delegreturn      getattr          
0         0%     0         0%     0         0%     0         0%     18       21%    
getfh            link             lock             lockt            locku            
2         2%     0         0%     0         0%     0         0%     0         0%    
lookup           lookup_root      nverify          open             openattr        
2         2%     0         0%     0         0%     0         0%     0         0%    
open_conf        open_dgrd        putfh            putpubfh         putrootfh        
0         0%     0         0%     18       21%     0         0%     4         4%    
read             readdir          readlink         remove           rename          
0         0%     0         0%     0         0%     0         0%     0         0%    
renew            restorefh        savefh           secinfo          setattr          
0         0%     0         0%     0         0%     0         0%     0         0%    
setcltid         setcltidconf     verify           write            rellockowner    
0         0%     0         0%     0         0%     0         0%     0         0%    
bc_ctl           bind_conn        exchange_id      create_ses       destroy_ses      
0         0%     0         0%     4         4%     2         2%     2         2%    
free_stateid     getdirdeleg      getdevinfo       getdevlist       layoutcommit    
0         0%     0         0%     0         0%     0         0%     0         0%    
layoutget        layoutreturn     secinfononam     sequence         set_ssv          
0         0%     0         0%     2         2%     24       28%     0         0%    
test_stateid     want_deleg       destroy_clid     reclaim_comp     allocate        
0         0%     0         0%     2         2%     2         2%     0         0%    
copy             copy_notify      deallocate       ioadvise         layouterror      
0         0%     0         0%     0         0%     0         0%     0         0%    
layoutstats      offloadcancel    offloadstatus    readplus         seek            
0         0%     0         0%     0         0%     0         0%     0         0%    
write_same      
0         0%    

Client rpc stats:
calls      retrans    authrefrsh
62         0          62      

Client nfs v3:
null             getattr          setattr          lookup           access          
2         8%     6        26%     0         0%     4        17%     2         8%    
readlink         read             write            create           mkdir            
0         0%     0         0%     0         0%     0         0%     0         0%    
symlink          mknod            remove           rmdir            rename          
0         0%     0         0%     0         0%     0         0%     0         0%    
link             readdir          readdirplus      fsstat           fsinfo          
0         0%     0         0%     0         0%     3        13%     4        17%    
pathconf         commit          
2         8%     0         0%    

Client nfs v4:
null             read             write            commit           open            
5        12%     0         0%     0         0%     0         0%     0         0%    
open_conf        open_noat        open_dgrd        close            setattr          
0         0%     0         0%     0         0%     0         0%     0         0%    
fsinfo           renew            setclntid        confirm          lock            
4        10%     0         0%     0         0%     0         0%     0         0%    
lockt            locku            access           getattr          lookup          
0         0%     0         0%     2         5%     2         5%     2         5%    
lookup_root      remove           rename           link             symlink          
2         5%     0         0%     0         0%     0         0%     0         0%    
create           pathconf         statfs           readlink         readdir          
0         0%     2         5%     0         0%     0         0%     0         0%    
server_caps      delegreturn      getacl           setacl           fs_locations    
6        15%     0         0%     0         0%     0         0%     0         0%    
rel_lkowner      secinfo          fsid_present     exchange_id      create_session  
0         0%     0         0%     0         0%     4        10%     2         5%    
destroy_session  sequence         get_lease_time   reclaim_comp     layoutget        
2         5%     0         0%     0         0%     2         5%     0         0%    
getdevinfo       layoutcommit     layoutreturn     secinfo_no       test_stateid    
0         0%     0         0%     0         0%     2         5%     0         0%    
free_stateid     getdevicelist    bind_conn_to_ses destroy_clientid seek            
0         0%     0         0%     0         0%     2         5%     0         0%    
allocate         deallocate       layoutstats      clone            
0         0%     0         0%     0         0%     0         0%    

root@r:/etc/init.d#

root@r:/etc/init.d# rpcinfo -p 192.168.1.2
   program vers proto   port  service
    100000    4   tcp    111  portmapper
    100000    3   tcp    111  portmapper
    100000    2   tcp    111  portmapper
    100000    4   udp    111  portmapper
    100000    3   udp    111  portmapper
    100000    2   udp    111  portmapper
    100005    1   udp  37649  mountd
    100005    1   tcp  51757  mountd
    100005    2   udp  52855  mountd
    100005    2   tcp  33863  mountd
    100005    3   udp  44058  mountd
    100005    3   tcp  52571  mountd
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100003    3   udp   2049  nfs
    100021    1   udp  55743  nlockmgr
    100021    3   udp  55743  nlockmgr
    100021    4   udp  55743  nlockmgr
    100021    1   tcp  43887  nlockmgr
    100021    3   tcp  43887  nlockmgr
    100021    4   tcp  43887  nlockmgr
root@r:/etc/init.d#

root@r:/etc/init.d# rpcinfo -p 192.168.1.1
   program vers proto   port  service
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper

root@client:/# rpcinfo -p 192.168.1.1
-ash: rpcinfo: not found
root@client:/# rpcinfo -p 192.168.1.2
-ash: rpcinfo: not found
root@client:/#


Ответить | Правка | Cообщить модератору

Оглавление

Сообщения [Сортировка по времени | RSS]


1. "nfs client (nanostation 2) на openwrt, nfs server на дебиан "  +/
Сообщение от nnf (ok), 21-Окт-19, 20:46 
>[оверквотинг удален]
>    program vers proto   port  service
>     100000    2   tcp
>    111  portmapper
>     100000    2   udp
>    111  portmapper
> root@client:/# rpcinfo -p 192.168.1.1
> -ash: rpcinfo: not found
> root@client:/# rpcinfo -p 192.168.1.2
> -ash: rpcinfo: not found
> root@client:/#

root@r:/usr/sbin# service --status-all | grep nfs
[ - ]  nfs-common
[ + ]  nfs-kernel-server
повторно переставил nfs-common не помогло

Ответить | Правка | ^ к родителю #0 | Наверх | Cообщить модератору

2. "nfs client (nanostation 2) на openwrt, nfs server на дебиан "  +/
Сообщение от test (??), 22-Окт-19, 15:28 
>[оверквотинг удален]
>>    111  portmapper
>> root@client:/# rpcinfo -p 192.168.1.1
>> -ash: rpcinfo: not found
>> root@client:/# rpcinfo -p 192.168.1.2
>> -ash: rpcinfo: not found
>> root@client:/#
> root@r:/usr/sbin# service --status-all | grep nfs
>  [ - ]  nfs-common
>  [ + ]  nfs-kernel-server
> повторно переставил nfs-common не помогло

firewall

Ответить | Правка | ^ к родителю #1 | Наверх | Cообщить модератору

Архив | Удалить

Рекомендовать для помещения в FAQ | Индекс форумов | Темы | Пред. тема | След. тема




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру