Parameter Name

Description

Type

 

 

 

physical-size

total physical size of the SR, in bytes

read only

 

 

 

type

type of the SR, used to specify the SR

read only

 

backend driver to use

 

 

 

 

content-type

the type of the SR's content. Used to

read only

 

distinguish ISO libraries from other SRs.

 

 

For storage repositories that store a

 

 

library of ISOs, the content-type

 

 

must be set to iso. In other cases, Citrix

 

 

recommends that this be set either to

 

 

empty, or the string user.

 

 

 

 

shared

True if this SR is capable of being

read/write

 

shared between multiple XenServer

 

 

hosts; False otherwise

 

 

 

 

other-config

list of key/value pairs that specify

read/write map parameter

 

additional configuration parameters for

 

 

the SR .

 

 

 

 

host

The storage repository host name

read only

 

 

 

virtual-allocation

sum of virtual-size values of all VDIs in

read only

 

this storage repository (in bytes)

 

 

 

 

sm-config

SM dependent data

read only map parameter

 

 

 

blobs

binary data store

read only

 

 

 

sr-create

sr-createname-label=<name>physical-size=<size>type=<type> content-type=<content_type>device-config:<config_name>=<value>[host-uuid=<XenServer host UUID>] [shared=<true false>]

Creates an SR on the disk, introduces it into the database, and creates a PBD attaching the SR to a XenServer host. If shared is set to true, a PBD is created for each XenServer host in the pool; if shared is not specified or set to false, a PBD is created only for the XenServer host specified with host-uuid.

The exact device-configparameters differ depending on the device type. See Storage for details of these parameters across the different storage backends.

sr-destroy

sr-destroy uuid=<sr_uuid>

Destroys the specified SR on the XenServer host.

sr-forget

sr-forget uuid=<sr_uuid>

The xapi agent forgets about a specified SR on the XenServer host, meaning that the SR is detached and you cannot access VDIs on it, but it remains intact on the source media (the data is not lost).

175

Page 195
Image 195
Citrix Systems 5.6 manual Sr-create, Sr-destroy uuid=sruuid, Sr-forget uuid=sruuid