TWI733744B - Computing equipment and computing equipment storage component management method and system - Google Patents

Computing equipment and computing equipment storage component management method and system Download PDF

Info

Publication number
TWI733744B
TWI733744B TW106102229A TW106102229A TWI733744B TW I733744 B TWI733744 B TW I733744B TW 106102229 A TW106102229 A TW 106102229A TW 106102229 A TW106102229 A TW 106102229A TW I733744 B TWI733744 B TW I733744B
Authority
TW
Taiwan
Prior art keywords
storage
component
computing
components
storage component
Prior art date
Application number
TW106102229A
Other languages
Chinese (zh)
Other versions
TW201828086A (en
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 TW106102229A priority Critical patent/TWI733744B/en
Publication of TW201828086A publication Critical patent/TW201828086A/en
Application granted granted Critical
Publication of TWI733744B publication Critical patent/TWI733744B/en

Links

Images

Landscapes

  • Hardware Redundancy (AREA)

Abstract

本發明提供了一種計算設備及計算設備儲存部件的管理方法及系統,所述計算設備包括:計算部件,還包括:與SAS SWITCH連接的介面;所述計算部件通過所述介面與SAS SWITCH連接,所述SAS SWITCH同時與儲存部件連接;基於分配規則為連接於SAS SWITCH上的所述計算部件分配儲存部件。本發明實現了計算部件和儲存部件的生命週期分開,便於對不同生命週期的部件進行最大限度的利用,以及實現了計算部件與儲存部件的解耦,計算部件與儲存部件可以精細化、靈活分配。 The present invention provides a computing device and a management method and system for computing device storage components. The computing device includes: a computing component, and further includes: an interface connected with SAS SWITCH; the computing component is connected with SAS SWITCH through the interface, The SAS SWITCH is connected to the storage component at the same time; the storage component is allocated to the computing component connected to the SAS SWITCH based on the allocation rule. The present invention realizes the separation of the life cycles of computing components and storage components, facilitates the maximum utilization of components of different life cycles, and realizes the decoupling of computing components and storage components. The computing components and storage components can be refined and flexibly allocated. .

Description

計算設備及計算設備儲存部件的管理方法及系統 Computing equipment and computing equipment storage component management method and system

本發明關於計算機領域,尤其關於一種計算設備及計算設備儲存部件的管理方法及系統。 The present invention relates to the field of computers, and in particular to a method and system for managing computing equipment and computing equipment storage components.

目前,資料中心的儲存部件與計算部件是基於單計算設備來配置,也就是,對於一台計算設備其儲存部件與計算部件的配比是固定的。該基於單計算設備的儲存部件與計算部件的配置方式至少存在如下問題: At present, the storage components and computing components of the data center are configured based on a single computing device, that is, the ratio of storage components to computing components for a computing device is fixed. The configuration of storage components and computing components based on a single computing device has at least the following problems:

雖然可以通過分布式方式實現儲存資源與計算資源的配置,但仍無法做到儲存資源與計算資源的精細化、靈活的分配與管理。 Although the allocation of storage resources and computing resources can be realized in a distributed manner, it is still impossible to achieve refined and flexible allocation and management of storage resources and computing resources.

另外,在生命週期上儲存部件與計算部件存在差異,導致一般計算部件的生命週期短於儲存部件的生命週期,該配置方式導致部分儲存部件過早的被淘汰,造成資源浪費。 In addition, there are differences between storage components and computing components in the life cycle, resulting in the life cycle of general computing components being shorter than that of storage components. This configuration method causes some storage components to be eliminated prematurely, resulting in waste of resources.

因此,儲存部件與計算部件基於單計算設備的配置方案有待改善。 Therefore, the configuration scheme of the storage component and the computing component based on a single computing device needs to be improved.

本發明解決的技術問題之一是提供一種計算設備及計算設備儲存部件的管理方法及系統,實現儲存部件與計算部件的靈活分配的同時,充分利用各部件的服務時限。 One of the technical problems solved by the present invention is to provide a computing device and a management method and system for computing device storage components, which realizes the flexible allocation of storage components and computing components while making full use of the service time limit of each component.

根據本發明一方面的一個實施例,提供了一種計算設備,包括:計算部件,還包括:與SAS SWITCH連接的介面;所述計算部件通過所述介面與SAS SWITCH連接,所述SAS SWITCH同時與儲存部件連接,基於分配規則為為連接於SAS SWITCH上的所述計算部件分配儲存部件。 According to an embodiment of an aspect of the present invention, a computing device is provided, including: a computing component, and further comprising: an interface connected to SAS SWITCH; the computing component is connected to SAS SWITCH through the interface, and the SAS SWITCH is connected to the SAS SWITCH at the same time. The storage component is connected, and the storage component is allocated to the computing component connected to the SAS SWITCH based on the allocation rule.

根據本發明另一方面的一個實施例,提供了一種計算設備儲存部件的管理方法,所述計算設備包括計算部件,所述計算部件與SAS SWITCH連接,所述SAS SWITCH同時與儲存部件連接,所述方法包括:獲取與SAS SWITCH連接的儲存部件資訊及計算部件資訊;依據獲取的所述儲存部件資訊及計算部件資訊基於分配規則為計算部件分配儲存部件。 According to an embodiment of another aspect of the present invention, there is provided a method for managing storage components of a computing device. The computing device includes a computing component, the computing component is connected to the SAS SWITCH, and the SAS SWITCH is connected to the storage component at the same time. The method includes: obtaining storage component information and computing component information connected to SAS SWITCH; and assigning storage components to the computing component based on the distribution rule based on the obtained storage component information and computing component information.

根據本發明又一方面的一個實施例,提供了一種儲存部件的管理方法,包括:獲取與串行的小型計算機系統介面交換機SAS SWITCH連接的儲存部件資訊及計算部件資訊;依據獲取的所述儲存部件資訊及計算部件資訊基於分 配規則為計算部件分配儲存部件。 According to an embodiment of yet another aspect of the present invention, there is provided a storage component management method, including: acquiring storage component information and computing component information connected to a serial small computer system interface switch SAS SWITCH; according to the acquired storage Component information and computing component information allocate storage components to computing components based on allocation rules.

根據本發明又一方面的一個實施例,提供了一種計算設備儲存部件的管理系統,包括如下設備:管理節點、與管理節點連接的至少一個SAS SWITCH、與SAS SWITCH連接的至少一個儲存部件和至少一個計算設備的計算部件,其中, 所述管理節點通過所述SAS SWITCH提供的管理介面與所述SAS SWITCH連接,用於為連接於所述SAS SWITCH上的計算部件分配儲存部件。 According to an embodiment of another aspect of the present invention, a management system for storage components of computing equipment is provided, including the following equipment: a management node, at least one SAS SWITCH connected to the management node, at least one storage component connected to the SAS SWITCH, and at least A computing component of a computing device, wherein the management node is connected to the SAS SWITCH through a management interface provided by the SAS SWITCH, and is used to allocate storage components for computing components connected to the SAS SWITCH.

本發明實施例通過將計算設備中的儲存部件從計算設備中分離出來,將分離出來的儲存部件通過SAS SWITCH與計算設備中的計算部件連接,其至少具有如下優點: The embodiment of the present invention separates the storage component in the computing device from the computing device, and connects the separated storage component to the computing component in the computing device through SAS SWITCH, which has at least the following advantages:

實現了計算資源與儲存資源的分離,方便了對計算資源和儲存資源進行分別的維護和管理;計算部件和儲存部件的生命週期分開,便於對不同生命週期的部件進行最大限度的利用;可維護性增強,且有效減少維護工作量。 The separation of computing resources and storage resources is realized, which facilitates the separate maintenance and management of computing resources and storage resources; the life cycles of computing components and storage components are separated, which facilitates the maximum use of components in different life cycles; maintainable Enhanced performance, and effectively reduce maintenance workload.

實現了計算部件與儲存部件的解耦,可以根據計算部件的需要為其分配儲存部件,實現了計算部件與儲存部件的精細化、靈活分配。 The decoupling of the computing component and the storage component is realized, and the storage component can be allocated to the computing component according to the needs of the computing component, and the refined and flexible allocation of the computing component and the storage component is realized.

本領域普通技術人員將瞭解,雖然下面的詳細說明將參考圖示實施例、附圖進行,但本發明並不僅限於這些實施例。而是,本發明的範圍是廣泛的,且意在僅通過後附的申請專利範圍限定本發明的範圍。 Those of ordinary skill in the art will understand that although the following detailed description will be made with reference to the illustrated embodiments and the drawings, the present invention is not limited to these embodiments. Rather, the scope of the present invention is broad, and it is intended that the scope of the present invention is limited only by the appended patent scope.

11‧‧‧計算部件 11‧‧‧Computer components

10‧‧‧儲存部件 10‧‧‧Storage parts

20‧‧‧計算部件 20‧‧‧Computer components

21‧‧‧介面 21‧‧‧Interface

23‧‧‧儲存部件 23‧‧‧Storage parts

40‧‧‧管理節點 40‧‧‧Management Node

41‧‧‧SAS SWITCH 41‧‧‧SAS SWITCH

420‧‧‧儲存部件 420‧‧‧Storage parts

43‧‧‧計算部件 43‧‧‧Computer components

42‧‧‧儲存陣列 42‧‧‧Storage Array

通過閱讀參照以下附圖所作的對非限制性實施例所作的詳細描述,本發明的其它特徵、目的和優點將會變得更明顯: By reading the detailed description of the non-limiting embodiments with reference to the following drawings, other features, purposes and advantages of the present invention will become more apparent:

圖1是現有技術計算設備的結構示意圖。 Figure 1 is a schematic diagram of the structure of a prior art computing device.

圖2是根據本發明一個實施例的計算設備的結構示意圖。 Fig. 2 is a schematic structural diagram of a computing device according to an embodiment of the present invention.

圖3是根據本發明一個實施例的計算設備儲存儲存部件的管理方法的流程圖。 Fig. 3 is a flowchart of a method for managing storage components of a computing device according to an embodiment of the present invention.

圖4是根據本發明一個實施例的計算設備儲存儲存部件的管理系統結構示意圖。 Fig. 4 is a schematic structural diagram of a management system for storing storage components of a computing device according to an embodiment of the present invention.

圖5是根據本發明一個實施例的計算設備儲存儲存部件的管理系統中各設備上電時序圖。 Fig. 5 is a power-on sequence diagram of each device in a management system for storing storage components of a computing device according to an embodiment of the present invention.

本領域普通技術人員將瞭解,雖然下面的詳細說明將參考圖示實施例、附圖進行,但本發明並不僅限於這些實施例。而是,本發明的範圍是廣泛的,且意在僅通過後附的申請專利範圍限定本發明的範圍。 Those of ordinary skill in the art will understand that although the following detailed description will be made with reference to the illustrated embodiments and the drawings, the present invention is not limited to these embodiments. Rather, the scope of the present invention is broad, and it is intended that the scope of the present invention is limited only by the appended patent scope.

在更加詳細地討論示例性實施例之前應當提到的是,一些示例性實施例被描述成作為流程圖描繪的處理或方法。雖然流程圖將各項操作描述成順序的處理,但是其中的許多操作可以被並行地、併發地或者同時實施。此外,各項操作的順序可以被重新安排。當其操作完成時所述處 理可以被終止,但是還可以具有未包括在附圖中的附加步驟。所述處理可以對應於方法、函數、規程、子例程、子程序等等。 Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowchart describes the operations as sequential processing, many of the operations can be implemented in parallel, concurrently, or simultaneously. In addition, the order of operations can be rearranged. The processing may be terminated when its operation is completed, but may also have additional steps not included in the drawings. The processing may correspond to methods, functions, procedures, subroutines, subroutines, and so on.

所述計算機設備包括用戶設備與網路設備。其中,所述用戶設備包括但不限於電腦、智慧手機、PDA等;所述網路設備包括但不限於單個網路伺服器、多個網路伺服器組成的伺服器組或基於雲計算(Cloud Computing)的由大量計算機或網路伺服器構成的雲,其中,雲計算是分布式計算的一種,由一群鬆散耦合的計算機集組成的一個超級虛擬計算機。其中,所述計算機設備可單獨運行來實現本發明,也可接入網路並通過與網路中的其他計算機設備的交互操作來實現本發明。其中,所述計算機設備所處的網路包括但不限於互聯網、廣域網、城域網、局域網、VPN網路等。 The computer equipment includes user equipment and network equipment. Wherein, the user equipment includes, but is not limited to, computers, smart phones, PDAs, etc.; the network equipment includes, but is not limited to, a single network server, a server group composed of multiple network servers, or cloud computing Computing) is a cloud composed of a large number of computers or network servers. Among them, cloud computing is a type of distributed computing, a super virtual computer composed of a group of loosely coupled computer sets. Wherein, the computer device can run alone to implement the present invention, or it can be connected to a network and implemented through interactive operations with other computer devices in the network. Wherein, the network where the computer device is located includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a VPN network, etc.

