<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Volume access through different export policies in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Volume-access-through-different-export-policies/m-p/461847#M45054</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an SVM that has two volumes as assigned objects in it’s default export policy&lt;/P&gt;&lt;P&gt;I need to give access to just one of the two volumes to another server. &amp;nbsp;The environment is red hat 8 running on tap 9.15.1 p7.&lt;/P&gt;&lt;P&gt;I am thinking I can grant access to just one of the volumes by adding a rule to the existing export policy but I am not sure of the command to run to do this. &amp;nbsp;Is this possible? Or do I have to add the new server into the default export policy and somehow try to restrict this new server from mounting both volumes..?&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jul 2025 02:16:06 GMT</pubDate>
    <dc:creator>TimJMcCuen</dc:creator>
    <dc:date>2025-07-09T02:16:06Z</dc:date>
    <item>
      <title>Volume access through different export policies</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Volume-access-through-different-export-policies/m-p/461847#M45054</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an SVM that has two volumes as assigned objects in it’s default export policy&lt;/P&gt;&lt;P&gt;I need to give access to just one of the two volumes to another server. &amp;nbsp;The environment is red hat 8 running on tap 9.15.1 p7.&lt;/P&gt;&lt;P&gt;I am thinking I can grant access to just one of the volumes by adding a rule to the existing export policy but I am not sure of the command to run to do this. &amp;nbsp;Is this possible? Or do I have to add the new server into the default export policy and somehow try to restrict this new server from mounting both volumes..?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 02:16:06 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Volume-access-through-different-export-policies/m-p/461847#M45054</guid>
      <dc:creator>TimJMcCuen</dc:creator>
      <dc:date>2025-07-09T02:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Volume access through different export policies</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Volume-access-through-different-export-policies/m-p/461848#M45055</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/50974"&gt;@TimJMcCuen&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best to create a new export policy for your new host for the specific volume.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here’s a practical example of how to create an &lt;STRONG&gt;NFS export policy&lt;/STRONG&gt; in &lt;STRONG&gt;NetApp ONTAP&lt;/STRONG&gt; using the &lt;STRONG&gt;CLI&lt;/STRONG&gt;. This includes:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Creating the export policy&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Adding an export rule to allow NFS clients&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Applying the policy to a volume or SVM export path&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;HR /&gt;&lt;H3&gt;🧱 Example Scenario&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;SVM name: vs1&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Volume: vol_data&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Export path: /vol/vol_data&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;NFS client subnet: 192.168.1.0/24&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;NFS version: NFSv3 and NFSv4&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Access: Read-Write&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; 1. &lt;STRONG&gt;Create Export Policy&lt;/STRONG&gt;&lt;/H3&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;export-policy create -vserver vs1 -policyname nfs_data_policy&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; 2. &lt;STRONG&gt;Add Rule to Export Policy&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;export-policy rule create -vserver vs1 -policyname nfs_data_policy \&lt;BR /&gt;-ruleindex 1 \&lt;BR /&gt;-clientmatch 192.168.1.0/24 \&lt;BR /&gt;-rorule sys \&lt;BR /&gt;-rwrule sys \&lt;BR /&gt;-superuser sys \&lt;BR /&gt;-anon 65534 \&lt;BR /&gt;-protocol nfs3,nfs4&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Explanation:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;clientmatch = Which clients are allowed&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;rorule = Read-only rule (here, sys = UNIX auth)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;rwrule = Read-write rule&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;superuser = Allows root user access (using sys)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;anon = UID to map anonymous users to (65534 = nobody)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;protocol = Limits to NFSv3 and NFSv4&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; 3. &lt;STRONG&gt;Apply Export Policy to Volume or Junction&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;Assuming the volume is already mounted at a junction path:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;volume modify -vserver vs1 -volume vol_data -policy nfs_data_policy&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not mounted yet:&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;volume mount -vserver vs1 -volume vol_data -junction-path /vol_data&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&lt;span class="lia-unicode-emoji" title=":magnifying_glass_tilted_left:"&gt;🔍&lt;/span&gt; To verify the export:&lt;/H3&gt;&lt;PRE&gt;export-policy rule show -vserver vs1 -policyname nfs_data_policy&lt;BR /&gt;&lt;BR /&gt;volume show -vserver vs1 -volume vol_data -fields policy,junction-path&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 04:41:12 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Volume-access-through-different-export-policies/m-p/461848#M45055</guid>
      <dc:creator>chamfer</dc:creator>
      <dc:date>2025-07-09T04:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Volume access through different export policies</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Volume-access-through-different-export-policies/m-p/461850#M45056</link>
      <description>&lt;P&gt;Thank you for the response.&amp;nbsp;&amp;nbsp; When i added the second export policy with just my new server in I started getting access denied to servers in the original export policy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original export policy has two volumes assigned.&amp;nbsp; The new export I just applied to the one volume it needs access to&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 10:55:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Volume-access-through-different-export-policies/m-p/461850#M45056</guid>
      <dc:creator>TimJMcCuen</dc:creator>
      <dc:date>2025-07-09T10:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Volume access through different export policies</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Volume-access-through-different-export-policies/m-p/461851#M45057</link>
      <description>&lt;P&gt;in this case you are going to need three export policies&lt;/P&gt;&lt;P&gt;&amp;nbsp;policy one will be a read only policy that lets everyone one, applied to the svm root&lt;/P&gt;&lt;P&gt;&amp;nbsp;policy two is for the volume that needs two hosts&lt;/P&gt;&lt;P&gt;&amp;nbsp;policy three is for the volume that needs one host&lt;/P&gt;&lt;P&gt;&amp;nbsp;for the root policy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;export-policy create -vserver svm -policy readonly&amp;nbsp;&lt;/P&gt;&lt;P&gt;export-policy rule create -vserver svm -policy readonly -ro sys -rw none -super none -proto nfs -client 0.0.0.0/0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;then apply the readonly policy to the svm root&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;the issue is that using nfs the client must have some kind of access all the way through to the path. If they do not have access to the root they can’t get through&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 13:01:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Volume-access-through-different-export-policies/m-p/461851#M45057</guid>
      <dc:creator>TMACMD</dc:creator>
      <dc:date>2025-07-09T13:01:31Z</dc:date>
    </item>
  </channel>
</rss>

