CN103077098B - Based on file backup method and the device of iscsi volume - Google Patents

Based on file backup method and the device of iscsi volume Download PDF

Info

Publication number
CN103077098B
CN103077098B CN201210569886.2A CN201210569886A CN103077098B CN 103077098 B CN103077098 B CN 103077098B CN 201210569886 A CN201210569886 A CN 201210569886A CN 103077098 B CN103077098 B CN 103077098B
Authority
CN
China
Prior art keywords
iscsi
volume
memory device
catalogue
file
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
CN201210569886.2A
Other languages
Chinese (zh)
Other versions
CN103077098A (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.)
Shenzhen Anyun Technology Co ltd
Original Assignee
SHENZHEN ANYUN 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 SHENZHEN ANYUN INFORMATION TECHNOLOGY Co Ltd filed Critical SHENZHEN ANYUN INFORMATION TECHNOLOGY Co Ltd
Priority to CN201210569886.2A priority Critical patent/CN103077098B/en
Publication of CN103077098A publication Critical patent/CN103077098A/en
Application granted granted Critical
Publication of CN103077098B publication Critical patent/CN103077098B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

This application provides the file backup method based on iscsi volume and device.The method comprises: on the first memory device, create iscsi_a volume, and the second memory device creates iscsi_b volume, and iscsi_a volume is for read-write on client side, and iscsi_b volume is for backing up the file in iscsi_a volume; Iscsi_a volume on memory device, iscsi_b volume format are changed into same item type by client, the iscsi_b volume that unloading is local after completing format; Iscsi_b on second memory device is wrapping with and is loaded onto local first catalogue by the first memory device, for local iscsi_a volume creates iscsi_a_sanpshot volume, iscsi_a_snapshot is wrapping with and is loaded onto the second local catalogue, and by under file backup to the first catalogue under the second catalogue.Adopt the present invention, achieve the file backup carrying out iscsi volume at memory device end.

Description

