WO2012146034A1 - 一种标识存储设备的方法及系统 - Google Patents

一种标识存储设备的方法及系统 Download PDF

Info

Publication number
WO2012146034A1
WO2012146034A1 PCT/CN2011/084243 CN2011084243W WO2012146034A1 WO 2012146034 A1 WO2012146034 A1 WO 2012146034A1 CN 2011084243 W CN2011084243 W CN 2011084243W WO 2012146034 A1 WO2012146034 A1 WO 2012146034A1
Authority
WO
WIPO (PCT)
Prior art keywords
storage device
identifier
disk information
storage
information
Prior art date
Application number
PCT/CN2011/084243
Other languages
English (en)
French (fr)
Inventor
韩盛中
雷爱民
季亮
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to EP11864573.8A priority Critical patent/EP2696555B1/en
Priority to US14/113,894 priority patent/US9281992B2/en
Publication of WO2012146034A1 publication Critical patent/WO2012146034A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0853Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information

Definitions

  • the present invention relates to distributed storage technologies, and more particularly to a method and system for identifying storage devices. Background technique
  • the file system is built on several hard disks or on several specific storage devices. In this case, the management of the storage device is relatively simple.
  • the storage device is managed by obtaining the identifier of the storage device.
  • the following methods are generally used to obtain the identifier of the storage device:
  • EPLD Erasable Programmable Logic Device
  • the electromagnetic compatibility (EMC, Electro Magnetic Compatibility) magnetic array device can be used to obtain the Universal Unique Unique Identifier (UUID) of such storage devices, but This solution is also limited to magnetic arrays or magnetic arrays that are limited to only certain brands.
  • EMC Electro Magnetic Compatibility
  • API Application Programming Interface
  • JBOD Just a Bunch Of Disks
  • IPMI Intelligent Platform Management Interface
  • the file system in a distributed system of a cloud computing platform is built on a heterogeneous storage architecture.
  • the advantage of this design is that it is suitable for a variety of storage devices.
  • users can clearly understand the operation of each storage device in each storage node, including devices, logical volumes, and Redundant Array of Independent Disks (RAID). Wait.
  • the upper layer may select different storage policies according to the performance difference of each storage device. Of course, the storage device with better performance is selected to be larger than the storage device with poor performance.
  • the heterogeneous storage architecture includes multiple storage devices, the identification of each storage device is not uniform, and the storage device cannot be obtained through a unified method. The identity of the application to enable unified management of the application and database. Once a storage device loses power, fails, or migrates, management of the storage device becomes more confusing. Summary of the invention
  • the main purpose of the present invention is to provide a method and system for identifying a storage device, and uniformly identify the storage device, thereby facilitating unified management of the storage device.
  • a method for identifying a storage device includes: obtaining, by the storage server, a disk information of the storage device by using the storage server; determining, according to the disk information, that the storage device matches the device identifier, and entering the monitoring state; otherwise, creating a device identifier for the storage device, and entering the monitoring status.
  • the determining, by the disk information, that the storage device matches the device identifier comprises: comparing the disk information of the received storage device with the disk information in the identifier table, and if the disk information of the storage device completely matches the disk information in the identifier table, determining The storage device is completely matched with the device identifier in the identifier table; otherwise, if it is determined that half or more of the disk information in the storage device matches the disk information in the identifier table, the storage device and the device identifier in the identifier table are fuzzyly matched. .
  • the storage device If there is a storage device that is fuzzyly matched with the device identifier in an identification table, then the storage device The device is fuzzyly matched with the device identifier in the identifier table; or
  • the first storage device and the second storage device are both fuzzyly matched with the device identifier in the identifier table, and the first storage device is fuzzyly matched with the device identifier in the identifier table, and the device identifier is assigned to the second storage device; or
  • a storage device is fuzzyly matched with the device ID in more than one identifier table, one identifier table is retained and updated, and other identifier tables are deleted.
  • the creating a device identifier for the storage device includes: creating an identifier table, generating a device identifier, and saving the generated device identifier and the disk information of the storage device to the established identifier table.
  • the entering the monitoring state includes: the storage server periodically updates the disk information of the locally stored storage device, and the main control server periodically obtains the disk information of the storage device through the storage server, determines the disk loss according to the received disk information, and updates the identification table.
  • a system for identifying a storage device comprising: a main control server and a storage server; the main control server is configured to obtain the disk information of the storage device by using the storage server, and determine, according to the disk information, that the storage device matches the device identifier in the identifier table, and enters monitoring. Status; otherwise, create a device ID for the storage device and enter the monitoring state;
  • the storage server stores the disk information of the storage device and sends it to the master server.
  • the main control server specifically includes: a database module and a device management module;
  • the device management module is configured to send the received disk information to the database module, where the database module is configured to compare the disk information sent by the received device management module with the disk information in the identifier table, if there is a disk of the storage device The information is completely consistent with the disk information in the identifier table, and it is determined that the storage device completely matches the device identifier in the identifier table; if half or more of the disk information in the storage device matches the disk information in the identifier table, then it is determined The storage device is fuzzyly matched to the device ID in the identification table.
  • the database module is specifically configured to: determine that a storage device is fuzzyly matched with a device identifier in an identifier table, and the storage device matches a device identifier pattern in the identifier table; Or, the first storage device and the second storage device are both fuzzyly matched with the device identifier in the identifier table, and the first storage device is fuzzyly matched with the device identifier in the identifier table, and the device identifier is allocated to the second storage device; Or, a storage device is fuzzyly matched with the device identifiers in more than one identifier table, and one identifier table is reserved and updated, and other identifier tables are deleted.
  • the database module is specifically configured to: determine that the storage device does not match the device identifier in the identifier table, generate a device identifier, establish an identifier table, and save the generated device identifier and the disk information of the storage device into the established identifier table.
  • the storage server specifically includes: a device management agent module and a device information query module; the device management module is specifically configured to: after the power is successfully applied, periodically send a device information acquisition command to the device management module; and receive the disk information of the storage device. Sending to the database module; the database module is configured to determine a disk loss according to the received disk information, and update the identifier table;
  • the device management agent module is configured to periodically update the disk information of the locally stored storage device by using the device information query module; and receive the device information command sent by the device management module, and send the locally saved disk information to the device management module;
  • the device information query module is configured to read disk information of the storage device and return the device information to the device management agent module.
  • the main control server determines that the storage device does not have a matching device identifier, and creates a device identifier for the storage device, so that the storage device in the distributed storage system is managed by a unified device identifier. And suitable for the management of many types of storage devices.
  • the main control server enters the monitoring state, and the identification table is updated periodically according to the state of the storage device, so that the correspondence between the storage device and the device identifier in the main control server is updated in time, which facilitates the management of the storage device by the main control server.
  • FIG. 1 is a schematic diagram of a basic architecture of a distributed storage system
  • FIG. 2 is a schematic flowchart of a method for implementing a method for identifying a storage device according to the present invention
  • FIG. 3 is a schematic structural diagram of an embodiment of a system for implementing an identification storage device according to the present invention. detailed description
  • the basic idea of the present invention is: The main control server obtains the disk information of the storage device through the storage server, and determines that the device identifier matches the storage device according to the disk information, and enters the monitoring state. Otherwise, the device identifier is created for the storage device, and the uniqueness is ensured. And the association with the device, enter the monitoring state.
  • the distributed storage system is composed of a main control server, a storage server, and a storage device.
  • the storage device can contain multiple types.
  • the data to be stored is saved by each storage device.
  • Each storage device is managed by a corresponding storage server.
  • the storage server is managed and scheduled by the main control server.
  • Each storage device is registered on the main control server, and the database of the main control server manages the storage device by registering the acquired model and performance characteristics of the storage device.
  • the corresponding storage policy is selected, that is, the corresponding storage device is selected to store the data.
  • a method for identifying a storage device as shown in FIG. 2, the specific steps are as follows:
  • Step 201 The main control server obtains the disk information of the storage device through the storage server.
  • the system in the solution of the present invention refers to the distributed storage system, and the main control server sends the obtained information to each storage server.
  • the device information command the storage server receives the command to obtain the device information, and reads the disk serial number of the disk in the storage device, that is, the disk information.
  • the disk is part of a storage device and is used to store data.
  • the storage device consists of several disks.
  • the storage server saves the disk information of the read storage device and sends it to Master server.
  • Step 202 The master server determines, according to the disk information, whether there is a device identifier that matches the storage device, if yes, step 204 is performed; if not, step 203 is performed;
  • the main control server queries the identifier table stored in the database according to the disk information of the received storage device. If the disk information in the identifier table completely matches the disk information of the received storage device, the device identifier in the identifier table. If the device identifier in the identifier table is the device identifier of the storage device, go to step 204.
  • the identifier table is a table for storing a device identifier of the storage device and a disk information correspondence relationship of the storage device, and each storage device corresponds to one identifier table.
  • the device identifier is generated by the master control server, and is used to identify the storage device.
  • the device identifier can be implemented by any method, for example, by adding a time stamp to the random string, as long as the generated identifier is unique. .
  • the main control server further determines that Whether there is one or more than half of the disk serial numbers in the disk information of the fully matched storage device, that is, the disk information corresponds to the disk information in the identification table, and if so, the storage device is considered to be in the identification table.
  • the device identifier is fuzzyly matched, and the process of performing the fuzzy matching between the step device and the device identifier in the identifier table includes the following cases:
  • the master server determines that a storage device is fuzzyly matched with the device identifier in an identifier table, and performs step 204;
  • the system after the system is powered off, remove half of the disks in one storage device and put them in another storage device.
  • two storage devices are fuzzyly matched with the device identifiers in an identifier table.
  • the storage device that is removed from the disk is referred to as the first storage device, and the storage device that is inserted into the disk is referred to as the second storage device.
  • the first storage device still retains the original device identifier, that is, the first storage device. Fuzzy matching with the device identifier in the identification table, which is The second storage device allocates the device identification, and then step 204 is performed.
  • the distribution device identifier includes: if all the disk information of the second storage device belongs to the identifier table, the second storage device has no other disk, and the second storage device is a newly accessed storage device.
  • the second storage device creates the device identifier, and the process for creating the device identifier includes: the master server generates the device identifier, and forms a label with the disk information of the storage device; if all the disk information of the second storage device does not belong to the identifier table, The second storage device has a disk, and the second storage device is the original storage device of the system.
  • the update identifier table is updated.
  • the storage device exactly matches the device identifier in the identification table.
  • the update identifier table includes: comparing the disk information of the second storage device with the disk information in the identifier table, and adding the excess disk information in the second storage device to the identifier table.
  • step 203 If the device identifier in the identifier table does not match the storage device, go to step 203.
  • Step 203 Create a device identifier for the storage device, and power on successfully, and enter a monitoring state.
  • the device identifier is ambiguously matched with the device identifiers in the two storage devices and the second storage device is newly accessed.
  • the process of creating a device ID is the same when you store a device, and is not mentioned here.
  • Step 204 After power-on is successful, the monitoring state is entered.
  • the entering the monitoring state includes: after the system is successfully powered on, the storage server periodically updates the disk information of the locally saved storage device, and the update is: the storage server periodically reads the storage device.
  • the disk information is compared with the disk information of the locally stored storage device. If the two are the same, no processing is performed. If the two are different, the redundant information in the locally saved disk information is deleted, and the missing information is added.
  • the timing time can be set as needed.
  • the present invention further provides a system for identifying a storage device.
  • the system includes: a main control server 301, a storage server 302;
  • the main control server 301 is configured to obtain the disk information of the storage device through the storage server 302, determine that the storage device matches the device identifier, and enter the monitoring state; determine that the storage device does not match the identifier table, and create a device for the storage device. Identification, entering the monitoring state;
  • the storage server 302 saves the disk information of the storage device and sends it to the main control server 301.
  • the main control server 301 specifically includes: a database module 3011 and a device management module 3012.
  • the device management module 3012 is configured to send the received disk information to the database module 3011, and enter a monitoring state according to the notification of the database module 3011.
  • the database module 3011 is configured to compare the disk information of the received storage device with the disk information in the locally saved identification table, and if the disk information of the storage device completely matches the disk information in the identifier table, determine the storage device and the The identification table is completely matched, and the device management module 3012 is successfully powered on; if there are half or more of the disk information in the storage device and the disk in the identification table If the information is consistent, it is determined that the storage device is fuzzyly matched with the identifier table, and the device management module 3012 is notified to be powered on successfully; otherwise, the storage device does not match the identifier table.
  • the database module 3011 is specifically configured to: determine that a storage device is fuzzyly matched with a device identifier in an identifier table, where the storage device matches a device identifier pattern in the identifier table; or, the first storage device and the second storage If the device is in a fuzzy match with the device identifier in the identifier table, the first storage device is fuzzyly matched with the device identifier in the identifier table, and the device identifier is allocated to the second storage device, where the device identifier includes: All the disk information of the storage device belongs to the identifier table, indicating that the second storage device is a newly accessed storage device, and the device identifier is created for the second storage device; if all the disk information of the second storage device does not belong to the identifier The second storage device and the identifier are displayed in the table, indicating that the second storage device is the original storage device of the system, and the identifier table in the lookup table is the same as the disk information in the second storage device, and the identifie
  • the database module 3011 is specifically configured to: determine that the storage device does not match the device identifier in the identifier table, generate the device identifier, establish an identifier table, save the generated device identifier and the disk information of the storage device to the established identifier table, and notify the device.
  • the management module 3012 is successfully powered on.
  • the storage server 302 specifically includes: a device management agent module 3021, a device information query module 3022;
  • the device management agent module 3021 is configured to receive the device information command sent by the device management module 3012, and invoke the query interface of the device information query module 3022.
  • the disk information of the obtained storage device is saved and sent to the device management module 3012.
  • the device information query module 3022 is configured to read the disk information of the storage device and return the device information to the device management agent module 3021.
  • the device management proxy module 3021 is specifically configured to: through the device information query module 3022, timing Update the disk information of the locally saved storage device; receive the device information command sent by the device management module, and send the locally saved disk information to the device management module; the update includes: the storage server periodically reads the disk information of the storage device, and Compared with the disk information of the locally stored storage device, if the two are the same, no processing is performed. If the two are different, the redundant information in the locally saved disk information is deleted, and the missing information is added; the timing time may be Set as needed;
  • the device information query module 3022 is configured to read the disk information of the storage device, and return the device information to the device management agent module 3021;
  • the device management module 3012 is specifically configured to: after the power-on is successful, periodically send a device information acquisition command to the device management agent module 3021; and send the disk information of the received storage device to the database module 3011; the timing time may be set according to requirements;
  • the database module 3011 is configured to determine a disk loss according to the received disk information, and update the identifier table.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Debugging And Monitoring (AREA)

