CN107832093A - 一种在私有云中免驱动对接标准iscsi/fc存储的方法 - Google Patents

一种在私有云中免驱动对接标准iscsi/fc存储的方法 Download PDF

Info

Publication number
CN107832093A
CN107832093A CN201710959237.6A CN201710959237A CN107832093A CN 107832093 A CN107832093 A CN 107832093A CN 201710959237 A CN201710959237 A CN 201710959237A CN 107832093 A CN107832093 A CN 107832093A
Authority
CN
China
Prior art keywords
storage
iscsi
target
cluster
storages
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710959237.6A
Other languages
English (en)
Inventor
王懋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Communication Breath Technical Concern Co Ltd Is Easily Interrogated In Beijing
Original Assignee
Communication Breath Technical Concern Co Ltd Is Easily Interrogated In Beijing
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Communication Breath Technical Concern Co Ltd Is Easily Interrogated In Beijing filed Critical Communication Breath Technical Concern Co Ltd Is Easily Interrogated In Beijing
Priority to CN201710959237.6A priority Critical patent/CN107832093A/zh
Publication of CN107832093A publication Critical patent/CN107832093A/zh
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0626Reducing size or complexity of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Storage Device Security (AREA)

Abstract

一种在私有云中免驱动对接标准ISCSI/FC存储的方法,首先在存储上通过网络共享出相应的存储target,通过网络以及标准ISCSI/FC协议接入该target,并通过统一的驱动对存储进行管理,具有免驱动接入ISCSI/FC存储的特点,具有以下优点:1)因为通过标准ISCSI/FC协议对接与存储对接,通过编写统一的CLVM驱动使用存储,不需要维护大量驱动,且保证兼容性,2)使用集群和分布式锁管理器对存储管理,可保证存储数据的完整性,并更新LVM元数据使集群中每个节点保证信息一致,3)拥有LVM的全部优点,如可灵活调整逻辑卷大小,磁盘条带化以增大吞吐量,可进行快照、镜像等。

Description

