开发者

How do I connect a client to multiple NFS server locations?

开发者 https://www.devze.com 2023-04-03 08:42 出处:网络
On an开发者_开发技巧 Ubuntu server I have two hard drives to be shared out as NFS4.I\'ve been directed to set up my /etc/exports as follows, although I\'m having trouble following why the first line i

On an开发者_开发技巧 Ubuntu server I have two hard drives to be shared out as NFS4. I've been directed to set up my /etc/exports as follows, although I'm having trouble following why the first line is there:

/nfs_exports *(insecure,no_subtree_check,rw,nohide,fsid=0)
/nfs_exports/Television     192.168.0.140(async,insecure,no_subtree_check,fsid=0,rw,nohide)
/nfs_exports/Movies     192.168.0.140(async,insecure,no_subtree_check,fsid=0,rw,nohide)
How do I set up the Ubuntu client to mount both Television and Movies? If I try this:

192.168.0.150:/nfs_export/Television   /home/cshoults/Ryoken/Television    nfs4    bg  0   0

I get an error:

mount.nfs4: mounting 192.168.0.150:/nfs_exports/Television failed, reason given by server:
  No such file or directory

If I simply say:

192.168.0.150:/    /home/cshoults/Ryoken/Television    nfs4    bg  0   0

It mounts the Television folder and does nothing for Movies. If I try to put mount lines in fstab for both Movies and Television, it mounts Television in both places.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号