sheepdog+libvirt

添加xml文件:

官方xml文件:

 1 <disk type='network'>
 2     <driver name="qemu" type="raw" io="threads" ioeventfd="on" event_idx="off"/>
 3     <source protocol="sheepdog" name="image_name">
 4       <host name="hostname" port="7000"/>
 5     </source>
 6     <target dev="hdb" bus="ide"/>
 7     <boot order='1'/>
 8     <transient/>
 9     <address type='drive' controller='0' bus='1' unit='0'/>
10  </disk>

实际测试发现,qemu需要添加path才支持部分功能:如 ioeventfd="on" event_idx="off"和<transient/>

部分patch地址:https://www.redhat.com/archives/libvir-list/2011-August/msg00555.html

实践可用xml文件:

1 <disk type='network'>
2     <driver name="qemu" type="raw" io="threads"/>
3     <source protocol="sheepdog" name="image_name">
4       <host name="hostname" port="7000"/>
5     </source>
6     <target dev="hdb" bus="ide"/>
7     <boot order='1'/>
8     <address type='drive' controller='0' bus='1' unit='0'/>
9 </disk>

 multipath配置:

>> multipaths {
>>         multipath {
>>                 wwid                    $SCSI_ID
>>                 alias                   sheepdog-iscsi
>>                 path_grouping_policy    failover
>>                 path_checker            readsector0
>>                 path_selector           "round-robin 0"
>>                 failback                manual
>>                 rr_weight               priorities
>>                 no_path_retry           5
>>         }
>> }
原文地址:https://www.cnblogs.com/yunlion/p/10725462.html