需要說明的是,所述用戶設備、網路設備和網路等僅為舉例,其他現有的或今後可能出現的計算機設備或網路如可適用於本發明,也應包含在本發明保護範圍以內,並以引用方式包含於此。 It should be noted that the user equipment, network equipment, network, etc. are only examples, and other existing or future computer equipment or networks that are applicable to the present invention should also be included in the protection scope of the present invention. , And included here by reference.

後面所討論的方法(其中一些通過流程圖示出)可以通過硬體、軟體、韌體、中間件、微代碼、硬體描述語言或者其任意組合來實施。當用軟體、韌體、中間件或微代碼來實施時,用以實施必要任務的程序代碼或代碼段可以被儲存在機器或計算機可讀媒體(比如儲存媒體)中。(一個或多個)處理器可以實施必要的任務。 The methods discussed later (some of which are shown by flowcharts) can be implemented by hardware, software, firmware, middleware, microcode, hardware description language, or any combination thereof. When implemented with software, firmware, middleware, or microcode, the program code or code segments used to implement the necessary tasks can be stored in a machine or computer-readable medium (such as a storage medium). The processor(s) can perform the necessary tasks.

這裡所公開的具體結構和功能細節僅僅是代表性的,並且是用於描述本發明的示例性實施例的目的。但是本發明可以通過許多替換形式來具體實現,並且不應當被解釋成僅僅受限於這裡所闡述的實施例。 The specific structure and functional details disclosed herein are only representative, and are used for the purpose of describing exemplary embodiments of the present invention. However, the present invention can be embodied in many alternative forms, and should not be construed as being limited only to the embodiments set forth herein.

應當理解的是,雖然在這裡可能使用了術語“第一”、“第二”等等來描述各個單元,但是這些單元不應當受這些術語限制。使用這些術語僅僅是為了將一個單元與另一個單元進行區分。舉例來說,在不背離示例性實施例的範圍的情況下,第一單元可以被稱為第二單元,並且類似地第二單元可以被稱為第一單元。這裡所使用的術語“和/或”包括其中一個或更多所列出的相關聯項目的任意和所有組合。 It should be understood that, although the terms "first", "second", etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are used only to distinguish one unit from another. For example, without departing from the scope of the exemplary embodiment, the first unit may be referred to as the second unit, and similarly the second unit may be referred to as the first unit. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.

應當理解的是,當一個單元被稱為“連接”或“耦合”到另一單元時,其可以直接連接或耦合到所述另一單元,或者可以存在中間單元。與此相對,當一個單元被稱為“直接連接”或“直接耦合”到另一單元時,則不存在中間單元。應當按照類似的方式來解釋被用於描述單元之間的關係的其他詞語(例如“處於...之間”相比於“直接處於...之間”,“與...鄰近”相比於“與...直接鄰近”等等)。 It should be understood that when a unit is referred to as being "connected" or "coupled" to another unit, it can be directly connected or coupled to the other unit, or intervening units may be present. In contrast, when a unit is said to be "directly connected" or "directly coupled" to another unit, there is no intermediate unit. Other words used to describe the relationship between units should be interpreted in a similar way (for example, "between" as opposed to "directly between" and "adjacent to" Compared to "directly adjacent to" etc.).

這裡所使用的術語僅僅是為了描述具體實施例而不意圖限制示例性實施例。除非上下文明確地另有所指,否則這裡所使用的單數形式“一個”、“一項”還意圖包括複數。還應當理解的是,這裡所使用的術語“包括”和/或 “包含”規定所陳述的特徵、整數、步驟、操作、單元和/或組件的存在,而不排除存在或添加一個或更多其他特徵、整數、步驟、操作、單元、組件和/或其組合。 The terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments. Unless the context clearly dictates otherwise, the singular forms "a" and "one" used herein are also intended to include the plural. It should also be understood that the terms "including" and/or "comprising" used herein specify the existence of the stated features, integers, steps, operations, units and/or components, and do not exclude the existence or addition of one or more Other features, integers, steps, operations, units, components, and/or combinations thereof.

還應當提到的是,在一些替換實現方式中,所提到的功能/動作可以按照不同於附圖中標示的順序發生。舉例來說,取決於所涉及的功能/動作,相繼示出的兩幅圖實際上可以基本上同時執行或者有時可以按照相反的順序來執行。 It should also be mentioned that in some alternative implementations, the mentioned functions/acts may occur in a different order than indicated in the drawings. For example, depending on the functions/actions involved, the two figures shown one after the other may actually be executed substantially simultaneously or sometimes in the reverse order.

本發明實施例中所述的計算設備為提供計算服務功能的設備的統稱,其包括但不限於伺服器或PC等設備。 The computing device described in the embodiments of the present invention is a general term for devices that provide computing service functions, and includes, but is not limited to, devices such as servers or PCs.

現有技術中一台計算設備的儲存部件與計算部件完全耦合。如圖1中所示為已有的計算設備結構示意圖,計算設備中的計算部件11對應固定的一組儲存部件10,該儲存部件與計算部件基於單計算設備的配置方案至少存在如下缺點: In the prior art, the storage component and the computing component of a computing device are completely coupled. As shown in Figure 1 is a schematic diagram of the structure of an existing computing device. The computing component 11 in the computing device corresponds to a fixed set of storage components 10. The storage component and computing component based on a single computing device configuration scheme has at least the following shortcomings:

1、無法進行儲存部件與計算部件的精細化、靈活分配與管理。 1. It is impossible to refine, flexibly allocate and manage storage components and computing components.

2、在生命週期上儲存部件與計算部件存在差異,通常計算設備質保年限為3年,對應的計算設備計算部件的服務年限一般為3年,而儲存部件的質保年限一般為5年或者更長。在計算設備到達質保年限情況下會將計算設備淘汰,而此時並未達到儲存部件的質保年限,因此,儲存部件的質保年限沒有被充分利用起來,而是過早的被淘汰,導致儲存部件的部分質保時間被浪費,最終導致成本 的浪費。 2. There is a difference between storage components and computing components in the life cycle. Generally, the warranty period of computing equipment is 3 years, the service life of the corresponding computing equipment computing components is generally 3 years, and the warranty period of storage components is generally 5 years or longer . When the computing equipment reaches the warranty period, the computing device will be eliminated, and the warranty period of the storage component has not been reached at this time. Therefore, the warranty period of the storage component is not fully utilized, but is eliminated prematurely, resulting in the storage component Part of the warranty time is wasted, which ultimately leads to a waste of costs.

針對上述計算設備存在的問題,本發明實施例提供一種簡化的計算設備以及簡化的計算設備儲存部件的管理方法及系統,下面結合附圖對本發明的技術方案作進一步詳細描述。 In view of the above-mentioned problems of the computing device, the embodiments of the present invention provide a simplified computing device and a simplified method and system for managing storage components of the computing device. The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings.

圖2是根據本發明一個實施例的計算設備的結構示意圖,該計算設備包括:計算部件20及與SAS SWITCH連接的介面21。如圖2中所示,該計算設備的計算部件20仍然設置於計算設備內,也就是對於計算部件20的設置方式同現有技術。該計算部件20即為保留記憶體以及CPU(或GPU)計算功能的I/O(輸入/輸出)模組。 FIG. 2 is a schematic structural diagram of a computing device according to an embodiment of the present invention. The computing device includes: a computing component 20 and an interface 21 connected to the SAS SWITCH. As shown in FIG. 2, the computing component 20 of the computing device is still provided in the computing device, that is, the manner of setting the computing component 20 is the same as in the prior art. The computing component 20 is an I/O (input/output) module that reserves memory and CPU (or GPU) computing functions.

所述計算部件20通過所述介面21可與SAS SWITCH連接,所述SAS SWITCH同時與儲存部件連接,即儲存部件與計算部件20同時與SAS SWITCH連接。其中,所述SAS SWITCH為已有的一種應用SAS協議的IP交換機。通過管理節點或管理程序基於分配規則為所述計算部件20分配連接於SAS SWITCH上的儲存部件。 The computing component 20 can be connected to the SAS SWITCH through the interface 21, and the SAS SWITCH is connected to the storage component at the same time, that is, the storage component and the computing component 20 are connected to the SAS SWITCH at the same time. Wherein, the SAS SWITCH is an existing IP switch that applies the SAS protocol. The storage component connected to the SAS SWITCH is allocated to the computing component 20 based on the allocation rule through the management node or the management program.

本發明實施例為實現計算設備儲存部件與計算部件20的靈活分配,同時讓生命週期不同的儲存部件與計算部件20實現各盡所能的服務時間,將計算設備的儲存部件從計算設備中分離,在計算設備中只保留計算部件20。保留在計算設備中的計算部件20以及被分離出來的儲存部件通過SAS SWITCH連接。 The embodiment of the present invention realizes the flexible allocation of storage components of computing equipment and computing components 20, and at the same time allows storage components and computing components 20 with different life cycles to achieve the best possible service time, and separates the storage components of computing equipment from computing equipment. , Only the computing component 20 is retained in the computing device. The computing component 20 retained in the computing device and the separated storage component are connected through SAS SWITCH.

其中,被分離出來的儲存部件以儲存陣列方式通過統 一的介面與SAS SWITCH連接,其中一種實施例SAS SWITCH具有管理介面,通過管理介面可連接管理節點,通過管理節點基於分配規則可實現對連接於SAS SWITCH的儲存部件以及計算部件20進行匹配,也就是為連接於SAS SWITCH的計算部件20分配連接於SAS SWITCH的儲存部件。另一種實施例為在連接於SAS SWITCH上的其中一個計算設備中安裝管理程序,該管理程序可基於分配規則為連接於SAS SWITCH上的計算部件分配儲存部件。 Among them, the separated storage components are connected to SAS SWITCH through a unified interface in a storage array. One embodiment of SAS SWITCH has a management interface, through which the management node can be connected, and the connection can be realized based on the allocation rules through the management node. The storage component of SAS SWITCH is matched with the computing component 20, that is, the computing component 20 connected to the SAS SWITCH is allocated to the storage component connected to the SAS SWITCH. Another embodiment is to install a management program in one of the computing devices connected to the SAS SWITCH, and the management program can allocate storage components to the computing components connected to the SAS SWITCH based on the allocation rule.

在為計算部件20分配儲存部件23時可依據計算部件20的實際需要來分配,也就是為計算部件20分配的儲存部件的數量隨計算部件的實際需要的變化而變化,其中,與計算部件20連接的儲存部件的數量可與計算部件20的需求成正比。因此本發明實施例實現了計算設備的儲存部件與計算部件20的靈活分配。 When allocating the storage component 23 to the computing component 20, it can be allocated according to the actual needs of the computing component 20, that is, the number of storage components allocated to the computing component 20 varies with the actual needs of the computing component. The number of connected storage components may be proportional to the demand of the computing component 20. Therefore, the embodiment of the present invention realizes the flexible allocation of the storage component and the computing component 20 of the computing device.