Based on file backup method and the device of iscsi volume
Technical field
The application relates to file backup technology, the file backup method particularly rolled up based on internet small computer system interface (iscsi:internetsmallcomputersysteminterface) and device.
Background technology
Iscsi agreement is a kind of agreement based on TCP/IP, for developing and managing being interconnected between IP memory device, main frame and client etc., and creates storage area network (SAN).SAN makes iscsi protocol application become possibility in high speed data transfer, and this transmission is carried out between multiple data storage network with data block rank (block-level).
Iscsi structure is based on Client/Server, and its usual applied environment is: equipment is adjacent to each other, and these equipment are connected by scsi bus.The major function of iscsi is that the host computer system on TCP/IP network also claims iscsi starter (initiator) to hold and memory device also claims to carry out between iscsi object machine (target) end encapsulation and the transmitting process of mass data.
In traditional iscsi technology, general is all that client changes into the file system of specified type such as ext4 iscsi volume format, and by mount mode carry, this is formatted into the iscsi volume of ext4 file system, then rolls up the inside storage file toward this iscsi.
And if Water demand iscsi rolls up the situation of the inside file, because iscsitarget end is all store data with data block rank, and do not know the situation of iscsi volume the inside file, therefore, when Water demand iscsi rolls up the situation of the inside file, can only carry out at iscsiinitiator end.
Based on same reason, when needing to carry out file backup to the file of iscsi volume the inside, also file backup can only be carried out at iscsiinitiator end.But, file backup is carried out at iscsiinitiator end, need to install corresponding backup software at iscsiinitiator end, and the type of operating system that iscsiinitiator end is supported is various, this can cause installing backup software at iscsiinitiator end and implement very difficult.
Summary of the invention
This application provides the file backup method based on iscsi volume and device, to realize the file backup carrying out iscsi volume at memory device end.
The technical scheme that the application provides comprises:
Based on the file backup method that internet small computer system interface iscsi rolls up, the method comprises:
First memory device creates iscsi_a volume, the second memory device creates iscsi_b volume, wherein, iscsi_a volume is used for read-write on client side, and iscsi_b volume is for backing up the file in iscsi_a volume;
Described client is rolled up and iscsi_b volume at local carry iscsi_a;
Iscsi_a volume on first memory device and the iscsi_b volume format on the second memory device are changed into same file type by described client, and after completing format, by the iscsi_b volume unloading at local carry;
Iscsi_b after formatted on described second memory device is wrapping with and is loaded onto local first catalogue by described first memory device;
Described first memory device regularly or the cycle be local formatted after the iscsi_a snapshot iscsi_a_snapshot that rolls up establishment one corresponding roll up, and iscsi_a_snapshot is wrapping with the second catalogue being loaded onto this locality;
Described first memory device is by under file backup to the first catalogue under described second catalogue.
Based on the file backup device that internet small computer system interface iscsi rolls up, this device is memory device, comprising:
When described memory device is the first memory device, comprising:
First storage unit, for storing iscsi_a volume, the file in described iscsi_a volume is for storing for read-write on client side;
Carry unit, is loaded onto local first catalogue for being wrapping with by the iscsi_b after formatted on the second memory device;
Snapshot unit, for regular or cycle be local formatted after the iscsi_a snapshot iscsi_a_snapshot that rolls up establishment one corresponding roll up, and iscsi_a_snapshot is wrapping with the second catalogue being loaded onto this locality;
Backup units, for by under file backup to the first catalogue under described second catalogue;
When described memory device is the second memory device, comprising:
Second storage unit, for storing iscsi_b volume, described iscsi_b volume is for backing up the file in iscsi_a volume, and this iscsi_b rolls up by client formatting;
Wherein, described iscsi_a volume and iscsi_b volume are formatted into identical file type, and at formatted front mount in client, after formatted, iscsi_b rolls up and unloaded by from client, and the iscsi_a after only formatted is wrapping with and is loaded in client.
As can be seen from the above technical solutions, in the present invention, by creating iscsi_a volume on the first memory device, second memory device creates iscsi_b volume, wherein, iscsi_a volume is used for read-write on client side, and iscsi_b volume is for backing up the file in iscsi_a volume, described client is rolled up and iscsi_b volume at local carry iscsi_a, described client is by the iscsi_a volume on the first memory device, and second iscsi_b volume format on memory device change into same file type, and after completing format, by the iscsi_b volume unloading at local carry, and the iscsi_b after formatted on described second memory device is wrapping with and is loaded onto local first catalogue by described first memory device, first memory device regularly or the cycle be local formatted after the iscsi_a snapshot iscsi_a_snapshot that rolls up establishment one corresponding roll up, and iscsi_a_snapshot is wrapping with the second catalogue being loaded onto this locality, and by under file backup to the first catalogue under described second catalogue, achieve the file backup carrying out iscsi volume at memory device, avoid many challenges that the file backup owing to carrying out iscsi volume in client brings.
Accompanying drawing explanation
The method flow diagram that Fig. 1 provides for the embodiment of the present invention;
The structure drawing of device that Fig. 2 provides for the embodiment of the present invention.
Embodiment
The method that the embodiment of the present invention provides can realize the file backup carrying out iscsi volume at memory device end, below in order to make the object, technical solutions and advantages of the present invention clearly, describes the present invention by reference to the accompanying drawings with specific embodiment.
See the method flow diagram that Fig. 1, Fig. 1 provide for the embodiment of the present invention.As shown in Figure 1, this flow process can comprise the following steps:
Step 101, the first memory device creates iscsi_a volume, and the second memory device creates iscsi_b volume, and wherein, iscsi_a volume is used for read-write on client side, and iscsi_b volume is for backing up the file in iscsi_a volume.
Step 102, client is rolled up and iscsi_b volume at local carry iscsi_a.
Here, client is rolled up and iscsi_b volume at local carry iscsi_a by mount mode.
Wherein, mount is an order under Linux, it can using Windows partition as under " file " of Linux be articulated to an empty folder of Linux, thus the subregion of Windows and/this catalogue of mnt are connected, as long as therefore we access this file, be just equivalent to access this subregion.Current mount is not only confined to Linux, and the application under Windows system is also more and more wider, multiplex on virtual drive class software, such as CloneCD, Daemontool, WinMount etc.
Step 103, the iscsi_a volume on the first memory device and the iscsi_b volume format on the second memory device are changed into same file type by client, and after completing format, by the iscsi_b volume unloading at local carry.
Here, iscsi_a volume, iscsi_b roll up the file type be formatted into and can be ext4, or other types, and the present invention does not specifically limit.
On the first memory device iscsi_a volume and the second memory device on iscsi_b volume formatter after, storage file can be rolled up to the iscsi_a on the first memory device, and iscsi_b volume can roll up the file stored by this iscsi_a of backup in time simultaneously, specifically see that step 104 is below to step 106.
Step 104, the iscsi_b after formatted on described second memory device is wrapping with and is loaded onto local first catalogue by the first memory device.
Preferably, in the present invention, first memory device obtains iscsi_b volume formatted on described second memory device by iscsi, and to be wrapping with by the iscsi_b of this acquisition by mount mode and to be loaded onto local first catalogue, and such as this first catalogue is designated as/mnt/iscsi_b.
Step 105, the first memory device regularly or the cycle be local formatted after iscsi_a roll up snapshot (iscsi_a_snapshot) volume corresponding to establishment one, and iscsi_a_snapshot be wrapping be loaded onto the second local catalogue.
As can be seen from Figure 1, iscsi_a is wrapping with and is loaded in the second local catalogue by the present invention non-immediate, but is wrapping with by the iscsi_a_snapshot that iscsi_a rolls up and is loaded onto the second local catalogue, and this saves storage resources.
Preferably, in the present invention, this step 105 also by mount mode the iscsi_a_snapshot that iscsi_a rolls up is wrapping be loaded onto the second local catalogue such as/mnt/iscsi_a under.
Step 106, the first memory device is by under file backup to the first catalogue under described second catalogue.
Preferably, in the present invention, the first memory device by mirror back-up of data instrument (rsync:remotesync) by file backup to the first catalogue under described second catalogue.
Rsync is the mirror back-up of data instrument under class unix system, and it can preserve whole directory tree and file system by mirror image, and only when first time is synchronous rsync can copy full content, but once only transmit upper the file revised.Rsync can carry out compression and decompression operation in the process of transmission data, therefore can use less bandwidth.
So far, the flow process shown in Fig. 1 is completed.
By the flow process shown in Fig. 1, achieve and carry out the backup that iscsi rolls up file on a storage device.So, based on this backup, then when described first storage device failure or described iscsi_a roll up fault, client can be recovered and access the file of iscsi_b volume in the second memory device, and this can ensure the reliability of data access.
It should be noted that, in the above description, preferably, the first memory device, the second memory device can be the memory devices based on Linux.
Above method provided by the invention is described, below device provided by the invention is described:
See the structure drawing of device that Fig. 2, Fig. 2 provide for the embodiment of the present invention.Memory device is can be during this device specific implementation.
Preferably, in the present invention, when described memory device is the first memory device, as shown in Figure 2, this first memory device can comprise:
First storage unit, for storing iscsi_a volume, the file in described iscsi_a volume is for storing for read-write on client side;
Carry unit, is loaded onto local first catalogue for being wrapping with by the iscsi_b after formatted on the second memory device;
Snapshot unit, for regular or cycle be local formatted after the iscsi_a snapshot iscsi_a_snapshot that rolls up establishment one corresponding roll up, and iscsi_a_snapshot is wrapping with the second catalogue being loaded onto this locality;
Backup units, for by under file backup to the first catalogue under described second catalogue.
And when described memory device is the second memory device, as shown in Figure 2, this second memory device only comprises:
Second storage unit, for storing iscsi_b volume, described iscsi_b volume is for backing up the file in iscsi_a volume, and this iscsi_b rolls up by client formatting;
Wherein, described iscsi_a volume and iscsi_b volume are formatted into identical file type, and at formatted front mount in client, after formatted, iscsi_b rolls up and unloaded by from client, and the iscsi_a after only formatted is wrapping with and is loaded in client.
Preferably, in the present invention, described carry unit obtains formatted on described second memory device iscsi_b volume by iscsi, and to be wrapping with by the iscsi_b of this acquisition by mount mode and to be loaded onto local first catalogue.
In the present invention, described backup units passes through mirror back-up of data instrument rsync by under file backup to the first catalogue under described second catalogue.
So far, complete the device shown in Fig. 2 to describe.
As can be seen from the above technical solutions, in the present invention, by creating iscsi_a volume on the first memory device, second memory device creates iscsi_b volume, wherein, iscsi_a volume is used for read-write on client side, and iscsi_b volume is for backing up the file in iscsi_a volume, described client is rolled up and iscsi_b volume at local carry iscsi_a, described client is by the iscsi_a volume on the first memory device, and second iscsi_b volume format on memory device change into same file type, and after completing format, by the iscsi_b volume unloading at local carry, and the iscsi_b after formatted on described second memory device is wrapping with and is loaded onto local first catalogue by described first memory device, first memory device regularly or the cycle be local formatted after the iscsi_a snapshot iscsi_a_snapshot that rolls up establishment one corresponding roll up, and iscsi_a_snapshot is wrapping with the second catalogue being loaded onto this locality, and by under file backup to the first catalogue under described second catalogue, achieve the file backup carrying out iscsi volume at memory device, avoid many challenges that the file backup owing to carrying out iscsi volume in client brings.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (8)

