Create a Disk Library and a Storage Policy

Updated

You can create a disk library and a Storage Policy simultaneously with XML. The Storage Policy uses the disk library that you create as the default data path.

  1. Download the create_disk_library_storage_policy.xml file and save it on the computer where the command is run.

  2. Open the XML file.

  3. Change the XML parameters.

    Attribute

    Description

    mediaAgentName

    The name of the MediaAgent where you want to create a library.

    libraryName

    The name of the new disk library.

    mountPath

    The mount path location for the disk library.

    createStoragePolicy

    When the value is set to 1, a Storage Policy is created.

    When the value is set to 0, a Storage Policy is not created.

    Example: Use this example XML file to create a disk library and storage policy simultaneously with library name "Library1", MediaAgent name "MA1" and mount path "E:\Library1\Mountpath1" .

  4. Run the following command from the <software installation directory>\Base folder.

    qoperation execute -af <downloaded location>\create_disk_library_storage_policy.xml

    Click here to see sample output.

Was this page helpful?

Your Opinion Matters!

How likely are you to recommend Commvault's documentation site?

0 = Not likely at all 10 = Extremely likely