另外,SAS SWITCH上可同時連接至少一個儲存陣列以及計算部件20,且儲存陣列中包括至少一個儲存部件,因此在為計算部件20分配儲存部件時,可將位於不同儲存陣列中的儲存部件分配給同一計算部件20,也就是與同一計算設備連接的儲存部件可分別位於多個儲存陣列中,以保證在一個儲存陣列出現故障情況下,降低對計算設備計算部件20的影響。例如,與一SAS SWITCH連接的儲存陣列有20個,每個儲存陣列中包括40個儲存部件,與該SAS SWITCH連接的計算部件有5個,則為該5 個計算部件中每一計算部件分配儲存部件時,可分別從該20個儲存陣列中選擇1/5的儲存部件分配給一個計算部件。 In addition, at least one storage array and computing component 20 can be connected to SAS SWITCH at the same time, and the storage array includes at least one storage component. Therefore, when allocating storage components to computing component 20, storage components located in different storage arrays can be assigned to The same computing component 20, that is, the storage components connected to the same computing device, can be located in multiple storage arrays respectively, so as to ensure that in the event of a failure of one storage array, the impact on the computing component 20 of the computing device is reduced. For example, if there are 20 storage arrays connected to a SAS SWITCH, each storage array includes 40 storage components, and there are 5 computing components connected to the SAS SWITCH, then each of the 5 computing components is allocated When storing components, 1/5 of the storage components can be selected from the 20 storage arrays and allocated to a computing component.

需要說明的是,本發明實施例的計算設備通過將儲存部件分離出來,並採用SAS SWITCH與計算部件連接,實現儲存部件與計算部件生命週期分開,這樣在計算部件達到規定服務時限(即達到質保期)時,並不影響儲存部件的工作,也就是此時可更換與儲存部件連接的計算部件,便於對不同生命週期的儲存部件及計算部件進行最大限度的利用,避免儲存部件由於提前被淘汰造成的資源浪費。 It should be noted that the computing device in the embodiment of the present invention separates the storage component and uses SAS SWITCH to connect to the computing component to realize the separation of the life cycle of the storage component and the computing component. In this way, the computing component reaches the specified service time limit (that is, reaches the warranty Period), it does not affect the work of the storage components, that is, the computing components connected to the storage components can be replaced at this time, which is convenient for the maximum use of the storage components and computing components of different life cycles, and avoids the storage components from being eliminated in advance. The resulting waste of resources.

本發明實施例還提供一種計算設備儲存部件的管理方法,如圖3中所示為所述方法的操作流程圖,該方法主要包括如下步驟:S310、獲取與SAS SWITCH連接的儲存部件資訊及計算部件資訊;S320、依據獲取的所述儲存部件資訊及計算部件資訊基於分配規則為計算部件分配儲存部件。 The embodiment of the present invention also provides a method for managing storage components of a computing device. As shown in FIG. 3, the operation flow chart of the method is shown. The method mainly includes the following steps: S310. Obtain storage component information connected with SAS SWITCH and calculate Component information; S320, according to the acquired storage component information and computing component information, allocate storage components to the computing component based on the allocation rule.

為進一步理解本方案,下面對上述各步驟做進一步詳細介紹。 To further understand this solution, the above steps are described in further detail below.

本發明實施例的一種應用場景可以為:所述的計算設備同上面實施例中所述的計算設備,即,所述計算設備包括計算部件,所述計算部件與SAS SWITCH連接,所述SAS SWITCH同時與儲存部件連接。本實施例的方法用於 實現為所述計算設備的計算部件分配儲存部件。 An application scenario of an embodiment of the present invention may be: the computing device is the same as the computing device described in the above embodiment, that is, the computing device includes a computing component, the computing component is connected to the SAS SWITCH, and the SAS SWITCH At the same time, it is connected to the storage unit. The method of this embodiment is used to allocate storage components to the computing components of the computing device.

本發明實施例所述儲存部件位於儲存陣列中,以儲存陣列的統一介面與SAS SWITCH連接,也就是,儲存陣列中包括至少一個儲存部件。 The storage component described in the embodiment of the present invention is located in the storage array and is connected to the SAS SWITCH through the unified interface of the storage array, that is, the storage array includes at least one storage component.

步驟S320中獲取的儲存部件資訊包括:與SAS SWITCH連接的儲存部件數量及儲存容量,還可包括儲存部件被計算部件使用的狀態和/或儲存部件的服務時限。所獲取的所述計算設備的計算部件資訊至少包括:與SAS SWITCH連接的計算部件數量,還可包括計算部件的服務時限。 The storage component information obtained in step S320 includes: the number and storage capacity of the storage component connected to the SAS SWITCH, and may also include the state of the storage component being used by the computing component and/or the service time limit of the storage component. The obtained computing component information of the computing device includes at least: the number of computing components connected to the SAS SWITCH, and may also include the service time limit of the computing component.

其中,所述儲存部件資訊以及計算部件資訊可通過如下方式獲取: Wherein, the storage component information and the calculation component information can be obtained in the following ways:

令SAS SWITCH掃描各介面,從而得到與SAS SWITCH各介面連接的纜線內部信號即可識別與該介面連接的是計算部件還是儲存部件(或儲存陣列)。也就是通過掃描與SAS SWITCH各介面連接的晶片來獲知與該SAS SWITCH各介面連接的是計算部件還是儲存部件(或儲存陣列)。例如,若掃描SAS SWITCH的一個介面的晶片時,獲取到該介面的端口號,則表明與該介面連接的為計算部件;若掃描SAS SWITCH的一個介面的晶片時,獲取到控制器信號,則表明與該介面連接的為儲存部件(或儲存陣列)。在掃描完所有SAS SWITCH的介面的情況下獲得與該SAS SWITCH連接的儲存部件資訊以及計算部件資訊。可通過獲取該SAS SWITCH的掃描結 果來獲取儲存部件資訊以及計算部件資訊。 Make SAS SWITCH scan each interface to obtain the internal signal of the cable connected to each interface of SAS SWITCH to identify whether the interface is connected to a computing component or a storage component (or storage array). That is, by scanning the chips connected to each interface of the SAS SWITCH, it is known whether the computing component or the storage component (or storage array) is connected to each interface of the SAS SWITCH. For example, if the chip of an interface of SAS SWITCH is scanned and the port number of the interface is obtained, it indicates that the computing component is connected to the interface; if the chip of an interface of SAS SWITCH is scanned, the controller signal is obtained, then Indicates that the storage component (or storage array) is connected to the interface. After scanning all SAS SWITCH interfaces, obtain the storage component information and calculation component information connected to the SAS SWITCH. The storage part information and calculation part information can be obtained by obtaining the scan results of the SAS SWITCH.

該步驟S310的執行時機可以在SAS SWITCH啟動過程中或啟動後。每次SAS SWITCH啟動時會執行掃描操作,即可獲取與該SAS SWITCH連接的儲存部件資訊以及計算部件資訊。也可設置該SAS SWITCH啟動後定期執行該掃描操作,以便及時獲取儲存部件資訊及計算部件資訊的變化,例如儲存部件被計算部件的使用狀態的變化等。 The execution timing of step S310 may be during or after the SAS SWITCH is started. Scanning operation will be performed every time SAS SWITCH is started, and information of storage components and calculation components connected to the SAS SWITCH can be obtained. You can also set the SAS SWITCH to periodically perform the scanning operation after the SAS SWITCH is started, so as to obtain the storage component information and the changes in the calculation component information in time, such as the change in the use status of the storage component and the calculated component.

獲取與SAS SWITCH連接的儲存部件資訊及計算設備的計算部件資訊的目的在於,可以依據獲取的該儲存部件資訊以及計算部件資訊基於分配規則為計算部件分配儲存部件。 The purpose of obtaining storage component information connected to SAS SWITCH and computing component information of a computing device is to allocate storage components to computing components based on the acquired storage component information and computing component information based on allocation rules.

步驟S320即為依據獲取的所述儲存部件資訊及計算部件資訊基於分配規則為計算部件分配儲存部件。其中,針對SAS SWITCH啟動後初始為計算部件分配儲存部件情況下,主要依據獲取的儲存部件數量以及計算部件數量基於分配規則來為計算部件分配儲存部件。還可以基於獲取的儲存部件容量及計算部件數量來為計算部件分配儲存部件。針對SAS SWITCH啟動後定期掃描介面獲取到更新後的儲存部件資訊以及計算部件資訊的情況,主要依據獲取的儲存部件被計算部件使用的狀態調整為計算部件分配的儲存部件,以及依據獲取的儲存部件的服務時限和/或計算部件的服務時限調整儲存部件與計算部件的分配關係。 Step S320 is to allocate storage components to the computing components based on the acquired storage component information and computing component information based on the allocation rule. Among them, for the initial allocation of storage components to computing components after SAS SWITCH is started, storage components are allocated to computing components based on the number of acquired storage components and the number of computing components based on the allocation rules. It is also possible to allocate storage components to the computing components based on the acquired storage component capacity and the number of computing components. Regarding the situation that the updated storage component information and computing component information are obtained by scanning the interface regularly after SAS SWITCH is started, the storage component is adjusted to the storage component allocated by the computing component based on the status of the acquired storage component being used by the computing component, and the storage component is based on the acquired storage component. The service time limit and/or the service time limit of the computing component adjust the allocation relationship between the storage component and the computing component.

其中,初始為計算部件分配儲存部件時可以依據配置的分配規則來為計算部件分配儲存部件,所述分配規則可以包括:在保留指定數量的儲存部件處於未分配狀態情況下,將除所述指定數量的儲存部件外的儲存部件分配給計算部件。 Wherein, when initially allocating storage components to computing components, storage components can be allocated to computing components according to the configured distribution rules, and the distribution rules may include: in the case that a specified number of storage components are reserved in an unallocated state, removing the specified storage components The storage components other than the number of storage components are allocated to the calculation component.

其中,在儲存部件設置於儲存陣列中的情況下,保留指定數量的儲存部件的情況包括:在每個儲存陣列中保留指定數量的儲存部件處於未分配狀態,即保留儲存陣列中指定數量的儲存部件不分配給任何計算部件,該保留的指定數量的儲存部件可用於在分配給計算部件的儲存部件故障情況下,作為該故障的儲存部件的備份,也就是在分配給計算部件的儲存部件故障情況下,使用該保留的指定數量的儲存部件替代故障的儲存部件,以保證不影響與該故障的儲存部件連接的計算部件的正常工作。對於每個儲存陣列中保留的儲存部件的數量可以為一個或兩個,或與分配給任一計算部件的儲存部件的數量相同。另外,每個儲存陣列中保留的指定數量的儲存部件的數量可以相同也可以不同。可以理解的是,為便於管理,一般將每個儲存陣列中保留的指定數量的儲存部件的數量設置為相同。 Among them, when the storage components are set in the storage array, the reserved number of storage components includes: reserve the specified number of storage components in each storage array in an unallocated state, that is, reserve the specified number of storage in the storage array The component is not allocated to any computing component. The reserved specified number of storage components can be used as a backup of the failed storage component in the event that the storage component allocated to the computing component fails, that is, when the storage component allocated to the computing component fails In this case, use the reserved designated number of storage components to replace the failed storage component to ensure that the normal operation of the computing component connected to the failed storage component is not affected. The number of storage components reserved for each storage array can be one or two, or the same as the number of storage components allocated to any computing component. In addition, the number of the specified number of storage components reserved in each storage array may be the same or different. It can be understood that, in order to facilitate management, the number of the designated number of storage components reserved in each storage array is generally set to be the same.

從上述分配規則可以看出,本發明實施例在保留指定數量儲存部件不分配情況下,儘量將其他儲存部件全部分配出去,以達到儲存部件的充分利用。例如,若與SAS SWITCH連接的其中一個儲存陣列中包括60個儲存部 件,且確定需保留的指定數量的儲存部件處於未分配狀態的為2個儲存部件,則將其餘的58個儲存部件全部分配給與該SAS SWITCH連接的計算部件。 It can be seen from the above distribution rules that the embodiment of the present invention allocates all other storage components as far as possible under the condition that a specified number of storage components are reserved and not distributed, so as to achieve full utilization of the storage components. For example, if one of the storage arrays connected to SAS SWITCH includes 60 storage components, and it is determined that the specified number of storage components to be reserved is in an unallocated state as 2 storage components, then all the remaining 58 storage components will be allocated Give the computing component connected to the SAS SWITCH.