一种在私有云中免驱动对接标准ISCSI/FC存储的方法
技术领域
本发明属于云计算,虚拟化技术领域,具体涉及一种从物理的IT资源中虚拟出多个逻辑的计算资源,网络资源,存储资源,方便用户对大规模数据中心的自动化管理和运维的基于OpenStack和标准ISCSI/FS的私有云中免驱动对接标准ISCSI/FC存储的方法。
背景技术
OpenStack是一个开源的云计算管理平台项目,提供实施简单、可大规模扩展、丰富、标准统一的云计算管理平台。
先介绍目前OpenStack结合ISCSI/FC存储设备提供存储的过程:因为不同的存储设备其命令可能不同,需要根据OpenStack中的cinder模块提供的接口针对不同的存储设备写相应的驱动来支持该设备的操作,这样会需要写大量的驱动程序,难以维护且无法保证完整的兼容性。
发明内容
为了克服上述现有技术的不足,本发明的目的是提供一种在私有云中免驱动对接标准ISCSI/FC存储的方法,首先在存储上通过网络共享出相应的存储target,通过网络以及标准ISCSI/FC协议接入该target,并通过统一的驱动对存储进行管理,具有免驱动接入ISCSI/FC存储的特点。
为了实现上述目的,本发明采用的技术方案是:
一种在私有云中免驱动对接标准ISCSI/FC存储的方法,其特征在于,包括以下步骤:
1)首先在ISCSI/FC存储设备上划分出一个或多个LUN。
对于ISCSI存储,在其上划分出一个或多个target,每个target由一个或多个LUN(逻辑单元号)组成,每个LUN对应着存储上的一块磁盘空间,target会通过TCP协议共享。
对于FC存储,通过HBA卡将客户端与FC存储设备通过光纤连接。
2)在用户端搭建一套OpenStack环境并确定本地存储可用。
3)配置并启动集群,并将用户端节点加入集群。
4) 编写针对ISCSI/FC的统一CLVM驱动,在OpenStack的cinder中指定该驱动。
5)用户端通过网络、ISCSI/FC协议发现并挂载了目标存储后,通过OpenStack相应的磁盘操作,cinder会使用编写好的驱动对目标存储进行相应地LVM操作,如进行PV(物理卷)、VG(卷组)的划分,并在VG之上划分LV(逻辑卷),客户端就可以使用这些逻辑卷了。
本发明的有益效果是:
1)因为通过标准ISCSI/FC协议对接与存储对接,通过编写统一的CLVM驱动使用存储,不需要维护大量驱动,且保证兼容性。
2)使用集群和分布式锁管理器对存储管理,可保证存储数据的完整性,并更新LVM元数据使集群中每个节点保证信息一致。
3)拥有LVM的全部优点,如可灵活调整逻辑卷大小,磁盘条带化以增大吞吐量,可进行快照、镜像等。
附图说明
图1为本本发明的原理流程图。
图2为本本发明的节点原理流程图。
具体实施方式
以下结合附图对本发明进一步叙述,但本发明不局限于以下实施例。
如图1、图2所示,实施例
1、前期准备
操作系统
RedHat 7.0或CentOS 7.0及以上。
安装Pacemaker配置工具及相关软件包
安装 Red Hat High Availability Add-On 软件包,完成后会自动启用pcsd守护进程,使用psc命令对集群进行配置。
安装 High Availability 频道中的所有可用 fence 代理,也可单独安装需要的fence代理,如scsi。
安装lvm2-cluster和gfs2-utils 软件包,分别用于CLVM和GFS集群文件系统。
配置IPTABLES防火墙允许集群组件运行
Red Hat High Availability Add-On 需要为进入的流量启用以下端口:
TCP:端口 2224、3121、21064
UDP:端口 5405
DLM(如果使用附带 clvm/GFS2 的 DLM 锁管理器):端口 21064
2、创建和管理集群
集群节点认证
使用pcs守护进程配置用户hacluster的密码,加入同一个集群的密码必须相同。
创建集群
创建集群时可初始加入多个节点。
启动集群节点
节点加入集群
3、FENCING:配置STONITH
STONITH 是 Shoot-The-Other-Node-In-The-Head 的首字母缩写,该工具可保护数据完整性。如果启用了STONITH的集群中某个节点出现故障或没有反应,集群会将该节点隔离或关闭。
4、配置集群资源
为dlm代理创建资源,使用的资源为ocf:pacemaker:controld,为clvmd创建资源,使用的资源为ocf:heartbeat:clvm。两个资源要配置不可用时使用fench,并设置为clone,克隆资源可以使资源分布于集群内全部节点上。
5、配置资源限制
因为clvmd需要依赖于分布式锁管理器dlm,应指定启动顺序,首先启动dlm-clone资源,再启动clvmd-clone。
还需要配置资源组共置,保证当dlm不能正常运行,clvmd也一定不能运行。
6、管理集群资源
7、存储接入步骤
前期准备
准备好FC、ISCSI存储设备,使之和已配置好集群的客户端连通。
如图1所示,存储端
首先在ISCSI/FC存储设备上划分出一个或多个LUN。
对于ISCSI存储,在其上划分出一个或多个target,每个target由一个或多个LUN(逻辑单元号)组成,每个LUN对应着存储上的一块磁盘空间,target会通过TCP协议共享。
对于FC存储,通过HBA卡将客户端与FC存储设备通过光纤连接。
用户端
安装OpenStack并将用户端加入到集群。
将编写好的驱动放入客户端本地。
在OpenStack中创建存储type,并创建一个该类型的存储。
修改cinder配置文件,指定驱动,重启cinder。
通过网络、ISCSI/FC协议发现并挂载目标存储。

Claims (1)

1.一种在私有云中免驱动对接标准ISCSI/FC存储的方法,其特征在于,包括以下步骤:
1)首先在ISCSI/FC存储设备上划分出一个或多个LUN;
对于ISCSI存储,在其上划分出一个或多个target,每个target由一个或多个LUN(逻辑单元号)组成,每个LUN对应着存储上的一块磁盘空间,target会通过TCP协议共享;
对于FC存储,通过HBA卡将客户端与FC存储设备通过光纤连接;
2)在用户端搭建一套OpenStack环境并确定本地存储可用;
3)配置并启动集群,并将用户端节点加入集群;
4) 编写针对ISCSI/FC的统一CLVM驱动,在OpenStack的cinder中指定该驱动;
5)用户端通过网络、ISCSI/FC协议发现并挂载了目标存储后,通过OpenStack相应的磁盘操作,cinder会使用编写好的驱动对目标存储进行相应地LVM操作,如进行PV(物理卷)、VG(卷组)的划分,并在VG之上划分LV(逻辑卷),客户端就可以使用这些逻辑卷了。
CN201710959237.6A 2017-10-16 2017-10-16 一种在私有云中免驱动对接标准iscsi/fc存储的方法 Pending CN107832093A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710959237.6A CN107832093A (zh) 2017-10-16 2017-10-16 一种在私有云中免驱动对接标准iscsi/fc存储的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710959237.6A CN107832093A (zh) 2017-10-16 2017-10-16 一种在私有云中免驱动对接标准iscsi/fc存储的方法

Publications (1)

Publication Number Publication Date
CN107832093A true CN107832093A (zh) 2018-03-23

