<?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 Re: Removing a policy from a volume CLI ? in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Removing-a-policy-from-a-volume-CLI/m-p/130695#M28438</link>
    <description>&lt;PRE&gt;::&amp;gt; vol create -vserver nfs01 -volume rpetertest04 -aggregate aggr2_SATA -size 2g
[Job 15009] Job succeeded: Successful

::&amp;gt; vol show -vserver nfs01 -volume rpetertest04 -fields policy 
vserver volume       policy  
------- ------------ ------- 
nfs01   rpetertest04 default

::&amp;gt; vol show -vserver nfs01 -volume rpetertest04                               

                                   Vserver Name: nfs01
                                    Volume Name: rpetertest04
                                 Aggregate Name: aggr2_SATA
                                    Volume Size: 2GB
                             Volume Data Set ID: 1958
                      Volume Master Data Set ID: 2147485608
                                   Volume State: online
                                    Volume Type: RW
                                   Volume Style: flex
                         Is Cluster-Mode Volume: true
                          Is Constituent Volume: false
                                  Export Policy: default
                                        User ID: 0
                                       Group ID: 0
                                 Security Style: unix
                               UNIX Permissions: ---rwxr-xr-x
                                  Junction Path: -&lt;/PRE&gt;&lt;P&gt;Since&amp;nbsp;every volume must have an export policy. As you can see, even if you haven't&lt;/P&gt;&lt;P&gt;specify the eport policy while you create a volume,&amp;nbsp;ontap will select the default one for you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if you like to revert what you did.. just modify and assign the "default" export policy&amp;nbsp;&lt;/P&gt;&lt;P&gt;the same way as you did.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;robin.&lt;/P&gt;</description>
    <pubDate>Tue, 02 May 2017 15:52:29 GMT</pubDate>
    <dc:creator>robinpeter</dc:creator>
    <dc:date>2017-05-02T15:52:29Z</dc:date>
    <item>
      <title>Removing a policy from a volume CLI ?</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Removing-a-policy-from-a-volume-CLI/m-p/130680#M28436</link>
      <description>&lt;P&gt;I recently assigned an export policy to a volume using the command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;volume modify -volume VOLUME_NAME&amp;nbsp;-vserver VSERVER_NAME -policy EXPORT_POLICY_NAME&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to undo this action as the volume has been built on the wrong cluster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot find anything in the documentation on how to remove a policy from a volume or to remove a volume from a policy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it a namespace command? Easy from the GUI but I dont want to use the GUI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've worked it out:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;vol unmount -vserver VSERVER_NAME&amp;nbsp;-volume&amp;nbsp;VOLUME_NAME&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 15:07:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Removing-a-policy-from-a-volume-CLI/m-p/130680#M28436</guid>
      <dc:creator>MAXWELL_CROOK</dc:creator>
      <dc:date>2025-06-04T15:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a policy from a volume CLI ?</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Removing-a-policy-from-a-volume-CLI/m-p/130695#M28438</link>
      <description>&lt;PRE&gt;::&amp;gt; vol create -vserver nfs01 -volume rpetertest04 -aggregate aggr2_SATA -size 2g
[Job 15009] Job succeeded: Successful

::&amp;gt; vol show -vserver nfs01 -volume rpetertest04 -fields policy 
vserver volume       policy  
------- ------------ ------- 
nfs01   rpetertest04 default

::&amp;gt; vol show -vserver nfs01 -volume rpetertest04                               

                                   Vserver Name: nfs01
                                    Volume Name: rpetertest04
                                 Aggregate Name: aggr2_SATA
                                    Volume Size: 2GB
                             Volume Data Set ID: 1958
                      Volume Master Data Set ID: 2147485608
                                   Volume State: online
                                    Volume Type: RW
                                   Volume Style: flex
                         Is Cluster-Mode Volume: true
                          Is Constituent Volume: false
                                  Export Policy: default
                                        User ID: 0
                                       Group ID: 0
                                 Security Style: unix
                               UNIX Permissions: ---rwxr-xr-x
                                  Junction Path: -&lt;/PRE&gt;&lt;P&gt;Since&amp;nbsp;every volume must have an export policy. As you can see, even if you haven't&lt;/P&gt;&lt;P&gt;specify the eport policy while you create a volume,&amp;nbsp;ontap will select the default one for you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if you like to revert what you did.. just modify and assign the "default" export policy&amp;nbsp;&lt;/P&gt;&lt;P&gt;the same way as you did.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;robin.&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 15:52:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Removing-a-policy-from-a-volume-CLI/m-p/130695#M28438</guid>
      <dc:creator>robinpeter</dc:creator>
      <dc:date>2017-05-02T15:52:29Z</dc:date>
    </item>
  </channel>
</rss>