另外,需要說明的是,為方便管理,與SAS SWITCH連接的儲存陣列中包含的儲存部件數量可設置為相同,按照分配規則初始為每一計算部件分配的儲存部件數量也可設置為相同。可以理解的是,本發明實施例同時也支持與SAS SWITCH連接的各儲存陣列中包含的儲存部件數量不同的情形,以及初始為每個計算部件分配不同數量的儲存部件的情形。 In addition, it should be noted that, for the convenience of management, the number of storage components included in the storage array connected to SAS SWITCH can be set to the same, and the number of storage components initially allocated to each computing component according to the allocation rules can also be set to the same. It is understandable that the embodiment of the present invention also supports the situation where the number of storage components included in each storage array connected to the SAS SWITCH is different, and the situation where each computing component is initially allocated with a different number of storage components.

所述分配規則還可以包括:將儲存陣列中的儲存部件分成與所述計算部件的數量相同的份數分配給所述計算部件。 The allocation rule may further include: dividing the storage components in the storage array into the same number of the computing components and allocating to the computing components.

也就是,針對一個儲存陣列,將其包含的多個儲存部件分成與計算部件的數量相同的份數分配給所述計算部件。由於一般情況下,與SAS SWITCH連接的儲存陣列的數量以及儲存陣列中包含的儲存部件的數量會大於與該SAS SWITCH連接的計算部件的數量,也就是與SAS SWITCH連接的儲存部件足夠分配給連接於SAS SWITCH上的計算部件,因此,不會出現儲存陣列中儲存部件的數量小於連接於SAS SWITCH是的計算部件的數量。 That is, for one storage array, the plurality of storage components contained in it are divided into the same number of calculation components and allocated to the calculation components. In general, the number of storage arrays connected to the SAS SWITCH and the number of storage components contained in the storage array will be greater than the number of computing components connected to the SAS SWITCH, that is, the storage components connected to the SAS SWITCH are sufficient for the connection Therefore, the number of storage components in the storage array will not be less than the number of computing components connected to SAS SWITCH.

例如,與一SAS SWITCH連接的儲存陣列為20個,且每一儲存陣列中包含60個儲存部件,與SAS SWITCH連接的計算部件為10個,則依照本規則,將每個儲存陣 列中的60個儲存部件分成10份,每一份分配給一個計算部件。其中,可將儲存陣列中的儲存部件平均分成與計算部件的數量相同的份數,也可隨機分成與計算部件的數量相同的份數。即,可將該儲存陣列中的60個儲存部件平均分成10份,則每份包含6個儲存部件,即分配給每個計算部件6個儲存部件。或將儲存陣列中的60個儲存部件隨機分成10份,每份包含的儲存部件的數量不等,例如,可以為5個、10個、6個或8個等等,將隨機劃分後的儲存部件分配給計算部件。 For example, if there are 20 storage arrays connected to a SAS SWITCH, and each storage array contains 60 storage components, and there are 10 computing components connected to SAS SWITCH, then according to this rule, 60 Each storage part is divided into 10 parts, and each part is allocated to a calculation part. Among them, the storage components in the storage array can be equally divided into the same number of parts as the number of calculation parts, or randomly divided into the same number of parts as the number of calculation parts. That is, the 60 storage components in the storage array can be equally divided into 10 parts, and each part contains 6 storage parts, that is, 6 storage parts are allocated to each computing part. Or randomly divide the 60 storage components in the storage array into 10 parts, and the number of storage parts contained in each part varies, for example, it can be 5, 10, 6, or 8, etc., and the randomly divided storage The part is assigned to the calculation part.

該分配規則與上述分配規則不相衝突,也就是可以在保留儲存陣列中指定數量的儲存部件處於未分配狀態前提下,將儲存陣列中的儲存部件分成與計算部件的數量相同的份數分配給計算部件,例如,針對上述實例,可將每個儲存陣列中的儲存部件分成11份,將其中的1份保留不分配給任何計算部件,其餘10份分配給計算部件;當然該分配規則也可單獨存在。 This allocation rule does not conflict with the above allocation rules, that is, on the premise that the specified number of storage components in the storage array are reserved in an unallocated state, the storage components in the storage array can be divided into the same number of parts as the calculation components. Computing components, for example, for the above example, the storage components in each storage array can be divided into 11 parts, one of which is reserved and not allocated to any computing components, and the remaining 10 parts are allocated to computing components; of course, the allocation rule can also be used. Exist alone.

需要強調的是,本規則是將每一個儲存陣列中的儲存部件都分成與計算部件相同數量的份數分配給計算部件,因此,該分配規則可將同一儲存陣列中的儲存部件分配給連接於SAS SWITCH上的每個計算部件,也就是分配給同一計算部件的儲存部件位於多個儲存陣列中。這樣,在一個儲存陣列故障情況下,只對一個計算部件的一小部分工作產生影響,即,有效降低了儲存部件故障對計算部件的影響。 It should be emphasized that this rule divides the storage components in each storage array into the same number of parts as the computing components and allocates them to the computing components. Therefore, this allocation rule can allocate storage components in the same storage array to those connected to Each computing component on SAS SWITCH, that is, the storage component allocated to the same computing component, is located in multiple storage arrays. In this way, in the case of a storage array failure, only a small part of the work of a computing component is affected, that is, the impact of the storage component failure on the computing component is effectively reduced.

所述分配規則也可以為:將與SAS SWITCH連接的所有儲存部件分成與計算部件的數量相同的份數分配給計算部件。 The distribution rule may also be: divide all storage components connected to the SAS SWITCH into the same number of parts as the calculation parts and allocate them to the calculation parts.

該分配規則是將與SAS SWITCH連接的所有儲存陣列中的儲存部件分成與該SAS SWITCH連接的計算部件的數量相同的份數分配給計算部件。該分配規則與上一分配規則的區別在於每一儲存陣列中的儲存部件有可能分配給同一計算部件。 The allocation rule is to divide the storage components in all storage arrays connected to the SAS SWITCH into the same number of the computing components connected to the SAS SWITCH and allocate them to the computing components. The difference between this allocation rule and the previous allocation rule is that the storage components in each storage array may be allocated to the same computing component.

例如,與SAS SWITCH連接的存儲存陣列為20個,且每一儲存陣列中包含60個儲存部件,與SAS SWITCH連接的計算部件為10個,則可知與該SAS SWITCH連接的儲存部件供1200個(20×60),將該1200個儲存部件分成10份分配給10個計算部件。同樣,可將儲存部件平均分成與計算部件的數量相同的份數,也可隨機分成與計算部件的數量相同的份數。依照本規則,在將1200個儲存部件分成10份情況下,每一份包括120個儲存部件,將120個儲存部件分配給一個計算部件。其中,在選擇該120個儲存部件時可按介面順序來選擇,例如,若與儲存陣列連接的SAS SWITCH的介面的編號為介面1~介面20,與計算部件連接的SAS SWITCH的介面編號為介面21~介面31。則從介面1中選擇60個儲存部件,之後再從介面2中選擇60個儲存部件分配給與介面21連接的計算部件;將從介面3和介面4獲取的120個儲存部件分配給與介面22連接的計算部件,以此類推。 For example, if there are 20 storage arrays connected to SAS SWITCH, and each storage array contains 60 storage components, and there are 10 computing components connected to SAS SWITCH, it can be seen that there are 1200 storage components connected to the SAS SWITCH. (20×60), divide the 1200 storage parts into 10 parts and allocate them to 10 calculation parts. Similarly, the storage components can be equally divided into the same number of parts as the calculation parts, or randomly divided into the same number of parts as the calculation parts. According to this rule, when 1200 storage components are divided into 10 parts, each part includes 120 storage parts, and 120 storage parts are allocated to one calculation component. Among them, when selecting the 120 storage components, you can select according to the interface order. For example, if the interface number of SAS SWITCH connected to the storage array is interface 1~interface 20, the interface number of SAS SWITCH connected to the computing component is interface 21~Interface 31. Then select 60 storage components from interface 1, and then select 60 storage components from interface 2 to assign to the computing components connected to interface 21; assign 120 storage components obtained from interface 3 and interface 4 to interface 22 Connected computing components, and so on.

所述分配規則還可以為:為每一計算部件分配固定容量的儲存部件。 The allocation rule may also be: allocating a storage component with a fixed capacity to each computing component.

例如,與一SAS SWITCH連接的儲存部件為20個,且每一儲存部件的儲存容量為500G,與SAS SWITCH連接的計算部件為10個,該規則規定為每一計算部件分配1000G的儲存部件,則可從20個儲存部件中隨機選擇1000G的儲存部件分配給計算部件,且保證分配的儲存部件不衝突。其選擇方法可以同上面規則中所述的按照介面順序來選擇,當然還可採用其他方法來為計算部件選擇儲存部件,只需保證為每個計算部件分配的儲存部件的容量等於規則規定的固定容量即可。 For example, there are 20 storage components connected to a SAS SWITCH, and the storage capacity of each storage component is 500G, and there are 10 computing components connected to SAS SWITCH. The rule stipulates that each computing component is allocated 1000G storage components. Then, a 1000G storage component can be randomly selected from the 20 storage components to be allocated to the computing component, and it is ensured that the allocated storage components do not conflict. The selection method can be selected in accordance with the interface order as described in the above rules. Of course, other methods can also be used to select storage components for computing components. It is only necessary to ensure that the capacity of storage components allocated to each computing component is equal to the fixed amount specified in the rules. Capacity is fine.

上述分配規則僅為發明人所列舉的幾個實例,實際應用中可根據需要靈活設置各種分配規則。可見,本發明實施例可以設置各種分配規則來為計算部分分配儲存部件,有效實現了儲存部件與計算部件的靈活分配。 The above distribution rules are only a few examples cited by the inventor, and various distribution rules can be flexibly set according to needs in practical applications. It can be seen that in the embodiment of the present invention, various allocation rules can be set to allocate storage components to the computing part, which effectively realizes the flexible allocation of storage components and computing components.

其中,為計算部件分配儲存部件的具體表現為:計算部件可以訪問並使用為其分配的儲存部件。也就是,為計算部件分配儲存部件的過程即為為計算部件開通相應儲存部件訪問及使用權限的過程,同樣亦為設置計算部件與儲存部件匹配關係的過程。在依據分配規則為計算部件分配儲存部件完成後,可記錄計算部件與儲存部件的匹配關係。由於SAS SWITCH的每一介面具有一個地址(或編號),每一介面與計算部件或儲存陣列連接,則與該介面連接的計算部件或儲存陣列的地址即為該SAS SWITCH 的介面的地址。若與一SAS SWITCH的介面連接的為儲存陣列,該儲存陣列中包含多個儲存部件,對於儲存陣列中的每一儲存部件具有唯一的地址(或編號)。則在為計算部件分配儲存部件後,記錄計算部件與儲存部件的匹配關係時可記錄計算部件與所分配的儲存部件的地址的對應關係。例如,SAS SWITCH的介面1連接儲存陣列,該介面1的地址假設為地址1,則儲存陣列1的地址即為地址1;介面5連接計算部件,該介面5的地址假設為地址5,則該計算部件的地址即為地址5;若將該儲存陣列中的儲存部件X分配給該計算部件,該儲存部件X的地址為地址X,則記錄的計算部件與儲存部件的匹配關係為:地址5對應地址1中的地址X,也就是計算部件若要訪問為其分配的儲存部件X,需先找到儲存部件X所在的儲存陣列的地址即地址1,再到地址1中找到地址X即可找到為其分配的儲存部件X。可以理解的是,由於為計算部件分配的儲存部件可能位於多個儲存陣列中,因此在記錄計算部件與儲存部件匹配關係時,同一計算部件可以同時與多個儲存部件匹配。本發明實施例可通過匹配關係表來保存所述計算部件與儲存部件的匹配關係。 Among them, the specific manifestation of allocating storage components to computing components is as follows: computing components can access and use the storage components allocated to them. That is, the process of assigning storage components to computing components is a process of opening corresponding storage component access and usage rights for computing components, and it is also a process of setting a matching relationship between computing components and storage components. After allocating storage components to computing components according to the allocation rules, the matching relationship between computing components and storage components can be recorded. Since each interface of the SAS SWITCH has an address (or number), and each interface is connected to a computing component or storage array, the address of the computing component or storage array connected to the interface is the address of the SAS SWITCH interface. If a storage array is connected to a SAS SWITCH interface, the storage array includes a plurality of storage components, and each storage component in the storage array has a unique address (or number). Then, after the storage component is allocated to the computing component, when the matching relationship between the computing component and the storage component is recorded, the correspondence relationship between the computing component and the address of the allocated storage component can be recorded. For example, interface 1 of SAS SWITCH is connected to a storage array. If the address of interface 1 is assumed to be address 1, then the address of storage array 1 is address 1. Interface 5 is connected to a computing component. If the address of interface 5 is assumed to be address 5. The address of the computing component is address 5; if the storage component X in the storage array is assigned to the computing component, and the address of the storage component X is address X, the recorded matching relationship between the computing component and the storage component is: address 5 Corresponding to the address X in address 1, that is, if the computing component wants to access the storage component X assigned to it, it needs to find the address of the storage array where the storage component X is located, namely address 1, and then find the address X in the address 1 to find Storage part X assigned to it. It is understandable that since the storage components allocated to the computing components may be located in multiple storage arrays, when the matching relationship between the computing components and the storage components is recorded, the same computing component can be matched with multiple storage components at the same time. In the embodiment of the present invention, the matching relationship between the calculation component and the storage component may be stored through a matching relationship table.

