CN102866935B - Instant replication method and storage system based on ISCSI (internet small computer system interface) - Google Patents

Instant replication method and storage system based on ISCSI (internet small computer system interface) Download PDF

Info

Publication number
CN102866935B
CN102866935B CN201110190268.2A CN201110190268A CN102866935B CN 102866935 B CN102866935 B CN 102866935B CN 201110190268 A CN201110190268 A CN 201110190268A CN 102866935 B CN102866935 B CN 102866935B
Authority
CN
China
Prior art keywords
hard disk
iscsi hard
iscsi
target
backup
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.)
Active
Application number
CN201110190268.2A
Other languages
Chinese (zh)
Other versions
CN102866935A (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.)
Beijing Teamsun Software Technology Co ltd
Original Assignee
Beijing Teamsun Technology Co Ltd
BEIJING FORTUNET INFORMATION TECHNOLOGY 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 Beijing Teamsun Technology Co Ltd, BEIJING FORTUNET INFORMATION TECHNOLOGY CO LTD filed Critical Beijing Teamsun Technology Co Ltd
Priority to CN201110190268.2A priority Critical patent/CN102866935B/en
Publication of CN102866935A publication Critical patent/CN102866935A/en
Application granted granted Critical
Publication of CN102866935B publication Critical patent/CN102866935B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses an instant replication method and a storage system based on an ISCSI (internet small computer system interface). The instant replication method includes the steps: generating a data block and a writing request by a client; transmitting the writing request to an IPSAN (internet protocol storage area network) control server by the client; generating a data forwarding command and storage management information by the IPSAN control server; transmitting the storage management information and the data forwarding command to the client by the IPSAN control server; backing up an IP (internet protocol) address of an ISCSI hard disk and the data forwarding command to a target ISCSI hard disk; writing in the data block by the target ISCSI hard disk; transmitting the data block to a backup ISCSI hard disk through a rear-end Ethernet switch according to the data forwarding command and an IP address of the backup ISCSI hard disk by the target ISCSI hard disk; and backing up the data block by the backup ISCSI hard disk. With the instruction of the IPSAN control server, data are directionally and instantly replicated, and replication delay and resource occupancy of data stored and forwarded by the IPSAN control server are avoided.

Description

