Data reading-writing method and device for remote data storage and system thereof

A remote data and data technology, applied in the field of elastic computing cloud technology and remote data storage and remote data storage, can solve the problem of high cost of purchasing or renting storage resources, and achieve the effect of saving occupation, reducing costs, and optimizing remote storage services.

Active Publication Date: 2012-07-04
ALIBABA GRP HLDG LTD
View PDF6 Cites 36 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, data storage services based on remote storage resource pools generally require service providers to purchase or rent storage resources provided by the storage resource pool provider. Usually, the cost of purchasing or renting storage resources is very high, so for serv

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data reading-writing method and device for remote data storage and system thereof
  • Data reading-writing method and device for remote data storage and system thereof
  • Data reading-writing method and device for remote data storage and system thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0042] Based on the architecture of the remote network storage service applied in the embodiment of the present application described above, when the block device driver 20 in the kernel state forwards the data read and write request sent from the bottom layer of the physical server to a server 22 in the user state, the data The read and write request will contain two important pieces of information, one is the offset: the offset of the starting position of the requested data on the disk relative to the starting position of the corresponding block device, and the other is the length value of the requested data length.

[0043] Specifically, according to the offset information contained in the data read and write request, the start sector number start_sector_id of the requested data in the disk space occupied by the corresponding block device can be calculated according to the following formula:

[0044] start_sector_id=offset / sector_size;

[0045] Among them, sector_size is th...

Embodiment 1

[0057] Embodiment 1, write data flow:

[0058] Such as Figure 4 As shown, it is a processing flow chart of writing data processing proposed in the embodiment of the present application, specifically as follows:

[0059] Step 40, the server in the user state receives the write data request forwarded by the block device driver in the kernel state and the data requested to be written;

[0060] Step 41, according to the offset value and length value contained in the received data write request, the server determines the data for storing the requested write data according to the method of determining the corresponding sector number set sector_set for the data read and write request described above The sector number set sector_set composed of the sector numbers corresponding to each sector of ;

[0061] Step 42, the server traverses each sector_id in the sector_set determined above;

[0062] Step 43, the server sets the bit position of the bitmap corresponding to the sector_id f...

Embodiment 2

[0069] Embodiment 2, device for writing data:

[0070] The device for writing data can run in the server in the user mode, and it can be realized by a computer program, or it can be realized by logical design of hardware with related functions. Such as Figure 5 As shown, it is a schematic diagram of the specific composition and structure of the write data processing device proposed by the embodiment of the present application, specifically including a request receiving unit 50 for receiving the write data request forwarded by the block device driver in the kernel state and the data requested to be written. The sector number determination unit 51 is used to determine the sector number sector_id corresponding to each sector for storing the data requested to be written according to the parameter for determining the sector number sector_id included in the write data request received by the request receiving unit 50 Specifically, the sector number determination unit 51 may includ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a data writing method for realizing remote data storage, which comprises the following steps: receiving a data writing request and requested write-in data; according to parameters used for determining sector numbers in the data writing request, determining the sector numbers which respectively correspond to all sectors used for storing the requested write-in data; respectively executing by aiming at each determined sector number; according to corresponding relations aiming at the block device identification-marked sector numbers of block device maintenance and marker bits in the data writing request, setting the marker bits which correspond to the sector numbers, wherein sectors marked by the sector numbers which correspond to the unset marker bits are used for storing the raw data of a block device or do not store the data, and the sectors marked by the sector numbers which correspond to the set marker bits are used for storing updated data of the block device; according to block device identifications, the sector numbers and arrow marks used for pointing to the updated data of the block device, generating corresponding key values; and correspondingly storing all the generated key values and the requested write-in data to remote storage resource pools.

Description

technical field [0001] The present application relates to the technical field of elastic computing cloud and remote data storage technology, and in particular to a data reading and writing method, device and system for realizing remote data storage in an elastic computing cloud system. Background technique [0002] Elastic Computing Cloud (Elastic Computing Cloud) is a cloud computing service based on virtualization technology, which virtualizes local physical servers into multiple virtual servers for use, so as to improve resource utilization and reduce costs. [0003] Traditionally, the local disk space in the local physical server is usually divided, and then each divided disk space is allocated to a virtual block device for use. In this way, the number of virtualized local physical servers into virtual servers is limited by the size of the local disk space in the local physical servers, which in turn creates a bottleneck in the development and implementation of elastic c...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F3/06
Inventor 陈伟才陈波王倩
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products