Table of ContentsView in Frames

Assigning an export policy to a qtree

Instead of exporting an entire volume, you can also export a specific qtree on a volume to make it directly accessible to clients. You can export a qtree by assigning an export policy to it. You can assign the export policy either when you create a new qtree or by modifying an existing qtree.

Before you begin

The export policy must exist.

About this task

By default, qtrees use the parent export policy of the containing volume if not otherwise specified at the time of creation.

Steps

  1. Perform one of the following actions:
    To assign an export policy to... Enter the command...
    A new qtree volume qtree create -vserver vserver_name -qtree-path /vol/volume_name/qtree_name -export-policy export_policy_name
    An existing qtree volume qtree modify -vserver vserver_name -qtree-path /vol/volume_name/qtree_name -export-policy export_policy_name
  2. Verify that the export policy was assigned correctly by entering the following command: volume qtree show -qtree qtree_name -fields export-policy

Examples

The following command creates a new qtree named dev1 on volume vol_eng on the SVM named vs1 and assigns it the export policy dev1_export.

vs1::> volume qtree create -vserver vs1 -qtree-path /vol/vol_eng/dev1 -export-policy dev1_export

The following command modifies an existing qtree named dev2 on volume vol_eng on the SVM named vs1 and assigns it the export policy dev2_export.

vs1::> volume qtree modify -vserver vs1 -qtree-path /vol/vol_eng/dev2 -export-policy dev2_export