天天看点

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

继续阅读