1833325 Members
3066 Online
110051 Solutions
New Discussion

Re: NFS Mount Error

 
Nagu SR
Frequent Advisor

NFS Mount Error

Hi,

Is it possible to export a parent DIR if SUB DIR is already exported??

In My case, when I'm exporting a parent DIR,
(Added entry in dfstab and while executing `shareall)
I get below error
""share_nfs: /var/opt/ignite: sub-directory (/var/opt/ignite/clients) already shared"".

Is there any way around?? I dont want to disturb already exported shares.

Regards,
3 REPLIES 3
Javed Khan_1
Valued Contributor

Re: NFS Mount Error

Hi,

If you intention is to export parent directory why do need one more export for directory which resided under parent directory?

If you export parent directory all sub drectories will be exported by default

Javed
Never Give Up
Ganesan R
Honored Contributor

Re: NFS Mount Error

Hi Nagu,

This is the NFS rule...

We cannot export either a parent directory or a subdirectory of an already exported directory that resides within the same file system. It is not possible, for instance, to export both /usr and /usr/local, if both directories reside in the same file system.

So in your case, you have to unexport the sub directory first and export the parent directory.
Best wishes,

Ganesh.
Nagu SR
Frequent Advisor

Re: NFS Mount Error

Thx Everyone.

Since it is the limitation of NFS, I'm closing the thread.

Regards,
Nagu