匹配關係表中記錄的為計算部件與儲存部件的匹配關係。該匹配關係表在計算部件與儲存部件的匹配關係發生變化時,可進行同步更新。 What is recorded in the matching relationship table is the matching relationship between the calculation component and the storage component. The matching relationship table can be updated synchronously when the matching relationship between the computing component and the storage component changes.

由於上述分配規則為針對初始分配過程,所述初始分配過程即SAS SWITCH啟動後第一次為計算部件分配儲 存部件的過程,在初始分配完成後,即產生所述的匹配關係表,而後續可能會對該匹配關係作出調整,每調整一次所述匹配關係,則對應的更新該匹配關係表。其中,可定期獲取儲存部件資訊及計算部件資訊,在所獲取的儲存部件資訊及計算部件資訊發生變化時需調整所述匹配關係,具體的場景包括:獲取的儲存部件資訊包括儲存部件被計算部件使用的狀態;依據所述儲存部件被計算部件使用的狀態調整分配給所述計算部件的儲存部件。 Since the above allocation rule is for the initial allocation process, the initial allocation process is the process of allocating storage components for computing components for the first time after SAS SWITCH is started. After the initial allocation is completed, the matching relationship table is generated, and the subsequent may The matching relationship will be adjusted, and the matching relationship table will be updated correspondingly every time the matching relationship is adjusted. Among them, the storage component information and the calculation component information can be periodically obtained, and the matching relationship needs to be adjusted when the obtained storage component information and the calculation component information change. The specific scenarios include: the obtained storage component information includes the storage component being calculated The state of use; the storage component allocated to the computing component is adjusted according to the state of the storage component being used by the computing component.

也就是,本發明實施例在初始為計算部件分配儲存部件後,實時或定期獲取分配給計算部件的儲存部件被計算部件使用的狀態。所述使用狀態即儲存部件的儲存容量是否被使用,以及使用的比率等。 That is, in the embodiment of the present invention, after initially allocating storage components to the computing components, the status of the storage components allocated to the computing components being used by the computing components is acquired in real time or periodically. The state of use refers to whether the storage capacity of the storage component is used, and the ratio of use, etc.

獲取該使用狀態的目的在於,可以依據所述使用狀態調整分配給所述計算部件的儲存部件,主要調整分配給計算部件的儲存部件的數量。具體調整方法包括:當儲存部件被計算部件的使用比率低於設定下限值時,減少分配給該計算部件的儲存部件,即從分配給該計算部件的儲存部件中取消未被使用的儲存部件中的一部分或全部。例如,若獲取到儲存部件被計算部件的使用率低於60%,則取消未被使用的40%的儲存部件,或取消30%的未被使用的儲存部件等等。或者,當儲存部件被計算部件的使用率高於設定上限值時,增加為該計算部件分配的儲存部件。例如,若獲取到儲存 部件被計算部件的使用率高於95%,則再為該計算部件分配一個或兩個儲存部件等等,或者將從其他計算部件中取消的全部或部分儲存部件分配給使用率高於設定上限值的計算部件。 The purpose of obtaining the usage status is to adjust the storage components allocated to the computing component according to the usage status, and mainly adjust the number of storage components allocated to the computing component. The specific adjustment method includes: when the use ratio of the calculated component of the storage component is lower than the set lower limit, reduce the storage component allocated to the computing component, that is, cancel the unused storage component from the storage component allocated to the computing component Part or all of. For example, if it is obtained that the utilization rate of the calculated component of the storage component is less than 60%, then 40% of the unused storage component will be cancelled, or 30% of the unused storage component will be cancelled, and so on. Or, when the usage rate of the calculated component of the storage component is higher than the set upper limit, the storage component allocated to the computing component is added. For example, if it is obtained that the utilization rate of the calculated component of the storage component is higher than 95%, then one or two storage components will be allocated to the computing component, etc., or all or part of the storage components cancelled from other computing components will be allocated to A calculation component whose usage rate is higher than the set upper limit.

其中,所獲取的儲存部件被計算部件的使用率可以為規定時間長度範圍內的平均使用率。 Wherein, the obtained utilization rate of the calculated component of the storage component may be an average utilization rate within a specified time length.

所述需調整所述匹配關係的場景還包括:獲取的儲存部件資訊包括儲存部件的服務時限,獲取的計算部件的資訊包括計算部件的服務時限,判斷所述儲存部件的服務時限以及計算部件的服務時限是否到達各自的規定時限;在儲存部件的服務時限到達規定時限和/或計算部件的服務時限到達規定時限情況下,調整所述匹配關係,具體的,提供更換到達規定時限的儲存部件或計算部件的提示,以便工作人員在根據提示根據達到規定時限的儲存部件或計算部件情況下,根據更換結果調整所述匹配關係。 The scenario where the matching relationship needs to be adjusted further includes: the acquired storage component information includes the service time limit of the storage component, the acquired computing component information includes the service time limit of the computing component, and determining the service time limit of the storage component and the computing component’s time limit. Whether the service time limit reaches the respective prescribed time limit; when the service time limit of the storage component reaches the prescribed time limit and/or the service time limit of the calculated component reaches the prescribed time limit, adjust the matching relationship, specifically, provide replacement of the storage component that reaches the prescribed time limit or Reminders of the calculation components, so that the staff can adjust the matching relationship according to the replacement results when the storage components or calculation components reach the specified time limit according to the prompts.

上述判斷儲存部件以及計算部件時限是否達到各自規定時限的操作可定期執行。所述達到規定時限即達到質保時間。其中,可通過保存每一計算部件以及儲存部件的規定時限,判斷當前時間是否為所保存的計算部件及儲存部件的規定時限,若是其中任一計算部件的規定時限,則提示更換所述計算部件。此時可建立新的計算部件來替代達到規定時限的計算部件,而不影響儲存部件的使用,也就是儲存部件可繼續被使用。實現了計算部件與儲存部件均 最大限度的被利用。 The above-mentioned operations of judging whether the time limit of the storage component and the calculation component have reached their respective prescribed time limits can be performed periodically. When the specified time limit is reached, the warranty time is reached. Among them, it can be judged whether the current time is the specified time limit of the saved calculation component and storage component by saving the specified time limit of each calculation component and storage component. If it is the specified time limit of any of the calculation components, it will be prompted to replace the calculation component . At this time, a new computing component can be created to replace the computing component that reaches the specified time limit without affecting the use of the storage component, that is, the storage component can continue to be used. The computing components and storage components are used to the maximum extent.

本發明實施例還提供一種計算設備儲存部件的管理系統,如圖4中所示為該系統結構示意圖,該系統主要包括如下設備:管理節點40、與管理節點40連接的至少一個SAS SWITCH41、與SAS SWITCH41連接的至少一個儲存部件420和至少一個計算設備的計算部件43。如圖4中所示,儲存部件420可位於儲存陣列42中,每個儲存陣列中包括至少一個儲存部件420。 The embodiment of the present invention also provides a management system for storage components of computing equipment. As shown in FIG. 4 is a schematic diagram of the system structure. The system mainly includes the following equipment: a management node 40, at least one SAS SWITCH 41 connected to the management node 40, and At least one storage component 420 and at least one computing component 43 of a computing device are connected to the SAS SWITCH 41. As shown in FIG. 4, the storage components 420 may be located in the storage array 42, and each storage array includes at least one storage component 420.

其中,所述儲存陣列42為從計算設備中分離出來的儲存部件420的組合,每個儲存陣列42通過統一的介面與SAS SWITCH41連接。 The storage array 42 is a combination of storage components 420 separated from the computing device, and each storage array 42 is connected to the SAS SWITCH 41 through a unified interface.

所述計算部件43為計算設備中保留記憶體以及CPU(或GPU)計算功能的I/O(輸入/輸出)模組,其位於計算設備內部。 The computing component 43 is an I/O (input/output) module that retains memory and CPU (or GPU) computing functions in the computing device, and is located inside the computing device.

所述儲存陣列42和所述計算部件43可位於同一機櫃內,也就是同一機櫃內即包括儲存陣列42又包括計算部件43。當然也可分別位於不同的機櫃內,即,將儲存陣列42單獨設置於一個機櫃內,將計算部件43設置於另一機櫃內,該設置方式更有利於將不同的儲存陣列42中的不同儲存部件420分配給同一個計算部件43,帶來冗餘的好處。 The storage array 42 and the computing component 43 may be located in the same cabinet, that is, the storage array 42 and the computing component 43 are included in the same cabinet. Of course, they can also be located in different cabinets, that is, the storage array 42 is separately arranged in one cabinet, and the computing component 43 is arranged in another cabinet. This arrangement is more conducive to different storage arrays 42 in different storage arrays. The component 420 is allocated to the same computing component 43, which brings the benefit of redundancy.

所述儲存陣列42與計算部件43通過SAS SWITCH41連接,該SAS SWITCH41為已有的一種應用SAS協議的IP交換機。SAS SWITCH41具有多個介面,其中包括一個 管理介面用於連接所述管理節點40,還包括多個連接儲存陣列42和計算部件43的介面。該SAS SWITCH41在啟動後可通過掃描各介面獲得與各介面連接的是儲存陣列42還是計算部件43,從而獲得與SAS SWITCH41連接的儲存陣列42的數量以及計算部件43的數量,對於連接儲存陣列42的介面可以進一步掃描獲得該儲存陣列42中包含的儲存部件420的個數以及每個儲存部件420的儲存空間大小。 The storage array 42 and the computing component 43 are connected through the SAS SWITCH 41, which is an existing IP switch using the SAS protocol. The SAS SWITCH 41 has a plurality of interfaces, including a management interface for connecting to the management node 40, and a plurality of interfaces for connecting the storage array 42 and the computing component 43. After the SAS SWITCH 41 is activated, it can scan each interface to obtain whether the storage array 42 or the computing component 43 is connected to each interface, so as to obtain the number of storage arrays 42 connected to the SAS SWITCH 41 and the number of computing components 43. For the connected storage array 42 The interface of can be further scanned to obtain the number of storage components 420 included in the storage array 42 and the storage space size of each storage component 420.