Family

ID=61648078

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710959237.6A Pending CN107832093A (zh) 2017-10-16 2017-10-16 一种在私有云中免驱动对接标准iscsi/fc存储的方法

Country Status (1)

Country Link
CN (1) CN107832093A (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109547537A (zh) * 2018-11-05 2019-03-29 中国电子科技集团公司第二十八研究所 基于SAN存储共享卷实现openstack高可用的方法
CN113568569A (zh) * 2021-06-21 2021-10-29 长沙证通云计算有限公司 一种基于云平台的san存储对接方法及系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110173609A1 (en) * 2009-07-23 2011-07-14 Brocade Communications Systems, Inc. Method and Apparatus for Determining the Identity of a Virtual Machine
CN103902225A (zh) * 2012-12-26 2014-07-02 中国电信股份有限公司 存储资源集中管理的方法与系统
CN104484279A (zh) * 2014-12-05 2015-04-01 国云科技股份有限公司 一种适用于云计算的集中存储超额分配使用的方法
CN104991874A (zh) * 2015-07-22 2015-10-21 浪潮(北京)电子信息产业有限公司 一种基于scst的多控制器存储设备alua配置方法
CN106919346A (zh) * 2017-02-21 2017-07-04 无锡华云数据技术服务有限公司 一种基于clvm的共享存储虚拟化实现方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110173609A1 (en) * 2009-07-23 2011-07-14 Brocade Communications Systems, Inc. Method and Apparatus for Determining the Identity of a Virtual Machine
CN103902225A (zh) * 2012-12-26 2014-07-02 中国电信股份有限公司 存储资源集中管理的方法与系统
CN104484279A (zh) * 2014-12-05 2015-04-01 国云科技股份有限公司 一种适用于云计算的集中存储超额分配使用的方法
CN104991874A (zh) * 2015-07-22 2015-10-21 浪潮(北京)电子信息产业有限公司 一种基于scst的多控制器存储设备alua配置方法
CN106919346A (zh) * 2017-02-21 2017-07-04 无锡华云数据技术服务有限公司 一种基于clvm的共享存储虚拟化实现方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
尐譽: ""iSCSI(二) iSCSI cLVM GFS2 配置共享存储"", 《HTTPS://BLOG.CSDN.NET/TJIYU/ARTICLE/DETAILS/52826259》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109547537A (zh) * 2018-11-05 2019-03-29 中国电子科技集团公司第二十八研究所 基于SAN存储共享卷实现openstack高可用的方法
CN113568569A (zh) * 2021-06-21 2021-10-29 长沙证通云计算有限公司 一种基于云平台的san存储对接方法及系统

Similar Documents

Publication Publication Date Title
US11314543B2 (en) Architecture for implementing a virtualization environment and appliance
KR102506394B1 (ko) 집적된 NVMe 오버 패브릭 장치용 스토리지 집적 방법
CN103503414B (zh) 一种计算存储融合的集群系统
CN101398770B (zh) 迁移一个或多个虚拟机的系统和方法
CN105892943B (zh) 一种分布式存储系统中块存储数据的访问方法及系统
US7921185B2 (en) System and method for managing switch and information handling system SAS protocol communication
EP2177985B1 (en) Embedded scale-out aggregator for storage array controllers
CN104283959B (zh) 一种适用于云平台的基于性能分级的存储机制
CN102223409B (zh) 一种网络存储资源应用系统及方法
US11023406B2 (en) Preservation of port control block information related to logins and states of remote ports during a code load in an embedded port
JP2000339098A (ja) ストレージドメイン管理システム
CN109327332B (zh) 一种Ceph云存储下基于LIO的iSCSI GateWay高可用实现方法
Alba et al. Efficient and agile storage management in software defined environments
CN109547537A (zh) 基于SAN存储共享卷实现openstack高可用的方法
US10606625B1 (en) Hot growing a cloud hosted block device
CN102833334A (zh) 一种逻辑卷管理方法
US10296216B2 (en) Prioritizing dedicated host ports when N-port ID virtualization is enabled in a storage controller
CN107832093A (zh) 一种在私有云中免驱动对接标准iscsi/fc存储的方法
US9753943B1 (en) Techniques for distributing access to filesystems through multipe filesystem management nodes
CN107273044B (zh) 逻辑分区自动挂载磁盘的方法、电子设备及存储介质
US11030100B1 (en) Expansion of HBA write cache using NVDIMM
US20150355840A1 (en) Volume class management
US20130024614A1 (en) Storage manager
US20220308794A1 (en) Distributed storage system and management method
US20210067465A1 (en) Identifying target port based on resource availability

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180323