Description

一种标识存储设备的方法及系统 技术领域
本发明涉及分布式存储技术, 特别是指一种标识存储设备的方法及系 统。 背景技术
在目前网络附属存储( NAS , Network Attached Storage )存储模型中, 文件系统是建立在若干个硬盘, 或者是建立在若干个特定存储设备之上。 这种情况下对存储设备的管理相对比较简单。
一般通过获取存储设备的标识, 来对存储设备进行管理, 现有技术中 通常有以下几种方法获取存储设备的标识:
一、 对于公司内部研发的存储设备, 会提供一些可擦除可编程逻辑器 件(EPLD, Erasable Programmable Logic Device )寄存器, 存放存储设备的 印制电路板 ( PCB , Printed Circuit Board )版本号以及料单号。 通过 PCB 版本号及料单号来唯一的标识这类存储设备。 但是这种方式仅局限于公司 内部研发的存储设备, 对于外部采购或者其他厂商生产的存储设备, 不一 定会提供这类信息。
二、对应电磁兼容性( EMC, Electro Magnetic Compatibility )磁阵设备, 可以通过应用程序编程接口( API, Application Programming Interface )来获 取这类存储设备的通用唯一识别码(UUID, Universally Unique Identifier ), 但是这种方案也是仅仅局限于磁阵或者是仅仅局限于某些品牌的磁阵。
三、 其他一些磁盘簇(JBOD, Just a Bunch Of Disks )设备, 会提供智 能平台管理接口 (IPMI, Intelligent Platform Management Interface )来对夕卜 提供产品序列号, 但很多设备都没有 IPML 云计算平台的分布式系统中的文件系统, 是建立在异构存储架构之上。 这样设计的优点是适用于多种存储设备。 通过对异构存储设备的管理, 可 以让用户清晰的了解每个存储节点中每个存储设备的运转情况, 包括设备、 逻辑卷、 独立冗余磁盘阵列(RAID, Redundant Array of Independent Disk ), 磁盘等。 另外, 上层可以根据每个存储设备的性能差异选择不同的存储策 略, 当然, 性能较好的存储设备被选中的几率要大于性能较差的存储设备。
目前异构存储架构存在一个问题, 对于存储设备很难实现统一管理, 因为异构存储架构中包含多种存储设备, 每种存储设备的标识不统一, 并 且, 无法通过统一的方法来获取存储设备的标识, 以使应用程序和数据库 进行统一管理。 一旦存储设备掉电、 故障或者迁移, 对存储设备的管理就 会越发混乱。 发明内容
有鉴于此, 本发明的主要目的在于提供一种标识存储设备的方法及系 统, 统一标识存储设备, 便于存储设备的统一管理。
为解决上述技术问题, 本发明的技术方案是这样实现的:
一种标识存储设备的方法, 包括: 主控服务器通过存储服务器获取存 储设备的磁盘信息; 根据磁盘信息确定有存储设备与设备标识匹配, 进入 监控状态; 否则, 为存储设备创建设备标识, 进入监控状态。
所述根据磁盘信息确定有存储设备与设备标识匹配包括: 将接收的存 储设备的磁盘信息与标识表中的磁盘信息比较, 若有存储设备的磁盘信息 与标识表中磁盘信息完全相符, 则确定存储设备与所述标识表中的设备标 识完全匹配; 否则, 进一步确定有存储设备中半数或半数以上的磁盘信息 与标识表中的磁盘信息相符, 则存储设备与标识表中的设备标识模糊匹配。
所述确定存储设备与标识表中的设备标识模糊匹配包括:
有一个存储设备与一个标识表中的设备标识模糊匹配, 则所述存储设 备与所述标识表中的设备标识模糊匹配; 或,
第一存储设备与第二存储设备均与一个标识表中的设备标识模糊匹 配, 则第一存储设备与所述标识表中的设备标识模糊匹配, 同时为第二存 储设备分配设备标识; 或,
一个存储设备与一个以上的标识表中的设备标识模糊匹配, 则保留一 个标识表并更新, 将其他标识表删除。
所述为存储设备创建设备标识包括: 建立标识表, 生成设备标识, 将 生成的设备标识与存储设备的磁盘信息保存到所述建立的标识表中。
所述进入监控状态包括: 存储服务器定时更新本地保存的存储设备的 磁盘信息, 主控服务器定时通过存储服务器获取存储设备的磁盘信息, 根 据接收的磁盘信息确定磁盘丟失, 更新标识表。
一种标识存储设备的系统, 包括: 主控服务器、 存储服务器; 主控服务器, 用于通过存储服务器获取存储设备的磁盘信息, 根据磁 盘信息确定存储设备与标识表中的设备标识匹配, 进入监控状态; 否则, 为存储设备创建设备标识, 进入监控状态;
存储服务器, 用于获取存储设备的磁盘信息保存并发送给主控服务器。 所述主控服务器具体包括: 数据库模块、 设备管理模块;
所述设备管理模块, 用于将接收的磁盘信息发送给数据库模块; 所述数据库模块, 用于将接收的设备管理模块发送的磁盘信息与标识 表中的磁盘信息比较, 若有存储设备的磁盘信息与标识表中的磁盘信息完 全相符, 则确定存储设备与所述标识表中的设备标识完全匹配; 若有存储 设备中半数或半数以上的磁盘信息与标识表中的磁盘信息相符, 则确定存 储设备与标识表中的设备标识模糊匹配。
所述数据库模块具体用于, 确定有一个存储设备与一个标识表中的设 备标识模糊匹配, 则所述存储设备与所述标识表中的设备标识模式匹配; 或, 第一存储设备与第二存储设备均与一个标识表中的设备标识模糊匹配, 则第一存储设备与所述标识表中的设备标识模糊匹配, 同时为第二存储设 备分配设备标识; 或, 一个存储设备与一个以上的标识表中的设备标识模 糊匹配, 保留一个标识表并更新, 将其他标识表删除。
所述数据库模块具体用于, 确定存储设备与标识表中的设备标识不匹 配, 生成设备标识, 建立标识表, 将生成的设备标识与存储设备的磁盘信 息保存到所建立的标识表中。
所述存储服务器具体包括: 设备管理代理模块、 设备信息查询模块; 所述设备管理模块具体用于, 上电成功后, 定时向设备管理模块发送 获取设备信息命令; 将接收的存储设备的磁盘信息发送给数据库模块; 所述数据库模块, 用于根据接收的磁盘信息确定磁盘丟失, 更新标识 表;
所述设备管理代理模块, 用于通过设备信息查询模块, 定时更新本地 保存的存储设备的磁盘信息; 接收设备管理模块发送的获取设备信息命令, 将本地保存的磁盘信息发送给设备管理模块;
所述设备信息查询模块, 用于读取存储设备的磁盘信息, 返回给设备 管理代理模块。
由此可见, 采用本发明所述的方法及系统, 主控服务器确定存储设备 没有匹配的设备标识, 为存储设备创建设备标识, 从而实现分布式存储系 统中的存储设备通过统一的设备标识管理, 且适用于多种类型的存储设备 的管理。
进一步的, 主控服务器进入监控状态, 根据存储设备的状态, 定时更 新标识表, 从而使主控服务器中的存储设备与设备标识的对应关系及时更 新, 更便于主控服务器对存储设备的管理。 附图说明
图 1为分布式存储系统基本架构示意图;
图 2为本发明实现标识存储设备的方法实施例流程示意图;
图 3为本发明实现标识存储设备的系统实施例组成示意图。 具体实施方式
本发明的基本思想是: 主控服务器通过存储服务器获取存储设备的磁 盘信息, 根据磁盘信息确定有设备标识与存储设备匹配, 进入监控状态, 否则, 为存储设备创建设备标识, 并保证其唯一性和与设备的关联性, 进 入监控状态。
下面通过附图与具体实施例来对本发明进行详细说明。
为了便于更清楚的了解本发明, 先简单介绍分布式存储系统的基本架 构, 如图 1 所示: 分布式存储系统由主控服务器、 存储服务器以及存储设 备构成。 其中, 存储设备可以包含多种类型。 需要存储的数据由各个存储 设备保存, 每个存储设备由对应的存储服务器管理, 存储服务器又由主控 服务器统一管理和调度。 每个存储设备要在主控服务器上登记, 主控服务 器的数据库通过登记获取的存储设备的型号及性能特征等数据, 对存储设 备进行管理。 进一步的, 根据存储设备的数据, 选择相应的存储策略, 也 就是选择相应的存储设备来存储数据。
一种标识存储设备的方法, 如图 2所示, 具体步驟如下:
步驟 201、 主控服务器通过存储服务器获取存储设备的磁盘信息; 分布式存储系统上电后, 为方便描述, 本发明方案中系统均指分布式 存储系统, 其主控服务器向各存储服务器发送获取设备信息命令, 存储服 务器接收获取设备信息命令, 读取存储设备中磁盘的磁盘序列号, 也就是 磁盘信息。 其中, 磁盘是存储设备的一部分, 用来存储数据, 存储设备由 若干磁盘组成。 存储服务器将读取的存储设备的磁盘信息保存后, 发送给 主控服务器。
步驟 202、主控服务器根据磁盘信息判断是否有与存储设备匹配的设备 标识, 若有, 执行步驟 204; 若没有, 执行步驟 203;
主控服务器根据接收的存储设备的磁盘信息, 查询自身数据库中保存 的标识表, 若有标识表中的磁盘信息与所接收的存储设备的磁盘信息完全 相符, 则所述标识表中的设备标识与存储设备完全匹配, 所述标识表中的 设备标识即为该存储设备的设备标识,执行步驟 204。 所述标识表是用来保 存存储设备的设备标识及存储设备的磁盘信息对应关系的表格, 每个存储 设备对应一个标识表。 所述设备标识由主控服务器生成, 用来标识存储设 备, 其中, 生成设备标识可以通过任意一种方法实现, 例如通过随机字符 串加时间戳的方法, 只要确定生成的标识是唯一的即可。
但是, 如果系统掉电后, 将存储设备中的部分磁盘拔掉, 系统上电后, 就找不到与该存储设备匹配的标识关系表, 因此, 引入模糊匹配原则, 主 控服务器进一步判断不符合完全匹配的存储设备的磁盘信息中, 是否有一 半或一半以上的磁盘序列号, 也就是磁盘信息与标识表中的磁盘信息对应, 若有, 则认为所述存储设备与所述标识表中的设备标识模糊匹配, 执行步 设备与标识表中的设备标识是否模糊匹配的过程, 包括以下情况:
主控服务器确定一个存储设备与一个标识表中的设备标识模糊匹配, 执行步驟 204;
或者, 系统断电后, 将一个存储设备中的半数磁盘拔出, 放到另外的 存储设备中, 这样, 系统上电后, 就有两个存储设备与一个标识表中的设 备标识模糊匹配; 将磁盘所拔出的存储设备称之为第一存储设备, 将磁盘 所插入的存储设备称之为第二存储设备, 则第一存储设备仍保留原有的设 备标识, 也就是第一存储设备与所述标识表中的设备标识模糊匹配, 为第 二存储设备分配设备标识, 然后执行步驟 204。 所述分配设备标识包括: 若 第二存储设备的全部磁盘信息, 都属于所述标识表, 说明第二存储设备中 原来没有其他的磁盘, 第二存储设备为新接入的存储设备, 为第二存储设 备创建设备标识, 所述创建设备标识过程包括: 主控服务器生成设备标识, 并与存储设备的磁盘信息组成标识表; 若第二存储设备的全部磁盘信息不 属于所述标识表, 说明第二存储设备中原来有磁盘, 第二存储设备为系统 原有的存储设备, 查找标识表中, 全部磁盘信息与第二存储设备中的磁盘 信息相符的标识表, 更新标识表, 则第二存储设备与所述标识表中的设备 标识完全匹配。 所述更新标识表包括: 比较第二存储设备的磁盘信息与所 述标识表中的磁盘信息, 将第二存储设备中多出的磁盘信息添加到所述标 识表中。
或者, 将两个或两个以上的存储设备中半数或半数以上的磁盘拔出, 放入一个存储设备内, 这样, 就有一个存储设备与一个或一个以上的标识 表中的设备标识模糊匹配, 则保留一个标识表并更新, 将其他的标识表删 除, 然后执行步驟 204。 所述更新与两个存储设备与一个标识表中的设备标 识模糊匹配且第二存储设备为系统原有存储设备时, 更新第二存储设备的 标识表过程相同, 在此不再赘述。
若标识表中的设备标识与存储设备不匹配, 执行步驟 203。
步驟 203、 为存储设备创建设备标识, 上电成功, 进入监控状态; 其中, 所述创建设备标识与两个存储设备与一个标识表中的设备标识 模糊匹配且第二存储设备为新接入的存储设备时, 创建设备标识的过程相 同, 在此不再赘述。
步驟 204、 上电成功, 进入监控状态。
所述进入监控状态包括: 系统上电成功后, 存储服务器定时更新本地 保存的存储设备的磁盘信息, 所述更新为: 存储服务器定时读取存储设备 的磁盘信息, 并与本地保存的存储设备的磁盘信息比较, 若两者相同, 则 不丈任何处理, 若两者不同, 则将本地保存的磁盘信息中的多余信息删除, 缺少的信息补充。 所述定时时间可根据需要设定。
主控服务器定时通过存储服务器获取存储设备的磁盘信息, 具体过程 为: 主控服务器会定时向存储服务器发送获取设备信息命令, 存储服务器 接收所述命令, 将本地保存的存储设备的磁盘信息发送给主控服务器, 主 控服务器根据接收的磁盘信息确定有磁盘丟失, 更新标识表。 所述定时时 间可根据需要设定; 所述更新标识表具体过程为: 主控服务器将接收的磁 盘信息与本地保存的标识表中磁盘信息比较, 若有磁盘信息与标识表中的 磁盘信息不完全相符, 则说明有磁盘掉线, 将标识表中多余的磁盘信息删 除。
基于以上方法, 本发明还提供了一种标识存储设备的系统, 如图 3 所 示, 该系统包括: 主控服务器 301、 存储服务器 302;
主控服务器 301 , 系统上电后, 用于通过存储服务器 302获取存储设备 的磁盘信息, 确定有存储设备与设备标识匹配, 进入监控状态; 确定存储 设备与标识表不匹配, 为存储设备创建设备标识, 进入监控状态;
存储服务器 302,用于获取存储设备的磁盘信息保存并发送给主控服务 器 301。
所述主控服务器 301具体包括:数据库模块 3011、设备管理模块 3012; 设备管理模块 3012, 用于将接收的磁盘信息发送给数据库模块 3011 , 根据数据库模块 3011的通知, 进入监控状态;
数据库模块 3011 , 用于将接收的存储设备的磁盘信息与本地保存的标 识表中的磁盘信息比较, 若有存储设备的磁盘信息与标识表中的磁盘信息 完全相符,则确定存储设备与所述标识表完全匹配,通知设备管理模块 3012 上电成功; 若有存储设备中半数或半数以上的磁盘信息与标识表中的磁盘 信息相符, 则确定存储设备与标识表模糊匹配, 通知设备管理模块 3012上 电成功; 否则, 存储设备与标识表不匹配。
数据库模块 3011具体用于, 确定有一个存储设备与一个标识表中的设 备标识模糊匹配, 则所述存储设备与所述标识表中的设备标识模式匹配; 或者, 第一存储设备与第二存储设备均与一个标识表中的设备标识模糊匹 配, 则第一存储设备与所述标识表中的设备标识模糊匹配, 同时为第二存 储设备分配设备标识, 所述分配设备标识包括: 若第二存储设备的全部磁 盘信息, 都属于所述标识表, 说明第二存储设备为新接入的存储设备, 为 第二存储设备创建设备标识; 若第二存储设备的全部磁盘信息不属于所述 标识表, 说明第二存储设备为系统原有的存储设备, 查找标识表中, 全部 磁盘信息与第二存储设备中的磁盘信息相符的标识表, 更新标识表, 则第 二存储设备与所述标识表中的设备标识完全匹配; 或者, 一个存储设备与 一个以上的标识表中的设备标识模糊匹配, 保留一个标识表并更新, 将其 他标识表删除。
数据库模块 3011具体用于, 确定存储设备与标识表中的设备标识不匹 配, 生成设备标识, 建立标识表, 将生成的设备标识与存储设备的磁盘信 息保存到所建立的标识表中, 通知设备管理模块 3012上电成功。
存储服务器 302具体包括: 设备管理代理模块 3021、 设备信息查询模 块 3022;
设备管理代理模块 3021 ,用于接收设备管理模块 3012发送的获取设备 信息命令, 调用设备信息查询模块 3022的查询接口; 将获取的存储设备的 磁盘信息保存后, 发送给设备管理模块 3012。
设备信息查询模块 3022, 用于读取存储设备的磁盘信息, 返回给设备 管理代理模块 3021。
设备管理代理模块 3021具体用于, 通过设备信息查询模块 3022, 定时 更新本地保存的存储设备的磁盘信息; 接收设备管理模块发送的获取设备 信息命令, 将本地保存的磁盘信息发送给设备管理模块; 所述更新包括: 存储服务器定时读取存储设备的磁盘信息, 并与本地保存的存储设备的磁 盘信息比较, 若两者相同, 则不做任何处理, 若两者不同, 则将本地保存 的磁盘信息中的多余信息删除, 缺少的信息补充; 所述定时时间可根据需 要设定;
设备信息查询模块 3022, 用于读取存储设备的磁盘信息, 返回给设备 管理代理模块 3021 ;
设备管理模块 3012具体用于, 上电成功后, 定时向设备管理代理模块 3021发送获取设备信息命令; 将接收的存储设备的磁盘信息发送给数据库 模块 3011 ; 所述定时时间可根据需要设定;
数据库模块 3011 , 用于根据接收的磁盘信息确定磁盘丟失, 更新标识 表。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。