所述管理節點40,用於為所述計算部件43分配與所述計算部件43連接於SAS SWITCH41上的儲存部件42。需要說明的是,在該管理系統中與一個管理節點40連接的SAS SWITCH41至少為一個,圖4中僅以管理節點40與一個SAS SWITCH41連接為例進行說明。也就是同一管理節點40可以同時管理多個通過SAS SWITCH41連接的儲存陣列42和計算部件43。該管理節點40通過SAS SWITCH41提供的管理介面與SAS SWITCH41連接。與同一管理節點40連接的多個SAS SWITCH41上所連接的計算部件43和儲存陣列42的數量可以相同,也可以不同。在連接數量相同情況下,為便於管理可以針對該多個SAS SWITCH41採用相同的管理策略(即為計算部件43分配儲存部件420的策略)。 The management node 40 is used to allocate the storage component 42 connected to the SAS SWITCH 41 with the computing component 43 for the computing component 43. It should be noted that there is at least one SAS SWITCH 41 connected to one management node 40 in the management system. In FIG. 4, only the connection of the management node 40 and one SAS SWITCH 41 is taken as an example for illustration. That is, the same management node 40 can simultaneously manage multiple storage arrays 42 and computing components 43 connected through SAS SWITCH 41. The management node 40 is connected to the SAS SWITCH 41 through the management interface provided by the SAS SWITCH 41. The number of computing components 43 and storage arrays 42 connected to multiple SAS SWITCHs 41 connected to the same management node 40 may be the same or different. In the case of the same number of connections, the same management strategy (that is, the strategy of allocating the storage component 420 to the computing component 43) can be adopted for the multiple SAS SWITCHs 41 to facilitate management.

所述管理節點40可以為已有的計算設備,也可以為本發明實施例提供的與SAS SWITCH41連接的計算設備之一,或者為計算設備中的管理程序。 The management node 40 may be an existing computing device, one of the computing devices connected to the SAS SWITCH 41 provided in the embodiment of the present invention, or a management program in the computing device.

為提高可靠性,本發明實施例的管理節點40包括兩個互為主備的管理設備(雙管理節點),兩個互為主備的管理設備可通過USB(通用串行匯流排)信號同步心跳,且兩個互為主備的管理設備實時或定期同步所保存的資訊,以保證在主管理設備故障情況下,備用管理設備可替代故障的管理設備的管理工作。 In order to improve reliability, the management node 40 of the embodiment of the present invention includes two mutually-active management devices (dual management nodes), and the two mutually-active management devices can be synchronized through a USB (Universal Serial Bus) signal. Heartbeat, and two mutually-active management devices synchronize the stored information in real time or periodically to ensure that in the event of a failure of the primary management device, the backup management device can replace the management work of the failed management device.

另外,為進一步提高可靠性,本發明實施例可將每台管理設備包含的儲存部件設置為互為主備關係,也就是將每台管理設備所包含的儲存部件分為兩組,其中一組作為主儲存部件,另一組作為主儲存部件的備份,以保證在主儲存部件故障情況下,備用儲存部件可以替代主儲存部件的工作,以降低由於管理節點故障對計算設備工作的影響。 In addition, in order to further improve reliability, the embodiment of the present invention may set the storage components included in each management device to be in a mutual master/backup relationship, that is, divide the storage components included in each management device into two groups, one of which is As the main storage component, the other group serves as the backup of the main storage component to ensure that in the event of a failure of the main storage component, the backup storage component can replace the work of the main storage component to reduce the impact of the management node failure on the operation of the computing device.

通過上述互為主備的管理設備以及管理設備中互為主備的儲存部件有效保證了該系統的可靠性,降低由於管理設備的故障導致計算設備無法正常工作的幾率。 The reliability of the system is effectively guaranteed through the above-mentioned mutually-active management equipment and the mutually-active storage components in the management equipment, and the probability that the computing equipment cannot work normally due to the failure of the management equipment is reduced.

本發明實施例所述的系統可控制各設備的上電先後順序,各設備的上電時序圖如圖5中所示,由圖5可以看出,在該系統中管理節點40首先上電,也就是旁路電源上電。在管理節點40上電過程中,主電準備就緒,所述主電為除管理節點40外該系統中其他設備的電源。在管理節點40上電啟動完成後,由該管理節點40控制其他設備的上電順序。也就是該管理節點40上電啟動完成後可控制包括SAS SWITCH41、儲存陣列42和計算部件43在 內的其他設備的上電順序。該其他設備的上電順序可以為:控制SAS SWITCH41先上電,之後儲存陣列42和計算部件43可同步上電。 The system according to the embodiment of the present invention can control the power-on sequence of each device. The power-on sequence diagram of each device is shown in FIG. 5. As can be seen from FIG. 5, the management node 40 is first powered on in the system. That is, the bypass power supply is powered on. During the power-on process of the management node 40, the main power is ready, and the main power is the power supply of other devices in the system except the management node 40. After the management node 40 is powered on and started, the management node 40 controls the power-on sequence of other devices. That is, the management node 40 can control the power-on sequence of other devices including the SAS SWITCH 41, the storage array 42 and the computing unit 43 after the power-on startup is completed. The power-on sequence of the other devices may be: control the SAS SWITCH 41 to power on first, and then the storage array 42 and the computing component 43 can be powered on synchronously.

可以理解的是,儲存陣列42上電即為儲存部件420上電。在該系統中只有在管理節點40上電啟動後,才可以執行為計算設備的計算部件43分配儲存部件42的工作,若打亂上述各設備的上電順序,儲存陣列42和計算部件43先於SAS SWITCH41上電,或先於管理節點上電,或SAS SWITCH41先於管理節點40上電,則上電後的各設備需等待管理節點40上電啟動完成後才能正常工作,此過程將增加本系統的功耗。可見,按照本發明實施例提供的各設備的上電順序可有效降低功耗。 It can be understood that when the storage array 42 is powered on, the storage component 420 is powered on. In this system, only after the management node 40 is powered on, can the work of allocating the storage component 42 to the computing component 43 of the computing device be executed. If the power-on sequence of the aforementioned devices is disrupted, the storage array 42 and the computing component 43 will be Power on SAS SWITCH41, or power on before the management node, or SAS SWITCH41 before power on the management node 40, then each device after power on can work normally after the power on of the management node 40 is completed, this process will increase The power consumption of the system. It can be seen that the power-on sequence of devices provided in the embodiments of the present invention can effectively reduce power consumption.

其中,管理節點40為計算部件43分配儲存部件420的具體表現為:計算部件43可以訪問並使用為其分配的儲存部件420。也就是,管理節點40為計算部件43分配儲存部件420的過程即為為計算部件43開通相應儲存部件420訪問及使用權限的過程,同樣亦為設置計算部件43與儲存部件420匹配關係的過程。在依據分配規則為計算部件43分配儲存部件420完成後,可記錄計算部件43與儲存部件420的匹配關係。由於SAS SWITCH41的每一介面具有一個地址(或編號),每一介面與計算部件43或儲存陣列42連接,則與該介面連接的計算部件43或儲存陣列42的地址即為該SAS SWITCH的介面的地 址。若與一SAS SWITCH41的介面連接的為儲存陣列42,該儲存陣列42中包含多個儲存部件420,對於儲存陣列中的每一儲存部件420具有唯一的地址(或編號)。則在為計算部件43分配儲存部件420後,記錄計算部件43與儲存部件420的匹配關係時可記錄計算部件43與所分配的儲存部件420的地址的對應關係。 The specific expression of the management node 40 allocating the storage component 420 to the computing component 43 is as follows: the computing component 43 can access and use the storage component 420 allocated to it. That is, the process of the management node 40 assigning the storage component 420 to the computing component 43 is a process of enabling the computing component 43 to access and use the corresponding storage component 420, and it is also a process of setting the matching relationship between the computing component 43 and the storage component 420. After allocating the storage component 420 to the computing component 43 according to the distribution rule, the matching relationship between the computing component 43 and the storage component 420 can be recorded. Since each interface of SAS SWITCH 41 has an address (or number), and each interface is connected to computing component 43 or storage array 42, the address of computing component 43 or storage array 42 connected to the interface is the interface of the SAS SWITCH the address of. If the storage array 42 is connected to the interface of a SAS SWITCH 41, the storage array 42 includes a plurality of storage components 420, and each storage component 420 in the storage array has a unique address (or number). Then, after the storage component 420 is allocated to the computing component 43, when the matching relationship between the computing component 43 and the storage component 420 is recorded, the correspondence relationship between the computing component 43 and the address of the allocated storage component 420 can be recorded.

其中,所述管理節點40在為計算部件43分配儲存部件42時被配置為:在保留指定數量的儲存部件420處於未分配狀態情況下,將除所述指定數量的儲存部件420外的儲存部件420分配給計算部件43。 Wherein, when the management node 40 allocates the storage component 42 to the computing component 43, it is configured to store components other than the specified number of storage components 420 when the designated number of storage components 420 are reserved in an unallocated state. 420 is allocated to the calculation component 43.

其中,在儲存部件420位於儲存陣列42中的情況下,保留指定數量的儲存部件420即為針對每個儲存陣列42保留指定數量的儲存部件420處於未分配狀態,即保留儲存陣列42中指定數量的儲存部件420不分配給任何計算部件43。該保留的指定數量的儲存部件420可用於在分配給計算部件43的儲存部件故障情況下,作為該故障的儲存部件的備份。也就是該管理節點40被配置為:在分配給計算部件43的儲存部件420故障情況下,使用保留的所述指定數量的儲存部件420替代故障的儲存部件420,以保證不影響與該故障的儲存部件420連接的計算部件43的正常工作。 Wherein, when the storage component 420 is located in the storage array 42, reserving a specified number of storage components 420 means that a specified number of storage components 420 are reserved for each storage array 42 in an unallocated state, that is, a specified number of storage components 420 in the storage array 42 are reserved. The storage component 420 is not allocated to any computing component 43. The reserved designated number of storage components 420 can be used as a backup of the failed storage component in the event that the storage component allocated to the computing component 43 fails. That is, the management node 40 is configured to: in the event that the storage component 420 allocated to the computing component 43 fails, replace the failed storage component 420 with the reserved storage component 420 of the specified number to ensure that it does not affect the failure of the storage component 420. The computing component 43 connected to the storage component 420 works normally.

對於每個儲存陣列42中所保留的儲存部件420的數量可以為一個或兩個,或與分配給任一計算部件的儲存部 件420的數量相同。另外,每個儲存陣列42中保留的指定數量的儲存部件420的數量可以相同也可以不同。可以理解的是,為便於管理,一般將每個儲存陣列中保留的指定數量的儲存部件420的數量設置為相同。 The number of storage components 420 reserved for each storage array 42 may be one or two, or the same as the number of storage components 420 allocated to any computing component. In addition, the number of the designated number of storage components 420 reserved in each storage array 42 may be the same or different. It can be understood that, for ease of management, the number of the designated number of storage components 420 reserved in each storage array is generally set to be the same.

所述管理節點40在為計算部件43分配儲存部件42時還可被配置為:將儲存陣列42中的多個儲存部件420分成與所述計算部件43的數量相同的份數分配給所述計算部件43。 When the management node 40 allocates the storage component 42 to the computing component 43, it may also be configured to: divide the storage components 420 in the storage array 42 into the same number of the computing components 43 and assign them to the computing component. Parts 43.

也就是,針對一個儲存陣列42,將其包含的多個儲存部件420分成與計算部件43的數量相同的份數分配給所述計算部件43。由於一般情況下,與SAS SWITCH連接的儲存陣列的數量以及儲存陣列中包含的儲存部件的數量會大於與該SAS SWITCH連接的計算部件的數量,也就是與SAS SWITCH連接的儲存部件足夠分配給連接於SAS SWITCH上的計算部件,因此,不會出現儲存陣列中儲存部件的數量小於連接於SAS SWITCH是的計算部件的數量。 That is, for one storage array 42, the plurality of storage components 420 included in the storage array 42 are divided into the same number of the calculation components 43 and allocated to the calculation components 43. In general, the number of storage arrays connected to the SAS SWITCH and the number of storage components contained in the storage array will be greater than the number of computing components connected to the SAS SWITCH, that is, the storage components connected to the SAS SWITCH are sufficient for the connection Therefore, the number of storage components in the storage array will not be less than the number of computing components connected to SAS SWITCH.

