- #1
- 33,017
- 19,456
I am trying to export two different directories using nfs v4.
Today I have, on the server /etc/exports
and in the clients fstab
In principle, I want exports to say
and fstab to say
This will not work, of course. It says tp exports both of these as the root filesystem (fsid=0). However, I can't see quite what to do - I can't make either aaa or bbb the root, and I sure don't want to export /. While I can't be the first person to have done this, the internet seems not to have an example of someone who has done this successfully.
Today I have, on the server /etc/exports
/aaa 192.168.1.0/255.255.255.0(rw,fsid=0,no_root_squash,async)
and in the clients fstab
192.168.1.1:/ /aaa nfs4 rw 0 0
In principle, I want exports to say
Code:
/aaa 192.168.1.0/255.255.255.0(rw,fsid=0,no_root_squash,async)
/bbb 192.168.1.0/255.255.255.0(ro,fsid=0,no_root_squash,async)
and fstab to say
Code:
192.168.1.1:/aaa/ /aaa nfs4 rw 0 0
192.168.1.1:/bbb/ /bbb nfs4 ro 0 0
This will not work, of course. It says tp exports both of these as the root filesystem (fsid=0). However, I can't see quite what to do - I can't make either aaa or bbb the root, and I sure don't want to export /. While I can't be the first person to have done this, the internet seems not to have an example of someone who has done this successfully.