Citrix Systems 6 Server User Manual


 
149
The exact device-config parameters 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-enable-database-replication
sr-enable-database-replication uuid=<sr_uuid>
Enables xapi database replication to the specified (shared) SR. For example:
xe sr-enable-database-replication uuid=<sr-uuid>
sr-disable-database-replication
sr-disable-database-replication uuid=<sr_uuid>
Disables xapi database replication to the specified SR. For example:
xe sr-enable-database-replication uuid=<sr-uuid>
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).
sr-introduce
sr-introduce name-label=<name>
physical-size=<physical_size>
type=<type>
content-type=<content_type>
uuid=<sr_uuid>
Just places an SR record into the database. The device-config parameters are specified by device-
config:<parameter_key>=<parameter_value>, for example:
xe sr-introduce device-config:<device>=</dev/sdb1>
Note:
This command is never used in normal operation. It is an advanced operation which might
be useful if an SR needs to be reconfigured as shared after it was created, or to help recover
from various failure scenarios.
sr-probe
sr-probe type=<type> [host-uuid=<uuid_of_host>] [device-config:<config_name>=<value>]
Performs a backend-specific scan, using the provided device-config keys. If the device-config is
complete for the SR backend, then this will return a list of the SRs present on the device, if any. If the device-
config parameters are only partial, then a backend-specific scan will be performed, returning results that will
guide you in improving the remaining device-config parameters. The scan results are returned as backend-
specific XML, printed out on the CLI.
The exact device-config parameters differ depending on the device type. See Storage for details of these
parameters across the different storage backends.
sr-scan
sr-scan uuid=<sr_uuid>