HP BL680c XenServer Administrator's Guide 4.1.0 - Page 79

sr-create, 4.13.2. sr-destroy, 4.13.3. sr-forget

Page 79 highlights

Command line interface Parameter Name PBDs physical-utilisation physical-size type content-type shared other-config host virtual-allocation sm-config Description Type unique identifier/object reference for the read only set parameter PBDs attached to this SR physical space currently utilized on this SR, in bytes. Note that for sparse disk formats, physical utilisation may be less than virtual allocation read only total physical size of the SR, in bytes read only type of the SR, used to specify the SR backend driver to use read only the type of the SR’s content. Currently read only used only to 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, it is recommended that this be set either to empty, or the string 'user'. true if this SR is capable of being shared between multiple XenServer Hosts; false otherwise read/write A list of key/value pairs that specify read/write map parameter additional configuration parameters for the SR . The storage repository host name read only sum of virtual_sizes of all VDIs in this storage repository (in bytes) read only SM dependent data read only map parameter 5.4.13.1. sr-create sr-create name-label=name physical-size=size type=type content-type=content-type device-config:config_name=value [host-uuid=XenServer Host UUID ] [shared=true | false ] Makes 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-config] parameters differ depending on the device type. See Chapter 3, Storage for details of these parameters across the different storage backends. 5.4.13.2. sr-destroy sr-destroy uuid=SR UUID Destroys the specified SR on the XenServer Host. 5.4.13.3. 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). 73

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108

Command line interface
73
Parameter Name
Description
Type
PBDs
unique identifier/object reference for the
PBDs attached to this SR
read only set parameter
physical-utilisation
physical space currently utilized on this
SR, in bytes. Note that for sparse disk
formats, physical utilisation may be less
than virtual allocation
read only
physical-size
total physical size of the SR, in bytes
read only
type
type of the SR, used to specify the SR
backend driver to use
read only
content-type
the type of the SR’s content. Currently
used only to 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, it is
recommended that this be set either to
empty, or the string 'user'.
read only
shared
true if this SR is capable of being shared
between multiple XenServer Hosts; false
otherwise
read/write
other-config
A list of key/value pairs that specify
additional configuration parameters for the
SR .
read/write map parameter
host
The storage repository host name
read only
virtual-allocation
sum of virtual_sizes of all VDIs in this
storage repository (in bytes)
read only
sm-config
SM dependent data
read only map parameter
5.4.13.1. sr-create
sr-create
name-label=
name
physical-size=
size
type=
type
content-type=
content-type
de-
vice-config:
config_name
=
value
[host-uuid=
XenServer Host UUID
] [shared=
true | false
]
Makes 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-config] parameters differ depending on the device
type
. See Chapter 3,
Storage
for
details of these parameters across the different storage backends.
5.4.13.2. sr-destroy
sr-destroy
uuid=
SR UUID
Destroys the specified SR on the XenServer Host.
5.4.13.3. 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).