Based on instant clone method and the storage system of ISCSI
Technical field
The present invention relates to realize as basic enterprise storage system the method that local instant mirror copies taking iscsi disk, relate in particular to a kind of instant clone method and storage system based on ISCSI.
Background technology
ISCSI is that object is for memory device being linked together by IP agreement by the network storage standard of IETF (Internet Engineering Task Force, Internet Engineering task groups) exploitation.By transmitting scsi command and data on IP network, iSCSI has promoted the transmission of data between internet, has also promoted the remote management of data simultaneously.Due to its outstanding data transmission capabilities, iSCSI agreement is considered to promote one of key factor of storage area network (Storage Area Network is called for short SAN) market fast development.Because the widespread use of IP network, iSCSI can be at LAN (Local Area Network, LAN (Local Area Network)), WAN (Wide Area Network, wide area network) even the enterprising line number of internet reportedly give, make the storage of data no longer be subject to the restriction of region.
ISCSI agreement, according to role's difference, is divided into originating end and destination end.For the consideration of performance, some manufacturer has adopted special board to process TCP/IP and the iSCSI agreement of originating end, i.e. the HBA of iSCSI (Host Bus Adapter, host bus adaptor) card.But at destination end (Target), each storage manufacturer adopts PC (Personal Computer substantially, personal computer) composition iSCSI storage architecture, be that memory device is based upon on the basis of PC server, namely select one common, function admirable, can support the PC (being generally PC server and industry control server) of polylith hard disk, select a relatively mature and stable iSCSI Target (iscsi target end) software, iSCSI Target software is arranged on PC server, make common PC server be transformed into an iSCSI memory device that connects multiple hard disks, and externally provide iSCSI Data Transport Protocol by the Ethernet card of PC server.On the iSCSI of PC framework memory device, all RAID (Redundant Array of Independent Disk, raid-array) group verification, logical volume management, iSCSI computing, TCP/IP computing etc. be all to realize (also some equipment adopts higher TOE (TCP Offload Engine, the transmission control protocol offload engine) network interface card of price to realize TCP/IP computing certainly) in pure software mode.Therefore the performance requirement of the CPU to PC and internal memory is higher.The as easy as rolling off a log impact that is subject to PC operation condition of server of the performance of iSCSI memory device in addition.
The data reading of enterprise storage system is to adopt the mode of data block to carry out with writing.For ensureing the security of data, conventionally to carry out dual or more multiple copy backup to the data block that writes disk array, in case data are lost because of hard disk corruptions (high-probability event).Current enterprise-level storage products is in the time carrying out data Replica, the basic internal system IPSAN Control Server that adopts completes twice of data block manifolding or method repeatedly, or the operation of system is carried out to snapshot, utilize snapshot to copy the data of variation in the specific moment subsequently; Can ensure like this safety and the integrality of data.Therefore, IPSAN Control Server needs repeatedly between different iscsi disks, to complete storage, forwards and cause replica delay and resource occupation; The burden that has increased the weight of IPSAN Control Server is higher to the equipment requirement of IPSAN Control Server.
Summary of the invention
The object of the present invention is to provide a kind of instant clone method based on ISCSI and the storage system based on ISCSI, its orientation that realizes data under the instruction of IPSAN Control Server copies immediately, has avoided data to be stored and forwarded the replica delay and the resource occupation that cause by IPSAN Control Server.
Above-mentioned purpose is achieved through the following technical solutions:
Based on an instant clone method of ISCSI, it is characterized in that: comprise the following steps:
Step S101: client generated data piece and write request;
Step S102: client is sent to IPSAN Control Server by front end Ethernet switch by write request;
Step S103:IPSAN Control Server is according to write request and management information table, generated data forward command and management information, management information comprises that IPSAN Control Server is the IP address of target ISCSI hard disk and the IP address of backup ISCSI hard disk that data block is distributed;
Wherein, IPSAN Control Server comprises management information table, and described management information table comprises the state table of all ISCSI hard disks, address mapping table, Mirroring Mapping table, each ISCSI hard disk load meter; Target ISCSI hard disk is the ISCSI hard disk as memory disc, and backup ISCSI hard disk is the ISCSI hard disk as back-up disk;
Step S104:IPSAN Control Server is sent to client by management information and data retransmission order by front end Ethernet switch;
Step S105: client is according to the IP address of target hard disk, and by data block, IP address and the data retransmission order of backup ISCSI hard disk are sent to target ISCSI hard disk by rear end Ethernet switch;
Step S106: target ISCSI hard disk writes data block;
Step S107: target ISCSI hard disk, according to the IP address of data retransmission order and backup ISCSI hard disk, is sent to backup ISCSI hard disk by data block by rear end Ethernet switch;
Step S108: backup ISCSI hard disk backs up data block.
Above-mentioned purpose is achieved through the following technical solutions:
Based on a storage system of ISCSI, it is characterized in that:
Comprise storage unit;
Each storage unit comprises client, front end Ethernet switch, IPSAN Control Server, rear end Ethernet switch and multiple ISCSI hard disk;
Described client is connected by Ethernet and front end Ethernet switch with the IPSAN Control Server of this storage unit, and described IPSAN Control Server is connected with all rear end Ethernet switches of described storage system respectively;
Described client with the rear end Ethernet switch of this storage unit by being connected; The ISCSI hard disk of described storage unit is connected with all rear end Ethernet switches of storage system respectively;
Described IPSAN Control Server, realize and client by front end Ethernet switch and rear end Ethernet switch, non-data communication between ISCSI hard disk, for all ISCSI hard disks are managed, realizes the data transmission between client and specific ISCSI hard disk.
Instant clone method and storage system based on ISCSI of the present invention, the ISCSI hard disk adopting has data retransmission logic function, this makes can carry out the clog-free communication of port to port by Ethernet switch between ISCSI hard disk, the orientation that realizes data under the instruction of IPSAN Control Server copies immediately, has avoided data to be stored and forwarded the replica delay and the resource occupation that cause by IPSAN Control Server.
Brief description of the drawings
Fig. 1 is the schematic flow sheet that in the instant clone method based on ISCSI of the present invention, target ISCSI hard disk writes data block and data block is sent to backup ISCSI hard disk;
Fig. 2 is the structural representation of the storage system based on ISCSI of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, instant clone method and the storage system based on ISCSI of the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Embodiment mono-
A kind of instant clone method based on ISCSI of the present invention, comprises the following steps:
Step S101: client generated data piece and write request;
Step S102: client is sent to IPSAN Control Server by front end Ethernet switch by write request;
Step S103:IPSAN Control Server is according to write request and management information table, generated data forward command and management information, management information comprises that IPSAN Control Server is the IP address of target ISCSI hard disk and the IP address of backup ISCSI hard disk that data block is distributed;
Wherein, IPSAN Control Server comprises management information table, and described management information table comprises the state table of all ISCSI hard disks, address mapping table, Mirroring Mapping table, each ISCSI hard disk load meter; Target ISCSI hard disk is the ISCSI hard disk as memory disc, and backup ISCSI hard disk is the ISCSI hard disk as back-up disk;
Step S104:IPSAN Control Server is sent to client by management information and data retransmission order by front end Ethernet switch;
Step S105: client is according to the IP address of target hard disk, and by data block, IP address and the data retransmission order of backup ISCSI hard disk are sent to target ISCSI hard disk by rear end Ethernet switch;
Step S106: target ISCSI hard disk writes data block;
Step S107: target ISCSI hard disk, according to the IP address of data retransmission order and backup ISCSI hard disk, is sent to backup ISCSI hard disk by data block by rear end Ethernet switch;
Step S108: backup ISCSI hard disk backs up data block.
Preferably, step S105 comprises the following steps:
Step S105-1: client is according to the IP address of target hard disk, and by data block, IP address and the data retransmission order of backup ISCSI hard disk send to target ISCSI hard disk by rear end Ethernet switch; Target ISCSI hard disk is informed client situation;
Step S105-2: client is according to reception condition, judge data block, (in other words whether IP address and the data retransmission order of backup ISCSI hard disk successfully send to target ISCSI hard disk, target ISCSI hard disk is successfully being received data block, when the IP address of backup ISCSI hard disk and data retransmission order, inform that client successfully receives, now, the data block of receiving, IP address and the data retransmission order of backup ISCSI hard disk are present in the buffer memory of target ISCSI hard disk, do not have actual writing on physical hard disk);
Send to successfully, continue step S106;
Send to unsuccessfully, client is informed IPSAN Control Server, and IPSAN Control Server distributes new target ISCSI hard disk, the in-problem ISCSI hard disk of mark; And operating procedure S104 (at this S104, in the circulation of S108, sending to target ISCSI hard disk unsuccessful is small probability event, so this circulation is not an endless loop; If unfortunate frequent generation, under the impact of whole storage system in certain force majeure amount (occurring as disaster), is not considered this situation in this application.So, S104 is not endless loop to the circulation of S108, that is to say that necessarily having a target ISCSI hard disk successfully receives data block, management information and data retransmission order, certainly, the data block of receiving, management information and data retransmission order are arranged in the buffer memory of target ISCSI hard disk, do not have actual writing on physical hard disk).
Preferably, step S106 comprises the following steps: as shown in Figure 1,
Step S106-1: data block is write local hard drive by the control chip of target ISCSI hard disk;
Step S106-2: whether the control chip judgement of target ISCSI hard disk writes local hard drive successful;
Write successfully, the control chip of operating procedure S106-21:ISCSI target hard disk generates successfully report and is sent to IPSAN Control Server by rear end Ethernet switch;
Write unsuccessfully, whether judgement writes the frequency of failure and reaches N time; Wherein, N is a natural number of setting;
Do not reach N time, operating procedure S106-1;
Reach N time, operating procedure S106-22: the control chip of target ISCSI hard disk generates the report of target ISCSI hard disk failure and is sent to IPSAN Control Server by rear end Ethernet switch, IPSAN Control Server mark fault ISCSI hard disk, and distribute a new ISCSI hard disk as new target ISCSI hard disk; The control chip of fault target ISCSI hard disk is by data block, IP address and the data retransmission order of backup ISCSI hard disk are sent to new target ISCSI hard disk, the control chip of fault target ISCSI hard disk discharges local cache space, and new target ISCSI hard disk re-executes S106.Equally, the fault is here small probability event, and S106 is not an endless loop.
Preferably, step S107 comprises the following steps: as shown in Figure 1,
Step S107-1: the control chip of target ISCSI hard disk is sent to data block the control chip of backup ISCSI hard disk;
Step S107-2: whether the control chip of target ISCSI hard disk judges that the control chip of backup ISCSI hard disk receives data block successful;
Receive successfully, operating procedure S107-21: the control chip of backup ISCSI hard disk generates status report and is sent to target ISCSI hard disk by rear end Ethernet switch; After target ISCSI hard disk processing, be sent to IPSAN Control Server by rear end Ethernet switch, and generate while successfully reporting and be sent to IPSAN Control Server at the control chip of ISCSI target hard disk, discharge the local cache space of the control chip of ISCSI target hard disk;
Receive unsuccessfully, whether the judgement number of times that takes defeat reaches M time; Wherein, M is a natural number of setting; Do not reach M time, operating procedure S107-1;
Reach M time, operating procedure S107-22: the control chip of target ISCSI hard disk generates backup ISCSI hard disk failure report and is sent to IPSAN Control Server by rear end Ethernet switch, IPSAN Control Server mark fault ISCSI hard disk, and distribute a new ISCSI hard disk as new backup ISCSI hard disk, and target ISCSI hard disk is informed in the IP address of new backup ISCSI hard disk, target ISCSI hard disk re-executes S107.Equally, the fault is here small probability event, and S107 is not an endless loop.
Preferably, step S108 comprises the following steps:
Step S108-1: data block is write local hard drive by the control chip of backup ISCSI hard disk;
Step S108-2: whether the control chip judgement of backup ISCSI hard disk writes local hard drive successful;
Write successfully, operating procedure S108-21: the control chip of backup ISCSI hard disk generates successfully report and is sent to target ISCSI hard disk by rear end Ethernet switch; After ISCSI target hard disk is processed, be sent to IPSAN Control Server by rear end Ethernet switch, discharge the local cache space of the control chip of backup ISCSI hard disk;
Write unsuccessfully, whether judgement writes the frequency of failure and reaches N time; Wherein, N is a natural number of setting;
Do not reach N time, operating procedure S108-1;
Reach N time, operating procedure S108-22: the control chip of backup ISCSI hard disk generates backup ISCSI hard disk failure report and is sent to target ISCSI hard disk by rear end Ethernet switch; After ISCSI target hard disk is processed, be sent to IPSAN Control Server by rear end Ethernet switch, discharge the local cache space of the control chip of backup ISCSI hard disk; Described IPSAN Control Server distributes the IP address of backup ISCSI hard disk again for data block.
Embodiment bis-
A kind of storage system based on ISCSI of the present invention, as shown in Figure 2, is characterized in that:
Comprise storage unit;
Each storage unit comprises client, front end Ethernet switch (in figure for illustrating), IPSAN Control Server, rear end Ethernet switch and multiple ISCSI hard disk;
The IPSAN Control Server of described client and this storage unit is connected by Ethernet and front end Ethernet switch (in figure for illustrating), and described IPSAN Control Server is connected with all rear end Ethernet switches of described storage system respectively;
Described client with the rear end Ethernet switch of this storage unit by being connected; The ISCSI hard disk of described storage unit is connected with all rear end Ethernet switches of storage system respectively;
Described IPSAN Control Server, realize and client by front end Ethernet switch and rear end Ethernet switch, non-data communication between ISCSI hard disk, for all ISCSI hard disks are managed, realizes the data transmission between client and specific ISCSI hard disk.
Client is by data, data retransmission order and management information are successfully write the subsequent operation that after the buffer memory of a target ISCSI hard disk, just no longer participation copies immediately, subsequent operation has been interacted by IPSAN Control Server and multiple ISCSI hard disk, and ensures that data write successfully.Here taking into account system is not by the effect of force majeure amount, and fault is all small probability event.
Preferably, described client, for generated data piece and write request, and is sent to IPSAN Control Server by front end Ethernet switch by write request;
Described IPSAN Control Server, be used for according to write request and management information table, generated data forward command and management information, described management information comprises that IPSAN Control Server is the IP address of target ISCSI hard disk and the IP address of backup ISCSI hard disk that data block is distributed; IPSAN Control Server is also for being sent to client by management information and data retransmission order by front end Ethernet switch;
Wherein, described IPSAN Control Server comprises management information table, and described management information table comprises the state table of all ISCSI hard disks of storage system, address mapping table, Mirroring Mapping table, each ISCSI hard disk load meter; Target ISCSI hard disk is the ISCSI hard disk as memory disc, and backup ISCSI hard disk is the ISCSI hard disk as back-up disk;
Described client is by data block, and management information and data retransmission order are sent to rear end Ethernet switch;
Described rear end Ethernet switch is according to the IP address of ISCSI target hard disk, and by this data block, the IP address of data retransmission order and backup ISCSI hard disk is sent to ISCSI target hard disk;
Described ISCSI target hard disk writes data block and according to the IP address of data retransmission order and backup ISCSI hard disk, this data block is sent to backup ISCSI hard disk by rear end Ethernet switch;
Described backup ISCSI hard disk backs up data block.
Preferably, described ISCSI hard disk comprises control chip and hard disk; In Fig. 2, control chip represents with iSCSI T end card, hard disk employing SATA hard disk embodiment illustrated in fig. 2.
Described ISCSI hard disk is during as ISCSI target hard disk, and data block is write local hard drive by the control chip of target ISCSI hard disk; According to the IP address of data retransmission order and backup ISCSI hard disk, data block is sent to backup ISCSI hard disk by rear end Ethernet switch simultaneously;
Described ISCSI hard disk is during as backup ISCSI hard disk, and data block is write local hard drive by the control chip of backup ISCSI hard disk.
Preferably, the control chip of described target ISCSI hard disk writes data block in local hard drive process, and the control chip of ISCSI target hard disk moves according to the sub-step of step S106 and S106:
Step S106 comprises the following steps:
Step S106-1: data block is write local hard drive by the control chip of target ISCSI hard disk;
Step S106-2: whether the control chip judgement of target ISCSI hard disk writes local hard drive successful;
Write successfully, the control chip of operating procedure S106-21:ISCSI target hard disk generates and successfully reports and lead to
Later hold Ethernet switch to be sent to IPSAN Control Server;
Write unsuccessfully, whether judgement writes the frequency of failure and reaches N time; Wherein, N is a natural number of setting;
Do not reach N time, operating procedure S106-1;
Reach N time, operating procedure S106-22: the control chip of target ISCSI hard disk generates the report of target ISCSI hard disk failure and is sent to IPSAN Control Server by rear end Ethernet switch, IPSAN Control Server mark fault ISCSI hard disk, and distribute a new ISCSI hard disk as new target ISCSI hard disk; The control chip of fault target ISCSI hard disk is by data block, IP address and the data retransmission order of backup ISCSI hard disk are sent to new target ISCSI hard disk, the control chip of fault target ISCSI hard disk discharges local cache space, and new target ISCSI hard disk re-executes S106.
Preferably, the control chip of target ISCSI hard disk is sent to data block in the process of backup ISCSI hard disk by rear end Ethernet switch, and the control chip of target ISCSI hard disk moves according to the sub-step of step S107 and S107:
Step S107 comprises the following steps:
Step S107-1: the control chip of target ISCSI hard disk is sent to data block the control chip of backup ISCSI hard disk;
Step S107-2: whether the control chip of target ISCSI hard disk judges that the control chip of backup ISCSI hard disk receives data block successful;
Receive successfully, operating procedure S107-21: the control chip of backup ISCSI hard disk generates status report and is sent to target ISCSI hard disk by rear end Ethernet switch; After target ISCSI hard disk processing, be sent to IPSAN Control Server by rear end Ethernet switch, and generate while successfully reporting and be sent to IPSAN Control Server at the control chip of ISCSI target hard disk, discharge the local cache space of the control chip of ISCSI target hard disk;
Receive unsuccessfully, whether the judgement number of times that takes defeat reaches M time; Wherein, M is a natural number of setting;
Do not reach M time, operating procedure S107-1;
Reach M time, operating procedure S107-22: the control chip of target ISCSI hard disk generates backup ISCSI hard disk failure report and is sent to IPSAN Control Server by rear end Ethernet switch, IPSAN Control Server mark fault ISCSI hard disk, and distribute a new ISCSI hard disk as new backup ISCSI hard disk, and target ISCSI hard disk is informed in the IP address of new backup ISCSI hard disk, target ISCSI hard disk re-executes S107.
Preferably, the control chip of backup ISCSI hard disk writes data block in the process of local hard drive, and the control chip of backup ISCSI hard disk moves according to the sub-step of step S108 and S108:
Step S108 comprises the following steps:
Step S108-1: data block is write local hard drive by the control chip of backup ISCSI hard disk;
Step S108-2: whether the control chip judgement of backup ISCSI hard disk writes local hard drive successful;
Write successfully, operating procedure S108-21: the control chip of backup ISCSI hard disk generates successfully report and is sent to target ISCSI hard disk by rear end Ethernet switch; After ISCSI target hard disk is processed, be sent to IPSAN Control Server by rear end Ethernet switch, discharge the local cache space of the control chip of backup ISCSI hard disk;
Write unsuccessfully, whether judgement writes the frequency of failure and reaches N time; Wherein, N is a natural number of setting;
Do not reach N time, operating procedure S108-1;
Reach N time, operating procedure S108-22: the control chip of backup ISCSI hard disk generates backup ISCSI hard disk failure report and is sent to target ISCSI hard disk by rear end Ethernet switch; After ISCSI target hard disk is processed, be sent to IPSAN Control Server by rear end Ethernet switch, discharge the local cache space of the control chip of backup ISCSI hard disk; Described IPSAN Control Server distributes the IP address of backup ISCSI hard disk again for data block.
Instant clone method and storage system based on ISCSI of the present invention, the ISCSI hard disk adopting has data retransmission logic function, this makes can carry out the clog-free communication of port to port by Ethernet switch between ISCSI hard disk, the orientation that realizes data under the instruction of IPSAN Control Server copies immediately, has avoided data to be stored and forwarded the replica delay and the resource occupation that cause by IPSAN Control Server.
Finally it should be noted that obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if these amendments of the present invention and within modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification.

