close

1.original scsi_host & drive:

    1.1 using lsscsi or lsblk to check original drive

          lsscsi_original_drive.jpg  

          lsblk_original_drive.jpg  

    1.2 check original scsi_host

           scsi_host_original.jpg  

2. add a drive of SCSI 1:0

    add sdb  

3. compare with scsi_host, lsscsi and kernal log

    3.1 a new entry of scsi_host(host 3)

          scsi_host_sdb.jpg  

    3.2 a new entry of lsscsi(/dev/sdb)

          lsscsi_sdb.jpg  

    3.3 There are some messages show in the kernal log

          kernal_log_sdb.jpg  

4. add a drive of SCSI 0:1

    add sdc  

5. force system rescan drive: echo "- - -" > /sys/class/scsi_host/host2/scan.

    How do I know to scan host2? Because the boot drive(/dev/sda) is SCSI 0:0 and we can check its host number by lsscsi: [2:0:0:0].

    So if I add a drive behind this boot drive, I must echo "- - -" to host2.

6. check this new drive by lsscsi and kernal log

    6.1 lsscsi: the entry of this drive will show [2:0:1:0]

          lsscsi_sdc.jpg  

    6.2 kernal log:

          kernal_log_sdc.jpg  

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 stellaforauto 的頭像
    stellaforauto

    狂暴綿羊完勝企鵝教戰手冊

    stellaforauto 發表在 痞客邦 留言(0) 人氣()