Table of ContentsView in Frames

Associating an export policy to a FlexVol volume

Each FlexVol volume contained in the Storage Virtual Machine (SVM) must be associated with an export policy that contains export rules for clients to access data in the volume.

About this task

When you create the SVM, Data ONTAP creates a default export policy called default for the SVM. Data ONTAP assigns the default export policy to the SVM volumes. You can associate another custom export policy that you create instead of the default policy to a volume. Before you associate a custom export policy to a volume, you must create one or more export rules that allow the desired access to data in the volume and assign those export rules to the export policy that you want to associate with the volume.

You can associate an export policy to a volume when you create the volume or at any time after you create the volume. You can associate one export policy to the volume.

Steps

  1. Use either the volume create or volume modify command with the -policy option to associate an export policy to the volume.
    Example
    cluster::> volume create -vserver vs1 -volume vol1
    -aggregate aggr2 -state online -policy cifs_policy -security-style ntfs 
    -junction-path /dept/marketing -size 250g -space-guarantee volume
    For more information about the volume create and volume modify commands, see the man pages.
  2. Verify that the export policy associated with the volume has the desired access configuration using the vserver export-policy rule show command with the -policyname option.
    Example
    cluster::> vserver export-policy rule show -policyname cifs_policy
    Virtual      Policy             Rule    Access   Client       RO
    Server       Name               Index   Protocol Match        Rule
    ------------ ------------------ ------  -------- ------------ ------
    vs1          cifs_policy        1       cifs      0.0.0.0/0    any
    For more information about the vserver export-policy rule show command, see the man pages.
    The command displays a summary for that export policy, including a list rules applied to that policy. Data ONTAP assigns each rule a rule index number. After you know the rule index number, you can use it to display detailed information about the specified export rule.
  3. Verify that the rules applied to the export policy are configured correctly by using the vserver export-policy rule show command and specify the -policyname, -vserver, and -ruleindex options.
    Example
    cluster::> vserver export-policy rule show -policyname cifs_policy -vserver vs1 -ruleindex 1
                                 Virtual Server: vs1 
                                    Policy Name: cifs_policy 
                                     Rule Index: 1 
                                Access Protocol: cifs
    Client Match Hostname, IP Address, Netgroup, or Domain: 0.0.0.0/0 
                                 RO Access Rule: any 
                                 RW Access Rule: any 
    User ID To Which Anonymous Users Are Mapped: 0 
                     Superuser Security Flavors: any 
                   Honor SetUID Bits In SETATTR: true 
                      Allow Creation of Devices: true