I have several NFS mount points that also have child directories also exported and I've been told that you should export the parent directories first, then the children. I've updated my /etc/exports file and ran exportfs -r on the filer but it does not look like it's taking effect if I do an exportfs to see what's currently exported. How do I get the exports in the correct order?
Please be advised that this email may contain confidential information. If you are not the intended recipient, please do not read, copy or re-transmit this email. If you have received this email in error, please notify us by email by replying to the sender and by telephone (call us collect at +1 202-828-0850) and delete this message and any attachments. Thank you in advance for your cooperation and assistance.
In addition, Danaher and its subsidiaries disclaim that the content of this email constitutes an offer to enter into, or the acceptance of, any contract or agreement or any amendment thereto; provided that the foregoing disclaimer does not invalidate the binding effect of any digital or other electronic reproduction of a manual signature that is included in any attachment to this email.
} Date: Tue, 5 May 2009 13:37:27 -0700 } From: "Page, Jeremy" jeremy.page@gilbarco.com } To: toasters@mathworks.com } Subject: Re-exporting your /etc/exports - how do I get a change in order of } shares to take effect? } } I have several NFS mount points that also have child directories also } exported and I've been told that you should export the parent } directories first, then the children.
Was the reason for that, specified? If it was wrt order of matching, then it should not matter - ONTAP looks for the longest matching prefix to determine which export rule to apply. The docs mention that (search for 'prefix') -
http://now.netapp.com/NOW/knowledge/docs/ontap/rel731/html/ontap/cmdref/man5...
} I've updated my /etc/exports file } and ran exportfs -r on the filer but it does not look like it's taking } effect if I do an exportfs to see what's currently exported. How do I } get the exports in the correct order?
So the order in /etc/exports or the exportfs display, should not matter. You can test and try to see which rule is taking effect.
Aside - you will need to be watchful about how the export permissions are laid out for the child and the parent dirs - to be sure you really have the desired checks in-effect at each level.
thanks,
-dhawal.
} } } } } } Please be advised that this email may contain confidential information. } If you are not the intended recipient, please do not read, copy or } re-transmit this email. If you have received this email in error, } please notify us by email by replying to the sender and by telephone } (call us collect at +1 202-828-0850) and delete this message and any } attachments. Thank you in advance for your cooperation and assistance. } } In addition, Danaher and its subsidiaries disclaim that the content of } this email constitutes an offer to enter into, or the acceptance of, } any } contract or agreement or any amendment thereto; provided that the } foregoing disclaimer does not invalidate the binding effect of any } digital or other electronic reproduction of a manual signature that is } included in any attachment to this email.
Hi Jeremy I'm not sure it really makes any difference from an exports perspective. If you update /etc/exports and export what's already exported, I wouldn't expect it to change. In fact it doesn't, even if you reboot.
Now nested mounts are a totally different story. You need to mount those in order from highest to lowest.
Share and enjoy!
Peter
________________________________
From: Page, Jeremy [mailto:jeremy.page@gilbarco.com] Sent: Tuesday, May 05, 2009 1:37 PM To: toasters@mathworks.com Subject: Re-exporting your /etc/exports - how do I get a change in order of shares to take effect?
I have several NFS mount points that also have child directories also exported and I've been told that you should export the parent directories first, then the children. I've updated my /etc/exports file and ran exportfs -r on the filer but it does not look like it's taking effect if I do an exportfs to see what's currently exported. How do I get the exports in the correct order?
Please be advised that this email may contain confidential information. If you are not the intended recipient, please do not read, copy or re-transmit this email. If you have received this email in error, please notify us by email by replying to the sender and by telephone (call us collect at +1 202-828-0850) and delete this message and any attachments. Thank you in advance for your cooperation and assistance.
In addition, Danaher and its subsidiaries disclaim that the content of this email constitutes an offer to enter into, or the acceptance of, any contract or agreement or any amendment thereto; provided that the foregoing disclaimer does not invalidate the binding effect of any digital or other electronic reproduction of a manual signature that is included in any attachment to this email.
That's the point, I changed the export files to put the parent directories first but they don't show up that way when I do an exportfs, even after an exportfs -r. I'd expect them to now be in the same order as the new exports file.
________________________________
From: Learmonth, Peter [mailto:Peter.Learmonth@netapp.com] Sent: Tuesday, May 05, 2009 7:53 PM To: Page, Jeremy; toasters@mathworks.com Subject: RE: Re-exporting your /etc/exports - how do I get a change in order of shares to take effect?
Hi Jeremy
I'm not sure it really makes any difference from an exports perspective. If you update /etc/exports and export what's already exported, I wouldn't expect it to change. In fact it doesn't, even if you reboot.
Now nested mounts are a totally different story. You need to mount those in order from highest to lowest.
Share and enjoy!
Peter
________________________________
From: Page, Jeremy [mailto:jeremy.page@gilbarco.com] Sent: Tuesday, May 05, 2009 1:37 PM To: toasters@mathworks.com Subject: Re-exporting your /etc/exports - how do I get a change in order of shares to take effect?
I have several NFS mount points that also have child directories also exported and I've been told that you should export the parent directories first, then the children. I've updated my /etc/exports file and ran exportfs -r on the filer but it does not look like it's taking effect if I do an exportfs to see what's currently exported. How do I get the exports in the correct order?
Please be advised that this email may contain confidential information. If you are not the intended recipient, please do not read, copy or re-transmit this email. If you have received this email in error, please notify us by email by replying to the sender and by telephone (call us collect at +1 202-828-0850) and delete this message and any attachments. Thank you in advance for your cooperation and assistance.
In addition, Danaher and its subsidiaries disclaim that the content of this email constitutes an offer to enter into, or the acceptance of, any contract or agreement or any amendment thereto; provided that the foregoing disclaimer does not invalidate the binding effect of any digital or other electronic reproduction of a manual signature that is included in any attachment to this email.
Please be advised that this email may contain confidential information. If you are not the intended recipient, please do not read, copy or re-transmit this email. If you have received this email in error, please notify us by email by replying to the sender and by telephone (call us collect at +1 202-828-0850) and delete this message and any attachments. Thank you in advance for your cooperation and assistance.
In addition, Danaher and its subsidiaries disclaim that the content of this email constitutes an offer to enter into, or the acceptance of, any contract or agreement or any amendment thereto; provided that the foregoing disclaimer does not invalidate the binding effect of any digital or other electronic reproduction of a manual signature that is included in any attachment to this email.