Changes between Version 11 and Version 12 of linux/iscsi


Ignore:
Timestamp:
1970/01/01 09:21:17 (54 years ago)
Author:
yuna
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • linux/iscsi

    v11 v12  
    8585  <name>lun1</name> 
    8686  <source> 
    87     <host name="10.68.122.1" /> 
     87    <host name="192.168.122.1" /> 
    8888    <device path="iqn.2001-04.org.ultimana:storage.disk1"/> 
    8989  </source> 
     
    9696{{{ 
    9797virsh # pool-define pool.xml 
     98プール lun1 が pool.xml から定義されました 
     99 
    98100virsh # pool-start lun1 
    99 virsh # vol-list lun1 
    100 名前               パス                                   
     101プール lun1 が起動されました 
     102 
     103virsh # pool-list  
     104名前               状態     自動起動 
    101105----------------------------------------- 
    102 6.0.0.0              /dev/disk/by-path/ip-10.68.122.1:3260-iscsi-iqn.2001-04.org.ultimana:storage.disk1-lun-0 
     106default              動作中  yes        
     107lun1                 動作中  no         
     108 
     109virsh # pool-info lun1 
     110名前:         lun1 
     111UUID:           1477ce40-0dd0-91b2-fa7a-ae64ddb27a0f 
     112状態:         実行中 
     113容量:         7.81 GB 
     114割り当て:   7.81 GB 
     115利用可能:   0.00  
    103116}}} 
     117/dev/disk/by-pathディレクトリを確認してみる。 
     118{{{ 
     119# ls /dev/disk/by-path/ 
     120ip-192.168.122.1:3260-iscsi-iqn.2001-04.org.ultimana:storage.disk1-lun-0 
     121ip-192.168.122.1:3260-iscsi-iqn.2001-04.org.ultimana:storage.disk1-lun-0-part1 
     122ip-192.168.122.1:3260-iscsi-iqn.2001-04.org.ultimana:storage.disk1-lun-0-part2 
     123}}} 
     124libvirt XMLファイルには次のようにしてディスクを定義する。typeをblockにしているところに注意。 
     125{{{ 
     126    <disk type='block' device='disk'> 
     127      <driver name='qemu' type='raw'/> 
     128      <source dev='/dev/disk/by-path/ip-192.168.122.1:3260-iscsi-iqn.2001-04.org.ultimana:storage.disk1-lun-0'/> 
     129      <target dev='hda' bus='ide'/> 
     130    </disk> 
     131}}}