[root@ora12ee02 ~]# ll /mnt/nfs2/aaa /mnt/nfs/aaa
-rw-r--r-- 1 nfsnobody nfsnobody 0 2月 14 22:52 /mnt/nfs/aaa
-rw-r--r-- 1 root root 0 2月 14 22:51 /mnt/nfs2/aaa
●ロック
[root@ora12ee02 ~]# mount -o hard,intr -t nfs ora12ee01:/nfs2 /mnt/nfs2
[root@ora12ee02 ~]# vi /mnt/nfs2/aaa
[root@ora12ee01 ~]# vi /nfs2/aaa →ロックされている表示
[root@ora12ee02 ~]# touch /mnt/nfs2/aaa
[root@ora12ee02 ~]# touch /mnt/nfs/aaa
[root@ora12ee01 ~]# exportfs -v
/nfs 192.168.0.0/255.255.0.0(sync,wdelay,hide,no_subtree_check,sec=sys,rw,secure,root_squash,no_all_squash)
/nfs2 *.oradomain(sync,wdelay,hide,no_subtree_check,sec=sys,rw,secure,no_root_squash,no_all_squash)
●別マシンからマウントテスト
[root@ora12ee02 ~]# showmount -e ora12ee01
Export list for ora12ee01:
/nfs2 *.oradomain
/nfs 192.168.0.0/255.255.0.0
[root@ora12ee02 ~]# mount -t nfs ora12ee01:/nfs /mnt/nfs
[root@ora12ee02 ~]# mount -t nfs ora12ee01:/nfs2 /mnt/nfs2
[root@ora12ee02 ~]# df -h
ファイルシス サイズ 使用 残り 使用% マウント位置
ora12ee01:/nfs 44G 15G 30G 34% /mnt/nfs
ora12ee01:/nfs2 44G 15G 30G 34% /mnt/nfs2
[root@ora12ee01 ~]# exportfs -ua アンエクスポート
[root@ora12ee01 ~]# exportfs -v なにも表示されない
[root@ora12ee01 ~]# exportfs -a
●接続元の設定
[root@ora12ee01 ~]# vi /etc/hosts.allow
[root@ora12ee01 ~]# cat /etc/hosts.allow
portmap: 192.168.
●エクスポート対象の設定
[root@ora12ee01 ~]# vi /etc/exports
[root@ora12ee01 ~]# cat /etc/exports
/nfs 192.168.0.0/255.255.0.0(rw)
/nfs2 *.oradomain(rw,no_root_squash)
●エクスポート
[root@ora12ee01 ~]# exportfs -a