next up previous contents
Next: 除錯二 Up: Client Initiator 除錯 Previous: Client Initiator 除錯   Contents

除錯一

  1. 沒先 discovery 無法 login。
    [root@kvm7 ~]# lsblk 
    NAME                MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
    vda                 252:0    0    4G  0 disk 
    ├─vda1              252:1    0  200M  0 part /boot
    ├─vda2              252:2    0  3.4G  0 part 
    │ ├─vg_kvm7usb-swap 253:0    0  124M  0 lvm  [SWAP]
    │ └─vg_kvm7usb-root 253:1    0  3.1G  0 lvm  /
    └─vda3              252:3    0  130M  0 part 
      └─vg_kvm7home-vo  253:2    0   80M  0 lvm  /home
    [root@kvm7 ~]# iscsiadm -m node -T iqn.2015-08.wang.deyu:kvm5 -p 192.168.122.5 -l
    iscsiadm: No records found
    
  2. 正確做法。
    [root@kvm7 ~]# iscsiadm -m discovery -t st -p 192.168.122.5
    192.168.122.5:3260,1 iqn.2015-08.wang.deyu:kvm5
    
    [root@kvm7 ~]# iscsiadm -m node -T iqn.2015-08.wang.deyu:kvm5 -p 192.168.122.5 -l
    Logging in to [iface: default, target: iqn.2015-08.wang.deyu:kvm5, portal: 192.168.122.5,3260] (multiple)
    Login to [iface: default, target: iqn.2015-08.wang.deyu:kvm5, portal: 192.168.122.5,3260] successful.
    
    [root@kvm7 ~]# lsblk 
    NAME                MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
    sda                   8:0    0   12M  0 disk 
    └─sda1                8:1    0   10M  0 part /mnt/data
    vda                 252:0    0    4G  0 disk 
    ├─vda1              252:1    0  200M  0 part /boot
    ├─vda2              252:2    0  3.4G  0 part 
    │ ├─vg_kvm7usb-swap 253:0    0  124M  0 lvm  [SWAP]
    │ └─vg_kvm7usb-root 253:1    0  3.1G  0 lvm  /
    └─vda3              252:3    0  130M  0 part 
      └─vg_kvm7home-vo  253:2    0   80M  0 lvm  /home
    



2017-11-30