Spectra Logic
1-800-833-1132 : 1-303-449-6400


Advanced Bucket Management Operations : Storage Domain Operations : Create Storage Domain

Create Storage Domain
Description
Create a storage domain.
Requests
Syntax
POST http[s]://{datapathDNSname}/_rest_/storage_domain/?name={string}[&auto_eject_upon_cron={string}] [&auto_eject_upon_job_cancellation=TRUE|FALSE] [&auto_eject_upon_job_completion=TRUE|FALSE] [&auto_eject_upon_media_full=TRUE|FALSE] [&ltfs_file_naming=OBJECT_NAME|OBJECT_ID] [&max_tape_fragmentation_percent={32-bit integer}] [&maximum_auto_verification_frequency_in_days={32-bit integer}] [&media_ejection_allowed=TRUE|FALSE]
[&verify_prior_to_auto_eject=CRITICAL|URGENT|HIGH|NORMAL|LOW| BACKGROUND][&write_optimization=CAPACITY|PERFORMANCE]
Request Parameters 
Note: This parameter is only valid if media_ejection_allowed=TRUE.
Note: This parameter is only valid if media_ejection_allowed=TRUE.
Values: TRUE, FALSE (default)
Note: This parameter is only valid if media_ejection_allowed=TRUE.
Values: TRUE, FALSE (default)
Note: This parameter is only valid if media_ejection_allowed=TRUE.
Values: TRUE, FALSE (default)
§
OBJECT_NAME — LTFS file names use the format {bucket name}/{object name}, for example bucket1/video1. Object names must comply with LTFS file naming rules. If the tapes are ejected from the BlackPearl gateway and loaded into a non-BlackPearl tape partition, the file names match the object names.
§
OBJECT_ID (default) — LTFS file names use the format {bucket name}/{object id}, for example bucket1/1fc6f09c-dd72-41ea-8043-0491ab8a6d82. Object names do not need to comply with LTFS file naming rules. The object names are saved as LTFS extended attributes allowing any third party application to reconstruct all the data including the object names.
Values: TRUE (default), FALSE
Specifies whether job chunks are written as quickly as possible or across as few pieces of media as possible. For example, when PERFORMANCE mode is set for a tape partition, job chunks are written as quickly as possible, using all tape drive resources, even if that means that more tapes are allocated to the bucket than are necessary to write the data.
It is better to use CAPACITY mode if the tapes will be ejected after the job completes or if the bucket is written to very rarely and capacity in the library is of concern. PERFORMANCE mode is recommended for tape partitions in all other cases.
Storage domains for pool partitions should generally have a CAPACITY write optimization because pools are very fast and under less contention. It is rare for a pool storage domain to benefit from PERFORMANCE mode.
Values: CAPACITY (default), PERFORMANCE
Responses
Response Elements
<Data>
   <AutoEjectUponCron>{
string}</AutoEjectUponCron>
   <AutoEjectUponJobCancellation>
      TRUE|FALSE
   </AutoEjectUponJobCancellation>
   <AutoEjectUponJobCompletion>
      TRUE|FALSE
   </AutoEjectUponJobCompletion>
   <AutoEjectUponMediaFull>
      TRUE|FALSE
   </AutoEjectUponMediaFull>
   <Id>{string}</Id>
   <LtfsFileNaming>OBJECT_ID|OBJECT_NAME</LtfsFileNaming>
   <MaxTapeFragmentationPercent>
      {32-bit integer}
   </MaxTapeFragmentationPercent>
   <MaximumAutoVerificationFrequencyInDays>
      {32-bit integer}
   </MaximumAutoVerificationFrequencyInDays>
   <MediaEjectionAllowed>
      TRUE|FALSE
   </MediaEjectionAllowed>
   <Name>{string}</Name>
   <VerifyPriorToAutoEject>
      CRITICAL|URGENT|HIGH|NORMAL|LOW|BACKGROUND
   </VerifyPriorToAutoEject>
   <WriteOptimization>CAPACITY|PERFORMANCE</WriteOptimization>
</Data>
where the response elements are defined as follows:
Values: TRUE, FALSE
Values: TRUE, FALSE
Whether job chunks are written as quickly as possible (PERFORMANCE) or across as few pieces of media as possible (CAPACITY). Values: CAPACITY, PERFORMANCE
Example
Sample Request
This request creates a storage domain with the name “sd1” that uses all storage domain defaults.
POST http://blackpearl-hostname/_rest_/storage_domain/?name=sd1 HTTP/1.1
Sample Response
HTTP/1.1 200 OK
<Data>
   <AutoEjectUponCron/>
   <AutoEjectUponJobCancellation>
      FALSE
   </AutoEjectUponJobCancellation>
   <AutoEjectUponJobCompletion>FALSE</AutoEjectUponJobCompletion>
   <AutoEjectUponMediaFull>FALSE</AutoEjectUponMediaFull>
   <Id>3d306463-8fbc-4bb5-9d0d-98c2cb9e8aa2</Id>
   <LtfsFileNaming>OBJECT_ID</LtfsFileNaming>
   <MaxTapeFragmentationPercent>65</MaxTapeFragmentationPercent>
   <MaximumAutoVerificationFrequencyInDays>
      365
   </MaximumAutoVerificationFrequencyInDays>
   <MediaEjectionAllowed>TRUE</MediaEjectionAllowed>
   <Name>sd1</Name>
   </VerifyPriorToAutoEject>
   <WriteOptimization>CAPACITY</WriteOptimization>
</Data>