同じマウントポイントにマウントされた異なるサーバーから2つのnfsをエクスポートする

同じマウントポイントにマウントされた異なるサーバーから2つのnfsをエクスポートする

最近、テストサーバーで次の行が見つかりました。

<some  IPV4>:/zebra on /zebra type nfs (rw,relatime,vers=3,rsize=262144,wsize=262144,namlen=255,hard,nolock,proto=tcp,port=2051,timeo=600,retrans=2,sec=sys,mountaddr=10.126.84.153,mountvers=3,mountport=5004,mountproto=udp,local_lock=all,addr=10.126.84.153)
<some IPV4>://zebra on /zebra type nfs4 (rw,relatime,vers=4.0,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=172.17.1.20,local_lock=none,addr=10.48.28.115)

今、いくつかの質問があります。

  1. Linuxが同じマウントポイントから別のエクスポートをマウントできるようにするのはなぜですか?

  2. たとえば、これを行うとls /zebraどのような出口が表示されますか?

  3. umountたとえば、特定のサーバーからアクセスできますか10.126.84.153

ベストアンサー1

  1. すべてのディレクトリは有効なマウントポイントなので
  2. コンテンツ最新のインストールまもなく株式が上場される予定です。
  3. AFAIK あなたはできません。最新のマウントが最初にマウント解除されます。

    # mkdir testmount  
    # mount --bind /bin/ testmount/  
    # mount --bind /usr/bin/ testmount/  
    # mount |grep testmount  
    /bin on /testmount type none (rw,bind)  
    /usr/bin on /testmount type none (rw,bind)  
    # umount testmount/  
    # mount |grep testmount  
    /bin on /testmount type none (rw,bind)  
    # umount testmount/  
    # mount |grep testmount  
    #
    

おすすめ記事