Claims (10)

1. the instant clone method based on ISCSI, is characterized in that: comprise the following steps:
Step S101: client generated data piece and write request;
Step S102: client is sent to IPSAN Control Server by front end Ethernet switch by write request;
Step S103:IPSAN Control Server is according to write request and management information table, generated data forward command and management information, management information comprises that IPSAN Control Server is the IP address of target ISCSI hard disk and the IP address of backup ISCSI hard disk that data block is distributed;
Wherein, IPSAN Control Server comprises management information table, and described management information table comprises the state table of all ISCSI hard disks, address mapping table, Mirroring Mapping table, each ISCSI hard disk load meter; Target ISCSI hard disk is the ISCSI hard disk as memory disc, and backup ISCSI hard disk is the ISCSI hard disk as back-up disk;
Step S104:IPSAN Control Server is sent to client by management information and data retransmission order by front end Ethernet switch;
Step S105: client is according to the IP address of target ISCSI hard disk, and by data block, IP address and the data retransmission order of backup ISCSI hard disk are sent to target ISCSI hard disk by rear end Ethernet switch;
Step S106: target ISCSI hard disk writes data block;
Step S107: target ISCSI hard disk, according to the IP address of data retransmission order and backup ISCSI hard disk, is sent to backup ISCSI hard disk by data block by rear end Ethernet switch;
Step S108: backup ISCSI hard disk backs up data block.
2. the instant clone method based on ISCSI according to claim 1, is characterized in that:
Step S105 comprises the following steps:
Step S105-1: client is according to the IP address of target ISCSI hard disk, and by data block, IP address and the data retransmission order of backup ISCSI hard disk send to target ISCSI hard disk by rear end Ethernet switch; Target ISCSI hard disk is informed client situation;
Step S105-2: client, according to reception condition, judges data block, whether IP address and the data retransmission order of backup ISCSI hard disk successfully send to target ISCSI hard disk;
Send to successfully, continue step S106;
Send to unsuccessfully, client is informed IPSAN Control Server, and IPSAN Control Server distributes new target ISCSI hard disk, the in-problem ISCSI hard disk of mark; And operating procedure S104.
3. the instant clone method based on ISCSI according to claim 1, is characterized in that:
Step S106 comprises the following steps:
Step S106-1: data block is write local hard drive by the control chip of target ISCSI hard disk;
Step S106-2: whether the control chip judgement of target ISCSI hard disk writes local hard drive successful;
Write successfully, operating procedure S106-21: the control chip of target ISCSI hard disk generates successfully report and is sent to IPSAN Control Server by rear end Ethernet switch;
Write unsuccessfully, whether judgement writes the frequency of failure and reaches N time; Wherein, N is a natural number of setting;
Do not reach N time, operating procedure S106-1;
Reach N time, operating procedure S106-22: the control chip of target ISCSI hard disk generates the report of target ISCSI hard disk failure and is sent to IPSAN Control Server by rear end Ethernet switch, IPSAN Control Server mark fault ISCSI hard disk, and distribute a new ISCSI hard disk as new target ISCSI hard disk; The control chip of fault target ISCSI hard disk is by data block, IP address and the data retransmission order of backup ISCSI hard disk are sent to new target ISCSI hard disk, the control chip of fault target ISCSI hard disk discharges local cache space, and new target ISCSI hard disk re-executes S106.
4. the instant clone method based on ISCSI according to claim 3, is characterized in that:
Step S107 comprises the following steps:
Step S107-1: the control chip of target ISCSI hard disk is sent to data block the control chip of backup ISCSI hard disk;
Step S107-2: whether the control chip of target ISCSI hard disk judges that the control chip of backup ISCSI hard disk receives data block successful;
Receive successfully, operating procedure S107-21: the control chip of backup ISCSI hard disk generates status report and is sent to target ISCSI hard disk by rear end Ethernet switch; After target ISCSI hard disk processing, be sent to IPSAN Control Server by rear end Ethernet switch, and generate while successfully reporting and be sent to IPSAN Control Server at the control chip of target ISCSI hard disk, discharge the local cache space of the control chip of target ISCSI hard disk;
Receive unsuccessfully, whether the judgement number of times that takes defeat reaches M time; Wherein, M is a natural number of setting;
Do not reach M time, operating procedure S107-1;
Reach M time, operating procedure S107-22: the control chip of target ISCSI hard disk generates backup ISCSI hard disk failure report and is sent to IPSAN Control Server by rear end Ethernet switch, IPSAN Control Server mark fault ISCSI hard disk, and distribute a new ISCSI hard disk as new backup ISCSI hard disk, and target ISCSI hard disk is informed in the IP address of new backup ISCSI hard disk, target ISCSI hard disk re-executes S107.
5. the instant clone method based on ISCSI according to claim 1, is characterized in that:
Step S108 comprises the following steps:
Step S108-1: data block is write local hard drive by the control chip of backup ISCSI hard disk;
Step S108-2: whether the control chip judgement of backup ISCSI hard disk writes local hard drive successful;
Write successfully, operating procedure S108-21: the control chip of backup ISCSI hard disk generates successfully report and is sent to target ISCSI hard disk by rear end Ethernet switch; After target ISCSI hard disk processing, be sent to IPSAN Control Server by rear end Ethernet switch, discharge the local cache space of the control chip of backup ISCSI hard disk;
Write unsuccessfully, whether judgement writes the frequency of failure and reaches N time; Wherein, N is a natural number of setting; Do not reach N time, operating procedure S108-1;
Reach N time, operating procedure S108-22: the control chip of backup ISCSI hard disk generates backup ISCSI hard disk failure report and is sent to target ISCSI hard disk by rear end Ethernet switch; After target ISCSI hard disk processing, be sent to IPSAN Control Server by rear end Ethernet switch, discharge the local cache space of the control chip of backup ISCSI hard disk; Described IPSAN Control Server distributes the IP address of backup ISCSI hard disk again for data block.
6. the storage system based on ISCSI, is characterized in that:
Comprise storage unit;
Each storage unit comprises client, front end Ethernet switch, IPSAN Control Server, rear end Ethernet switch and multiple ISCSI hard disk;
Described client is connected by Ethernet and front end Ethernet switch with the IPSAN Control Server of this storage unit, and described IPSAN Control Server is connected with all rear end Ethernet switches of described storage system respectively;
Described client with the rear end Ethernet switch of this storage unit by being connected; The ISCSI hard disk of described storage unit is connected with all rear end Ethernet switches of storage system respectively;
Described IPSAN Control Server, realize and client by front end Ethernet switch and rear end Ethernet switch, non-data communication between ISCSI hard disk, for all ISCSI hard disks are managed, realizes the data transmission between client and specific ISCSI hard disk;
Described client, for generated data piece and write request, and is sent to IPSAN Control Server by front end Ethernet switch by write request;
Described IPSAN Control Server, be used for according to write request and management information table, generated data forward command and management information, described management information comprises that IPSAN Control Server is the IP address of target ISCSI hard disk and the IP address of backup ISCSI hard disk that data block is distributed; IPSAN Control Server is also for being sent to client by management information and data retransmission order by front end Ethernet switch;
Wherein, described IPSAN Control Server comprises management information table, and described management information table comprises the state table of all ISCSI hard disks of storage system, address mapping table, Mirroring Mapping table, each ISCSI hard disk load meter; Target ISCSI hard disk is the ISCSI hard disk as memory disc, and backup ISCSI hard disk is the ISCSI hard disk as back-up disk;
Described client is by data block, and management information and data retransmission order are sent to rear end Ethernet switch;
Described rear end Ethernet switch is according to the IP address of target ISCSI hard disk, and by this data block, the IP address of data retransmission order and backup ISCSI hard disk is sent to target ISCSI hard disk;
Described target ISCSI hard disk writes data block and according to the IP address of data retransmission order and backup ISCSI hard disk, this data block is sent to backup ISCSI hard disk by rear end Ethernet switch;
Described backup ISCSI hard disk backs up data block.
7. the storage system based on ISCSI according to claim 6, is characterized in that:
Described ISCSI hard disk comprises control chip and hard disk;
Described ISCSI hard disk is during as target ISCSI hard disk, and data block is write local hard drive by the control chip of target ISCSI hard disk; According to the IP address of data retransmission order and backup ISCSI hard disk, data block is sent to backup ISCSI hard disk by rear end Ethernet switch simultaneously;
Described ISCSI hard disk is during as backup ISCSI hard disk, and data block is write local hard drive by the control chip of backup ISCSI hard disk.
8. the storage system based on ISCSI according to claim 7, is characterized in that:
The control chip of described target ISCSI hard disk writes data block in local hard drive process, and the control chip of target ISCSI hard disk moves according to the sub-step of step S106 and S106:
Step S106 comprises the following steps:
Step S106-1: data block is write local hard drive by the control chip of target ISCSI hard disk;
Step S106-2: whether the control chip judgement of target ISCSI hard disk writes local hard drive successful;
Write successfully, operating procedure S106-21: the control chip of target ISCSI hard disk generates successfully report and is sent to IPSAN Control Server by rear end Ethernet switch;
Write unsuccessfully, whether judgement writes the frequency of failure and reaches N time; Wherein, N is a natural number of setting;
Do not reach N time, operating procedure S106-1;
Reach N time, operating procedure S106-22: the control chip of target ISCSI hard disk generates the report of target ISCSI hard disk failure and is sent to IPSAN Control Server by rear end Ethernet switch, IPSAN Control Server mark fault ISCSI hard disk, and distribute a new ISCSI hard disk as new target ISCSI hard disk; The control chip of fault target ISCSI hard disk is by data block, IP address and the data retransmission order of backup ISCSI hard disk are sent to new target ISCSI hard disk, the control chip of fault target ISCSI hard disk discharges local cache space, and new target ISCSI hard disk re-executes S106.
9. the storage system based on ISCSI according to claim 8, is characterized in that:
The control chip of target ISCSI hard disk is sent to data block in the process of backup ISCSI hard disk by rear end Ethernet switch, and the control chip of target ISCSI hard disk moves according to the sub-step of step S107 and S107:
Step S107 comprises the following steps:
Step S107-1: the control chip of target ISCSI hard disk is sent to data block the control chip of backup ISCSI hard disk;
Step S107-2: whether the control chip of target ISCSI hard disk judges that the control chip of backup ISCSI hard disk receives data block successful;
Receive successfully, operating procedure S107-21: the control chip of backup ISCSI hard disk generates status report and is sent to target ISCSI hard disk by rear end Ethernet switch; After target ISCSI hard disk processing, be sent to IPSAN Control Server by rear end Ethernet switch, and generate while successfully reporting and be sent to IPSAN Control Server at the control chip of target ISCSI hard disk, discharge the local cache space of the control chip of target ISCSI hard disk;
Receive unsuccessfully, whether the judgement number of times that takes defeat reaches M time; Wherein, M is a natural number of setting;
Do not reach M time, operating procedure S107-1;
Reach M time, operating procedure S107-22: the control chip of target ISCSI hard disk generates backup ISCSI hard disk failure report and is sent to IPSAN Control Server by rear end Ethernet switch, IPSAN Control Server mark fault ISCSI hard disk, and distribute a new ISCSI hard disk as new backup ISCSI hard disk, and target ISCSI hard disk is informed in the IP address of new backup ISCSI hard disk, target ISCSI hard disk re-executes S107.
10. the storage system based on ISCSI according to claim 9, is characterized in that:
The control chip of backup ISCSI hard disk writes data block in the process of local hard drive, and the control chip of backup ISCSI hard disk moves according to the sub-step of step S108 and S108:
Step S108 comprises the following steps:
Step S108-1: data block is write local hard drive by the control chip of backup ISCSI hard disk;
Step S108-2: whether the control chip judgement of backup ISCSI hard disk writes local hard drive successful;
Write successfully, operating procedure S108-21: the control chip of backup ISCSI hard disk generates successfully report and is sent to target ISCSI hard disk by rear end Ethernet switch; After target ISCSI hard disk processing, be sent to IPSAN Control Server by rear end Ethernet switch, discharge the local cache space of the control chip of backup ISCSI hard disk;
Write unsuccessfully, whether judgement writes the frequency of failure and reaches N time; Wherein, N is a natural number of setting;
Do not reach N time, operating procedure S108-1;
Reach N time, operating procedure S108-22: the control chip of backup ISCSI hard disk generates backup ISCSI hard disk failure report and is sent to target ISCSI hard disk by rear end Ethernet switch; After target ISCSI hard disk processing, be sent to IPSAN Control Server by rear end Ethernet switch, discharge the local cache space of the control chip of backup ISCSI hard disk; Described IPSAN Control Server distributes the IP address of backup ISCSI hard disk again for data block.
CN201110190268.2A 2011-07-07 2011-07-07 Instant replication method and storage system based on ISCSI (internet small computer system interface) Active CN102866935B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110190268.2A CN102866935B (en) 2011-07-07 2011-07-07 Instant replication method and storage system based on ISCSI (internet small computer system interface)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110190268.2A CN102866935B (en) 2011-07-07 2011-07-07 Instant replication method and storage system based on ISCSI (internet small computer system interface)

