CN102455878A - Dynamic disk assess method - Google Patents

Dynamic disk assess method Download PDF

Info

Publication number
CN102455878A
CN102455878A CN201010516520XA CN201010516520A CN102455878A CN 102455878 A CN102455878 A CN 102455878A CN 201010516520X A CN201010516520X A CN 201010516520XA CN 201010516520 A CN201010516520 A CN 201010516520A CN 102455878 A CN102455878 A CN 102455878A
Authority
CN
China
Prior art keywords
hard disk
access
disk
path
entity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201010516520XA
Other languages
Chinese (zh)
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 CN201010516520XA priority Critical patent/CN102455878A/en
Publication of CN102455878A publication Critical patent/CN102455878A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a dynamic disk access method which comprises the steps of: firstly, establishing a virtual disk, wherein the virtual disk is connected with each access in an entity disk; when an application program sends a service request, sending the service request to the virtual disk; and accessing data of the entity disk by the virtual disk through the accesses according to a preset rule in accordance with the service request. When data access failure occurs, the virtual disk tries another access according to the preset rule until successfully accessing data in the entity disk. Therefore, when some access on the entity disk generates failure interruption, the virtual disk switches the accesses of the entity disk, for the application program, the access providing services do not generate failures, thus access efficiency and availability of the multi-access disk can be increased.

Description

