CN104994135A - Method and device for fusing SAN and NAS storage frameworks in storage system - Google Patents

Method and device for fusing SAN and NAS storage frameworks in storage system Download PDF

Info

Publication number
CN104994135A
CN104994135A CN201510270920.XA CN201510270920A CN104994135A CN 104994135 A CN104994135 A CN 104994135A CN 201510270920 A CN201510270920 A CN 201510270920A CN 104994135 A CN104994135 A CN 104994135A
Authority
CN
China
Prior art keywords
logical address
data
written
address
physical
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
CN201510270920.XA
Other languages
Chinese (zh)
Other versions
CN104994135B (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
Priority to CN201510270920.XA priority Critical patent/CN104994135B/en
Publication of CN104994135A publication Critical patent/CN104994135A/en
Priority to PCT/CN2016/082806 priority patent/WO2016188373A1/en
Application granted granted Critical
Publication of CN104994135B publication Critical patent/CN104994135B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • 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/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • G06F16/1824Distributed file systems implemented using Network-attached Storage [NAS] architecture
    • G06F16/1827Management specifically adapted to NAS
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)

Abstract

The invention provides a method and device for fusing SAN and NAS storage frameworks in a storage system. The method comprises steps of receiving a first data writing request sent by a network host connected with a storage system by use of the SAN framework physically, wherein the first data writing request includes the first writing data and a first logic address corresponding thereto; determining the physical address corresponding to the first logic address according to the corresponding relation between the first logic address and the physical address; and storing the first to-be-written data according to the physical address corresponding to the first logic address. According to the invention, a problem of lower storage efficiency of the SAN storage framework in the storage system in the prior art is solved.

Description

