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.
-
Download the create_disk_library_storage_policy.xml file and save it on the computer where the command is run.
-
Open the XML file.
-
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" .
-
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.