The dynamic disk access method
Technical field
The present invention relates to a kind of dynamic disk access method, particularly a kind ofly let the user can carry out the dynamic disk access method of data access the entity hard disk of a multi-path through virtual hard disk.
Background technology
As a server, high availability is an important index very, and the software that on server, loads will have the enough stability, and the redundancy of hardware also is important assurance means.Yet, for storage server, also have a method that promotes server availability, be the function that the disk multiple access is provided.So-called disk multiple access is exactly that the user can come through paths different on the hardware same disk conducted interviews; For operating system (Operational System; OS) be planning and pick out a plurality of fdisks that but these fdisks in fact all point to same physical hard disk.
Please refer to shown in Figure 1ly, Fig. 1 is an existing multipath hard disk synoptic diagram.One multipath hard disk 1 has one first path 10 and an alternate path 11; Operating system 2 is the first magnetic region dev/sda through first path, 10 identification hard disks 1; Through alternate path 11 identification hard disks 1 is the second magnetic region dev/sdb, and in view of the above, the application program 20 on the operating system 2 can visit hard disk 1 through the first magnetic region dev/sda by first path 10; Therefore; When many application programs 20 are desired with the time hard disk 1 to be conducted interviews, can adjust the path of visit dynamically, improve the efficient of application program 20 access hard disks 1 data.
But above-mentioned multipath hard disk 1 still has drawback and is that the path of application access just must switch, for instance when a certain path interrupts; When an application program 20 is carried out the storage of file through first path, 10 access hard disk 1; Fault has taken place in first path 10 in the process of data access, at this moment, and the access of the necessary interrupt data of application program; Change and lead to 11 by second and initiate a file store request again and come hard disk 1 is carried out data access; For application program 20, hard disk 1 has interrupted the service of storage, makes the action of initiating a file store request again reduce the efficient of access hard disk 1 data.
Therefore, how can let application program when access one multi-path hard disk through a kind of method or means; Even if path breaks down,, need not to carry out the switching of path for application program; More not needing to initiate services request again, is the target that relevant at present manufacturer makes great efforts exploitation.
Summary of the invention
In order to solve current multi-path hard disk in use inconvenient and reach above-mentioned target; The present invention provides a kind of dynamic disk access method; Supply an application program access one to have the interior data of entity hard disk of a plurality of paths; Need not worry to switch and initiate services request again, in view of the above, can increase the storage efficiency and the availability of multi-path hard disk because of path breaks down.
Dynamic disk access method of the present invention; Set up a virtual hard disk earlier; This virtual hard disk is connected with the interior individual channel of this entity hard disk; When application program is sent a services request, be that virtual hard disk is proposed services request, virtual hard disk comes the entity hard disk is carried out the access of data again through path according to a pre-defined rule according to services request.When the data access failure took place, this virtual hard disk was attempted attempting another this path, the data in successful access entities hard disk according to this pre-defined rule.
Therefore; By above-mentioned method, this method through a newly-increased virtual hard disk as the bridge of application program with the communication of multi-path entity hard disk, a certain path interruption of breaking down on the promptly convenient entity hard disk; Switch operating to the path of entity hard disk is to be carried out by virtual hard disk; Application programs, leading to provides the path of service not break down, and this measure can increase the storage efficiency and the availability of multi-path hard disk.
Describe the present invention below in conjunction with accompanying drawing and specific embodiment, but not as to qualification of the present invention.
Description of drawings
Fig. 1 is existing multipath hard disk synoptic diagram;
Fig. 2 is the process flow diagram of dynamic disk access method one embodiment of the present invention;
The process flow diagram of another embodiment of Fig. 3 dynamic disk access method of the present invention;
Fig. 4 is a dynamic disk access method of the present invention Organization Chart when implementing.
Wherein, Reference numeral
1 hard disk
10 first paths
11 alternate paths
2,42 operating systems
20,41 application programs
40 paths
43 virtual hard disks
44 administration modules
45 detection modules
46 entity hard disks
Dev/sda first magnetic region
Dev/sdb second magnetic region
Embodiment
Below in conjunction with accompanying drawing structural principle of the present invention and principle of work are done concrete description:
Please refer to Fig. 2 and shown in Figure 3, Fig. 2 is the process flow diagram of dynamic disk access method one embodiment of the present invention, and Fig. 3 is the process flow diagram of another embodiment of dynamic disk access method of the present invention.The dynamic disk access method is to supply an application program access one to have the interior data of entity hard disk of a plurality of paths, and this dynamic disk access method comprises step:
Step S20: set up a virtual hard disk, and be connected with respectively this path of this entity hard disk;
Step S21: this virtual hard disk receives an access instruction of this application program;
Step S22: this virtual hard disk passes through those paths according to this access instruction according to a pre-defined rule, with the data in this entity hard disk of access; And
Step S23: when the data access failure took place, this virtual hard disk was attempted attempting another this path according to this pre-defined rule.
Therefore; Virtual hard disk is in the services request according to application program, to the entity hard disk wherein a path conducts interviews the time, break down when interrupting if find selected path; Just can adopt other path to come the entity hard disk is conducted interviews; And application programs, services request is to send to virtual hard disk, when path fault interrupts receiving any error message that comes from the entity hard disk.
Again, embodiment as shown in Figure 3 is to have increased whether effective mechanism of a monitoring path with embodiment maximum difference shown in Figure 2, and this embodiment is that other comprises step between step S21 and step S22:
Step S24: whether the state of monitoring those paths of this entity hard disk is effective; And
Step S25: when in those paths wherein a path is disarmed state the time, in this pre-defined rule the deletion those be the path of disarmed state.
Therefore, to step S24, dynamic disk access method of the present invention can just can monitor the state of individual channel in the entity hard disk in advance before the services request of obtaining the application program transmission through above-mentioned step S20.
Wherein, this pre-defined rule is meant this virtual hard disk according to the time sequencing that receives access instruction, selects this path respectively to carry out the data access of this entity hard disk in regular turn.In addition, this pre-defined rule also can be the load height of virtual hard disk according to this path of this entity hard disk, and minimum with load is the path selection of priority memory access.
For more understanding the present invention; Please refer to shown in Figure 4; Fig. 4 is a dynamic disk access method of the present invention Organization Chart when implementing, and describes the usefulness that each following data or number of passages are merely illustration by Organization Chart with the mode of the module embodiment that arranges in pairs or groups; Be not to be used to limit technical characterictic of the present invention, for example the number of passages of entity hard disk is not limited to 2.
When an application program 41 is sent a services request; Operating system (Operational System; OS) 42 can this services request be sent to a virtual hard disk 43, virtual hard disk 43 carries out the access of data through arbitrary path 40 with entity hard disk 46 according to a pre-defined rule.Detection module 45 be used to detect individual channel 40 effectively/invalid state, and detected state is sent to an administration module 44 with a detection information, the detection information that administration module 44 is sent according to detection module 45 is set up or is upgraded this pre-defined rule.When a certain path 40 is detected as disarmed state (fault interrupting); 44 of administration modules are deleted this invalid path in pre-defined rule; Otherwise; If when detection detected effective status (conducting) for the path 40 of disarmed state originally, 44 of administration modules can add this effective path in this pre-defined rule again.
Yet; If administration module 44 is failed the real-time update pre-defined rule, and when letting virtual hard disk 43 choose the path 40 of fault interrupting, 43 of virtual hard disks can directly be gone and chosen another path 40 on the entity hard disk 46; The services request of being sent according to application program 41 again; 46 requirements provide the access service of data to the entity hard disk, it should be noted that for application program 41; Itself can't obtain the information of any interrupt error, can think that on the contrary virtual hard disk 43 still continues to provide its stable data access service.
In sum; Dynamic disk access method of the present invention is utilized the bridge of a virtual hard disk as application program and the communication of multi-path entity hard disk; Being a certain path interruption of breaking down on the convenient entity hard disk, is to be carried out by virtual hard disk to the switch operating of the path of entity hard disk, application programs; Leading to provides the path of service not break down, and this measure can increase the storage efficiency and the availability of multi-path hard disk.
Certainly; The present invention also can have other various embodiments; Under the situation that does not deviate from spirit of the present invention and essence thereof; Those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (4)