Publications (2)

Publication Number Publication Date
CN102866935A CN102866935A (en) 2013-01-09
CN102866935B true CN102866935B (en) 2014-11-12

Family

ID=47445814

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110190268.2A Active CN102866935B (en) 2011-07-07 2011-07-07 Instant replication method and storage system based on ISCSI (internet small computer system interface)

Country Status (1)

Country Link
CN (1) CN102866935B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9063967B2 (en) 2013-01-10 2015-06-23 Pure Storage, Inc. Performing copies in a storage system
US11768623B2 (en) 2013-01-10 2023-09-26 Pure Storage, Inc. Optimizing generalized transfers between storage systems
CN103365745A (en) * 2013-06-07 2013-10-23 上海爱数软件有限公司 Block level backup method based on content-addressed storage and system
CN103353856A (en) * 2013-07-02 2013-10-16 华为技术有限公司 Hard disk and method for forwarding and obtaining hard disk data
CN103533075B (en) * 2013-10-23 2017-05-03 中国科学院声学研究所 Method for importing data into iSCSI target and iSCSI starter
EP3037949B1 (en) * 2014-09-15 2019-07-31 Huawei Technologies Co. Ltd. Data duplication method and storage array
WO2016041128A1 (en) * 2014-09-15 2016-03-24 华为技术有限公司 Data write request handling method and storage array
CN107273213B (en) * 2017-06-27 2024-04-19 联想(北京)有限公司 Calculation control method, network card and electronic equipment
CN108259569B (en) * 2017-12-25 2020-10-27 南京壹进制信息科技有限公司 Method and system for protecting agentless continuous data based on IPSAN shared storage

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111436A (en) * 2010-12-20 2011-06-29 深圳市创新科信息技术有限公司 Storage device and method for accessing storage device through internet small computer system interface (iSCSI)
CN102843284A (en) * 2011-06-23 2012-12-26 北京飞杰信息技术有限公司 iSCSI storage node, framework and read-write method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4311636B2 (en) * 2003-10-23 2009-08-12 株式会社日立製作所 A computer system that shares a storage device among multiple computers

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111436A (en) * 2010-12-20 2011-06-29 深圳市创新科信息技术有限公司 Storage device and method for accessing storage device through internet small computer system interface (iSCSI)
CN102843284A (en) * 2011-06-23 2012-12-26 北京飞杰信息技术有限公司 iSCSI storage node, framework and read-write method

