In
/etc/cinder
, create a Huawei-customized driver configuration file. The file format is XML.Configure parameters in the driver configuration file.
12345678910111213141516171819202122232425<?
xml
version=
'1.0'
encoding=
'UTF-8'
?>
<
config
>
<
Storage
>
<
Product
>T</
Product
>
<
Protocol
>iSCSI</
Protocol
>
<
ControllerIP0
>x.x.x.x</
ControllerIP0
>
<
ControllerIP1
>x.x.x.x</
ControllerIP1
>
<
UserName
>xxxxxxxx</
UserName
>
<
UserPassword
>xxxxxxxx</
UserPassword
>
</
Storage
>
<
LUN
>
<
LUNType
>xxx</
LUNType
>
<
StripUnitSize
>xxx</
StripUnitSize
>
<
WriteType
>xxx</
WriteType
>
<
MirrorSwitch
>xxx</
MirrorSwitch
>
<
Prefetch
Type=
"xxx"
Value=
"xxx"
/>
<
StoragePool
Name=
"xxx"
/>
<
StoragePool
Name=
"xxx"
/>
</
LUN
>
<
iSCSI
>
<
DefaultTargetIP
>x.x.x.x</
DefaultTargetIP
>
<
Initiator
Name=
"xxxxxxxx"
TargetIP=
"x.x.x.x"
/>
</
iSCSI
>
<
Host
OSType=
"Linux"
HostIP=
"x.x.x.x, x.x.x.x"
/>
</
config
>
Note For details about the parameters in the configuration file, see section 1.2.1.5 "Parameters in the Configuration File".
Configure the
cinder.conf
fileIn the [default] block of
/etc/cinder/cinder.conf
, add the following contents. volume_driver indicates the loaded driver, andcinder_huawei_conf_file
indicates the specified Huawei-customized configuration file.12volume_driver =cinder.volume.drivers.huawei.huawei_t.HuaweiTISCSIDriver
cinder_huawei_conf_file = /etc/cinder/cinder_huawei_conf.xml
Run the service cinder-volume restart command to restart the Block Storage service.