1. a dynamic disk access method supplies an application program access one to have the interior data of entity hard disk of a plurality of paths, it is characterized in that this dynamic disk access method comprises step:
Set up a virtual hard disk, and be connected with respectively this path of this entity hard disk;
This virtual hard disk receives an access instruction of this application program;
This virtual hard disk passes through those paths according to this access instruction according to a pre-defined rule, with the data in this entity hard disk of access; And
When in those paths wherein this path is a disarmed state time, in this pre-defined rule the deletion those be the path of this disarmed state.
2. dynamic disk access method according to claim 1; It is characterized in that; The access instruction and this virtual hard disk that receive this application program in this virtual hard disk pass through those paths according to this access instruction according to a pre-defined rule, between the data in this entity hard disk of access, also comprise step:
Whether the state of monitoring those paths of this entity hard disk is effective; And
When in those paths wherein this path is a disarmed state time, in this pre-defined rule the deletion those be the path of this disarmed state.
3. dynamic disk access method according to claim 2 is characterized in that, this pre-defined rule is meant this virtual hard disk according to the time sequencing that receives this access instruction, selects this path respectively to carry out the data access of this entity hard disk in regular turn.
4. dynamic disk access method according to claim 2 is characterized in that, this pre-defined rule is meant the load height of this virtual hard disk according to those paths of this entity hard disk, and minimum with load is the path selection of priority memory access.
CN201010516520XA 2010-10-19 2010-10-19 Dynamic disk assess method Pending CN102455878A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010516520XA CN102455878A (en) 2010-10-19 2010-10-19 Dynamic disk assess method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010516520XA CN102455878A (en) 2010-10-19 2010-10-19 Dynamic disk assess method

Publications (1)

Publication Number Publication Date
CN102455878A true CN102455878A (en) 2012-05-16

Family

ID=46039106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010516520XA Pending CN102455878A (en) 2010-10-19 2010-10-19 Dynamic disk assess method

Country Status (1)

Country Link
CN (1) CN102455878A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5548743A (en) * 1990-05-18 1996-08-20 Fujitsu Limited Data processing system with duplex common memory having physical and logical path disconnection upon failure
US5668943A (en) * 1994-10-31 1997-09-16 International Business Machines Corporation Virtual shared disks with application transparent recovery

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5548743A (en) * 1990-05-18 1996-08-20 Fujitsu Limited Data processing system with duplex common memory having physical and logical path disconnection upon failure
US5668943A (en) * 1994-10-31 1997-09-16 International Business Machines Corporation Virtual shared disks with application transparent recovery

Similar Documents

Publication Publication Date Title
US8713352B2 (en) Method, system and program for securing redundancy in parallel computing system
KR101513863B1 (en) Method and system for network element service recovery
CN108984349B (en) Method and device for electing master node, medium and computing equipment
US8032786B2 (en) Information-processing equipment and system therefor with switching control for switchover operation
WO2016202051A1 (en) Method and device for managing active and backup nodes in communication system and high-availability cluster
US20060026250A1 (en) Communication system
US20140317437A1 (en) Automatic cluster-based failover handling
EP2637102B1 (en) Cluster system with network node failover
CN102299846A (en) Method for transmitting BFD (Bidirectional Forwarding Detection) message and equipment
JP2014026321A (en) Storage device, information processing device, information processing system, access control method, and access control program
JP2012043304A (en) Disk array apparatus and control method of disk array apparatus
CN103324554A (en) Standby system device, a control method, and a program thereof
CN105159846B (en) Method and storage system for supporting double-control switching of virtualized disk
JP5930029B2 (en) Management device and log collection method
US9164825B2 (en) Computing unit, method of managing computing unit, and computing unit management program
JP2011203941A (en) Information processing apparatus, monitoring method and monitoring program
CN101567804B (en) Method, equipment and system for realizing protection of system anomaly
JP2013025765A (en) Master/slave system, control device, master/slave switching method and master/slave switching program
JP2019125075A (en) Storage device and storage system and program
JP2007334764A (en) Nas system and information processing method of nas system
CN102455878A (en) Dynamic disk assess method
JP4893731B2 (en) Communication control device
CN112217718A (en) Service processing method, device, equipment and storage medium
JP5874933B2 (en) Path control device, path control method, and path control program
JP2007172172A (en) Fiber channel switch, and computer system using same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120516