Also Published As

Publication number Publication date
CN102866935A (en) 2013-01-09

Similar Documents

Publication Publication Date Title
CN102866935B (en) Instant replication method and storage system based on ISCSI (internet small computer system interface)
KR102457091B1 (en) System and method for providing data replication in nvme-of ethernet ssd
JP4986045B2 (en) Failover and failback of write cache data in dual active controllers
US7676616B2 (en) Method, apparatus and program storage device for providing asynchronous status messaging in a data storage system
CN101755257B (en) Managing the copying of writes from primary storages to secondary storages across different networks
CN108351819B (en) Dynamically adjusting error correction effort level of a storage device
US7694177B2 (en) Method and system for resynchronizing data between a primary and mirror data storage system
EP3062226B1 (en) Data replication method and storage system
CA2912941C (en) Apparatus and method for failover of device interconnect using remote memory access with segmented queue
US20070276983A1 (en) System method and circuit for differential mirroring of data
JP2005539290A (en) Method, system, and program for providing a mirror copy of data
US9223658B2 (en) Managing errors in a raid
US10353777B2 (en) Ensuring crash-safe forward progress of a system configuration update
US20080046644A1 (en) Method and System to Provide a Redundant Buffer Cache for Block Based Storage Servers
US7653831B2 (en) Storage system and data guarantee method
EP2569921B1 (en) System and method for providing reliable storage
US8099549B1 (en) System and method for erasure encoding
US10915405B2 (en) Methods for handling storage element failures to reduce storage device failure rates and devices thereof
CN105138417B (en) A kind of asynchronous replication method based on zfs send
CN106776142B (en) Data storage method and data storage device
US20090185762A1 (en) Data structure for image file
CN102902683A (en) Whole-disk copying method based on ISCSI (Internet Small Computer System Interface) and storage system
US8234246B1 (en) Method and apparatus for providing event based data replication
WO2018107460A1 (en) Object-based copying method and apparatus, and object-based storage device

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
TR01 Transfer of patent right

