Assigning an export policy to a volume
Each volume contained in the SVM must be associated with an export policy that contains export rules for clients to access data in the volume.
About this task
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, although one policy can be associated to many volumes.
- If an export policy was not specified when the volume was created, assign an export policy to the volume: volume modify -vserver vserver_name -volume volume_name -policy export_policy_name
- Verify that the policy was assigned to the volume: volume show -volume volume_name -fields policy
Example
The following commands assign the export policy nfs_policy to the volume vol1 on the SVM vs1 and verify the assignment:
cluster::> volume modify -v1server vs1 -volume vol1 -policy <span className="ph">nfs_policy</span>
cluster::>volume show -volume vol -fields policy
vserver volume policy
------- ------------ ----------------
vs1 vol1 nfs_policy
Give documentation feedback