exportfs: No host name问题处理

linux版本为
[quote]# uname -a
Linux red42 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:32:14 EDT 2005 i686 i686 i386 GNU/Linux[/quote]

该主机作为nfs的server端,执行exportfs -a时报错
[quote]# exportfs -a
exportfs: No host name given with /Tbackup/ora10g1 (rw,sync,wdelay,hide,nocrossmnt,secure,no_root_squash,no_all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2), suggest *(rw,sync,wdelay,hide,nocrossmnt,secure,no_root_squash,no_all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2) to avoid warning[/quote]

查看/etc/hosts文件,正常
[quote]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost
172.16.4.67 red41
172.16.4.68 red42[/quote]

查看/etc/exports文件,正常
[quote]# more /etc/exports
/Tbackup/ora10g1 172.16.4.67(rw,async,no_root_squash)[/quote]

尝试用以下命令,执行成功
[quote]# exportfs -ra[/quote]

下面看一下各个参数的作用,尤其注意r参数
[quote]
OPTIONS
-a Export or unexport all directories.

-o options,...
Specify a list of export options in the same manner as in exports(5).

-i Ignore the /etc/exports file, so that only default options and options given on the command line are used.

-r Reexport all directories. It synchronizes /var/lib/nfs/xtab with /etc/exports. It removes entries in
/var/lib/nfs/xtab which are deleted from /etc/exports, and remove any entries from the kernel export table which
are no longer valid.

-u Unexport one or more directories.

-f In 鈥檔ew鈥?mode, flush everything out of the kernels export table. Any clients that are active will get new entries
added by mountd when they make their next request.

-v Be verbose. When exporting or unexporting, show what鈥檚 going on. When displaying the current export list, also dis-
play the list of export options.[/quote]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值