例如,與SAS SWITCH41連接的儲存陣列42為20個,且每一儲存陣列42中包含60個儲存部件420,與SAS SWITCH41連接的計算部件43為10個,則依照本規則,將每個儲存陣列42中的60個儲存部件420分成10份,每一份分配給一個計算部件43。其中,可將儲存陣列42中的儲存部件420平均分成與計算部件43的數量相同的份數,也可隨機分成與計算部件的數量相同的份數。 即,可將該儲存陣列42中的60個儲存部件420平均分成10份,則每份包含6個儲存部件,即分配給每個計算部件6個儲存部件。或將儲存陣列42中的60個儲存部件420隨機分成10份,每份包含的儲存部件420的數量不等,例如,可以為5個、10個、6個或8個等等,將隨機劃分後的儲存部件420分配給計算部件43。 For example, there are 20 storage arrays 42 connected to SAS SWITCH 41, and each storage array 42 contains 60 storage components 420, and there are 10 computing components 43 connected to SAS SWITCH 41. According to this rule, each storage array The 60 storage parts 420 in 42 are divided into 10 parts, and each part is allocated to a calculation part 43. Wherein, the storage components 420 in the storage array 42 can be equally divided into the same number of parts as the number of the calculation parts 43, or randomly divided into the same number of parts as the number of the calculation parts. That is, the 60 storage components 420 in the storage array 42 can be equally divided into 10 parts, and each part contains 6 storage parts, that is, 6 storage parts are allocated to each computing part. Or randomly divide the 60 storage components 420 in the storage array 42 into 10 parts, and the number of storage parts 420 contained in each part varies, for example, it can be 5, 10, 6, or 8, etc., which will be divided randomly The subsequent storage part 420 is allocated to the calculation part 43.

本規則是將每一個儲存陣列42中的儲存部件420都分成與計算部件43相同數量的份數分配給計算部件43,因此,該分配規則可將同一儲存陣列中的儲存部件420分配給連接於SAS SWITCH41上的每個計算部件43,這樣,在該儲存陣列42故障情況下,只對計算部件430的一小部分工作產生影響,即,有效降低了儲存部件420故障對計算部件的影響。 This rule divides the storage components 420 in each storage array 42 into the same number of shares as the computing component 43 and assigns them to the computing component 43. Therefore, the distribution rule can allocate the storage components 420 in the same storage array to the components connected to the computing component 43. Each computing component 43 on the SAS SWITCH 41, in this way, when the storage array 42 fails, only a small part of the work of the computing component 430 is affected, that is, the impact of the storage component 420 failure on the computing component is effectively reduced.

所述管理節點40還可被配置為:獲取儲存部件420被計算部件43使用的狀態;依據所述儲存部件420被計算部件43使用的狀態調整分配給所述計算部件43的儲存部件420。 The management node 40 may also be configured to: obtain the status of the storage component 420 used by the computing component 43; adjust the storage component 420 allocated to the computing component 43 according to the status of the storage component 420 being used by the computing component 43.

也就是,明本發明實施例在初始為計算部件分配儲存部件後,實時或定期獲取分配給計算部件的儲存部件被計算部件使用的狀態。所述使用狀態即儲存部件的儲存空間是否被使用,以及使用的比率等。 That is, it is clear that the embodiment of the present invention, after initially allocating storage components to the computing components, obtains the status of the storage components allocated to the computing components being used by the computing components in real time or periodically. The usage status refers to whether the storage space of the storage component is used, and the used ratio.

獲取該儲存部件被計算部件使用的狀態的目的在於,可以依據所述儲存部件計算部件使用的狀態調整分配給所述計算部件的儲存部件的數量,包括: 當儲存部件被計算部件使用比率低於設定下限值時,減少分配給該計算部件的儲存部件,即從分配給該計算部件的儲存部件中取消未被佔用的儲存部件中的一部分或全部。例如,若獲取到儲存部件被計算部件使用率低於60%,則取消未被使用的40%的儲存部件,或取消30%的未被使用的儲存部件等等。或者,當儲存部件被計算部件使用率高於設定上限值時,增加為該計算部件分配的儲存部件。例如,若獲取到儲存部件被計算部件使用率高於95%,則再為該計算部件分配一個或兩個儲存部件等等,或者將從其他計算部件中取消的全部或部分儲存部件分配給使用率高於設定上限值的計算部件。 The purpose of obtaining the status of the storage component used by the computing component is to adjust the number of storage components allocated to the computing component according to the status of the computing component used by the storage component, including: When the lower limit value is set, the storage components allocated to the calculation component are reduced, that is, part or all of the unoccupied storage components are removed from the storage components allocated to the calculation component. For example, if it is obtained that the utilization rate of the calculated component of the storage component is less than 60%, then 40% of the unused storage component will be cancelled, or 30% of the unused storage component will be cancelled, and so on. Or, when the usage rate of the calculated component of the storage component is higher than the set upper limit, the storage component allocated to the computing component is added. For example, if it is obtained that the utilization rate of the calculated component of the storage component is higher than 95%, then one or two storage components will be allocated to the computing component, etc., or all or part of the storage components cancelled from other computing components will be allocated to the use A calculation component whose rate is higher than the set upper limit.

其中,所獲取的儲存部件的使用率可以為規定時間長度範圍內的平均佔用率。 Wherein, the obtained utilization rate of the storage component may be an average occupancy rate within a specified time length.

所述管理節點40還可被配置為:判斷所述儲存部件的服務時限以及計算部件的服務時限是否到達各自的規定時限;在儲存部件的服務時限到達規定時限和/或計算部件的服務時限到達規定時限情況下,提供更換到達規定時限的儲存部件或計算部件的提示。 The management node 40 may also be configured to: determine whether the service time limit of the storage component and the service time limit of the computing component reach their respective prescribed time limits; when the service time limit of the storage component reaches the prescribed time limit and/or the service time limit of the computing component reaches the prescribed time limit In the case of a specified time limit, prompts for replacement of storage components or calculation components that have reached the specified time limit are provided.

上述判斷操作可定期執行,判斷儲存部件及計算部件的服務時限是否到達規定時限即判斷儲存部件及計算部件是否達到質保時間。其中,可通過保存每一計算部件及儲存部件的規定時限,判斷當前時間是否為所保存的計算部 件及儲存部件的規定時限,若達到其中任一計算部件或儲存部件的規定時限,則提示更換所述計算部件或儲存部件。例如,在其中一計算部件的服務時限達到規定時限情況下,可建立新的計算部件來替代達到規定時限的計算部件,而不影響儲存部件的使用,也就是儲存部件可繼續被使用。實現了計算部件與儲存部件均最大限度的被利用。 The above judgment operation can be performed periodically to judge whether the service time limit of the storage component and the calculation component reaches the prescribed time limit, that is, whether the storage component and the calculation component reach the warranty time. Among them, it can be judged whether the current time is the specified time limit of the saved calculation component and storage component by saving the specified time limit of each calculation component and storage component. If the specified time limit of any of the calculation components or storage components is reached, it will be prompted to replace The computing component or storage component. For example, when the service time limit of one of the computing components reaches the prescribed time limit, a new computing component can be created to replace the computing component that reaches the prescribed time limit without affecting the use of the storage component, that is, the storage component can continue to be used. The computing components and storage components are used to the maximum extent.

綜上所述,本發明實施例通過將計算設備中的儲存部件從計算設備中分離出來,將分離出來的儲存部件通過SAS SWITCH與計算設備中的計算部件連接,其至少具有如下優點: In summary, the embodiment of the present invention separates the storage component in the computing device from the computing device, and connects the separated storage component to the computing component in the computing device through SAS SWITCH, which has at least the following advantages:

1、實現了計算資源與儲存資源的分離,方便了對計算資源和儲存資源進行分別的維護和管理; 1. The separation of computing resources and storage resources is realized, which facilitates the separate maintenance and management of computing resources and storage resources;

2、計算部件和儲存部件的生命週期分開,便於對不同生命週期的部件進行最大限度的利用。 2. The life cycles of computing components and storage components are separated to facilitate the maximum use of components in different life cycles.

3、實現了計算部件與儲存部件的解耦,可以根據計算部件的需要為其分配儲存部件,實現了計算部件與儲存部件的精細化、靈活分配; 3. The decoupling of computing components and storage components is realized, storage components can be allocated to computing components according to their needs, and the refined and flexible allocation of computing components and storage components is realized;

4、可維護性增強,且有效減少維護工作量。 4. The maintainability is enhanced, and the maintenance workload is effectively reduced.