Effective date of registration: 20170818

Address after: 100192, A01, room 10, block 8, science and technology wealth center, A, clear road, Haidian District, Beijing

Patentee after: BEIJING TEAMSUN SOFTWARE TECHNOLOGY Co.,Ltd.

Address before: 100192, Beijing, Haidian District School Road 8 (Science and technology wealth center) A block, 10 floor, South District

Co-patentee before: BEIJING TEAMSUN TECHNOLOGY Co.,Ltd.

Patentee before: Beijing Fortunet Information Technology Co.,Ltd.

TR01 Transfer of patent right
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20130109

Assignee: CHINA TECHNOLOGY EXCHANGE Co.,Ltd.

Assignor: BEIJING TEAMSUN SOFTWARE TECHNOLOGY Co.,Ltd.

Contract record no.: X2021980013200

Denomination of invention: ISCSI based instant replication method and storage system

Granted publication date: 20141112

License type: Exclusive License

Record date: 20211124

EE01 Entry into force of recordation of patent licensing contract
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: ISCSI based instant replication method and storage system

Effective date of registration: 20211125

Granted publication date: 20141112

Pledgee: CHINA TECHNOLOGY EXCHANGE Co.,Ltd.

Pledgor: BEIJING TEAMSUN SOFTWARE TECHNOLOGY Co.,Ltd.