1., based on the file backup method that internet small computer system interface iscsi rolls up, it is characterized in that, the method comprises:
First memory device creates iscsi_a volume, the second memory device creates iscsi_b volume, wherein, iscsi_a volume is used for read-write on client side, and iscsi_b volume is for backing up the file in iscsi_a volume;
Described client is rolled up and iscsi_b volume at local carry iscsi_a;
Iscsi_a volume on first memory device and the iscsi_b volume format on the second memory device are changed into same file type by described client, and after completing format, by the iscsi_b volume unloading at local carry;
Iscsi_b after formatted on described second memory device is wrapping with and is loaded onto local first catalogue by described first memory device;
Described first memory device regularly or the cycle be local formatted after the iscsi_a snapshot iscsi_a_snapshot that rolls up establishment one corresponding roll up, and iscsi_a_sanpshot is wrapping with the second catalogue being loaded onto this locality;
Described first memory device is by under file backup to the first catalogue under described second catalogue.
2. method according to claim 1, is characterized in that, described client is rolled up and iscsi_b volume at local carry iscsi_a by mount mode.
3. method according to claim 1, is characterized in that, described first memory device obtains formatted on described second memory device iscsi_b volume by iscsi, and to be wrapping with by the iscsib of this acquisition by mount mode and to be loaded onto local first catalogue.
4. method according to claim 1, is characterized in that, described first memory device passes through mirror back-up of data instrument rsync by under file backup to the first catalogue under described second catalogue.
5. method according to claim 1, is characterized in that, the method comprises further:
When described first storage device failure or described iscsi_a roll up fault, client is recovered and is accessed the file of iscsi_b volume in the second memory device.
6., based on the file backup device that internet small computer system interface iscsi rolls up, it is characterized in that, this device is memory device, comprising:
When described memory device is the first memory device, comprising:
First storage unit, for storing iscsi_a volume, the file in described iscsi_a volume is for storing for read-write on client side;
Carry unit, is loaded onto local first catalogue for being wrapping with by the iscsi_b after formatted on the second memory device;
Snapshot unit, for regular or cycle be local formatted after the iscsi_a snapshot iscsi_a_snapshot that rolls up establishment one corresponding roll up, and iscsi_a_snapshot is wrapping with the second catalogue being loaded onto this locality;
Backup units, for by under file backup to the first catalogue under described second catalogue;
When described memory device is the second memory device, comprising:
Second storage unit, for storing iscsi_b volume, described iscsi_b volume is for backing up the file in iscsi_a volume, and this iscsi_b rolls up by client formatting;
Wherein, described iscsi_a volume and iscsi_b volume are formatted into identical file type, and at formatted front mount in client, after formatted, iscsi_b rolls up and unloaded by from client, and the iscsi_a after only formatted is wrapping with and is loaded in client.
7. device according to claim 6, is characterized in that, described carry unit obtains formatted on described second memory device iscsi_b volume by iscsi, and to be wrapping with by the iscsi_b of this acquisition by mount mode and to be loaded onto local first catalogue.
8. device according to claim 6, is characterized in that, described backup units passes through mirror back-up of data instrument rsync by under file backup to the first catalogue under described second catalogue.
CN201210569886.2A 2012-12-25 2012-12-25 Based on file backup method and the device of iscsi volume Active CN103077098B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210569886.2A CN103077098B (en) 2012-12-25 2012-12-25 Based on file backup method and the device of iscsi volume

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210569886.2A CN103077098B (en) 2012-12-25 2012-12-25 Based on file backup method and the device of iscsi volume

