HP BL680c XenServer Administrator's Guide 4.1.0 - Page 36

set any value

Page 36 highlights

Storage Note also that in the shared SR case i.e. where multiple hosts are accessing the same LUN, the QoS is applied to VBDs accessing the LUN from the same host, i.e. QoS is not applied across hosts in the pool. Note that QoS settings will not have any effect on VHD-based storage types. Before configuring any QoS parameters for a VBD, ensure that the disk scheduler for the SR has been set appropriately. See Section 3.4.7, "Adjusting the disk IO scheduler for an LVM-based SR " for details on how to adjust the scheduler. The scheduler parameter must be set to 'cfq' on the SR for which the QoS is desired. Note Don't forget to set the scheduler to 'cfq' on the SR, and make sure that the PBD has been re-plugged in order for the scheduler change to take effect. The first parameter is qos_algorithm_type. This parameter needs to be set to the value ionice, which is the only type of QoS algorithm supported for virtual disks in this release. The QoS parameters themselves are set with key/value pairs assigned to the qos_algorithm_type parameter. For virtual disks, qos_algorithm_type takes a sched key, and depending on the value, also requires a class key. Possible values of qos_algorithm_type:sched are • sched=rt or sched=real-time sets the QoS scheduling parameter to real time priority, which requires a class parameter to set a value • sched=idle sets the QoS scheduling parameter to idle priority, which requires no class parameter to set any value • sched= sets the QoS scheduling parameter to best effort priority, which requires a class parameter to set a value The possible values for class are • One of the following keywords: highest, high, normal, low, lowest • an integer between 0 and 7, where 0 is the highest priority and 7 is the lowest To enable the disk QoS settings, you also need to set the other-config:scheduler to cfq and replug PBDs for the storage in question. For example, the following CLI commands set the virtual disk's VBD to use real time priority=5: xe vbd-param-set uuid= qos_algorithm_type=ionice xe vbd-param-set uuid= qos_algorithm_params:sched=rt xe vbd-param-set uuid= qos_algorithm_params:class=5 xe pbd-param-set uuid= other-config:scheduler-cfg xe pbd-plug uuid= 30

  • 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

Storage
30
Note also that in the shared SR case i.e. where multiple hosts are accessing the same LUN, the QoS is
applied to VBDs accessing the LUN from the same host, i.e. QoS is not applied across hosts in the pool.
Note that QoS settings will not have any effect on VHD-based storage types.
Before configuring any QoS parameters for a VBD, ensure that the disk scheduler for the SR has been set
appropriately. See Section 3.4.7, “Adjusting the disk IO scheduler for an LVM-based SR ” for details on how
to adjust the scheduler. The scheduler parameter must be set to 'cfq' on the SR for which the QoS is desired.
Note
Don't forget to set the scheduler to 'cfq' on the SR, and make sure that the PBD has been re-plugged
in order for the scheduler change to take effect.
The first parameter is
qos_algorithm_type
. This parameter needs to be set to the value ionice, which
is the only type of QoS algorithm supported for virtual disks in this release.
The QoS parameters themselves are set with key/value pairs assigned to the
qos_algorithm_type
pa-
rameter. For virtual disks,
qos_algorithm_type
takes a sched key, and depending on the value, also
requires a class key.
Possible values of
qos_algorithm_type:sched
are
sched=rt
or
sched=real-time
sets the QoS scheduling parameter to real time priority, which requires
a class parameter to set a value
sched=idle
sets the QoS scheduling parameter to idle priority, which requires no class parameter to
set any value
sched=<anything>
sets the QoS scheduling parameter to best effort priority, which requires a class
parameter to set a value
The possible values for class are
One of the following keywords: highest, high, normal, low, lowest
an integer between 0 and 7, where 0 is the highest priority and 7 is the lowest
To enable the disk QoS settings, you also need to set the
other-config:scheduler
to
cfq
and replug
PBDs for the storage in question.
For example, the following CLI commands set the virtual disk's VBD to use real time priority=5:
xe vbd-param-set uuid=<vbd UUID> qos_algorithm_type=ionice
xe vbd-param-set uuid=<vbd UUID> qos_algorithm_params:sched=rt
xe vbd-param-set uuid=<vbd UUID> qos_algorithm_params:class=5
xe pbd-param-set uuid=<pbd UUID> other-config:scheduler-cfg
xe pbd-plug uuid=<pbd UUID>