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

 

5scstadmin -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

本文出自 “飞仔��--分享即是快乐...” 博客,转载请与作者联系!

你可能感兴趣的:(硬盘,openfiler,FC-SAN,测试结果)