Method and the device of SAN and NAS storage architecture is merged in storage system
Technical field
The embodiment of the present invention relates to memory technology, particularly relates to the method and device that merge SAN and NAS storage architecture in a kind of storage system.
Background technology
At present, network attached storage (NAS:Network Attached Storage) and storage area network (SAN:Storage Area Network) two kinds of storage architectures are combined together.Same like this storage system just can realize the NAS storage architecture based on file-sharing between the SAN storage architecture of high speed data transfer and multiple stage network host.
In prior art, for the storage system merging SAN and NAS two kinds of storage architectures, when storage system receives data write request that the network host that adopts the physical connection mode of NAS or SAN to be connected sends (this write request comprises data to be written and logical address corresponding to these data to be written): storage system is first for the logical address that these data to be written are corresponding distributes corresponding physical address; Then whether be assigned to other logical address before determining distributed physical address, if so, then corresponding to this physical address space discharges; Finally again these data to be written are stored in the physical address corresponding to logical address corresponding to these data to be written.
But, when storing under SAN storage architecture in prior art, need the process that allocated physical address and the space corresponding to physical address discharge; Therefore the problem that the storage efficiency of SAN storage architecture is within the storage system lower is deposited.
Summary of the invention
The embodiment of the present invention provides the method and device that merge SAN and NAS storage architecture in a kind of storage system, the problem that the storage efficiency in order to solve SAN storage architecture in the storage system that exists in prior art is lower.
First aspect, the invention provides a kind of method merging SAN and NAS storage architecture in storage system, and described storage system is used for providing service to network host, and described method comprises:
Receive the first data write request of the network host transmission adopting the physical connection mode of SAN to be connected; Described first data write request comprises the first data to be written and the first logical address corresponding to described first data to be written;
According to the corresponding relation of described first logical address and physical address, determine the physical address corresponding with described first logical address;
The physical address corresponding according to described first logical address, stores described first data to be written.
In conjunction with first aspect, in the first mode in the cards of first aspect, the described physical address corresponding according to described first logical address, after storing, also comprises described first data to be written:
Receive the second data write request of the network host transmission adopting the physical connection mode of NAS to be connected; Described second data write request comprises the second data to be written and the second logical address corresponding to described second data to be written;
For described second logical address distributes corresponding physical address;
According to the physical address distributed for described second logical address, described second data to be written are stored.
In conjunction with the first mode in the cards of first aspect, in the second of first aspect mode in the cards, described basis is the physical address that described second logical address is distributed, and before storing, also comprises described second data to be written:
Be judged as whether the physical address of described second logical address distribution is assigned to other logical address;
If so, after then the space corresponding to the physical address distributed for described second logical address being discharged, then perform according to being the physical address that described second logical address is distributed, to the step that described second data to be written store;
Otherwise, directly perform according to being the physical address that described second logical address is distributed, to the step that described second data to be written store.
Second aspect, the invention provides a kind of method merging SAN and NAS storage architecture in storage system, and described storage system is used for providing service to network host, and described method comprises:
Receive data write requests, described data write request comprises data to be written and logical address corresponding to described data to be written;
Determine that described data write request is that network host that is that sent by the network host adopting the physical connection mode of SAN to be connected or that be connected by the physical connection mode of employing NAS sends;
If when described data write request is by the network host transmission adopting the physical connection mode of SAN to be connected, then according to the corresponding relation of described logical address and physical address, determine the physical address corresponding with described logical address, and the physical address corresponding according to described logical address, described data to be written are stored;
If when described data write request is by the network host transmission adopting the physical connection mode of NAS to be connected, is then that described logical address distributes corresponding physical address, and according to the physical address distributed for described logical address, stores described data to be written.
In conjunction with second aspect, in the first mode in the cards of second aspect, described basis is the physical address that described logical address is distributed, and before storing, also comprises described data to be written:
Be judged as whether physical address that described logical address is distributed is assigned to other logical address;
If so, after then the space corresponding to the physical address distributed for described logical address being discharged, then perform according to being the physical address that described logical address is distributed, to the step that described data to be written store;
Otherwise, directly perform according to being the physical address that described logical address is distributed, to the step that described data to be written store.
The third aspect, the invention provides the device merging SAN and NAS storage architecture in a kind of storage system, and described storage system is used for providing service to network host, and described device is storage system, and described device comprises:
SAN module, for receiving the first data write request of the network host transmission adopting the physical connection mode of SAN to be connected; Described first data write request comprises the first data to be written and the first logical address corresponding to described first data to be written;
Copy on write COW module, for the corresponding relation according to described first logical address and physical address, determines the physical address corresponding with described first logical address;
Writing module, for the physical address corresponding according to described first logical address, stores described first data to be written.
In conjunction with the third aspect, in the first mode in the cards of the third aspect, described device also comprises:
NAS module, for receiving the second data write request of the network host transmission adopting the physical connection mode of NAS to be connected; Described second data write request comprises the second data to be written and the second logical address corresponding to described second data to be written;
Be redirected and write ROW module, for distributing corresponding physical address for described second logical address;
Said write module, also for according to being the physical address that described second logical address is distributed, stores described second data to be written.
In conjunction with the first mode in the cards of the third aspect, in the second of the third aspect mode in the cards, described ROW module also for:
Be judged as whether the physical address of described second logical address distribution is assigned to other logical address;
If so, then the space corresponding to the physical address distributed for described second logical address is discharged.
Fourth aspect, the invention provides a kind of device merging SAN and NAS storage architecture, and described storage system is used for providing service to network host, and described device comprises:
Receiver module, for receiving data write request, described data write request comprises data to be written and logical address corresponding to described data to be written;
Processing module, for determining that described data write request is that network host that is that sent by the network host adopting the physical connection mode of SAN to be connected or that be connected by the physical connection mode of employing NAS sends; If when described data write request is by the network host transmission adopting the physical connection mode of SAN to be connected, then according to the corresponding relation of described logical address and physical address, determine the physical address corresponding with described logical address, and the physical address corresponding according to described logical address, described data to be written are stored; If when described data write request is by the network host transmission adopting the physical connection mode of NAS to be connected, is then that described logical address distributes corresponding physical address, and according to the physical address distributed for described logical address, stores described data to be written.
In conjunction with fourth aspect, in the first mode in the cards of fourth aspect, described processing module also for:
Be judged as whether physical address that described logical address is distributed is assigned to other logical address;
If so, then the space corresponding to the physical address distributed for described logical address is discharged.
5th aspect, the invention provides the device merging SAN and NAS storage architecture in a kind of storage system, and described storage system is used for providing service to network host, and described device comprises:
Communication interface, for receiving the first data write request of the network host transmission adopting the physical connection mode of SAN to be connected; Described first data write request comprises the first data to be written and the first logical address corresponding to described first data to be written;
Processor, for the corresponding relation according to described first logical address and physical address, determines the physical address corresponding with described first logical address, and the physical address corresponding according to described first logical address, described first data to be written are stored.
In conjunction with the 5th aspect, in the first mode in the cards in the 5th, described communication interface also for:
Receive the second data write request of the network host transmission adopting the physical connection mode of NAS to be connected; Described second data write request comprises the second data to be written and the second logical address corresponding to described second data to be written;
Described processor also for:
For described second logical address distributes corresponding physical address, and according to the physical address distributed for described second logical address, described second data to be written are stored.
In conjunction with the first mode in the cards of the 5th aspect, in the mode in the cards of the second in the 5th, described processor also for:
Be judged as whether the physical address of described second logical address distribution is assigned to other logical address;
If so, then the space corresponding to the physical address distributed for described second logical address is discharged.
6th aspect, the invention provides the device merging SAN and NAS storage architecture in a kind of storage system, and described storage system is used for providing service to network host, and described device comprises:
Communication interface, is connected with network by the physical connection mode of SAN and the physical connection mode of NAS, and for receiving data write request, described data write request comprises data to be written and logical address corresponding to described data to be written; Processor, for determining that described data write request is that network host that is that sent by the network host adopting the physical connection mode of SAN to be connected or that be connected by the physical connection mode of employing NAS sends; If when described data write request is by the network host transmission adopting the physical connection mode of SAN to be connected, then according to the corresponding relation of described logical address and physical address, determine the physical address corresponding with described logical address, and the physical address corresponding according to described logical address, described data to be written are stored; If when described data write request is by the network host transmission adopting the physical connection mode of NAS to be connected, is then that described logical address distributes corresponding physical address, and according to the physical address distributed for described logical address, stores described data to be written.
In conjunction with the 6th aspect, in the first mode in the cards in the 6th, described processor also for:
Be judged as whether physical address that described logical address is distributed is assigned to other logical address;
If so, then the space corresponding to the physical address distributed for described logical address is discharged.
The invention provides the method and device that merge SAN and NAS storage architecture in a kind of storage system, by the corresponding relation according to described first logical address and physical address, determine the physical address corresponding with described first logical address; Make the SAN storage architecture of data write request data write request being mainly to " covering is write " mode, storage system is when receiving the first data write request of the network host transmission adopting the physical connection mode of SAN to be connected, storage system directly can pass through the corresponding relation of the first logical address and physical address, determines the physical address corresponding with the first logical address; Avoiding when receiving the first data write request is that the first logical address distributes corresponding physical address, and the process that the space corresponding to the physical address distributed for the first logical address discharges; Improve the storage efficiency of SAN storage architecture.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the application scenarios schematic diagram of the method merging SAN and NAS storage architecture in storage system of the present invention;
Fig. 2 A is the structural representation one of storage system of the present invention;
Fig. 2 B is the structural representation two of storage system of the present invention;
Fig. 3 is the flow chart of the embodiment of the method one merging SAN and NAS storage architecture in storage system of the present invention;
Fig. 4 is the flow chart of the embodiment of the method two merging SAN and NAS storage architecture in storage system of the present invention;
Fig. 5 is the flow chart of the embodiment of the method three merging SAN and NAS storage architecture in storage system of the present invention;
Fig. 6 is the structural representation of the device embodiment one merging SAN and NAS storage architecture in storage system of the present invention;
Fig. 7 is the structural representation of the device embodiment two merging SAN and NAS storage architecture in storage system of the present invention;
Fig. 8 is the structural representation of the device embodiment three merging SAN and NAS storage architecture in storage system of the present invention;
Fig. 9 is the structural representation of the device embodiment four merging SAN and NAS storage architecture in storage system of the present invention.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the application scenarios schematic diagram of the method merging SAN and NAS storage architecture in storage system of the present invention; As shown in Figure 1, between storage system and network host 1, the physical connection mode of NAS storage architecture is adopted to be connected; Between storage system and network host 2, the physical connection mode of SAN storage architecture is adopted to be connected.Like this, same storage system just can realize the NAS storage architecture based on file-sharing between the SAN storage architecture of high speed data transfer and multiple host.In SAN storage architecture, Internet protocol (IP can be passed through between network host 2 and storage system, Internet Protocol) network or optical-fibre channel (FC, Fibre Channel) network interconnection, and based on internet small computer interface (iSCSI, internet SCSI) agreement or FC protocol interaction; In NAS framework, be connected by IP network between network host 1 and storage system, and carry out alternately based on public the Internet system (CIFS, CommonInternet File System) agreement or NFS (NFS, Network File System) agreement.
When storage system receives data write request that network host 1 or network host 2 send (this write request comprises data to be written and logical address corresponding to these data to be written), the processing mode that storage system adopts is all: first for the logical address that these data to be written are corresponding distributes corresponding physical address; Then whether be assigned to other logical address before determining distributed physical address, if so, then corresponding to this physical address space discharges; Finally again these data to be written are stored in the physical address corresponding to logical address corresponding to these data to be written.But adopting above-mentioned is first that logical address distributes corresponding physical address, then under the prerequisite discharged in the space determined corresponding to this physical address, to the processing mode that data to be written store, there is the problem that SAN storage architecture storage efficiency is lower.
Fig. 2 A is the structural representation one of storage system of the present invention, as shown in Figure 2 A, storage system comprises: IP interface, storage of processor (storage processor), list type SCSI (SAS interface, SerialAttached SCSI) and hard disk.Wherein, IP interface, is connected with network, for receiving data write request by the physical connection mode of SAN and the physical connection mode of NAS; Hard disk is for storing data; Storage of processor be used for according to IP interface to data write request write data by SAS interface to hard disk.
Fig. 2 B is the structural representation two of storage system of the present invention, and as shown in Figure 2 B, storage system comprises: IP interface, FC interface, storage of processor, list type SCSI and hard disk.Wherein, IP interface, is connected with network by the physical connection mode of NAS, for receiving data write request; FC interface, is connected with network for the physical connection mode by SAN, for receiving data write request; Hard disk is for storing data; Storage of processor be used for according to IP interface and FC interface to data write request write data by SAS interface to hard disk.
It should be noted that, the hard disk in Fig. 2 A and Fig. 2 B uses as memory cell, for storing data; Hard disk in Fig. 2 A and Fig. 2 B also can replace with other memory devices; Also corresponding change should be there is in corresponding interface between its to storage of processor.
Fig. 3 is the flow chart of the embodiment of the method one merging SAN and NAS storage architecture in storage system of the present invention, and as shown in Figure 3, the method for the present embodiment can comprise:
Step 301, storage system receive the first data write request of the network host transmission adopting the physical connection mode of SAN to be connected; Described first data write request comprises the first data to be written and the first logical address corresponding to described first data to be written;
Step 302, described storage system, according to the corresponding relation of described first logical address and physical address, determine the physical address corresponding with described first logical address;
The physical address that step 303, described storage system are corresponding according to described first logical address, stores described first data to be written.
It should be noted that, the described physical address corresponding according to described first logical address, described first data to be written are stored, can be: the physical address that the processor in storage system is corresponding according to described first logical address, described first data to be written are written to the memory cell in storage system.
In prior art, when receiving the data write request of the network host transmission adopting the physical connection mode of SAN (or NAS) to be connected, need first for logical address distributes corresponding physical address, be defined as, under the prerequisite that discharged of space corresponding to physical address that logical address distributes, storing data to be written again; Because SAN storage architecture is used for storage configuration data (such as under normal circumstances, database), its data write request is mainly the data write request of " covering is write " mode, therefore for SAN storage architecture, be all that logical address distributes a corresponding physical address to every secondary data write request, there is the problem that SAN storage architecture storage efficiency is lower.
In the embodiment of the present invention, by receiving the first data write request that the network host that adopts the physical connection mode of SAN to be connected sends, described first data write request comprises the first data to be written and the first logical address corresponding to described first data to be written; According to the corresponding relation of the first logical address and physical address, determine the physical address corresponding with described first logical address; Make the SAN storage architecture of data write request data write request being mainly to " covering is write " mode, storage system is when receiving the first data write request of the network host transmission adopting the physical connection mode of SAN to be connected, storage system directly can pass through the corresponding relation of the first logical address and physical address, determine that the data write request that the network host that the physical address process corresponding with the first logical address adopts the physical connection mode of SAN to connect sends (is also, storage system adopts Copy on write (COW, copy-on-write); Avoiding when receiving the first data write request is that the first logical address distributes corresponding physical address, and to the process that the space corresponding to the physical address distributed for the first logical address discharges; Improve the storage efficiency of SAN storage architecture.Meanwhile, because the content that the logical address in the data write request of " covering is write " mode is corresponding is thus continually updated; Therefore, the present invention, by determining the physical address of data to be stored according to the corresponding relation of logical address and physical address, can guarantee under the prerequisite to the correct storage of data to be stored, improves the storage efficiency of SAN storage architecture.
Fig. 4 is the flow chart of the embodiment of the method two merging SAN and NAS storage architecture in storage system of the present invention, and as shown in Figure 4, the present embodiment, on the basis of embodiment of the method shown in Fig. 3, can also comprise:
Step 401, described storage system receive the second data write request of the network host transmission adopting the physical connection mode of NAS to be connected; Described second data write request comprises the second data to be written and the second logical address corresponding to described second data to be written;
It should be noted that not have sequencing between step 401 and step 301.
Step 402, described storage system are that described second logical address distributes corresponding physical address;
Step 403, described storage system are judged as whether the physical address of described second logical address distribution is assigned to other logical address;
If so, then step 404 is performed; Otherwise, perform step 405;
Step 404, described storage system discharge the space corresponding to the physical address distributed for described second logical address;
It should be noted that, after step 404 executes, perform step 405.
Step 405, described storage system, according to the physical address distributed for described second logical address, store described second data to be written.
In prior art, the data write request of NAS storage architecture is mainly the data write request of " increase newly and write " mode; In the present embodiment, by receiving the second data write request of the network host transmission adopting the physical connection mode of NAS to be connected; Described second data write request comprises the second data to be written and the second logical address corresponding to described second data to be written; The data write request that the network host that the mode process distributing corresponding physical address for described second logical address adopts the physical connection mode of NAS to connect sends (is also, storage system adopts to be redirected and writes (ROW, Redirect-on-write); Make the NAS storage architecture of data write request data write request being mainly to " again writing " mode, storage system, when receiving the second data write request of the network host transmission adopting the physical connection mode of NAS to be connected, can be that the second logical address distributes corresponding physical address.For the storage system merging SAN and NAS two kinds of storage architectures, achieve for SAN and NAS application scenarios corresponding respectively, adopt corresponding processing mode (also namely for the COW processing mode that SAN adopts, adopting the processing mode of ROW for NAS).
Fig. 5 is the flow chart of the embodiment of the method three merging SAN and NAS storage architecture in storage system of the present invention, and as shown in Figure 5, the method for the present embodiment can comprise:
Step 501, storage system receive data write requests, and described data write request comprises data to be written and logical address corresponding to described data to be written;
Step 502, described storage system determine that described data write request is that network host that is that sent by the network host adopting the physical connection mode of SAN to be connected or that be connected by the physical connection mode of employing NAS sends;
Step 503, if when described data write request is by the network host transmission adopting the physical connection mode of SAN to be connected, then described storage system is according to the corresponding relation of described logical address and physical address, determine the physical address corresponding with described logical address, and the physical address corresponding according to described logical address, described data to be written are stored; If when described data write request is by the network host transmission adopting the physical connection mode of NAS to be connected, then described storage system is that described logical address distributes corresponding physical address, and according to the physical address distributed for described logical address, described data to be written are stored.
Optionally, described basis is the physical address that described logical address is distributed, and can also comprise before storing to described data to be written:
Be judged as whether physical address that described logical address is distributed is assigned to other logical address; If so, after then the space corresponding to the physical address distributed for described logical address being discharged, then perform according to being the physical address that described logical address is distributed, to the step that described data to be written store; Otherwise, directly perform according to being the physical address that described logical address is distributed, to the step that described data to be written store.
In prior art, when receiving the data write request of the network host transmission adopting the physical connection mode of SAN (or NAS) to be connected, need first for logical address distributes corresponding physical address, be defined as, under the prerequisite that discharged of space corresponding to physical address that logical address distributes, storing data to be written again; Because SAN storage architecture is used for storage configuration data (such as under normal circumstances, database), its data write request is mainly the data write request of " covering is write " mode, therefore for SAN storage architecture, be all that logical address distributes a corresponding physical address to every secondary data write request, there is the problem that SAN storage architecture storage efficiency is lower.
In the embodiment of the present invention, if when being by the network host transmission adopting the physical connection mode of SAN to be connected by described data write request, then according to the corresponding relation of described logical address and physical address, determine the physical address corresponding with described logical address, and the physical address corresponding according to described logical address, described data to be written are stored; If when described data write request is by the network host transmission adopting the physical connection mode of NAS to be connected, is then that described logical address distributes corresponding physical address, and according to the physical address distributed for described logical address, stores described data to be written; Make SAN storage architecture data write request type being mainly to " covering is write ", storage system is when receiving the data write request of the network host transmission adopting the physical connection mode of SAN to be connected, can directly by the corresponding relation of logical address and physical address, determine that the data write request that the network host that the mode process of the physical address corresponding with logical address adopts the physical connection mode of SAN to connect sends (is also, storage system adopts Copy on write (COW, copy-on-write); Avoiding when receiving data write request is that logical address distributes corresponding physical address, and to the process that the space corresponding to the physical address distributed for logical address discharges; Improve the storage efficiency of SAN storage architecture.Meanwhile, because the content that the logical address in the data write request of " covering is write " mode is corresponding is thus continually updated; Therefore, the present invention, by determining the physical address of data to be stored according to the corresponding relation of logical address and physical address, can guarantee under the prerequisite to the correct storage of data to be stored, improves the storage efficiency of SAN storage architecture.
Fig. 6 is the structural representation of the device embodiment one merging SAN and NAS storage architecture in storage system of the present invention, and as shown in Figure 6, the device of the present embodiment can comprise: SAN module 601, COW module 602 and writing module 603.Wherein, SAN module 601, for receiving the first data write request of the network host transmission adopting the physical connection mode of SAN to be connected; Described first data write request comprises the first data to be written and the first logical address corresponding to described first data to be written; COW module 602, for the corresponding relation according to described first logical address and physical address, determines the physical address corresponding with described first logical address; Writing module 603, for the physical address corresponding according to described first logical address, stores described first data to be written.
The device of the present embodiment, may be used for the technical scheme performing embodiment of the method shown in Fig. 3, it realizes principle and technique effect is similar, repeats no more herein.
Fig. 7 is the structural representation of the device embodiment two merging SAN and NAS storage architecture in storage system of the present invention; As shown in Figure 7, the device of the present embodiment, on the basis of Fig. 6 shown device structure, further, can also comprise: NAS module 604 and ROW module 605.Wherein, NAS module 604, for receiving the second data write request of the network host transmission adopting the physical connection mode of NAS to be connected; Described second data write request comprises the second data to be written and the second logical address corresponding to described second data to be written; ROW module 605, for distributing corresponding physical address for described second logical address; Writing module 603, also for according to being the physical address that described second logical address is distributed, stores described second data to be written.
Optionally, ROW module 605 also for: be judged as whether the physical address that described second logical address is distributed is assigned to other logical address; If so, then the space corresponding to the physical address distributed for described second logical address is discharged.
The device of the present embodiment, may be used for the technical scheme performing embodiment of the method shown in Fig. 4, it realizes principle and technique effect is similar, repeats no more herein.
Fig. 8 is the structural representation of the device embodiment three merging SAN and NAS storage architecture in storage system of the present invention, and as shown in Figure 8, the device of the present embodiment can comprise: receiver module 801, processing module 802.Wherein, receiver module 801, for receiving data write request, described data write request comprises data to be written and logical address corresponding to described data to be written; Processing module 802, for determining that described data write request is that network host that is that sent by the network host adopting the physical connection mode of SAN to be connected or that be connected by the physical connection mode of employing NAS sends; If when described data write request is by the network host transmission adopting the physical connection mode of SAN to be connected, then according to the corresponding relation of described logical address and physical address, determine the physical address corresponding with described logical address, and the physical address corresponding according to described logical address, described data to be written are stored; If when described data write request is by the network host transmission adopting the physical connection mode of NAS to be connected, is then that described logical address distributes corresponding physical address, and according to the physical address distributed for described logical address, stores described data to be written.
Optionally, processing module 802 also for: be judged as whether physical address that described logical address is distributed is assigned to other logical address; If so, then the space corresponding to the physical address distributed for described logical address is discharged.
The device of the present embodiment, may be used for the technical scheme performing embodiment of the method shown in Fig. 5, it realizes principle and technique effect is similar, repeats no more herein.
Fig. 9 is the structural representation of the device embodiment four merging SAN and NAS storage architecture in storage system of the present invention, and as shown in Figure 9, the device of the present embodiment can comprise: communication interface 901 and processor 902.Wherein, communication interface 901, for receiving the first data write request of the network host transmission adopting the physical connection mode of SAN to be connected; Described first data write request comprises the first data to be written and the first logical address corresponding to described first data to be written; Processor 902, for the corresponding relation according to described first logical address and physical address, determines the physical address corresponding with described first logical address; The physical address corresponding according to described first logical address, stores described first data to be written.
The device of the present embodiment, may be used for the technical scheme performing embodiment of the method shown in Fig. 3, it realizes principle and technique effect is similar, repeats no more herein.
Optionally, communication interface 901, also for receiving the second data write request of the network host transmission adopting the physical connection mode of NAS to be connected; Described second data write request comprises the second data to be written and the second logical address corresponding to described second data to be written; Processor 902, also for distributing corresponding physical address for described second logical address; According to the physical address distributed for described second logical address, described second data to be written are stored.
Optionally, processor 902 also for: be judged as whether the physical address that described second logical address is distributed is assigned to other logical address; If so, then the space corresponding to the physical address distributed for described second logical address is discharged.
It should be noted that, communication interface 901 can be the IP interface in Fig. 2 A, and processor 902 can be the storage of processor in Fig. 2 A; Or communication interface 901 can be IP interface in Fig. 2 B and FC interface, and processor 902 can be the storage of processor in Fig. 2 B.
The device of the present embodiment, may be used for the technical scheme performing embodiment of the method shown in Fig. 3, Fig. 4, it realizes principle and technique effect is similar, repeats no more herein.
The device embodiment five of SAN and NAS storage architecture is merged in storage system of the present invention
The structure of the device of the present embodiment is identical with the structure shown in Fig. 9, equally also comprises communication interface and processor.Wherein, communication interface, is connected with network by the physical connection mode of SAN and the physical connection mode of NAS, and for receiving data write request, described data write request comprises data to be written and logical address corresponding to described data to be written; Processor, for determining that described data write request is that network host that is that sent by the network host adopting the physical connection mode of SAN to be connected or that be connected by the physical connection mode of employing NAS sends; If when described data write request is by the network host transmission adopting the physical connection mode of SAN to be connected, then according to the corresponding relation of described logical address and physical address, determine the physical address corresponding with described logical address, and the physical address corresponding according to described logical address, described data to be written are stored; If when described data write request is by the network host transmission adopting the physical connection mode of NAS to be connected, is then that described logical address distributes corresponding physical address, and according to the physical address distributed for described logical address, stores described data to be written.
Optionally, processor also for: be judged as whether physical address that described logical address is distributed is assigned to other logical address; If so, then the space corresponding to the physical address distributed for described logical address is discharged.
The device of the present embodiment, may be used for the technical scheme performing embodiment of the method shown in Fig. 5, it realizes principle and technique effect is similar, repeats no more herein.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that program command is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (15)

1. merge a method for Store Area Network and network attached storage NAS storage architecture in storage system, described storage system is used for providing service to network host, and it is characterized in that, described method comprises:
Receive the first data write request of the network host transmission adopting the physical connection mode of SAN to be connected; Described first data write request comprises the first data to be written and the first logical address corresponding to described first data to be written;
According to the corresponding relation of described first logical address and physical address, determine the physical address corresponding with described first logical address;
The physical address corresponding according to described first logical address, stores described first data to be written.
2. method according to claim 1, is characterized in that, described method, also comprises:
Receive the second data write request of the network host transmission adopting the physical connection mode of NAS to be connected; Described second data write request comprises the second data to be written and the second logical address corresponding to described second data to be written;
For described second logical address distributes corresponding physical address;
According to the physical address distributed for described second logical address, described second data to be written are stored.
3. method according to claim 2, is characterized in that, described basis is the physical address that described second logical address is distributed, and before storing, also comprises described second data to be written:
Be judged as whether the physical address of described second logical address distribution is assigned to other logical address;
If so, after then the space corresponding to the physical address distributed for described second logical address being discharged, then perform according to being the physical address that described second logical address is distributed, to the step that described second data to be written store;
Otherwise, directly perform according to being the physical address that described second logical address is distributed, to the step that described second data to be written store.
4. merge a method for Store Area Network and network attached storage NAS storage architecture in storage system, described storage system is used for providing service to network host, and it is characterized in that, described method comprises:
Receive data write requests, described data write request comprises data to be written and logical address corresponding to described data to be written;
Determine that described data write request is that network host that is that sent by the network host adopting the physical connection mode of SAN to be connected or that be connected by the physical connection mode of employing NAS sends;
If when described data write request is by the network host transmission adopting the physical connection mode of SAN to be connected, then according to the corresponding relation of described logical address and physical address, determine the physical address corresponding with described logical address, and the physical address corresponding according to described logical address, described data to be written are stored;
If when described data write request is by the network host transmission adopting the physical connection mode of NAS to be connected, is then that described logical address distributes corresponding physical address, and according to the physical address distributed for described logical address, stores described data to be written.
5. method according to claim 4, is characterized in that, described basis is the physical address that described logical address is distributed, and before storing, also comprises described data to be written:
Be judged as whether physical address that described logical address is distributed is assigned to other logical address;
If so, after then the space corresponding to the physical address distributed for described logical address being discharged, then perform according to being the physical address that described logical address is distributed, to the step that described data to be written store;
Otherwise, directly perform according to being the physical address that described logical address is distributed, to the step that described data to be written store.
6. merge a device for Store Area Network and network attached storage NAS storage architecture in storage system, described storage system is used for providing service to network host, and it is characterized in that, described device comprises:
SAN module, for receiving the first data write request of the network host transmission adopting the physical connection mode of SAN to be connected; Described first data write request comprises the first data to be written and the first logical address corresponding to described first data to be written;
Copy on write COW module, for the corresponding relation according to described first logical address and physical address, determines the physical address corresponding with described first logical address;
Writing module, for the physical address corresponding according to described first logical address, stores described first data to be written.
7. device according to claim 6, is characterized in that, described device also comprises:
NAS module, for receiving the second data write request of the network host transmission adopting the physical connection mode of NAS to be connected; Described second data write request comprises the second data to be written and the second logical address corresponding to described second data to be written;
Be redirected and write ROW module, for distributing corresponding physical address for described second logical address;
Said write module, also for according to being the physical address that described second logical address is distributed, stores described second data to be written.
8. device according to claim 7, is characterized in that, described ROW module also for:
Be judged as whether the physical address of described second logical address distribution is assigned to other logical address;
If so, then the space corresponding to the physical address distributed for described second logical address is discharged.
9. merge a device for Store Area Network and network attached storage NAS storage architecture in storage system, described storage system is used for providing service to network host, and it is characterized in that, described device comprises:
Receiver module, for receiving data write request, described data write request comprises data to be written and logical address corresponding to described data to be written;
Processing module, for determining that described data write request is that network host that is that sent by the network host adopting the physical connection mode of SAN to be connected or that be connected by the physical connection mode of employing NAS sends; If when described data write request is by the network host transmission adopting the physical connection mode of SAN to be connected, then according to the corresponding relation of described logical address and physical address, determine the physical address corresponding with described logical address, and the physical address corresponding according to described logical address, described data to be written are stored; If when described data write request is by the network host transmission adopting the physical connection mode of NAS to be connected, is then that described logical address distributes corresponding physical address, and according to the physical address distributed for described logical address, stores described data to be written.
10. device according to claim 9, is characterized in that, described processing module also for:
Be judged as whether physical address that described logical address is distributed is assigned to other logical address;
If so, then the space corresponding to the physical address distributed for described logical address is discharged.
Merge the device of Store Area Network and network attached storage NAS storage architecture in 11. 1 kinds of storage systems, described storage system is used for providing service to network host, and it is characterized in that, described device comprises:
Communication interface, for receiving the first data write request of the network host transmission adopting the physical connection mode of SAN to be connected; Described first data write request comprises the first data to be written and the first logical address corresponding to described first data to be written;
Processor, for the corresponding relation according to described first logical address and physical address, determines the physical address corresponding with described first logical address, and the physical address corresponding according to described first logical address, described first data to be written are stored.
12. devices according to claim 11, is characterized in that, described communication interface also for:
Receive the second data write request of the network host transmission adopting the physical connection mode of NAS to be connected; Described second data write request comprises the second data to be written and the second logical address corresponding to described second data to be written;
Described processor also for:
For described second logical address distributes corresponding physical address, and according to the physical address distributed for described second logical address, described second data to be written are stored.
13. devices according to claim 12, is characterized in that, described processor also for:
Be judged as whether the physical address of described second logical address distribution is assigned to other logical address;
If so, then the space corresponding to the physical address distributed for described second logical address is discharged.
Merge the device of Store Area Network and network attached storage NAS storage architecture in 14. 1 kinds of storage systems, described storage system is used for providing service to network host, and it is characterized in that, described device comprises:
Communication interface, is connected with network by the physical connection mode of SAN and the physical connection mode of NAS, and for receiving data write request, described data write request comprises data to be written and logical address corresponding to described data to be written; Processor, for determining that described data write request is that network host that is that sent by the network host adopting the physical connection mode of SAN to be connected or that be connected by the physical connection mode of employing NAS sends; If when described data write request is by the network host transmission adopting the physical connection mode of SAN to be connected, then according to the corresponding relation of described logical address and physical address, determine the physical address corresponding with described logical address, and the physical address corresponding according to described logical address, described data to be written are stored; If when described data write request is by the network host transmission adopting the physical connection mode of NAS to be connected, is then that described logical address distributes corresponding physical address, and according to the physical address distributed for described logical address, stores described data to be written.
15. devices according to claim 14, is characterized in that, described processor also for:
Be judged as whether physical address that described logical address is distributed is assigned to other logical address;
If so, then the space corresponding to the physical address distributed for described logical address is discharged.
CN201510270920.XA 2015-05-25 2015-05-25 The method and device of SAN and NAS storage architectures is merged in storage system Active CN104994135B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510270920.XA CN104994135B (en) 2015-05-25 2015-05-25 The method and device of SAN and NAS storage architectures is merged in storage system
PCT/CN2016/082806 WO2016188373A1 (en) 2015-05-25 2016-05-20 Method and apparatus for fusing san and nas storage architectures in storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510270920.XA CN104994135B (en) 2015-05-25 2015-05-25 The method and device of SAN and NAS storage architectures is merged in storage system

Publications (2)

Publication Number Publication Date
CN104994135A true CN104994135A (en) 2015-10-21
CN104994135B CN104994135B (en) 2018-09-21

Family

ID=54305886

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510270920.XA Active CN104994135B (en) 2015-05-25 2015-05-25 The method and device of SAN and NAS storage architectures is merged in storage system

Country Status (2)

Country Link
CN (1) CN104994135B (en)
WO (1) WO2016188373A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016188373A1 (en) * 2015-05-25 2016-12-01 华为技术有限公司 Method and apparatus for fusing san and nas storage architectures in storage system
CN106997274A (en) * 2016-01-25 2017-08-01 中兴通讯股份有限公司 A kind of framework and method for realizing storage space management
CN107707628A (en) * 2017-09-06 2018-02-16 华为技术有限公司 Method and apparatus for transmitting data processing request
WO2020253407A1 (en) * 2019-06-18 2020-12-24 华为技术有限公司 Method and device for executing write operation and read operation
CN116069685A (en) * 2023-03-07 2023-05-05 浪潮电子信息产业股份有限公司 Storage system write control method, device, equipment and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1628200A1 (en) * 2004-07-21 2006-02-22 Hitachi, Ltd. Storage system
CN101075203A (en) * 2006-05-18 2007-11-21 株式会社日立制作所 Storage system and method of producing recovery volume
CN101566927A (en) * 2008-04-23 2009-10-28 杭州华三通信技术有限公司 Memory system, memory controller and data caching method
CN101710323A (en) * 2008-09-11 2010-05-19 威睿公司 Computer storage deduplication
CN101751233A (en) * 2009-12-31 2010-06-23 成都索贝数码科技股份有限公司 Method and system for expanding capacity of memory device
CN102622189A (en) * 2011-12-31 2012-08-01 成都市华为赛门铁克科技有限公司 Storage virtualization device, data storage method and system
US20130290648A1 (en) * 2012-04-27 2013-10-31 Netapp, Inc. Efficient data object storage and retrieval
CN104246707A (en) * 2012-04-27 2014-12-24 株式会社日立制作所 Storage system and storage apparatus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808243B (en) * 2010-03-11 2012-04-18 杭州华三通信技术有限公司 Data processing method and device based on snapshot
CN104994135B (en) * 2015-05-25 2018-09-21 华为技术有限公司 The method and device of SAN and NAS storage architectures is merged in storage system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1628200A1 (en) * 2004-07-21 2006-02-22 Hitachi, Ltd. Storage system
CN101075203A (en) * 2006-05-18 2007-11-21 株式会社日立制作所 Storage system and method of producing recovery volume
CN101566927A (en) * 2008-04-23 2009-10-28 杭州华三通信技术有限公司 Memory system, memory controller and data caching method
CN101710323A (en) * 2008-09-11 2010-05-19 威睿公司 Computer storage deduplication
CN101751233A (en) * 2009-12-31 2010-06-23 成都索贝数码科技股份有限公司 Method and system for expanding capacity of memory device
CN102622189A (en) * 2011-12-31 2012-08-01 成都市华为赛门铁克科技有限公司 Storage virtualization device, data storage method and system
US20130290648A1 (en) * 2012-04-27 2013-10-31 Netapp, Inc. Efficient data object storage and retrieval
CN104246707A (en) * 2012-04-27 2014-12-24 株式会社日立制作所 Storage system and storage apparatus

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016188373A1 (en) * 2015-05-25 2016-12-01 华为技术有限公司 Method and apparatus for fusing san and nas storage architectures in storage system
CN106997274A (en) * 2016-01-25 2017-08-01 中兴通讯股份有限公司 A kind of framework and method for realizing storage space management
CN106997274B (en) * 2016-01-25 2021-04-30 中兴通讯股份有限公司 Architecture and method for realizing storage space management
CN107707628A (en) * 2017-09-06 2018-02-16 华为技术有限公司 Method and apparatus for transmitting data processing request
CN107707628B (en) * 2017-09-06 2020-06-02 华为技术有限公司 Method and apparatus for transmitting data processing requests
US11544001B2 (en) 2017-09-06 2023-01-03 Huawei Technologies Co., Ltd. Method and apparatus for transmitting data processing request
WO2020253407A1 (en) * 2019-06-18 2020-12-24 华为技术有限公司 Method and device for executing write operation and read operation
CN116069685A (en) * 2023-03-07 2023-05-05 浪潮电子信息产业股份有限公司 Storage system write control method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
WO2016188373A1 (en) 2016-12-01
CN104994135B (en) 2018-09-21

Similar Documents

Publication Publication Date Title
US10628043B1 (en) Systems and methods for implementing a horizontally federated heterogeneous cluster
US10001947B1 (en) Systems, methods and devices for performing efficient patrol read operations in a storage system
US10852966B1 (en) System and method for creating mapped RAID group during expansion of extent pool
US9122787B2 (en) Method and apparatus to utilize large capacity disk drives
US10917469B2 (en) Read performance enhancement by enabling read from secondary in highly available cluster setup
US8996758B2 (en) Non-disruptive configuration of a virtualization controller in a data storage system
CN104657316A (en) Server
CN103763383A (en) Integrated cloud storage system and storage method thereof
CN104994135A (en) Method and device for fusing SAN and NAS storage frameworks in storage system
CN103152397A (en) Method for designing multi-control storage system
US8566636B2 (en) Application recovery in a file system
US20150199147A1 (en) Storage thin provisioning and space reclamation
CN102024044A (en) Distributed file system
US10235082B1 (en) System and method for improving extent pool I/O performance by introducing disk level credits on mapped RAID
US9547616B2 (en) High bandwidth symmetrical storage controller
US10592165B1 (en) Method, apparatus and computer program product for queueing I/O requests on mapped RAID
CN103645969A (en) Data replication method and data storage system
CN103608784A (en) Method for creating network volumes, data storage method, storage device and storage system
CN102982182A (en) Data storage planning method and device
US10585763B2 (en) Rebuild rollback support in distributed SDS systems
US11314447B2 (en) System and method for sustaining single NVMe subsystem by a federated storage array for NVMe-oF connectivity
US11347414B2 (en) Using telemetry data from different storage systems to predict response time
US10095625B2 (en) Storage system and method for controlling cache
US10782894B1 (en) Reducing overlap through shuffle and keeping relationship balance on mapped RAID system and method
US9069471B2 (en) Passing hint of page allocation of thin provisioning with multiple virtual volumes fit to parallel data access

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant