Libvirt-iscsi: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 11: Zeile 11:
 
   </target>
 
   </target>
 
  </pool>
 
  </pool>
 +
=define the pool=
 +
virsh pool-define iscsi.xml
 +
=list pools=
 +
virsh pool-list
 +
=start pool=
 +
virsh pool-start iscsi
 +
=auto-start pools=
 +
virsh pool-autostart iscsi

Aktuelle Version vom 8. September 2014, 12:49 Uhr

create a file

/etc/libvirt/storage/iscsi.xml

<pool type='iscsi'>
  <name>iscsi</name>
     <host name='192.168.240.1'/>
     <device path='iqn.2018-09.org.xinux:mordor-target'/>
  <target>
    <path>/dev/disk/by-path</path>
  </target>
</pool>

define the pool

virsh pool-define iscsi.xml

list pools

virsh pool-list

start pool

virsh pool-start iscsi 

auto-start pools

virsh pool-autostart iscsi