Publications (2)

Publication Number Publication Date
CN103077098A CN103077098A (en) 2013-05-01
CN103077098B true CN103077098B (en) 2015-11-18

Family

ID=48153631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210569886.2A Active CN103077098B (en) 2012-12-25 2012-12-25 Based on file backup method and the device of iscsi volume

Country Status (1)

Country Link
CN (1) CN103077098B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153613A (en) * 2016-12-06 2018-06-12 中标软件有限公司 the backup method of data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1873622A (en) * 2006-04-20 2006-12-06 北京艾德斯科技有限公司 Method and equipment for backing up, replicating and recovering data under environment
CN101630281A (en) * 2009-08-25 2010-01-20 杭州华三通信技术有限公司 Image method and device of data storage
CN102750196A (en) * 2011-04-20 2012-10-24 大连兆阳软件科技有限公司 Data storage and backup system and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7743214B2 (en) * 2005-08-16 2010-06-22 Mark Adams Generating storage system commands
JP2008065392A (en) * 2006-09-04 2008-03-21 Hitachi Ltd Storage device and backup method for data using the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1873622A (en) * 2006-04-20 2006-12-06 北京艾德斯科技有限公司 Method and equipment for backing up, replicating and recovering data under environment
CN101630281A (en) * 2009-08-25 2010-01-20 杭州华三通信技术有限公司 Image method and device of data storage
CN102750196A (en) * 2011-04-20 2012-10-24 大连兆阳软件科技有限公司 Data storage and backup system and method