Claims

权利要求书
1、 一种标识存储设备的方法, 其特征在于, 该方法包括:
主控服务器通过存储服务器获取存储设备的磁盘信息; 根据磁盘信息 确定有存储设备与设备标识匹配, 进入监控状态; 否则, 为存储设备创建 设备标识, 进入监控状态。
2、 根据权利要求 1所述的方法, 其特征在于, 所述根据磁盘信息确定 有存储设备与设备标识匹配包括:
将接收的存储设备的磁盘信息与标识表中的磁盘信息比较, 若有存储 设备的磁盘信息与标识表中磁盘信息完全相符, 则确定存储设备与所述标 识表中的设备标识完全匹配; 否则, 进一步确定有存储设备中半数或半数 以上的磁盘信息与标识表中的磁盘信息相符, 则存储设备与标识表中的设 备标识模糊匹配。
3、 根据权利要求 2所述的方法, 其特征在于, 所述确定存储设备与标 识表中的设备标识模糊匹配包括:
有一个存储设备与一个标识表中的设备标识模糊匹配, 则所述存储设 备与所述标识表中的设备标识模糊匹配; 或,
第一存储设备与第二存储设备均与一个标识表中的设备标识模糊匹 配, 则第一存储设备与所述标识表中的设备标识模糊匹配, 同时为第二存 储设备分配设备标识; 或,
一个存储设备与一个以上的标识表中的设备标识模糊匹配, 则保留一 个标识表并更新, 将其他标识表删除。
4、 根据权利要求 1、 2或 3所述的方法, 其特征在于, 所述为存储设 备创建设备标识包括:
建立标识表, 生成设备标识, 将生成的设备标识与存储设备的磁盘信 息保存到所述建立的标识表中。
5、 根据权利要求 1、 2或 3所述的方法, 其特征在于, 所述进入监控 状态包括:
存储服务器定时更新本地保存的存储设备的磁盘信息, 主控服务器定 时通过存储服务器获取存储设备的磁盘信息, 根据接收的磁盘信息确定磁 盘丟失, 更新标识表。
6、 一种标识存储设备的系统, 其特征在于, 该系统包括: 主控服务器、 存储服务器;
主控服务器, 用于通过存储服务器获取存储设备的磁盘信息, 根据磁 盘信息确定存储设备与标识表中的设备标识匹配, 进入监控状态; 否则, 为存储设备创建设备标识, 进入监控状态;
存储服务器, 用于获取存储设备的磁盘信息保存并发送给主控服务器。
7、 根据权利要求 6所述的系统, 其特征在于, 所述主控服务器具体包 括: 数据库模块、 设备管理模块;
所述设备管理模块, 用于将接收的磁盘信息发送给数据库模块; 所述数据库模块, 用于将接收的设备管理模块发送的磁盘信息与标识 表中的磁盘信息比较, 若有存储设备的磁盘信息与标识表中的磁盘信息完 全相符, 则确定存储设备与所述标识表中的设备标识完全匹配; 若有存储 设备中半数或半数以上的磁盘信息与标识表中的磁盘信息相符, 则确定存 储设备与标识表中的设备标识模糊匹配。
8、 根据权利要求 7所述的系统, 其特征在于,
所述数据库模块具体用于, 确定有一个存储设备与一个标识表中的设 备标识模糊匹配, 则所述存储设备与所述标识表中的设备标识模式匹配; 或, 第一存储设备与第二存储设备均与一个标识表中的设备标识模糊匹配, 则第一存储设备与所述标识表中的设备标识模糊匹配, 同时为第二存储设 备分配设备标识; 或, 一个存储设备与一个以上的标识表中的设备标识模 糊匹配, 保留一个标识表并更新, 将其他标识表删除。
9、 根据权利要求 7所述的系统, 其特征在于,
所述数据库模块具体用于, 确定存储设备与标识表中的设备标识不匹 配, 生成设备标识, 建立标识表, 将生成的设备标识与存储设备的磁盘信 息保存到所建立的标识表中。
10、 根据权利要求 6至 9任一所述的系统, 其特征在于, 所述存储服 务器具体包括: 设备管理代理模块、 设备信息查询模块;
所述设备管理模块具体用于, 上电成功后, 定时向设备管理模块发送 获取设备信息命令; 将接收的存储设备的磁盘信息发送给数据库模块; 所述数据库模块, 用于根据接收的磁盘信息确定磁盘丟失, 更新标识 表;
所述设备管理代理模块, 用于通过设备信息查询模块, 定时更新本地 保存的存储设备的磁盘信息; 接收设备管理模块发送的获取设备信息命令, 将本地保存的磁盘信息发送给设备管理模块;
所述设备信息查询模块, 用于读取存储设备的磁盘信息, 返回给设备 管理代理模块。
PCT/CN2011/084243 2011-04-25 2011-12-19 一种标识存储设备的方法及系统 WO2012146034A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP11864573.8A EP2696555B1 (en) 2011-04-25 2011-12-19 Method and system for identifying storage device
US14/113,894 US9281992B2 (en) 2011-04-25 2011-12-19 Method and system for identifying storage device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110103945.2A CN102202087B (zh) 2011-04-25 2011-04-25 一种标识存储设备的方法及系统
CN201110103945.2 2011-04-25