Registration number: Y2021110000072

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20230129

Granted publication date: 20141112

Pledgee: CHINA TECHNOLOGY EXCHANGE Co.,Ltd.

Pledgor: BEIJING TEAMSUN SOFTWARE TECHNOLOGY Co.,Ltd.

Registration number: Y2021110000072

PC01 Cancellation of the registration of the contract for pledge of patent right
EC01 Cancellation of recordation of patent licensing contract

Assignee: CHINA TECHNOLOGY EXCHANGE Co.,Ltd.

Assignor: BEIJING TEAMSUN SOFTWARE TECHNOLOGY Co.,Ltd.

Contract record no.: X2021980013200

Date of cancellation: 20230321

EC01 Cancellation of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20130109

Assignee: CHINA TECHNOLOGY EXCHANGE Co.,Ltd.

Assignor: BEIJING TEAMSUN SOFTWARE TECHNOLOGY Co.,Ltd.

Contract record no.: X2023110000047

Denomination of invention: ISCSI based instant replication method and storage system

Granted publication date: 20141112

License type: Exclusive License

Record date: 20230323

EE01 Entry into force of recordation of patent licensing contract
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: ISCSI based instant replication method and storage system

Effective date of registration: 20230327

Granted publication date: 20141112

Pledgee: CHINA TECHNOLOGY EXCHANGE Co.,Ltd.

Pledgor: BEIJING TEAMSUN SOFTWARE TECHNOLOGY Co.,Ltd.

Registration number: Y2023110000128

PE01 Entry into force of the registration of the contract for pledge of patent right