Also Published As

Publication number Publication date
CN103077098A (en) 2013-05-01

Similar Documents

Publication Publication Date Title
US10365982B1 (en) Establishing a synchronous replication relationship between two or more storage systems
US20220091771A1 (en) Moving Data Between Tiers In A Multi-Tiered, Cloud-Based Storage System
US10169167B2 (en) Reduced recovery time in disaster recovery/replication setup with multitier backend storage
US9032248B1 (en) Memory write tracking for virtual machines
US8438349B2 (en) Proxy backup of virtual disk image files on NAS devices
US8706694B2 (en) Continuous data protection of files stored on a remote storage device
US9128942B1 (en) On-demand operations
US11921597B2 (en) Cross-platform replication
CN103780417B (en) A kind of database failure transfer method and device based on cloud hard disk
US11442814B2 (en) Variable number and size of put operations for storage backup
CN104461687B (en) The storage method and device of a kind of virtual machine configuration information
CN102868727B (en) Method for realizing high availability of logical volume
WO2017067404A1 (en) Method of creating mirror file in logical volume, method of initiating virtual machine, and server
CN104219085A (en) Proxy server and data processing method and system of database
CN108923992A (en) A kind of NAS cluster high availability method, system and electronic equipment and storage medium
CN101808127A (en) Data backup method, system and server
CN105681420A (en) Method for realizing backup of switch operating system based on Docker
CN104750428A (en) Block storage access and gateway module, storage system and method, and content delivery apparatus
CN108205482B (en) File mount restoration methods
CN111225003B (en) NFS node configuration method and device
CN107402839B (en) Method and system for backing up data
WO2016107219A1 (en) Data recovery method and apparatus
CN103077098B (en) Based on file backup method and the device of iscsi volume
CN103019847A (en) Method and system for migrating data of virtual machine
US9274724B1 (en) Distributed virtual tape library

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Free format text: FORMER OWNER: BEIJING XINKE ANYUN INFORMATION TECHNOLOGY CO., LTD.

Effective date: 20150701

C41 Transfer of patent application or patent right or utility model
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 518057 Guangdong city of Shenzhen province Nanshan District Hing Road two No. 6 Wuhan University Shenzhen research building B403-III

Applicant after: SHENZHEN ANYUN TECHNOLOGY CO.,LTD.

Applicant after: BEIJING XINKE ANYUN INFORMAITON TECHNOLOGY CO.,LTD.

Address before: 518057 Guangdong city of Shenzhen province Nanshan District Hing Road two No. 6 Wuhan University Shenzhen research building B403-III

Applicant before: SHENZHEN ANYUN TECHNOLOGY CO.,LTD.

Applicant before: Yunhai Chuangxiang Information Technology (Beijing) Co.,Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: COOL CLOUDZ INFORMATION TECHNOLOGY (BEIJING) CO., LTD. TO: BEIJING XINKE ANYUN INFORMATION TECHNOLOGY CO., LTD.

TA01 Transfer of patent application right

Effective date of registration: 20150701

Address after: 518057 Guangdong city of Shenzhen province Nanshan District Hing Road two No. 6 Shenzhen building B403 - III University Wuhan University

Applicant after: SHENZHEN ANYUN TECHNOLOGY CO.,LTD.

Address before: 518057 Guangdong city of Shenzhen province Nanshan District Hing Road two No. 6 Wuhan University Shenzhen research building B403-III

Applicant before: SHENZHEN ANYUN TECHNOLOGY CO.,LTD.

Applicant before: BEIJING XINKE ANYUN INFORMAITON TECHNOLOGY CO.,LTD.

C14 Grant of patent or utility model
GR01 Patent grant