需要注意的是,本發明可在軟體和/或軟體與硬體的組合體中被實施,例如,可採用專用積體電路(ASIC)、通用目的計算機或任何其他類似硬體設備來實現。在一個實施例中,本發明的軟體程序可以通過處理器執行以實現上文所述步驟或功能。同樣地,本發明的軟體程序(包括相關的資料結構)可以被儲存到計算機可讀 記錄媒體中,例如,RAM記憶體,磁或光驅動器或軟磁盤及類似設備。另外,本發明的一些步驟或功能可採用硬體來實現,例如,作為與處理器配合從而執行各個步驟或功能的電路。 It should be noted that the present invention can be implemented in software and/or a combination of software and hardware. For example, it can be implemented using a dedicated integrated circuit (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software program of the present invention can be executed by a processor to realize the above-mentioned steps or functions. Similarly, the software program (including related data structure) of the present invention can be stored in a computer-readable recording medium, such as RAM memory, magnetic or optical drives or floppy disks and similar devices. In addition, some steps or functions of the present invention may be implemented by hardware, for example, as a circuit that cooperates with a processor to perform various steps or functions.

另外,本發明的一部分可被應用為計算機程序產品,例如計算機程序指令,當其被計算機執行時,通過該計算機的操作,可以調用或提供根據本發明的方法和/或技術方案。而調用本發明的方法的程序指令,可能被儲存在固定的或可移動的記錄媒體中,和/或通過廣播或其他信號承載媒體中的資料流而被傳輸,和/或被儲存在根據所述程序指令運行的計算機設備的工作記憶體中。在此,根據本發明的一個實施例包括一個裝置,該裝置包括用於儲存計算機程序指令的記憶體和用於執行程序指令的處理器,其中,當該計算機程序指令被該處理器執行時,觸發該裝置運行基於前述根據本發明的多個實施例的方法和/或技術方案。 In addition, a part of the present invention can be applied as a computer program product, such as a computer program instruction, when it is executed by a computer, through the operation of the computer, the method and/or technical solution according to the present invention can be invoked or provided. The program instructions for invoking the method of the present invention may be stored in a fixed or removable recording medium, and/or be transmitted through a data stream in a broadcast or other signal-bearing medium, and/or be stored according to the Said program instructions run in the working memory of the computer equipment. Here, an embodiment according to the present invention includes a device including a memory for storing computer program instructions and a processor for executing program instructions, wherein when the computer program instructions are executed by the processor, Triggering the operation of the device is based on the aforementioned methods and/or technical solutions according to multiple embodiments of the present invention.

對於本領域技術人員而言,顯然本發明不限於上述示範性實施例的細節,而且在不背離本發明的精神或基本特徵的情況下,能夠以其他的具體形式實現本發明。因此,無論從哪一點來看,均應將實施例看作是示範性的,而且是非限制性的,本發明的範圍由所附申請專利範圍而不是上述說明限定,因此旨在將落在申請專利範圍的等同要件的含義和範圍內的所有變化涵括在本發明內。不應將申請專利範圍中的任何附圖標記視為限制所涉及的申請專利範 圍。此外,顯然“包括”一詞不排除其他單元或步驟,單數不排除複數。系統申請專利範圍中陳述的多個單元或裝置也可以由一個單元或裝置通過軟體或者硬體來實現。第一,第二等詞語用來表示名稱,而並不表示任何特定的順序。 For those skilled in the art, it is obvious that the present invention is not limited to the details of the above exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or basic characteristics of the present invention. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive. The scope of the present invention is defined by the scope of the appended patent application rather than the above description, so it is intended to fall within the application. The meaning of the equivalent elements of the patent scope and all changes within the scope are included in the present invention. Any reference signs in the scope of the patent application should not be regarded as limiting the scope of the patent application involved. In addition, it is obvious that the word "including" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the scope of the system patent application can also be implemented by one unit or device through software or hardware. Words such as first and second are used to denote names, but do not denote any specific order.

20‧‧‧計算部件 20‧‧‧Computer components

21‧‧‧介面 21‧‧‧Interface

Claims (13)

一種計算設備儲存部件的管理方法,所述計算設備包括計算部件,所述計算部件與串行的小型計算機系統介面交換機SAS SWITCH連接,所述串行的小型計算機系統介面交換機SAS SWITCH同時與儲存部件連接,所述方法包括:獲取與所述串行的小型計算機系統介面交換機SAS SWITCH連接的所述儲存部件資訊及計算部件資訊;依據獲取的所述儲存部件資訊及所述計算部件資訊基於分配規則為所述計算部件分配所述儲存部件;所述儲存部件資訊包括所述儲存部件被所述計算部件使用的狀態以及所述儲存部件的服務時限,所述計算部件資訊包括所述計算部件的服務時限;判斷所述儲存部件的服務時限以及所述計算部件的服務時限是否到達各自的規定時限;在所述儲存部件的服務時限到達規定時限和/或所述計算部件的服務時限到達規定時限情況下,提供更換到達規定時限的所述儲存部件和/或所述計算部件的提示。 A method for managing storage components of a computing device, the computing device comprising a computing component, the computing component is connected to a serial small computer system interface switch SAS SWITCH, and the serial small computer system interface switch SAS SWITCH is simultaneously with the storage component The method includes: acquiring the storage component information and the computing component information connected to the serial small computer system interface switch SAS SWITCH; based on the distribution rule based on the acquired storage component information and the computing component information The storage component is allocated to the computing component; the storage component information includes the status of the storage component being used by the computing component and the service time limit of the storage component, and the computing component information includes the service of the computing component Time limit; determine whether the service time limit of the storage component and the service time limit of the computing component reach their respective prescribed time limits; when the service time limit of the storage component reaches the prescribed time limit and/or the service time limit of the computing component reaches the prescribed time limit Next, a prompt to replace the storage component and/or the computing component that has reached the prescribed time limit is provided. 如申請專利範圍第1項所述的方法,其中,與所述串行的小型計算機系統介面交換機SAS SWITCH連接的所述儲存部件位於儲存陣列中,以所述儲存陣列的統一介面與所述串行的小型計算機系統介面交換機SAS SWITCH連接。 The method described in item 1 of the scope of patent application, wherein the storage component connected to the serial small computer system interface switch SAS SWITCH is located in a storage array, and the unified interface of the storage array is connected to the serial The SAS SWITCH is connected to the small computer system interface switch. 如申請專利範圍第2項所述的方法,其中,為所 述計算部件分配的所述儲存部件位於多個儲存陣列中。 The method described in item 2 of the scope of patent application, wherein The storage components allocated by the computing component are located in a plurality of storage arrays. 如申請專利範圍第2項或第3項所述的方法,其中,所述儲存部件資訊包括所述儲存部件數量,所述計算部件資訊包括所述計算部件數量,依據獲取的所述儲存部件資訊及所述計算部件資訊基於分配規則為所述計算部件分配所述儲存部件包括:在保留指定數量的所述儲存部件處於未分配狀態情況下,將除所述指定數量的所述儲存部件外的所述儲存部件分配給所述計算部件。 The method according to item 2 or item 3 of the scope of patent application, wherein the storage component information includes the number of storage components, and the calculation component information includes the number of calculation components, based on the acquired storage component information And the computing component information allocating the storage component to the computing component based on the distribution rule includes: in the case that a specified number of the storage components are reserved in an unallocated state, removing the storage components except the specified number of storage components The storage part is allocated to the calculation part. 如申請專利範圍第4項所述的方法,其中,所述方法還包括:在分配給所述計算部件的所述儲存部件故障情況下,使用保留的所述指定數量的所述儲存部件替代故障的所述儲存部件。 The method according to item 4 of the scope of patent application, wherein the method further comprises: in the case of a failure of the storage component allocated to the calculation component, replacing the failure with the reserved storage component of the specified number The storage part. 如申請專利範圍第1項所述的方法,其中,所述儲存部件資訊包括所述儲存部件被所述計算部件使用的狀態,依據獲取的所述儲存部件資訊及所述計算部件資訊基於分配規則為所述計算部件分配所述儲存部件包括:依據所述儲存部件被計算部件使用的狀態調整分配給所述計算部件的所述儲存部件。 The method according to item 1 of the scope of patent application, wherein the storage component information includes the state of the storage component being used by the computing component, and the acquired storage component information and the computing component information are based on allocation rules Allocating the storage component to the computing component includes: adjusting the storage component allocated to the computing component according to a state in which the storage component is used by the computing component. 一種計算設備儲存部件的管理系統,包括如下設備:管理節點、與管理節點連接的至少一個串行的小型計算機系統介面交換機SAS SWITCH、與所述串行的小型計算機系統介面交換機SAS SWITCH連接的至少一個儲存 部件和至少一個計算設備的計算部件,其中,所述管理節點通過所述串行的小型計算機系統介面交換機SAS SWITCH提供的管理介面與所述串行的小型計算機系統介面交換機SAS SWITCH連接,用於為連接於所述串行的小型計算機系統介面交換機SAS SWITCH上的所述計算部件分配所述儲存部件;其中,所述上電順序為:所述串行的小型計算機系統介面交換機SAS SWITCH上電後,所述儲存部件和所述計算部件上電。 A management system for storage components of computing equipment, comprising the following equipment: a management node, at least one serial small computer system interface switch SAS SWITCH connected to the management node, and at least one serial small computer system interface switch SAS SWITCH connected to the serial small computer system interface switch SAS SWITCH. A store Component and at least one computing component of a computing device, wherein the management node is connected to the serial small computer system interface switch SAS SWITCH through a management interface provided by the serial small computer system interface switch SAS SWITCH for Allocate the storage components to the computing components connected to the serial small computer system interface switch SAS SWITCH; wherein, the power-on sequence is: the serial small computer system interface switch SAS SWITCH is powered on After that, the storage component and the computing component are powered on. 如申請專利範圍第7項所述的系統,其中,所述管理節點包括互為主備的兩個管理設備。 As the system described in item 7 of the scope of patent application, wherein the management node includes two management devices that are active and backup to each other. 如申請專利範圍第8項所述的系統,其中,所述管理設備包括互為主備的所述儲存部件。 The system according to item 8 of the scope of patent application, wherein the management device includes the storage components that are mutually backup. 如申請專利範圍第7項所述的系統,其中,所述管理節點被配置為:控制所述串行的小型計算機系統介面交換機SAS SWITCH、所述儲存部件及所述計算部件的上電順序。 The system according to item 7 of the scope of patent application, wherein the management node is configured to control the power-on sequence of the serial small computer system interface switch SAS SWITCH, the storage component, and the computing component. 如申請專利範圍第7項所述的系統,其中,連接於所述串行的小型計算機系統介面交換機SAS SWITCH上的所述儲存部件與所述計算部件分別位於不同的機櫃內。 The system according to item 7 of the scope of patent application, wherein the storage component and the computing component connected to the serial small computer system interface switch SAS SWITCH are respectively located in different cabinets. 如申請專利範圍第7項所述的系統,其中,與所述串行的小型計算機系統介面交換機SAS SWITCH連接 的所述儲存部件位於儲存陣列中,通過儲存陣列的統一與所述串行的小型計算機系統介面交換機SAS SWITCH連接。 The system described in item 7 of the scope of patent application, wherein the serial small computer system interface switch SAS SWITCH is connected The storage component is located in the storage array, and is connected to the serial small computer system interface switch SAS SWITCH through the unity of the storage array. 如申請專利範圍第12項所述的系統,其中,所述管理節點被配置為:為所述計算部件分配的所述儲存部件位於多個儲存陣列中。 The system according to item 12 of the scope of patent application, wherein the management node is configured such that the storage component allocated to the computing component is located in a plurality of storage arrays.
TW106102229A 2017-01-20 2017-01-20 Computing equipment and computing equipment storage component management method and system TWI733744B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106102229A TWI733744B (en) 2017-01-20 2017-01-20 Computing equipment and computing equipment storage component management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106102229A TWI733744B (en) 2017-01-20 2017-01-20 Computing equipment and computing equipment storage component management method and system

Publications (2)

Publication Number Publication Date
TW201828086A TW201828086A (en) 2018-08-01
TWI733744B true TWI733744B (en) 2021-07-21

Family

ID=63960545

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106102229A TWI733744B (en) 2017-01-20 2017-01-20 Computing equipment and computing equipment storage component management method and system

Country Status (1)

Country Link
TW (1) TWI733744B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109960614A (en) * 2019-03-27 2019-07-02 英业达科技有限公司 Server system and management method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120117328A1 (en) * 2010-11-04 2012-05-10 Lsi Corporation Managing a Storage Cache Utilizing Externally Assigned Cache Priority Tags
US8229985B2 (en) * 2005-02-07 2012-07-24 Cisco Technology, Inc. Arrangement for a distributed file system having data objects mapped independent of any data object attribute
US20140082288A1 (en) * 2012-09-18 2014-03-20 Netapp, Inc. System and method for operating a system to cache a networked file system
CN105867842A (en) * 2016-03-23 2016-08-17 天津书生云科技有限公司 Access control method and apparatus for storage system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8229985B2 (en) * 2005-02-07 2012-07-24 Cisco Technology, Inc. Arrangement for a distributed file system having data objects mapped independent of any data object attribute
US20120117328A1 (en) * 2010-11-04 2012-05-10 Lsi Corporation Managing a Storage Cache Utilizing Externally Assigned Cache Priority Tags
US20140082288A1 (en) * 2012-09-18 2014-03-20 Netapp, Inc. System and method for operating a system to cache a networked file system
CN105867842A (en) * 2016-03-23 2016-08-17 天津书生云科技有限公司 Access control method and apparatus for storage system

Also Published As

Publication number Publication date
TW201828086A (en) 2018-08-01

Similar Documents

Publication Publication Date Title
JP4119162B2 (en) Multiplexed computer system, logical computer allocation method, and logical computer allocation program
US10310756B2 (en) Node interconnection apparatus, resource control node, and server system
JP5068056B2 (en) Failure recovery method, computer system and management server
US8359415B2 (en) Multi-root I/O virtualization using separate management facilities of multiple logical partitions
US8521703B2 (en) Multiple node/virtual input/output (I/O) server (VIOS) failure recovery in clustered partition mobility
JP5577412B2 (en) Computer system, migration method and management server
CN110098946B (en) Method and device for deploying virtualized network element equipment
US20120272241A1 (en) Computer system and virtual machine control method
US10171382B2 (en) Mechanism of identifying available memory resources in a network of multi-level memory modules
JP2016526735A (en) Virtual hadoop manager
JP6840099B2 (en) Service provision system, resource allocation method, and resource allocation program
US20140013153A1 (en) Managing use of lease resources allocated on fallover in a high availability computing environment
US9792142B2 (en) Information processing device and resource allocation method
JP2010003061A (en) Computer system and method for changing i/o configuration thereof
WO2015114816A1 (en) Management computer, and management program
JP2009075718A (en) Method of managing virtual i/o path, information processing system, and program
CN111694789A (en) Embedded reconfigurable heterogeneous determination method, system, storage medium and processor
US9043575B2 (en) Managing CPU resources for high availability micro-partitions
CN114860387B (en) I/O virtualization method of HBA controller for virtualization storage application
CN114518955A (en) Flunk cloud native deployment architecture method and system based on kubernets
TWI733744B (en) Computing equipment and computing equipment storage component management method and system
JP6961045B2 (en) System and its control method and program
CN104052799B (en) A kind of method that High Availabitity storage is realized using resource ring
US11294591B2 (en) Apparatus configured to create extended configuration proposal of storage system including multiple notes
CN110677509B (en) Automatic address configuration system suitable for high-performance computer