Publications (1)

Publication Number Publication Date
WO2012146034A1 true WO2012146034A1 (zh) 2012-11-01

Family

ID=44662479

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/084243 WO2012146034A1 (zh) 2011-04-25 2011-12-19 一种标识存储设备的方法及系统

Country Status (4)

Country Link
US (1) US9281992B2 (zh)
EP (1) EP2696555B1 (zh)
CN (1) CN102202087B (zh)
WO (1) WO2012146034A1 (zh)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202087B (zh) 2011-04-25 2015-04-01 中兴通讯股份有限公司 一种标识存储设备的方法及系统
US9921783B2 (en) * 2013-09-25 2018-03-20 Lenovo (Singapore) Pte Ltd. Dynamically allocating temporary replacement storage for a drive in a raid array
CN105323271B (zh) * 2014-06-24 2020-04-24 中兴通讯股份有限公司 一种云计算系统以及云计算系统的处理方法和装置
US9892153B2 (en) * 2014-12-19 2018-02-13 Oracle International Corporation Detecting lost writes
WO2017023867A1 (en) * 2015-07-31 2017-02-09 Chatsworth Products, Inc. Systems and methods for controlling an electronic lock for a remote device
CN106527996A (zh) * 2016-11-23 2017-03-22 成都广达新网科技股份有限公司 一种磁盘柜磁盘识别方法及装置
CN106528005B (zh) * 2017-01-12 2019-12-31 苏州浪潮智能科技有限公司 一种分布式存储系统的磁盘添加方法及装置
CN107948248A (zh) * 2017-11-01 2018-04-20 平安科技(深圳)有限公司 分布式存储方法、控制服务器及计算机可读存储介质
CN107957930A (zh) * 2017-11-22 2018-04-24 国云科技股份有限公司 一种宿主机节点存储空间的监控方法
CN111770489B (zh) * 2020-09-03 2020-12-22 蘑菇车联信息科技有限公司 Sn号写入方法及设备、电子设备、可读存储介质
CN112733210B (zh) * 2021-04-06 2021-07-09 北京芯盾时代科技有限公司 一种设备标识获取方法、装置和计算机可读存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020174198A1 (en) * 2001-05-16 2002-11-21 Imation Corp. Management of networked devices
CN1633131A (zh) * 2005-01-14 2005-06-29 清华大学 一种iSCSI存储系统的实现方法
CN1694081A (zh) * 2005-05-31 2005-11-09 清华大学 San系统中虚拟化智能控制器的实现方法
CN101022363A (zh) * 2007-03-23 2007-08-22 杭州华为三康技术有限公司 网络存储设备的故障保护方法及装置
US7886031B1 (en) * 2002-06-04 2011-02-08 Symantec Operating Corporation SAN configuration utility
CN101984399A (zh) * 2010-10-29 2011-03-09 中兴通讯股份有限公司 一种软独立冗余磁盘阵列的管理方法和系统
CN102202087A (zh) * 2011-04-25 2011-09-28 中兴通讯股份有限公司 一种标识存储设备的方法及系统

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7228342B2 (en) * 2001-02-20 2007-06-05 Sony Computer Entertainment America Inc. System for utilizing an incentive point system based on disc and user identification
US20020161596A1 (en) * 2001-04-30 2002-10-31 Johnson Robert E. System and method for validation of storage device addresses
US20030233270A1 (en) * 2002-06-17 2003-12-18 Buss Charles P. Apparatus and method for identifying and contacting potential friends and partners
US8019840B2 (en) * 2002-10-31 2011-09-13 Hewlett-Packard Development Company, L.P. Storage area network mapping
CN1641658A (zh) * 2004-01-17 2005-07-20 胡一达 以排序分享赠品的电子商务购物方法
CN1304961C (zh) * 2005-03-11 2007-03-14 清华大学 基于元数据服务器的存储虚拟化管理方法
US7702655B1 (en) * 2007-01-30 2010-04-20 Emc Corporation Maintaining and using user-created mapping history for network resource mapping
CN101197713A (zh) * 2007-11-07 2008-06-11 上海华为技术有限公司 一种对通信设备进行标识的方法及装置
US8645460B2 (en) * 2008-10-07 2014-02-04 Huazhong University Of Science And Technology Method for managing object-based storage system
US8819781B2 (en) * 2009-04-20 2014-08-26 Cleversafe, Inc. Management of network devices within a dispersed data storage network
JP5966270B2 (ja) * 2010-09-16 2016-08-10 株式会社リコー システム及び機器管理プログラム
US9069470B2 (en) * 2011-04-01 2015-06-30 Hewlett-Packard Development Company, L.P. Zone group reassignment using storage device signatures

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020174198A1 (en) * 2001-05-16 2002-11-21 Imation Corp. Management of networked devices
US7886031B1 (en) * 2002-06-04 2011-02-08 Symantec Operating Corporation SAN configuration utility
CN1633131A (zh) * 2005-01-14 2005-06-29 清华大学 一种iSCSI存储系统的实现方法
CN1694081A (zh) * 2005-05-31 2005-11-09 清华大学 San系统中虚拟化智能控制器的实现方法
CN101022363A (zh) * 2007-03-23 2007-08-22 杭州华为三康技术有限公司 网络存储设备的故障保护方法及装置
CN101984399A (zh) * 2010-10-29 2011-03-09 中兴通讯股份有限公司 一种软独立冗余磁盘阵列的管理方法和系统
CN102202087A (zh) * 2011-04-25 2011-09-28 中兴通讯股份有限公司 一种标识存储设备的方法及系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2696555A4 *

