Liberty -  Liberty -  Liberty -  Liberty -  Liberty -  Liberty -  Liberty -  Liberty - 
 Configuring the volume driver for OceanStor 18000 series (iSCSI)
  1. In /etc/cinder, create a Huawei-customized driver configuration file. The file format is XML.

  2. Configure parameters in the driver configuration file.

    <?xml version='1.0' encoding='UTF-8'?>
    <config>
        <Storage>
            <Product>18000</Product>
            <Protocol>iSCSI</Protocol>
            <RestURL>https://x.x.x.x/deviceManager/rest/</RestURL>
            <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]Note
    • For details about the parameters in the configuration file, see section 1.2.1.5 "Parameters in the Configuration File".

  3. Configure the cinder.conf file

    In the [default] block of /etc/cinder/cinder.conf, add the following contents. volume_driver indicates the loaded driver file, and cinder_huawei_conf_file indicates the specified Huawei-customized configuration file.

    volume_driver =cinder.volume.drivers.huawei.huawei_driver.Huawei18000ISCSIDriver
    cinder_huawei_conf_file = /etc/cinder/cinder_huawei_conf.xml
  4. Run the service cinder-volume restart command to restart the Block Storage service.

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page

loading table of contents...