天天看點

FC Setup for openfiler 配合虛拟化實施

主要思路 

1. 先查兩端wwn 号  一個是openfiler上的fc設定那裡可以看到   一個是vsphere上面的存儲網絡那裡能看到  

2.初次配置  (主要在存儲上配置) 檢查配置檔案  檢查服務

激活target

3.建立卷組的同時劃存儲上hba卡上對應通道wwn進組

4.做兩端   存儲<--->vsphere host的比對

5.把事先openfiler上建立好的分卷lun挂載

6.儲存配置 然後重新開機vsphere host

7.scstadmin -list_group/lun/session  檢視狀态

8.vsphere掃描下存儲然後在存儲器哪裡添加lun 完成

------------------------------------------------------------

1. cat /sys/class/fc_host/hostx/port_name  

    #檢視wwn号 ,x=host端口号,openfiler頁面上也有

2. edit /etc/init.d/scst and change the chkconfig to # chkconfig: - 99 36      

   #預設不用配置

3. chkconfig scst on 

    #檢測scst服務狀态

4. service scst start 

   #手動啟動服務fc-san

5. scstadmin -write_config /etc/scst.conf     

   #儲存目前配置

6. scstadmin -enable_target 21:00:00:24:ff:2f:1e:86   -driver qla2x00t

    #激活 存儲上hba卡上接口target

7.scstadmin -add_group fc-san -driver qla2x00t -target 21:00:00:24:ff:2f:1e:86    

   #建立卷組的同時劃存儲上hba卡上對應通道wwn進組 

7.scstadmin -add_init 50:01:43:80:06:37:07:77 -driver qla2x00t -target 21:00:00:24:ff:2f:1e:86 -group fc-san            #  做兩端   存儲<--->vsphere host的比對 

等待openfiler  更新 如下圖 

8.lvdisplay        # 檢視分區卷狀态

9.scstadmin -open_dev 6t1 -handler vdisk_blockio -attributes filename=/dev/fc-san/6t1   

  # 把事先openfiler上建立好的分卷lun挂載 

10.scstadmin -add_lun 0 -driver qla2x00t -target 21:00:00:24:ff:2f:1e:86 -group fc-san -device 6t1                     # 綁定traget<---->lun

如圖

11.  scstadmin -write_config /etc/scst.conf 

       #儲存配置檔案 

12其他指令 

scstadmin -rem_init 50:01:43:80:06:37:07:77 -driver qla2x00t -target 21:00:00:24:ff:2f:1e:86 -group fc-san 

   #清除錯誤wwn綁定 

注意嘗試激活對應存儲上的通道

scstadmin -enable_target 21:00:00:24:ff:2f:1e:86   -driver qla2x00t

然後重新開機host

繼續閱讀