Also Published As

Publication number Publication date
US9281992B2 (en) 2016-03-08
US20140052813A1 (en) 2014-02-20
CN102202087A (zh) 2011-09-28
EP2696555A4 (en) 2015-02-25
EP2696555B1 (en) 2017-03-01
EP2696555A1 (en) 2014-02-12
CN102202087B (zh) 2015-04-01

Similar Documents

Publication Publication Date Title
WO2012146034A1 (zh) 一种标识存储设备的方法及系统
CN104715001B (zh) 用于对数据处理系统的集群中的共享资源执行写入操作的方法和系统
US9172750B2 (en) Cluster-node load balancing in a distributed database system
WO2017167171A1 (zh) 一种数据操作方法,服务器及存储系统
CN102291416B (zh) 一种客户端与服务器端双向同步的方法及系统
US10346248B2 (en) Failure resistant volume creation in a shared storage environment
KR101143217B1 (ko) 컴퓨터 신원을 관리하는 방법, 시스템 및 장치
TWI734744B (zh) 路由表的同步方法、裝置及系統
US10846185B2 (en) Method for processing acquire lock request and server
CN109144994A (zh) 索引更新方法、系统及相关装置
US10126969B1 (en) Mechanism for non-disruptive virtual tape libraries removal and reconfiguration
WO2018192478A1 (zh) 云管理平台、虚拟机管理方法及其系统
WO2018233630A1 (zh) 故障发现
CN109407975B (zh) 写数据方法与计算节点以及分布式存储系统
CN103716416A (zh) 一种云计算平台下的ip配置方法及装置
CN103885865A (zh) 一种传感器管理方法及装置
CN110399171A (zh) 一种硬盘管理方法、系统及相关组件
US20190087131A1 (en) Mechanism for multiple coexisting configurations support in virtual tape applications
US20150347043A1 (en) Cluster consistent logical storage object naming
WO2020024341A1 (zh) 一种对象存储的方法及对象存储网关
US20200409683A1 (en) Updating method, terminal and electronic device
CN101291202B (zh) 数据传输路径的管理方法和主机服务器
WO2014094296A1 (zh) 分布式存储控制方法、装置及系统
CN108156201B (zh) 统一管理应用系统配置数据的方法和装置
WO2016202030A1 (zh) 资源配置加载方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11864573

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 14113894

Country of ref document: US

REEP Request for entry into the european phase

Ref document number: 2011864573

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2011864573

Country of ref document: EP