Linux NFS 處理

來源:互聯網
上載者:User

標籤:linux nfs 處理


nfs報錯處理:

1、 

[[email protected] ~]# mount 172.16.63.141:/data1/oradata_backup /u01/oradata_backup

mount.nfs: access denied by server while mounting 172.16.63.141:/data1/oradata_backup


處理查看exportfs配置


[[email protected] oradata_backup]# vi /etc/exports 


/data1/oradata_backup   172.16.63.0(rw,sync)


172.16.63.0(rw,sync) 添加掩碼  如: 172.16.63.0/24 (rw,sync)

原因exportfs 支援用戶端訪問IP範圍導致。

2、mount 報錯


mount: wrong fs type, bad option, bad superblock on 172.16.63.141:/data1/oradata_backup,

       missing codepage or helper program, or other error

       (for several filesystems (e.g. nfs, cifs) you might

       need a /sbin/mount.<type> helper program)

       In some cases useful info is found in syslog - try

       dmesg | tail  or so

   

處理 

yum -y install utils 

3、[[email protected] oradata_backup]# umount /u01/oradata_backup

因umount 時,沒有退出/u01/oradata_backup

4、強制umount

1)用fuser殺掉佔用那個目錄的進程

fuser -k /directory

強制umount


2)umount -f /directory


5、查看mount錯誤記錄檔 

cat /var/log/messages 


6、查看nfs連接埠使用


[[email protected] ~]# rpcinfo -p

   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

    100011    1   udp    875  rquotad

    100011    2   udp    875  rquotad

    100011    1   tcp    875  rquotad

    100011    2   tcp    875  rquotad

    100005    1   udp  10948  mountd

    100005    1   tcp  24252  mountd

    100005    2   udp  13875  mountd

    100005    2   tcp  34159  mountd

    100005    3   udp  11310  mountd

    100005    3   tcp   1437  mountd

    100003    2   tcp   2049  nfs

    100003    3   tcp   2049  nfs

    100003    4   tcp   2049  nfs

    100227    2   tcp   2049  nfs_acl

    100227    3   tcp   2049  nfs_acl

    100003    2   udp   2049  nfs

    100003    3   udp   2049  nfs

    100003    4   udp   2049  nfs

    100227    2   udp   2049  nfs_acl

    100227    3   udp   2049  nfs_acl

    100021    1   udp  53490  nlockmgr

    100021    3   udp  53490  nlockmgr

    100021    4   udp  53490  nlockmgr

    100021    1   tcp  20069  nlockmgr

    100021    3   tcp  20069  nlockmgr

    100021    4   tcp  20069  nlockmgr

[[email protected] ~]# 


7、釋放連接埠

service rpcbind restart



本文出自 “蟲子” 部落格,請務必保留此出處http://worms.blog.51cto.com/969144/1658608

Linux NFS 處理

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.