CN1808391A - Method for establishing storage area network system - Google Patents

Method for establishing storage area network system Download PDF

Info

Publication number
CN1808391A
CN1808391A CN 200510004541 CN200510004541A CN1808391A CN 1808391 A CN1808391 A CN 1808391A CN 200510004541 CN200510004541 CN 200510004541 CN 200510004541 A CN200510004541 A CN 200510004541A CN 1808391 A CN1808391 A CN 1808391A
Authority
CN
China
Prior art keywords
data
level
storage area
area network
setting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200510004541
Other languages
Chinese (zh)
Other versions
CN100409195C (en
Inventor
宋建福
刘文涵
陈蕴弘
耿新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CNB2005100045412A priority Critical patent/CN100409195C/en
Publication of CN1808391A publication Critical patent/CN1808391A/en
Application granted granted Critical
Publication of CN100409195C publication Critical patent/CN100409195C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Disclosed is a method for establishing storage area network system to provide management recovery after storage area network (SAN) interruption. It comprises following steps: on SAN system layer, writing upper layer contents according to task command, generating relation data between the present layer and upper layer and saving the data; performing entity operation to establish the present layer.

Description

Set up the method for storage area network system
Technical field
The present invention relates to the management method of a kind of SAN system, particularly a kind of method of setting up storage area network (SAN) system.
Background technology
SAN represents Storage Area Network (storage area network), mainly is to utilize special-purpose express network channel for example fiber channel (Fibre Channel) construction and directly binding between storage assembly and server.Storage area network (SAN) is new data and data storing pattern, and its main advantage is that a large amount of storage devices is dispersed in the corporate environment, uses for the different application server in any place.As long as the user is connected to system with computing machine, the data that just can will be stored in the different location are easily apace handled by " central authoritiesization ", for future reference and analysis.
SAN in the market (Storage Area Network) product offer user's greater security, more high efficiency virtual hard disk binding function, and the space of its virtual hard disk also has open-ended needs.For satisfying these demands, the general structure that adopts as shown in Figure 1.
As shown in the figure, SAN system management polylith physical hard disk 1 is set up Physical Extents at every physical hard disk, is called subregion (Partition) layer 3; Set up redundant inexpensive disk driver array (Redundant Arrays of Inexpensive Disks by these Physical Extents, RAID) 5, RAID is used for a kind of method of dispersed information to many disks, the memory device of forming a level, the capacity of integration, higher binding efficient are provided, and exchange higher security for certain data redundancy; 7 on volume group VG (VolumeGroup) layer is to use RAID or directly uses Physical Extents to set up a storage unit with separation and is transformed into the virtual memory cell that is easy to manage, because it fundamentally is the spatial integration with physical hard disk, so some occasion is also referred to as dish group DG (Disk Group); Logical volume LV (logical Volume) layer 9 is storage spaces for user's binding of setting up on VG layer 7, and can video by procotol is the virtual hard disk of client, therefore is also referred to as virtual disk VD (Virtual Disk).
The general framework of above SAN system, to set up corresponding D G layer and VD layer according to user's demand, need the foundation of partition layer 3, RAID layer 5, VG layer 7 and LV layer 9 several level, and can be divided into several steps in each level, for example VG layer 7 and LV layer 9 just need respectively system kernel, hardware, configuration information to be operated.And this all step all is correlated with, and very strong logical relation is arranged.Therefore, if in the process of setting up, revising fault has taken place, for example device looses power, system in case of system halt etc., cause process to be terminated and service data is lost, will make generation at all levels chaotic, even system recovery, also can only give up uncompleted execution achievement, restart to execute the task; Perhaps chaotic level takes place in deletion, and it is rebulid.Therefore all clearly indicate in most SAN system: this operating process can not be interrupted, otherwise can cause serious consequence.
Also therefore, how to avoid the serious consequence that produces because of system break, just become now problem anxious to be solved in the SAN system.
Summary of the invention
In view of above problem, fundamental purpose of the present invention is to provide a kind of method of setting up storage area network (SAN) system, its purpose is to provide a kind of stronger protection mechanism for system, but this when seldom occurring interrupting under the fatal situation in system because of cutting off the power supply, realize further security of system protection; By preserving necessary information, after the system recovery running, uncompleted task is finished, repair the correctness of each level of recovery system simultaneously as much as possible.
Furthermore, a kind of method of setting up storage area network (SAN) system provided by the invention, when system unfortunately breaks down, can note carrying out of task, and preserve the framework information of at all levels necessity, thereby behind system recovery, can continue to finish because of uncompleted task before the generation of unusual conditions such as for example outage, perhaps recover to take place chaotic level, the loss of saving system as much as possible.
Therefore, for achieving the above object, a kind of method of setting up storage area network (SAN) system disclosed in this invention, the function of managing to resume after storage area network (SAN) system break is provided, comprise following steps: in a level of SAN system, according to the content of task order and last layer time, produce this hierarchical data and with the relation data of last layer secondary data and store; And the physical operation of this level is set up in execution.
Above-mentioned execution is set up the step of physical operation of this level because of having no progeny in the unusual condition, comprises following steps: carry out the self check of each level; According to each this level and this inferior relation data of this last layer, verify whether the data of each this level are correct, if incorrect, be correct with this data correction then according to relation data; According to correct data, the data manipulation of setting up this level.
After the step of above-mentioned data manipulation of setting up this level, comprise: according to the data of this level, confirm whether the entity of this level is consistent, when inconsistent, carry out the physical operation of this level according to these correct data.
Above-mentioned level can be hard disk level, subregion level, RAID level, RAID-subregion level, VG level, VG-RAID level and LV level.
Below in embodiment, be described in detail detailed features of the present invention and advantage, its content is enough to make any personnel that have the knack of correlation technique to understand technology contents of the present invention and implements according to this, and according to the disclosed content of this instructions, claim and accompanying drawing, any personnel that have the knack of correlation technique can understand relevant purpose of the present invention and advantage easily.
Description of drawings
Fig. 1 is the synoptic diagram of known SAN system architecture;
Fig. 2 is the main flow chart of the managing to resume method of SAN system break of the present invention;
Fig. 3 is the self check restorative procedure process flow diagram of the managing to resume method of SAN system break of the present invention;
Fig. 4 is the method flow diagram that the DG of SAN system sets up;
Fig. 5 is the method flow diagram that the VG of SAN system sets up; And
Fig. 6 is for after using the present invention, and DG sets up the restoration methods process flow diagram after being interrupted.
The number in the figure explanation:
1 physical hard disk
3 subregions (Partition) layer
5 RAID layers
7 volume group VG (Volume Group) layer
9 logical volume LV (logical Volume) layer
Embodiment
For making purpose of the present invention, structure, feature and function thereof there are further understanding, now cooperate embodiment to be described in detail as follows.More than about the explanation of the explanation of content of the present invention and following embodiment in order to demonstration with explain principle of the present invention, and provide patent claim of the present invention further to explain.
A kind of managing to resume method that the SAN system break is provided of the present invention, its cardinal principle is to set up data preservation mechanism, for example data database or data file in the management framework of SAN system.When executing the task, at different levels, all earlier the key message of task is preserved in each level, and then carry out actual operation, make the data of system's actual conditions of this level and record consistent.Definite logical relation is arranged between at all levels the data, and next level will be determined the step that itself will carry out according to these data.
Thus, interrupt because of unusual condition when task executions, can carry out self check at all levels during system recovery, whether each level is correct with reference to the data of inferior this level of data verification of last layer, if incorrect, then revises problem data; Contrast according to the data of record and the actual conditions of system again,, carry out and still uncompleted step before interrupting, finish whole task like this thereby finished if find not corresponding to then system is operated according to correct data.
Main technical flows of the present invention specifies as follows:
See also Fig. 2, be the main flow chart of the managing to resume method of SAN system break of the present invention.
DG etc. is for example set up in operation under the normal condition, and system at first needs to have the function of storage data, for example data database.As shown in the figure, at first, according to the content of task order, with the step (step 201) of task division one-tenth at different levels; In each level, content and the task order inferior according to last layer generate this hierarchical data and the inferior relation data of last layer, preserve (step 202) then; Just carry out actual system entity operation (step 203) then.This gradation entity is operated successfully back (step 204), if next level that continued need carry out, then carries out the step (step 205) of next level again.Otherwise, if the failure of physical operation step then can be pointed out mistake and be withdrawed from operation (step 206).
If this flow process is interrupted because of abnormal cause, for example between step 202 and the step 203, then in the data of preserving, new data are arranged, but not corresponding change the in the entity of system, the two not corresponding to situation occurs; And for example interrupted between step 203 and step 205, then will occur the situation of logical relation mistake between the data of two levels, new data can be used as logic and be identified unusually.
And above-mentioned because of preservation data and the not corresponding to situation of system entity that abnormal cause caused, or the logical relation error situation that is occurred between two hierarchical data all can recover by following self check restorative procedure.
See also Fig. 3, be the self check restorative procedure process flow diagram of the managing to resume method of SAN system break of the present invention.
As shown in the figure, behind system's electrifying startup, progressively starting when at all levels, will carry out the self check process of each level earlier.At first, from data database, read the data (step 301) of this level, check between these data and its last layer secondary data whether logic error is arranged, and the data (step 302) that locate errors, this misdata is still unenforced task step, revises data to recover its correctness (step 306) according to the data logical relation.Then, be according to the correspondent entity (step 303) in the check system with this hierarchical data, comprising the data of just having repaired,, then carry out the inspection (step 305) of next level if the two unanimity (step 304) illustrates that the operation of this level finishes; If inconsistent (step 304) arranged, illustrate that then this level has uncompleted operation steps, then carry out physical operation (step 307) according to the data of repairing, after running succeeded,, then carry out next level and check (step 305) if next level that continued need carry out.
This process is to have comprised self check at all levels, and each level is because of the own characteristic difference, and the system entity of being done operation is also inequality, is all identical but carry out the step of repairing according to data.
First specific embodiment
Lift instantiation explanation operating process of the present invention below.This example is quoted the SAN1.0 project of our exploitation, under linux system, develop, adopting the relevant data base tool of sqlite to carry out data preserves, self check at all levels is carried out when system start-up, and also can trigger in that system is in service, carry out self check and repair the problem of finding, the two course of work is identical.
Data are preserved content
In the system, be divided into hard disk, subregion, RAID, VG, the several levels of LV (referring to Fig. 1) according to architecture design, it is as follows that each level is preserved data content:
Hard disk
ID Unique sign of hard disc data
SN The hard disk product ID
Size Hard disk size
GroupID Dish group (DiskGroup) under the hard disk
JPNum Hard disk is jumped wire size, the sign order
State Hard disk entity current state
Subregion
ID Unique sign of partition data
DiskID Section post indicates at hard disk
Name Partition name
Size Partition size
StartBlock The subregion reference position
State Subregion entity current state
RAID
ID Unique sign of RAID data
Name The RAID title
Level The RAID rank
State RAID entity current state
The RAID-subregion
PartitionID Unique sign of corresponding partition data
RAIDName Corresponding RAID title
RAIDDisk The sequence number of subregion in RAID
Order The order of subregion in affiliated hard disk
VG
ID Unique sign of VG data
Name The VG title
Size The VG size
GroupID VG respective disc group indicates
State VG entity current state
VG--RAID
RAIDID Unique sign of corresponding RAID data
VGID Corresponding VG data indicate
State The order of RAID in affiliated VG
LV
ID Unique sign of LV data
Name The LV title
Size The LV size
VGID The corresponding VG of LV indicates
State LV entity current state
Above-listed form is to describe the required data of this example in order to describe present embodiment, to include only, but not total data table and field.
See also Fig. 4, the method flow diagram of setting up for the DG of SAN system.
As shown in the figure, setting up process with DG is example, because in the SAN project, increased some management information and constituted corresponding DG by VG, so DG foundation is exactly in fact the foundation of VG.
This task is specified by the user and is selected two of hard disk, RAID ranks for use, as the initial conditions of task; Purpose is according to structure choice hard disk shown in Figure 1, set up subregion, RAID and VG successively, and subregion is divided, RAID uses block planning and the planning structure of RAID composition VG all is programmed algorithm control, follows fixing principle, also promptly, the data relationship between two levels is determined.
The flow process of whole task as shown in Figure 4, comprise that selecting hard disk (step 401), subregion to set up (step 403), RAID foundation (step 405), VG foundation (step 407) and DG data sets up (step 409), each step all needs back to run succeeded (step 402, step 404, step 406, step 408, step 410), otherwise prompting failure information (step 411) withdraws from.
Above-mentioned flow of task is equally applicable to other operations such as the deletion, modification of DG.
See also the 5th figure, be the method flow diagram of the VG foundation of SAN system.
The idiographic flow of foundation at all levels all is similar, therefore be that example explains only at this with the flow process of setting up of VG, comprise and obtain RAID data (step 501), set up VG data (step 503), set up VG entity (step 505), each step all needs back to run succeeded (step 502, step 504, step 506), if any unusually then pointing out failure (step 507) to withdraw from.
See also Fig. 6, after using the present invention, DG sets up the restoration methods process flow diagram after being interrupted.
The experience unusual condition is interrupted in the execution when DG sets up, as it is unusual to cut off the power supply, and then after equipment restarted, the self check process of executive system was carried out the self check of each level according to hard disk, subregion, RAID, VG order.With its rejuvenation of VG layer self check process description.
As shown in the figure: an embodiment situation, outage occurs in and reads RAID, and when not setting up the VG data as yet, as among Fig. 5 between step 501 and the step 502.At first read RAID and VG data (step 601), find to have the RAID data not have corresponding VG (step 602 and step 603), then carry out and set up VG data manipulation (step 606), in the program of back, will carry out and set up VG physical operation (step 604); Another embodiment situation, outage occur in that the VG data have been set up and when not setting up entity as yet, as among Fig. 5 between step 502 and the step 503.Read RAID and VG data, do not pinpoint the problems (step 601), discovery VG entity is not set up (step 604) when foundation VG data check system entity subsequently, then carries out and sets up VG physical operation (step 607).
Though the present invention with aforesaid embodiment openly as above, so it is not in order to limit the present invention.Without departing from the spirit and scope of the present invention, change of being done and retouching all belong to scope of patent protection of the present invention.Please refer to appended claim about the protection domain that the present invention defined.

Claims (11)

1. method of setting up storage area network system provides the function of the managing to resume of having no progeny in this storage area network system, comprises following steps:
In a level of this SAN system,, produce a relation data and the storage of this hierarchical data and this last layer secondary data according to a task order and the inferior content of last layer; And
The physical operation of this level is set up in execution.
2. the method for setting up storage area network system as claimed in claim 1, wherein the step of carrying out the physical operation of setting up this level comprises following steps because of having no progeny in the unusual condition:
Carry out the self check of each level;
According to each this level and this inferior relation data of this last layer, verify whether data of each this level are correct, if incorrect, be correct with this data correction then according to this relation data; And
According to these correct data, the data manipulation of setting up this level.
3. the method for setting up storage area network system as claimed in claim 2, wherein set up the step of data manipulation of this level after, comprise:
According to the data of this level, confirm whether the entity of this level is consistent, when inconsistent, carry out the physical operation of this level according to these correct data.
4. the method for setting up storage area network system as claimed in claim 1, wherein this level is selected from one of them of the group that is made of a hard disk level, a subregion level, a redundant inexpensive disk driver array level, redundant inexpensive disk driver array one a subregion level, a volume assembly level, a volume group-redundant inexpensive disk driver array level and a logical volume level.
5. the method for setting up storage area network system as claimed in claim 4, wherein this hard disk level comprises a plurality of data and jumps wire size in order to dish group, hard disk under the unique sign, hard disk product ID, hard disk size, hard disk of expression hard disc data, sign order and hard disk entity current state.
6. the method for setting up storage area network system as claimed in claim 4, wherein this subregion level comprise a plurality of data in order to unique sign, section post of expression partition data in hard disk sign, partition name, partition size, subregion reference position and subregion entity current state.
7. the method for setting up storage area network system as claimed in claim 4 wherein should comprise a plurality of data in order to unique sign of representing the array data of redundant inexpensive disk driver, redundant inexpensive disk driver array title, redundant inexpensive disk driver array rank and redundant inexpensive disk driver array entity current state by redundancy inexpensive disk driver array level.
8. the method for setting up storage area network system as claimed in claim 4 wherein should comprise a plurality of data in order to unique sign of representing corresponding partition data, corresponding redundant inexpensive disk driver array title, sequence number and subregion the order in affiliated hard disk of subregion in redundant inexpensive disk driver array by redundancy inexpensive disk driver array-subregion level.
9. the method for setting up storage area network system as claimed in claim 4, wherein this volume component district level comprise a plurality of data in order to unique sign, the volumegroup name of expression volume group data claim, volume group size, volume group respective disc group indicates and volume group object current state.
10. the method for setting up storage area network system as claimed in claim 4 wherein should volume be organized a redundant inexpensive disk driver array level and is comprised a plurality of data and indicate and the order of redundant inexpensive disk driver array in affiliated volume group in order to unique sign of representing the array data of corresponding redundant inexpensive disk driver, corresponding volume group data.
11. the method for setting up storage area network system as claimed in claim 4, wherein this logical volume level comprises unique sign, logical volume name, logical volume size, logical volume corresponding volume group sign and the logical volume entity current state of a plurality of data in order to presentation logic volume data.
CNB2005100045412A 2005-01-18 2005-01-18 Method for establishing storage area network system Expired - Fee Related CN100409195C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100045412A CN100409195C (en) 2005-01-18 2005-01-18 Method for establishing storage area network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100045412A CN100409195C (en) 2005-01-18 2005-01-18 Method for establishing storage area network system

Publications (2)

Publication Number Publication Date
CN1808391A true CN1808391A (en) 2006-07-26
CN100409195C CN100409195C (en) 2008-08-06

Family

ID=36840301

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100045412A Expired - Fee Related CN100409195C (en) 2005-01-18 2005-01-18 Method for establishing storage area network system

Country Status (1)

Country Link
CN (1) CN100409195C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101828374B (en) * 2007-10-15 2013-06-05 国际商业机器公司 Acquisition and expansion of storage area network interoperation relationships

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7389312B2 (en) * 1997-04-28 2008-06-17 Emc Corporation Mirroring network data to establish virtual storage area network
CN1137441C (en) * 2000-05-19 2004-02-04 清华同方光盘股份有限公司 Ultra-large-capacity virtual optic disk file system construction method and its system hardware structure
WO2002084471A1 (en) * 2001-04-13 2002-10-24 Sun Microsystems, Inc. Virtual host controller interface with multipath input/output
US6880052B2 (en) * 2002-03-26 2005-04-12 Hewlett-Packard Development Company, Lp Storage area network, data replication and storage controller, and method for replicating data using virtualized volumes
JP2004005222A (en) * 2002-05-31 2004-01-08 Internatl Business Mach Corp <Ibm> Backup technique for recording devices with different storage formats

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101828374B (en) * 2007-10-15 2013-06-05 国际商业机器公司 Acquisition and expansion of storage area network interoperation relationships

Also Published As

Publication number Publication date
CN100409195C (en) 2008-08-06

Similar Documents

Publication Publication Date Title
US11947423B2 (en) Data reconstruction in distributed storage systems
US10126988B1 (en) Assigning RAID extents and changing drive extent allocations within RAID extents when splitting a group of storage drives into partnership groups in a data storage system
US10725692B2 (en) Data storage method and apparatus
US9823980B2 (en) Prioritizing data reconstruction in distributed storage systems
KR101259557B1 (en) Cluster data management system and method for data recovery using parallel processing in cluster data management system
CN104011642B (en) By the method and apparatus of erasure codes data distribution to magnetic disk storage
US10210045B1 (en) Reducing concurrency bottlenecks while rebuilding a failed drive in a data storage system
US10318169B2 (en) Load balancing of I/O by moving logical unit (LUN) slices between non-volatile storage represented by different rotation groups of RAID (Redundant Array of Independent Disks) extent entries in a RAID extent table of a mapped RAID data storage system
Calder et al. Windows azure storage: a highly available cloud storage service with strong consistency
US8433849B2 (en) Hierarchical, distributed object storage system
US10353787B2 (en) Data stripping, allocation and reconstruction
DE112019000213T5 (en) Storage systems with peer data recovery
CN103019614B (en) Distributed memory system management devices and method
US20100313063A1 (en) Mitigating reduction in availability level during maintenance of nodes in a cluster
US20100161565A1 (en) Cluster data management system and method for data restoration using shared redo log in cluster data management system
WO2020027910A1 (en) Storage systems with peer data scrub
US20040064641A1 (en) Storage device with I/O counter for partial data reallocation
CN1567262A (en) On-line data backup method based on data volume snapshot
CN111031096A (en) Distributed storage system construction method based on mimicry defense
US10296252B1 (en) Reducing drive extent allocation changes while splitting a group of storage drives into partnership groups in response to addition of a storage drive to an array of storage drives in a data storage system that uses mapped RAID (redundant array of independent disks) technology
CN103229243B (en) For storing storage control and the system of data block in non-volatile memory device with redundant fashion
CN110413203A (en) For managing the method, equipment and computer program product of storage system
CN111708488A (en) Distributed memory disk-based Ceph performance optimization method and device
US20180357141A1 (en) Data storage system comprising an array of drives
US11860746B2 (en) Resilient data storage system with efficient space management

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080806

Termination date: 20110118