CN103814352A - Virtual equipment reconstruction method and apparatus - Google Patents

Virtual equipment reconstruction method and apparatus Download PDF

Info

Publication number
CN103814352A
CN103814352A CN201280005835.5A CN201280005835A CN103814352A CN 103814352 A CN103814352 A CN 103814352A CN 201280005835 A CN201280005835 A CN 201280005835A CN 103814352 A CN103814352 A CN 103814352A
Authority
CN
China
Prior art keywords
vtl
address
virtual unit
node
vtl node
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
CN201280005835.5A
Other languages
Chinese (zh)
Other versions
CN103814352B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN103814352A publication Critical patent/CN103814352A/en
Application granted granted Critical
Publication of CN103814352B publication Critical patent/CN103814352B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/40Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1034Reaction to server failures by a load balancer

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Hardware Redundancy (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a virtual device reconstruction technology. In a virtual device reconstruction method, a second VTL node takes over an enetry address of a first VTL node, the second VTL node acquires configuration information of a virtual device, a device address, an entery address and backup server exit addresses, the second VTL node generates a reconstructed virtual device by utilizing the configuration information, the device address is allocated to the reconstructed virtual device, and mapping relations between the reconstructed virtual device and the VTL device entry address and between the reconstructed virtual device and the backup service exit addresses are established. By application of the reconstructed virtual device, the business being backuped of the original virtual device can be taken over smoothly.

Description

A kind of virtual unit method for reconstructing and device
Technical field
The present invention relates to field of storage, be particularly to a kind of virtual magnetic tape library VTL technology.
Background technology
Along with the high speed development of computer technology, the data volume of the data center of each mechanism, enterprise etc. is explosive growth, and correspondingly, the required time of data of backing up each data center also significantly increases.So the data center of each mechanism, enterprise etc. introduces the Disk Backup storage that backup performance is higher one after another, such as virtual magnetic tape library (VTL, Virtual Tape Library) substitute traditional physics magnetic tape library backup storage, to shorten the data backup time, reduce the impact of backup traffic on production business.
VTL product is made up of server, VTL equipment and storage array conventionally, and VTL equipment can move VTL program.The data of needs backup are sent to VTL equipment by server, and VTL equipment backs up data in storage array.VTL cluster is a kind of cluster product, comprises many VTL equipment in VTL cluster, and every VTL equipment can be called again a node, and multiple nodes can move VTL application software simultaneously.Compare with single node form (only comprising a station server) VTL product, each VTL equipment can be worked simultaneously, therefore VTL cluster can significantly shorten backup release time, reduce to a greater degree the impact of backup traffic on production business.
VTL cluster, in improving product performance significantly, has also brought the availability issue of group system.In cluster, any one node breaks down and all will cause the fault of whole group system, and the node in cluster VTL is more, cluster VTL because of the possibility of fault interruption of work just larger.
In prior art, after having node to break down in VTL cluster.Other nodes can be taken over the business of this malfunctioning node, and in the process of taking over, those backup traffic of moving on malfunctioning node can be moved failure.
Summary of the invention
The invention provides a kind of virtual unit method for reconstructing and device, can smoothly take over the business that before rebuilding, virtual unit is moving.
First aspect, the embodiment of the present invention provides a kind of virtual unit method for reconstructing, virtual magnetic tape library VTL cluster comprises a VTL node and the 2nd VTL node, backup server and a described VTL node and described the 2nd VTL node establish a communications link, memory device and a described VTL node and described the 2nd VTL node establish a communications link, the one VTL node creates at least one virtual unit, the device address of the virtual unit on the one VTL node is unique in VTL cluster, the method comprises: described the 2nd VTL node is taken over the entry address of a described VTL node, described the 2nd VTL node obtains the configuration information of described virtual unit, device address, entry address and backup server exit address, the 2nd VTL node uses described configuration information to generate and rebuilds virtual unit, reconstruction virtual unit is distributed to in described device address, set up the mapping relations between described reconstruction virtual unit and VTL equipment entrance address, backup server exit address.
Second aspect, the embodiment of the present invention provides a kind of virtual unit reconstructing device, be arranged in the 2nd VTL node, virtual magnetic tape library VTL cluster comprises a VTL node and described the 2nd VTL node, backup server and a described VTL node and described the 2nd VTL node establish a communications link, memory device and a described VTL node and described the 2nd VTL node establish a communications link, the one VTL node creates at least one virtual unit, the device address of the virtual unit on the one VTL node is unique in VTL cluster, described virtual unit reconstructing device comprises: acquisition module, for taking over the entry address of a described VTL node, and obtain the configuration information of described virtual unit, device address, entry address and backup server exit address, rebuild module, use described configuration information to generate for the 2nd VTL node and rebuild virtual unit, enable module, for reconstruction virtual unit is distributed to in described device address, and sets up the mapping relations between described reconstruction virtual unit and VTL equipment entrance address, backup server exit address.
The third aspect, the embodiment of the present invention provides a kind of the 2nd VTL node, virtual magnetic tape library VTL cluster comprises a VTL node and the 2nd VTL node, backup server and a described VTL node and described the 2nd VTL node establish a communications link, memory device and a described VTL node and described the 2nd VTL node establish a communications link, the one VTL node creates at least one virtual unit, the device address of the virtual unit on the one VTL node is unique in VTL cluster, described the 2nd VTL node comprises CPU, first communication interface of communicating by letter with CPU, the second communication interface of communicating by letter with CPU, and the internal memory of communicating by letter with CPU: described the first communication interface, for communicating by letter with described backup server, described second communication interface, for described memory device communication, described internal memory, for storing computer instruction, described processor, with described internal memory coupling, for carrying out following operation by moving described computer instruction: take over the entry address of a described VTL node, obtain configuration information, device address, entry address and the backup server exit address of described virtual unit, use described configuration information to generate and rebuild virtual unit, reconstruction virtual unit is distributed to in described device address, set up the mapping relations between described reconstruction virtual unit and VTL equipment entrance address, backup server exit address.
After the application embodiment of the present invention, configuration information, device address, entry address and the backup server exit address of rebuilding virtual unit are all identical with virtual unit before reconstruction,, can there is not loss of data in virtual unit after the backup traffic that before therefore rebuilding, virtual unit is being processed can be switched to smoothly and rebuild.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is embodiment of the present invention application scenarios topological diagram;
Fig. 2 is virtual unit method for reconstructing embodiment process flow diagram;
Fig. 3 is virtual unit reconstructing device embodiment schematic diagram;
Fig. 4 is VTL node embodiment schematic diagram.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
VTL technology can emulated physics tape, and VTL allows client's configuration virtual tape drive, virtual tape box and specifies tape cassete capacity.The equipment of realizing VTL technology is realized the main equipment of VTL technology in other words, and we are called VTL product or VTL equipment, and the VTL product of different vendor supports that the maximum number of virtual tape drive is also different.Different from physics magnetic tape library, extra tape drive need to be bought and install to physics magnetic tape library, but concerning VTL, can increase virtual tape drive by changing software configuration (configuration), and this does not need to spend any extra hardware cost.VTL equipment can, referred to as node, in VTL technology, only have the situation of a VTL equipment, and we can be called VTL single node form; The situation of multiple VTL co-operation equipment, we are called VTL multinode form, or address is VTL cluster.In VTL cluster, between VTL node, can provide protection, in the time of certain VTL node failure, by the business on the VTL node taking over fault node not breaking down.
As shown in Figure 1,3 backup servers 11 communicate to connect by switch 12 and VTL equipment 131 and VTL equipment 132, VTL equipment 131, VTL equipment 132 all communicate to connect with storage array 14, VTL equipment 131 forms VTL cluster 13 with VTL equipment 132, and VTL system 1 comprises VTL cluster 13 and storage array 14.Communication connection between equipment can be passed through the technology such as optical-fibre channel (FC, Fiber Channel) or Ethernet (Ethernet) and realize, and subsequent embodiment of the present invention is introduced as an example of FC technology example.When using when FC, described switch 12 is FC switches, and described backup server 11 and VTL equipment 131, VTL equipment 132 claim (WWPN, World Wide Port Name) address to realize and the communicating by letter of FC switch 12 by worldwide port name.When the feature of VTL cluster 13 is some the breaking down in VTL equipment 131 and VTL equipment 132, can switches the business to one and carry out on VTL equipment.It is pointed out that in various embodiments of the present invention and only give an example with the situation of 2 VTL equipment, in fact VTL cluster can be made up of more VTL equipment.
VTL equipment can be referred to as node, therefore VTL equipment 131 can be called node 131, VTL equipment 132 can be called node 132,2 nodes are monitored the other side's duty mutually by the arbitration information in heartbeat network and rear end storage array 14, when a node breaks down cannot normally work time, can take over its business by another one node.On node 131 and node 132, all dispose virtual magnetic tape library equipment or virtual magnetic magnetic tape station equipment, virtual magnetic tape library equipment or virtual magnetic magnetic tape station equipment can be called virtual unit, for user, these virtual units similarly are that real physical tape equipment is equally available.
Rear end storage can be this locality storage of VTL node, that is to say and relies on VTL node self to store; Also can be that the storage array 14 in Fig. 1 is examples of external storage by network and the interconnected external storage of VTL node.When actual use, can in the storage of rear end, create multiple LUN, these LUN can directly be used by the VTL software in VTL node, also can first create therein file system by VTL node, and then offer VTL software application.After the SCSI instruction and data that Server sends is received by virtual unit, virtual unit calls rear end read-write interface, as piece read-write interface or file read-write interface etc., data is write to rear end storage.
Those skilled in the art will be appreciated that, the parameters of virtual unit can be described by configuration information, take virtual tape library equipment as example, the information such as its configuration information comprises tape library ID, tape library model, tape library title and tape library sequence number, have determined that the configuration information of a virtual unit just can re-create this virtual unit.In prior art; node in VTL cluster is in order to carry out internodal protection; each node can pre-stored other nodes on the configuration information of all virtual units, in the time having node to break down, can rebuild the virtual unit on malfunctioning node by these configuration informations.After virtual unit is rebuild, for the dummy node distributing equipment address after rebuilding, and re-establish after the mapping relations between this virtual unit and VTL equipment entrance address, backup server exit address, virtual unit after this reconstruction just can be accepted to be backed up server and use, and also just says and can accept user's backup request and carry out backup traffic.
But if fault has occurred node when virtual unit is carrying out backup traffic, the process that is virtual unit distribution address due to each VTL equipment is separate, the virtual unit after therefore rebuilding can be reallocated virtual unit address.And the still virtual unit address generation Backup Data before continuing to use of backup server, the business that therefore these are backing up can be failed, cannot normally send to reconstruction virtual unit.The address of virtual unit can be small computer system interface (Small Computer System Interface, SCSI) address, for example SCSI tlv triple address, tlv triple address refers to the address of expressing by passage channel, equipment device and tri-information of target target.In the present embodiment, tlv triple address is the address of distributing for each virtual unit in backup server.These addresses are exactly the address of each virtual unit of seeing from backup server, to make backup server to find and to use the virtual unit in VTL node by tlv triple address.
Suppose for instance in Fig. 1 there be node 131 establishments: " 131 virtual tape 0[0:0:0] " and " 131 virtual magnetic magnetic tape station 0[0:0:1] " these two virtual units; Suppose that node 132 creates and has: " 132 virtual magnetic tape library 0[0:0:0] ", " 132 virtual magnetic magnetic tape station 0[0:0:1] " and " 132 virtual magnetic magnetic tape station equipment 1[0:0:2] " totally three virtual units, as shown in table 1.
Wherein, in virtual unit " 131 virtual tapes [0:0:0] ", " 131 " refer to the nodename that this virtual unit belongs to, " virtual tape " is the type of virtual unit, " 0 " is the numbering of virtual unit, these information are all the configuration informations of this virtual tape, it should be noted that more than these several of configuration information, owing to being only for example, all the other configuration informations are not listed here.[0:0:0] is the scsi address of this virtual tape.
The virtual unit of node 131 The virtual unit that node 132 creates
131 virtual tape 0[0:0:0] 132 virtual magnetic tape library 0[0:0:0]
131 virtual magnetic magnetic tape station 0[0:0:1] 132 virtual magnetic magnetic tape station 0[0:0:1]
? 132 virtual magnetic magnetic tape station equipment 1[0:0:2]
Table 1
A kind of way is, breaks down cannot work on time when node 132 detects node 131, re-creates the virtual magnetic tape library in malfunctioning node, virtual magnetic magnetic tape station equipment, and distribute scsi address for rebuilding virtual unit on node 132.As shown in table 2 after reconstruction.
The virtual unit of node 131 The virtual unit that node 132 creates
? 132 virtual magnetic tape library 0[0:0:0]
? 132 virtual magnetic magnetic tape station 0[0:0:1]
? 132 virtual magnetic magnetic tape station equipment 1[0:0:2]
? 131 virtual tape 0[0:0:3]
? 131 virtual magnetic magnetic tape station 0[0:0:4]
Table 2
As shown in table 2, two virtual units on node 131 have obtained reconstruction on node 132, and VTL node name, virtual unit type and these two Information preservations of numbering are constant.When node 132 distributes virtual address for the virtual unit of rebuilding, detect that device address [0:0:0] and [0:0:1] these two scsi addresses are taken by the existing virtual unit of this equipment, virtual unit that cannot be rebuilt again uses, in the present embodiment, node 132 is that the virtual unit of rebuilding has distributed [0:0:3] and [0:0:4] these two new equipment addresses.
Distribute behind device address, rebuild the mapping relations between these virtual magnetic tape libraries and former VTL equipment entrance address, former backup server exit address, these addresses are for example that IP address or virtual worldwide port name claim (World Wide Port Name, WWPN) address, these are controlled by node 131 originally, and fault is taken over by node 132 after occurring.After mapping relations have been set up, just realize the adapter of malfunctioning node, the virtual unit of reconstruction can be accepted new backup request.But remaining with original equipment address, the backup moving on malfunctioning node carries out, that is to say that server is still according to " " 131 virtual tape 0[0:0:0] ", " " 131 virtual magnetic magnetic tape station 0[0:0:1] " data writing, because variation has occurred in the virtual unit device address rebuilding, therefore write operation meeting failure, server repeatedly retry until exceed default number of retries or the retry time, but all can end in failure at every turn.For fear of the loss of data that writes failure and cause, must be after failover/fault recovery completes, in backup server (Backup Server), rescan the virtual unit of mapping, then restart the data backup/recovery tasks of failure, strengthen the resource consumption of system, increased the risk of loss of data.
When after the fault recovery of node 131, the business of being taken over is transferred again node 131, and node 131 is redistributed for these two devices allocation device addresses, and the device address being difficult to before assurance and fault is consistent, therefore in failover procedure, often also can cause the failure of backup.
Other situations beyond fault or fault recovery, if the virtual unit on a VTL node need to be reconstituted on another one virtual unit, also there will be same problem.Prior art can only realize configuration information and remain unchanged, but device address is the independent information outside configuration information, distribute, management, the mode safeguarded be all different from configuration information, therefore prior art cannot realize and rebuilding before the device address of virtual unit remain unchanged with the device address of the rear virtual unit of reconstruction.
Embodiment mono-
With reference to Fig. 1, a kind of virtual unit method for reconstructing, be applied in VTL cluster 13, VTL cluster 13 includes a VTL node 131 and the 2nd VTL node 132, and backup server 11 establishes a communications link by switching equipment 12 and a VTL node 131 and the 2nd VTL node 132.VTL system 1 is made up of jointly cluster 13 and memory device 14.Memory device 14 and a VTL node and the 2nd VTL node establish a communications link, and a VTL node creates at least one virtual unit, and the device address of the virtual unit on a VTL node is unique in VTL cluster.Different according to communication mode between backup server 11 and VTL cluster 13, switching equipment 12 can be IP-based switching equipment or the switching equipment based on WWPN, and memory device 14 can be Redundant Array of Inexpensive Disc RAID group or the hard disk together with VTL integration of equipments.
The device address of the virtual unit on the one VTL node is unique in VTL cluster, also just says that all VTL nodes in VTL cluster all do not use the establishment virtual unit of this device address.Can there be a variety of ways to realize the unique of virtual unit address, for example VTL node is being that a new virtual unit is while distributing address, first inquire about the address of the existing virtual unit of other VTL nodes in this VTL node and cluster, select the address not used to distribute; Also can set up cluster address allocation table, each equipment is being a new virtual unit while distributing address, and the address not used in option table is distributed, and after being assigned, the address of this sub-distribution is recorded as in table to the address having been used; In addition, can also distribute different address fields for each VTL node, the set that can distribute 1000 addresses composition such as first equipment, second equipment can distribute the set of other 1000 addresses composition, by that analogy, owing to there is not identical element between set, can not conflict in the device address of the VTL equipment room in cluster.The virtual unit method for reconstructing of the present embodiment comprises the steps, can be referring to Fig. 2.
S21, a described VTL node are searched not by the device address of arbitrary VTL equipment use in described VTL cluster; A described VTL node uses virtual unit described in the device address information creating finding.
This is an optional step, carries out this step and can guarantee that the address of any two virtual units in cluster do not repeat.
Whether S22, described the 2nd VTL node 131 detect VTL node 132 nodes and break down.
Detection method has a variety of, for example, by heartbeat network, in the time that the 2nd VTL node 132 is not received the heartbeat message of a VTL node 131 by heartbeat network within a certain period of time, judges that fault has occurred a VTL node 131; Also can monitor by memory device 14, in the time that memory device 14 monitors a VTL node 131 and breaks down, notify the 2nd VTL node 132.
S23, after detecting that a described VTL node 131 breaks down, described the 2nd VTL node 132 is taken over the entry address of a described VTL node 131, and described the 2nd VTL node 132 obtains configuration information, device address, entry address and the backup server exit address of described virtual unit.
Realize data backup, need to set up the mapping between backup server exit address, VTL equipment entrance address and virtual unit, Backup Data mails to VTL node 131 by the exit address of backup server 11, mail to by the entry address of VTL node 131 virtual unit that VTL node 131 is set up again, and by the virtual unit of VTL node 131, Backup Data is mail to memory device 14, finally realize the backup of data.The method of obtaining these data can have multiple, for example, can after each virtual unit has created, these data be recorded in a unified platform, and VTL node 132 obtains these information by this platform; Or preserve each virtual unit configuration information, device address, entry address and the backup server exit address of a all the other VTL nodes on each VTL node, and the renewal that keeps these data.After the one VTL node 131 faults, backup server 11 and memory device 14 also can be received fault prompting, and carry out the preparation that is substituted virtual unit on a VTL node by the virtual unit on the 2nd VTL node receiving after fault prompting respectively.
S24, the 2nd VTL node use described configuration information to generate and rebuild virtual unit.
As previously mentioned, configuration information is the information for describing virtual unit, the for example sequence number of the model of a virtual unit, virtual unit title and virtual unit, wherein the model of virtual unit refers to the model of the physical equipment virtual by virtual unit, such as the B money equipment of A company production.Obtain configuration information and just can re-create the virtual unit being out of order on node later.It should be noted that, this configuration information does not comprise device address, entry address and backup server exit address.
S25, reconstruction virtual unit is distributed to in described device address, set up the mapping relations between described reconstruction virtual unit and VTL equipment entrance address, backup server exit address.
This device address is the address that on a VTL node 131, virtual unit uses, because does not repeat the address on each VTL node, therefore the 2nd VTL node 132 these addresses of existing virtual unit use useless, the 2nd VTL node 132 can be given this address assignment and rebuild virtual unit use.Equipment entrance address, backup server exit address also shine upon with the front virtual unit of reconstruction.Therefore set up after the mapping relations between reconstruction virtual unit and VTL equipment entrance address, backup server exit address, configuration information, device address, VTL equipment entrance address, the backup server exit address of rebuilding virtual unit are all the same with before reconstruction, and the position just existing has a VTL node 131 to become the 2nd VTL node 132.
S26, described reconstruction virtual unit, by the entry address of described reconstruction virtual unit, receive the backup information that described backup server uses described backup server exit address to send; Described reconstruction virtual unit mails to described memory device by Backup Data and backs up.After completing steps S25, rebuild virtual unit and can be backed up that server 11 uses and be managed by the 2nd VTL node 132, step S26 be to backup server 11 how to use rebuild virtual unit one for example.
In this step S26, if when fault occurs, the virtual unit on a VTL node 131 is being carried out backup tasks, this backup tasks needs designated equipment address, VTL equipment entrance address, backup server exit address in the time carrying out.Because device address, VTL equipment entrance address, the backup server exit address of the virtual unit after rebuilding are all the same with before reconstruction, the virtual unit after therefore rebuilding can continue to carry out this backup traffic.It should be noted that, before step S24 completes, this virtual unit cannot use, this time, backup server 11 can be received the unsuccessful prompting of backup tasks, at this moment backup server 11 can attempt carrying out backup tasks again, until step S24 is complete, can successful execution backup tasks, no longer receive the unsuccessful prompting of backup tasks.
In embodiment mono-, if certain node in cluster breaks down, on it, the related service of operation can be taken over by other nodes in cluster.For the backup traffic of moving, the parameters that backup server 11 is still continued to use the front virtual unit of fault sends Backup Data, and these parameters comprise configuration information, device address, entry address and backup server exit address; And configuration information, device address, entry address and the backup server exit address of rebuilding virtual unit are all identical with virtual unit before reconstruction, therefore virtual unit after the backup traffic that before rebuilding, virtual unit is being processed can be switched to smoothly and rebuild, after loss of data can not occur having taken over, whole cluster is the state in can normally working still.So just can guarantee that whole cluster can cannot normally not work because of individual node fault, effectively guarantee the availability of cluster product.And in failover process, the backup/restoration task of moving on malfunctioning node can be not failed, the process of failover is more level and smooth.After failover completes, need in Backup Server, not rescan the virtual unit of mapping, then restart the data backup/recovery tasks of failure again to carry out.Can realize the service protection without loss of data.
Embodiment bis-
The present embodiment is about failure recovery operation.When after VTL node 131 fault recoveries in Fig. 1, the virtual unit that migrates to the 2nd VTL node 132 can be moved back to a VTL node 131 again.
Step S22, the S23 of the principle of the present embodiment and embodiment mono-, S24, S25 are basic identical.Institute's difference is, in step S22, after detecting that a described VTL node 131 breaks down, described the 2nd VTL node 132 is taken over the entry address of a described VTL node 131, and described the 2nd VTL node 132 obtains configuration information, device address, entry address and the backup server exit address of described virtual unit.And in the corresponding steps of embodiment bis-, be when detecting after VTL node 131 fault recoveries, a described VTL node 132 is taken over the entry address of being taken over by the 2nd VTL node 131 again.
Those skilled in the art, having studied carefully on the basis of embodiment mono-, can complete embodiment bis-easily, repeat no more herein.On this external basis of understanding embodiment mono-, embodiment bis-, those skilled in the art should also can derive how the virtual unit on any one VTL node is moved to other VTL nodes in VTL cluster, this migration can be because fault or fault recovery, also can be other situations, the migration that for example user specifies.Occur because of fault or fault recovery when not being migration time, detect whether break down or step that whether detection failure is recovered not necessarily.
Embodiment tri-
Take embodiment mono-and embodiment bis-as basis, one's duty invention also provides a kind of virtual unit reconstructing device embodiment.Virtual unit reconstructing device is arranged in node, for example, in the 2nd VTL node below, that is to say that virtual unit reconstructing device can be to be integrated in software in node, that have corresponding function or hardware, can be also node itself.
Referring to accompanying drawing 3, in the present embodiment, virtual unit reconstructing device 3, be arranged in the 2nd VTL node, virtual magnetic tape library VTL cluster comprises a VTL node and described the 2nd VTL node, backup server and a described VTL node and described the 2nd VTL node establish a communications link, memory device and a described VTL node and described the 2nd VTL node establish a communications link, the one VTL node creates at least one virtual unit, the device address of the virtual unit on the one VTL node is unique in VTL cluster, virtual unit reconstructing device comprises: acquisition module 33, rebuild module 34 and enable module 35.Optionally, can also comprise creation module 31 and fault detection module 32.
Creation module 31, for searching the device address not used by the arbitrary VTL equipment of described VTL cluster, creates described virtual unit for described the 2nd VTL equipment.
Whether fault detection module 32, is connected with creation module 31, break down, and detecting after a VTL node failure for detection of a VTL node, starts acquisition module 33.
Acquisition module 33, is connected with fault detection module 32, for taking over the entry address of a described VTL node, and obtains configuration information, device address, entry address and the backup server exit address of described virtual unit.
Realize data backup, need to set up the mapping between backup server exit address, VTL equipment entrance address and virtual unit, Backup Data mails to VTL node 131 by the exit address of backup server 11, mail to by the entry address of VTL node 131 virtual unit that VTL node 131 is set up again, and by the virtual unit of VTL node 131, Backup Data is mail to memory device 14, finally realize the backup of data.The method of obtaining these data can have multiple, for example, can after each virtual unit has created, these data be recorded in a unified platform, and VTL node 132 obtains these information by this platform; Or preserve each virtual unit configuration information, device address, entry address and the backup server exit address of a all the other VTL nodes on each VTL node, and the renewal that keeps these data.After the one VTL node 131 faults, backup server 11 and memory device 14 also can be received fault prompting, and carry out the preparation that is substituted virtual unit on a VTL node by the virtual unit on the 2nd VTL node receiving after fault prompting respectively.
Rebuild module 34, be connected with acquisition module 33, use described configuration information to generate for the 2nd VTL node and rebuild virtual unit.
As previously mentioned, configuration information is the information for describing virtual unit, for example sequence number of the model of a virtual unit, virtual unit title and virtual unit, and wherein the model of virtual unit refers to the model of the virtual physical equipment of virtual unit.Obtain configuration information and just can re-create the virtual unit being out of order on node later.It should be noted that, this configuration information does not comprise device address, entry address and backup server exit address.
Enable module 35, and rebuilds module 34 and is connected, and for reconstruction virtual unit is distributed to in described device address, and sets up the mapping relations between described reconstruction virtual unit and VTL equipment entrance address, backup server exit address.
This device address is the address that on a VTL node 131, virtual unit uses, because does not repeat the address on each VTL node, therefore the 2nd VTL node 132 these addresses of existing virtual unit use useless, the 2nd VTL node 132 can be given this address assignment and rebuild virtual unit use.Equipment entrance address, backup server exit address also shine upon with the front virtual unit of reconstruction.Therefore set up after the mapping relations between reconstruction virtual unit and VTL equipment entrance address, backup server exit address, configuration information, device address, VTL equipment entrance address, the backup server exit address of rebuilding virtual unit are all the same with before reconstruction, and the position just existing has a VTL node 131 to become the 2nd VTL node 132.
Enable module 35, can also be used for stating virtual unit by the entry address of described reconstruction virtual unit, receives the backup information that described backup server uses described backup server exit address to send; And make described reconstruction virtual unit that the Backup Data of receiving is mail to described memory device to back up.
If when fault occurs, the virtual unit on a VTL node 131 is being carried out backup tasks, this backup tasks needs designated equipment address, VTL equipment entrance address, backup server exit address in the time carrying out.Because device address, VTL equipment entrance address, the backup server exit address of the virtual unit after rebuilding are all the same with before reconstruction, the virtual unit after therefore rebuilding can continue to carry out this backup traffic.It should be noted that, before step S24 completes, this virtual unit cannot use, this time, backup server 11 can be received the unsuccessful prompting of backup tasks, at this moment backup server 11 can attempt carrying out backup tasks again, until step S24 is complete, can successful execution backup tasks, no longer receive the unsuccessful prompting of backup tasks.
In embodiment tri-, if certain node in cluster breaks down, on it, the related service of operation can be taken over by other nodes in cluster.For the backup traffic of moving, the parameters that backup server 11 is still continued to use the front virtual unit of fault sends Backup Data, and these parameters comprise configuration information, device address, entry address and backup server exit address; And configuration information, device address, entry address and the backup server exit address of rebuilding virtual unit are all identical with virtual unit before reconstruction, therefore virtual unit after the backup traffic that before rebuilding, virtual unit is being processed can be switched to smoothly and rebuild, after loss of data can not occur having taken over, whole cluster is the state in can normally working still.So just can guarantee that whole cluster can cannot normally not work because of individual node fault, effectively guarantee the availability of cluster product.And in failover process, the backup/restoration task of moving on malfunctioning node can be not failed, the process of failover is more level and smooth.After failover completes, need in Backup Server, not rescan the virtual unit of mapping, then restart the data backup/recovery tasks of failure again to carry out.Can realize the service protection without loss of data.
Because embodiment tri-is the devices for carrying out embodiment mono-.Obviously, on the basis of embodiment mono-, two, three, can there is equally fault recovery device or fault recovery module, carry out the method in embodiment bis-, owing to being described in embodiment bis-, no longer describe in detail herein.
Embodiment tetra-
Referring to accompanying drawing 4, the present embodiment is an a kind of VTL node 4.Virtual magnetic tape library VTL cluster comprises a VTL node and the 2nd VTL node, backup server and a described VTL node and described the 2nd VTL node establish a communications link, memory device and a described VTL node and described the 2nd VTL node establish a communications link, the one VTL node creates at least one virtual unit, the device address of the virtual unit on the one VTL node is unique in VTL cluster, a described VTL node comprises CPU44, first communication interface 41 of communicating by letter with CPU, the second communication interface 42 of communicating by letter with CPU, and the internal memory 43 of communicating by letter with CPU, described the first communication interface 41, for communicating by letter with described backup server, described second communication interface 42, for described memory device communication, described internal memory 43, for storing computer instruction, and described processor 44, and described internal memory coupling, for carrying out the operation described in following examples one and embodiment bis-by moving described computer instruction.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential common hardware by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better embodiment.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium can read, as the floppy disk of computing machine, hard disk or CD etc., comprise that some instructions are in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.

Claims (12)

1. a virtual unit method for reconstructing, it is characterized in that, virtual magnetic tape library VTL cluster comprises a VTL node and the 2nd VTL node, backup server and a described VTL node and described the 2nd VTL node establish a communications link, memory device and a described VTL node and described the 2nd VTL node establish a communications link, the one VTL node creates at least one virtual unit, and the device address of the virtual unit on a VTL node is unique in VTL cluster, and the method comprises:
Described the 2nd VTL node is taken over the entry address of a described VTL node, and described the 2nd VTL node obtains configuration information, device address, entry address and the backup server exit address of described virtual unit;
The 2nd VTL node uses described configuration information to generate and rebuilds virtual unit;
Reconstruction virtual unit is distributed to in described device address, set up the mapping relations between described reconstruction virtual unit and VTL equipment entrance address, backup server exit address.
2. the method for claim 1, is characterized in that, sets up mapping relations and further comprises afterwards:
Described reconstruction virtual unit, by the entry address of described reconstruction virtual unit, receives the backup information that described backup server uses described backup server exit address to send;
Described reconstruction virtual unit mails to described memory device by Backup Data and backs up.
3. the method for claim 1, is characterized in that, described the 2nd VTL node further comprises before taking over the entry address of a described VTL node:
A described VTL node is searched not by the device address of arbitrary VTL equipment use in described VTL cluster;
A described VTL node uses virtual unit described in the device address information creating finding.
4. the method for claim 1, is characterized in that, described the 2nd VTL node further comprises before taking over the entry address of a described VTL node:
Described the 2nd VTL node detects that a VTL node breaks down.
5. a virtual unit reconstructing device, be arranged in the 2nd VTL node, it is characterized in that, virtual magnetic tape library VTL cluster comprises a VTL node and described the 2nd VTL node, backup server and a described VTL node and described the 2nd VTL node establish a communications link, memory device and a described VTL node and described the 2nd VTL node establish a communications link, the one VTL node creates at least one virtual unit, the device address of the virtual unit on the one VTL node is unique in VTL cluster, and described virtual unit reconstructing device comprises:
Acquisition module, for taking over the entry address of a described VTL node, and obtains configuration information, device address, entry address and the backup server exit address of described virtual unit;
Rebuild module, use described configuration information to generate for the 2nd VTL node and rebuild virtual unit;
Enable module, for reconstruction virtual unit is distributed to in described device address, and sets up the mapping relations between described reconstruction virtual unit and VTL equipment entrance address, backup server exit address.
6. device as claimed in claim 5, is characterized in that, described enable module also for:
Make described virtual unit by the entry address of described reconstruction virtual unit, receive the backup information that described backup server uses described backup server exit address to send; And
Making described reconstruction virtual unit that the Backup Data of receiving is mail to described memory device backs up.
7. device as claimed in claim 5, is characterized in that, described device further comprises:
Creation module, for searching the device address not used by the arbitrary VTL equipment of described VTL cluster, creates described virtual unit for described the 2nd VTL equipment.
8. method as claimed in claim 5, is characterized in that, described device further comprises:
Whether fault detection module, break down for detection of a VTL node.
9. a VTL node, it is characterized in that, virtual magnetic tape library VTL cluster comprises a VTL node and the 2nd VTL node, backup server and a described VTL node and described the 2nd VTL node establish a communications link, memory device and a described VTL node and described the 2nd VTL node establish a communications link, the one VTL node creates at least one virtual unit, the device address of the virtual unit on the one VTL node is unique in VTL cluster, described the 2nd VTL node comprises CPU, first communication interface of communicating by letter with CPU, the second communication interface of communicating by letter with CPU, and the internal memory of communicating by letter with CPU:
Described the first communication interface, for communicating by letter with described backup server;
Described second communication interface, for described memory device communication;
Described internal memory, for storing computer instruction; And
Described processor, and the coupling of described internal memory, for carrying out following operation by moving described computer instruction:
Take over the entry address of a described VTL node, obtain configuration information, device address, entry address and the backup server exit address of described virtual unit;
Use described configuration information to generate and rebuild virtual unit;
Reconstruction virtual unit is distributed to in described device address, set up the mapping relations between described reconstruction virtual unit and VTL equipment entrance address, backup server exit address.
10. the method for stating as claim 9, is characterized in that, described processor is further used for carrying out:
Make described reconstruction virtual unit by the entry address of described reconstruction virtual unit, receive the backup information that described backup server uses described backup server exit address to send;
Making described reconstruction virtual unit that Backup Data is mail to described memory device backs up.
11. methods of stating as claim 9, is characterized in that, described processor is further used for carrying out:
Before described adapter step, detect a VTL node and whether break down.
12. methods of stating as claim 9, is characterized in that, described processor is further used for carrying out:
Before described adapter step, detect the fault of a VTL node and whether recover.
CN201280005835.5A 2012-12-31 2012-12-31 A kind of virtual unit method for reconstructing and device Active CN103814352B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/088096 WO2014101211A1 (en) 2012-12-31 2012-12-31 Virtual device reestablishing method and device

Publications (2)

Publication Number Publication Date
CN103814352A true CN103814352A (en) 2014-05-21
CN103814352B CN103814352B (en) 2016-11-02

Family

ID=50709723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201280005835.5A Active CN103814352B (en) 2012-12-31 2012-12-31 A kind of virtual unit method for reconstructing and device

Country Status (2)

Country Link
CN (1) CN103814352B (en)
WO (1) WO2014101211A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557280A (en) * 2016-10-31 2017-04-05 北京华为数字技术有限公司 Date storage method, storage array and host server
CN106921508A (en) * 2015-12-25 2017-07-04 中兴通讯股份有限公司 Virtualization network element failure self-healing method and device
CN108234410A (en) * 2016-12-15 2018-06-29 北京视联动力国际信息技术有限公司 A kind of virtual terminal distribution method and device
CN110266833A (en) * 2019-07-16 2019-09-20 广州虎牙科技有限公司 IP address management method and edge cluster
CN111193600A (en) * 2018-11-14 2020-05-22 杭州海康威视系统技术有限公司 Method, device and system for taking over service

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625391B (en) * 2020-05-29 2023-06-13 北京思特奇信息技术股份有限公司 Task processing method, system and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070067555A1 (en) * 2005-09-19 2007-03-22 Spectra Logic Corporation Virtual interchangeable storage device
CN101799780A (en) * 2010-03-10 2010-08-11 成都市华为赛门铁克科技有限公司 Configuration information file processing method, system, server, and virtual tape library equipment
CN201789513U (en) * 2010-09-14 2011-04-06 北京同有飞骥科技股份有限公司 High usable VTL (Virtual Tape Library) system capable of fast recovery
CN102521072A (en) * 2011-11-25 2012-06-27 成都市华为赛门铁克科技有限公司 Virtual tape library equipment and data recovery method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4448719B2 (en) * 2004-03-19 2010-04-14 株式会社日立製作所 Storage system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070067555A1 (en) * 2005-09-19 2007-03-22 Spectra Logic Corporation Virtual interchangeable storage device
CN101799780A (en) * 2010-03-10 2010-08-11 成都市华为赛门铁克科技有限公司 Configuration information file processing method, system, server, and virtual tape library equipment
CN201789513U (en) * 2010-09-14 2011-04-06 北京同有飞骥科技股份有限公司 High usable VTL (Virtual Tape Library) system capable of fast recovery
CN102521072A (en) * 2011-11-25 2012-06-27 成都市华为赛门铁克科技有限公司 Virtual tape library equipment and data recovery method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106921508A (en) * 2015-12-25 2017-07-04 中兴通讯股份有限公司 Virtualization network element failure self-healing method and device
CN106557280A (en) * 2016-10-31 2017-04-05 北京华为数字技术有限公司 Date storage method, storage array and host server
CN106557280B (en) * 2016-10-31 2019-10-15 北京华为数字技术有限公司 Date storage method, storage array and host server
CN108234410A (en) * 2016-12-15 2018-06-29 北京视联动力国际信息技术有限公司 A kind of virtual terminal distribution method and device
CN108234410B (en) * 2016-12-15 2019-02-22 视联动力信息技术股份有限公司 A kind of virtual terminal distribution method and device
CN111193600A (en) * 2018-11-14 2020-05-22 杭州海康威视系统技术有限公司 Method, device and system for taking over service
CN111193600B (en) * 2018-11-14 2023-04-07 杭州海康威视系统技术有限公司 Method, device and system for taking over service
CN110266833A (en) * 2019-07-16 2019-09-20 广州虎牙科技有限公司 IP address management method and edge cluster
CN110266833B (en) * 2019-07-16 2022-03-29 广州虎牙科技有限公司 IP address management method and edge cluster

Also Published As

Publication number Publication date
CN103814352B (en) 2016-11-02
WO2014101211A1 (en) 2014-07-03

Similar Documents

Publication Publication Date Title
US8996477B2 (en) Multiple node/virtual input/output (I/O) server (VIOS) failure recovery in clustered partition mobility
JP5227125B2 (en) Storage system
US7536586B2 (en) System and method for the management of failure recovery in multiple-node shared-storage environments
CN103814352A (en) Virtual equipment reconstruction method and apparatus
CN102972010B (en) Switch method, apparatus and system for virtual application dual-machine in cloud environment
CN103064765B (en) Data reconstruction method, device and cluster storage system
US9477565B2 (en) Data access with tolerance of disk fault
US20130311989A1 (en) Method and apparatus for maintaining a workload service level on a converged platform
US8032702B2 (en) Disk storage management of a tape library with data backup and recovery
CN103840961A (en) Dual-computer hot backup system
WO2018098972A1 (en) Log recovery method, storage device and storage node
CN106528327A (en) Data processing method and backup server
JP2000339098A (en) Storage domain management system
WO2014080492A1 (en) Computer system, cluster management method, and management computer
CN106331166B (en) A kind of access method and device of storage resource
WO2014101412A1 (en) Disk reconstruction method and device therefor
CN104994168A (en) distributed storage method and distributed storage system
CN106919346A (en) A kind of shared Storage Virtualization implementation method based on CLVM
CN105404565B (en) A kind of dual-active data guard method and device
JP5855724B1 (en) Virtual device management apparatus, virtual device management method, and virtual device management program
CN112148219A (en) Design method and device for ceph type distributed storage cluster
CN106681865A (en) Business recovery method and device
CN109254873B (en) Data backup method, related device and system
CN111045602A (en) Cluster system control method and cluster system
US20080301394A1 (en) Method And A System To Determine Device Criticality During SAN Reconfigurations

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