CN109597582A - A kind of data processing method and relevant device - Google Patents
A kind of data processing method and relevant device Download PDFInfo
- Publication number
- CN109597582A CN109597582A CN201811470807.6A CN201811470807A CN109597582A CN 109597582 A CN109597582 A CN 109597582A CN 201811470807 A CN201811470807 A CN 201811470807A CN 109597582 A CN109597582 A CN 109597582A
- Authority
- CN
- China
- Prior art keywords
- data
- sas card
- scsi
- hard disk
- network storage
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/061—Improving I/O performance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4004—Coupling between buses
- G06F13/4022—Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4204—Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
- G06F13/4221—Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
- G06F3/0632—Configuration or reconfiguration of storage systems by initialisation or re-initialisation of storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
- G06F3/0659—Command handling arrangements, e.g. command buffers, queues, command scheduling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/067—Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0026—PCI express
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2212/00—Encapsulation of packets
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Hardware Design (AREA)
- Mathematical Physics (AREA)
- Information Transfer Systems (AREA)
Abstract
The embodiment of the present application discloses a kind of data processing method and relevant device, network storage equipment passes through SAS card external hard drive, SCSI read write command is encapsulated as to be sent to SAS card after scsi data packet, since the data head of scsi data packet can determine target hard disk for SAS card from multiple hard disks, and SCSI read write command is sent to target hard disk, it is communicated to realize by SAS card with external hard drive to carry out Data processing, improves data processing speed.The embodiment of the present application method includes: that the network storage equipment obtains small computer system interface SCSI read write command;Network storage equipment is packaged SCSI read write command, the scsi data packet after being encapsulated;Scsi data packet is sent to SAS card by network storage equipment, and scsi data packet is used to indicate SAS card and sends target hard disk for SCSI read write command, and SCSI read write command is used to indicate target hard disk and data result corresponding with SCSI read write command is sent to SAS card;Network storage equipment obtains data result by SAS card.
Description
Technical field
This application involves field of computer more particularly to a kind of data processing method and relevant devices.
Background technique
Network storage equipment is an exclusive data storage server, including CPU, mainboard, memory etc., for provide across
Platform file sharing functionality.It is data-centered, storage equipment is separated with server, to manage data concentratedly.
With the increase of data storage capacity in network storage equipment, network storage equipment can be calculated by Parallel Small
The mode of machine system interface (small computer systeminterface, SCSI) external hard drive increases memory space,
Specifically, network storage equipment is write data into external hard drive by parallel SCSI.
But as the demand that people store data is increasing, the data processing speed of network storage equipment is proposed
Further requirement, communicated in the prior art parallel SCSI with external hard drive in a manner of handling data without
Method meets the needs of people, and a kind of more quick data processing method is urgently released.
Summary of the invention
The embodiment of the present application provides a kind of data processing method and relevant device, and it is outer that network storage equipment passes through SAS card
Hard disk is connect, SCSI read write command is encapsulated as to be sent to SAS card after scsi data packet, since the data head of scsi data packet can
So that SAS card determines target hard disk from multiple hard disks, and SCSI read write command is sent to target hard disk, to realize
It is communicated by SAS card with external hard drive to carry out Data processing, improves data processing speed.
In a first aspect, the embodiment of the present application provides a kind of data processing method, method is applied to data processing system, number
It include that network storage equipment, system for serial small computer interface SAS card and at least one hard disk, network are deposited according to processing system
Equipment is stored up by least one external hard disk of SAS card, method includes:
Network storage equipment obtains small computer system interface SCSI read write command;
Network storage equipment is packaged SCSI read write command, the scsi data packet after being encapsulated, scsi data packet
Comprising data head and data structure, data head is used to determine that the target for needing to access is hard from least one hard disk for SAS card
Disk includes SCSI read write command in data structure;
Scsi data packet is sent to SAS card by network storage equipment, and scsi data packet is used to indicate SAS card and reads SCSI
Write order is sent to target hard disk, and SCSI read write command is used to indicate target hard disk will data corresponding with SCSI read write command
As a result it is sent to SAS card;
Network storage equipment obtains data result by SAS card.
In a kind of possible implementation of the application, data structure also includes data storage address, and network storage equipment passes through
SAS card obtains data result, comprising:
Network storage equipment reads data result from data storage address, and address data memory is used to indicate SAS card will
The data result that target hard disk is sent is filled up in address data memory.
In a kind of possible implementation of the application, it is configured at least one port on SAS card, is configured on each port
With at least one one-to-one expander of port, SAS card is connect by expander at least one external equipment, and at least one
It include at least one hard disk, method in a external equipment further include:
Network storage equipment reads the configuration page information in SAS card, and configuration page information includes the ground of at least one expander
Location information, the address information of at least one external equipment, each external equipment and expander at least one external equipment
Attaching relation.
In a kind of possible implementation of the application, method further include:
Network storage equipment obtains the attribute value of SAS card, and the attribute value of SAS card is used to indicate the data processing energy of SAS card
Power;
Network storage equipment is SAS card storage allocation address space according to the data-handling capacity of SAS card;
Network storage equipment sends initialization command to SAS card, carries in initialization command and is described memory address space
Information;
Network storage equipment obtains the port attribute value of SAS card, and sends enabled order to port, and enabled order is used for
Indicate that SAS card obtains configuration page information.
Second aspect, the embodiment of the present application also provides another data processing method, method is applied to data processing system
System, data processing system includes network storage equipment, system for serial small computer interface SAS card and at least one hard disk, net
Network stores equipment by least one external hard disk of SAS card, and method includes:
SAS clamping receive simultaneously unseals small computer system interface scsi data packet, obtain scsi data packet data head and
Data structure;
SAS card determines the target hard disk for needing to access according to data head from least one hard disk;
SCSI read write command in data structure is sent to target hard disk by SAS card, and SCSI read write command is used to indicate mesh
It marks hard disk and obtains data result corresponding with SCSI read write command;
The data result that target hard disk is sent is received in SAS clamping;
Data result is sent to network storage equipment by SAS card.
In a kind of possible implementation of the application, data structure also includes data storage address, and SAS card is by data result
It is sent to network storage equipment, comprising:
Data result is written in data storage address SAS card, and data storage address is used for for network storage equipment from number
According to reading data result in storage address.
In a kind of possible implementation of the application, it is configured at least one port on SAS card, is configured on each port
With at least one one-to-one expander of port, SAS card is connect by expander at least one external equipment, and at least one
It include at least one hard disk, method in a external equipment further include:
SAS card obtain configuration page information, configuration page information include at least one expander address information, at least one
The address information of external equipment, the attaching relation of each external equipment and expander at least one external equipment.
In a kind of possible implementation of the application, method further include:
SAS card sends the attribute value of SAS card to network storage equipment, and the attribute value of SAS card is used to indicate the number of SAS card
According to processing capacity, the data-handling capacity of SAS card is used to for network storage equipment be SAS according to the data-handling capacity of SAS card
Card storage allocation address space;
The initialization command that network storage equipment is sent is received in SAS clamping, is carried in initialization command and is described memory address
The information in space;
Based on initialization command, SAS card executes initialization operation;
The enabled order in port that network storage equipment is sent is received in SAS clamping;
SAS card obtains configuration page information, specifically includes:
Based on the enabled order in port, SAS card obtains configuration page information.
The third aspect, the embodiment of the present application provide a kind of network storage equipment, and network storage equipment is contained in data processing
In system, data processing system further includes system for serial small computer interface SAS card and at least one hard disk, network storage
Equipment includes: by least one external hard disk of SAS card, network storage equipment
Acquiring unit, for obtaining small computer system interface SCSI read write command;
Encapsulation unit, for being packaged to SCSI read write command, scsi data packet after being encapsulated, scsi data
Packet includes data head and data structure, and data head is used to determine that the target for needing to access is hard from least one hard disk for SAS card
Disk includes SCSI read write command in data structure;
Transmission unit, for scsi data packet to be sent to SAS card, scsi data packet is used to indicate SAS card and reads SCSI
Write order is sent to target hard disk, and SCSI read write command is used to indicate target hard disk will data corresponding with SCSI read write command
As a result it is sent to SAS card;
Acquiring unit is also used to obtain data result by SAS card.
In a kind of possible implementation of the application, data structure also includes data storage address,
Acquiring unit is specifically used for: data result is read from data storage address, address data memory is used to indicate
The data result that target hard disk is sent is filled up in address data memory by SAS card.
In a kind of possible implementation of the application, it is configured at least one port on SAS card, is configured on each port
With at least one one-to-one expander of port, SAS card is connect by expander at least one external equipment, and at least one
It include at least one hard disk, network storage equipment in a external equipment further include:
Reading unit, for reading the configuration page information in SAS card, the configuration page information includes at least one extension
Address information, the address information of at least one external equipment of device, each external equipment and institute at least one external equipment
State the attaching relation of expander.
In a kind of possible implementation of the application, acquiring unit is also used to obtain the attribute value of SAS card, is used to indicate
The data-handling capacity of SAS card;
Network storage equipment further include: allocation unit, for being in the distribution of SAS card according to the data-handling capacity of SAS card
Deposit address space;
Transmission unit is also used to send initialization command to SAS card, carries in initialization command and be described memory address
The information in space;
Acquiring unit is also used to obtain the port attribute value of SAS card, and to the enabled order of SAS card sending port, enables
Order is used to indicate SAS card and obtains configuration page information.
Fourth aspect, the embodiment of the present application provide a kind of system for serial small computer interface SAS card, and SAS card is contained in
In data processing system, data processing system further includes network storage equipment and at least one hard disk, and network storage equipment passes through
At least one external hard disk of SAS card, SAS card include:
It unseals unit and obtains SCSI data packet for receiving and unsealing small computer system interface scsi data packet
Data head and data structure;
Determination unit, for determining the target hard disk for needing to access from least one hard disk according to data head;
Transmission unit, for the small computer system interface SCSI read write command in data structure to be sent to target
Hard disk, SCSI read write command are used to indicate target hard disk and obtain data result corresponding with SCSI read write command;
Receiving unit, for receiving the data result of target hard disk transmission;
Transmission unit is also used to data result being sent to network storage equipment.
In a kind of possible implementation of the application, data structure also includes data storage address, and transmission unit is also used to
Data result is written in data storage address, data storage address is used for for network storage equipment from data storage address
Read data result.
In a kind of possible implementation of the application, it is configured at least one port on SAS card, is configured on each port
With at least one one-to-one expander of port, SAS card is connect by expander at least one external equipment, and at least one
It include at least one hard disk, SAS card in a external equipment further include:
Acquiring unit configures page information for obtaining, address information of the configuration page information comprising at least one expander,
The ownership of the address information of at least one external equipment, each external equipment and expander at least one external equipment is closed
System.
In a kind of possible implementation of the application, transmission unit is also used to send the category of SAS card to network storage equipment
Property value, the attribute value of SAS card is used to indicate the data-handling capacity of SAS card, and the data-handling capacity of SAS card is used for for network
It is SAS card storage allocation address space that equipment, which is stored, according to the data-handling capacity of SAS card;
Receiving unit is also used to receive the initialization command of network storage equipment transmission, carries and retouch in initialization command
State the information of memory address space;
SAS card further include: initialization unit executes initialization operation for being based on initialization command;
Receiving unit is also used to receive the enabled order in port of network storage equipment transmission;
Acquiring unit is also used to obtain configuration page information, specifically includes:
Acquiring unit is also used to obtain configuration page information based on the enabled order in port.
5th aspect, the embodiment of the present application provide a kind of network storage equipment, including memory and processor;It is described to deposit
Reservoir is for storing computer program code;The processor is used to execute the code of the memory storage, so that network is deposited
Store up method of the equipment execution as described in any one of aforementioned first aspect.
6th aspect, this application provides a kind of chip systems, which includes processor, for supporting network
Equipment realizes function involved in above-mentioned aspect, for example, for example send or handle data involved in the above method and/
Or information.In a kind of possible design, the chip system further includes memory, and the memory is set for saving network
Standby necessary program instruction and data.The chip system, can be made of chip, also may include chip and other deviding devices
Part.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that
Network storage equipment is external by least one hard disk by SAS card, when network storage equipment gets SCSI read-write
When order, SCSI read write command is packaged to obtain scsi data packet, by data head for SAS card from external at least one
The target hard disk for needing to access is determined in a hard disk, SCSI read write command is put into data structure, and scsi data packet is sent out
SAS card is given, thus indicate that SCSI read write command is sent to target hard disk by SAS card, it is corresponding with SCSI read write command to obtain
Data result, and then network storage equipment gets data result by SAS card, so that it is logical to realize network storage equipment
SAS card is crossed to write data into external hard drive, since SAS card can provide faster data processing speed relative to SCSI,
Scheme provided by the present application specifically illustrates the input/output how network storage equipment realizes data by SAS card, significantly
Improve network storage equipment data interaction efficiency;Further, since SAS card compared to SCSI can with external more hard disks, from
And extend the memory space of network storage equipment.
Detailed description of the invention
Fig. 1 is a kind of network architecture schematic diagram of data processing method provided by the embodiments of the present application;
Fig. 2 is a kind of flow diagram of data processing method provided by the embodiments of the present application;
Fig. 3 is another flow diagram of data processing method provided by the embodiments of the present application;
Fig. 4 is another flow diagram of data processing method provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram of network storage equipment provided by the embodiments of the present application;
Fig. 6 is a kind of structural schematic diagram of SAS card provided by the embodiments of the present application;
Fig. 7 is another structural schematic diagram of network storage equipment provided by the embodiments of the present application.
Specific embodiment
The embodiment of the present application provides a kind of data processing method and relevant device, and it is outer that network storage equipment passes through SAS card
Hard disk is connect, SCSI read write command is encapsulated as to be sent to SAS card after scsi data packet, since the data head of scsi data packet can
So that SAS card determines target hard disk from multiple hard disks, and SCSI read write command is sent to target hard disk, to realize
It is communicated by SAS card with external hard drive to carry out Data processing, improves data processing speed.
Description and claims of this specification and term " first ", " second ", " third ", " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should
Understand that the data used in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to herein
Sequence other than diagram or the content of description is implemented.In addition, term " includes " and " having " and their any deformation, meaning
Figure be to cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, product or setting
It is standby those of to be not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for these mistakes
The intrinsic other step or units of journey, method, product or equipment.Term "at least one" refers to one or more, " multiple "
Refer to two or more.
It is shown in Figure 1, it is a kind of network architecture diagram of data processing method provided by the embodiments of the present application, this implementation
The data processing method that example provides is applied in data processing system 10, and data processing system 10 includes network storage equipment
100, system for serial small computer interface (Serial Attached small computer systeminterface)
SAS card 110, expander (expander) 120 and external equipment 200, wherein external equipment 200 may include hard disk 210 and/
Or shelf management device (enclosure) 220 or other equipment etc..
In the embodiment of the present application, at least one SAS card 110, network storage equipment are configured on network storage equipment 100
100 pass through high speed serial computer expansion bus (peripheral component interconnect with SAS card
Express, PCIE) it is communicated, for getting small computer system interface (small computer
Systeminterface, SCSI) SAS card 110 is sent to after order, and acquisition data result corresponding with scsi command.
Specifically, network storage equipment 100 can for computer equipment, server, PC, laptop or
The other kinds of communication equipment etc. with store function.
In the embodiment of the present application, have on SAS card 110 configured at least one port, an expansion can be inserted in each port
Open up device 120, SAS card 110 can by 120 external hard drive 210 of expander and/or shelf management device 220 or other external set
It is standby, specifically it will not enumerate herein.
In the embodiment of the present application, each expander 120 can connect at least two external equipments 200, for depositing network
The scsi command that storage equipment 100 is sent to SAS card 110 is transferred to external equipment 200.
Wherein, temperature sensor, light emitting diode (light emitting can also be attached on expander 120
Diode, LED) or other components, specifically herein without limitation.
In the embodiment of the present application, hard disk 210 is used to execute read operation according to the SCSI read command received, according to reception
The SCSI write command arrived executes write operation.
In the embodiment of the present application, shelf management device 220 is used for according to the SCSI control command control expander received
Component work on 120, as an example, such as opening temperature sensor, closing temperature sensor, lightening LED, adjusting and go out LED
Or other kinds of control operation etc., specifically herein without limitation.
In the embodiment of the present application, although merely illustrating 2 SAS cards 110 in Fig. 1, each network storage in actual conditions
One or more SAS cards 110 can be configured in equipment 100.
Although two expanders 120 are illustrated only in Fig. 1 on each SAS card 110, each SAS card in actual conditions
One or more expanders 120 can be configured on 110.
Although two hard disks 210 are only connected in Fig. 1 on an expander 120, in actual conditions, an expander
The quantity of the hard disk 210 and/or shelf management device 220 that connect on 120 all can be one or more.
It should be appreciated that SAS card 110, expander 120, hard disk 210 and/or shelf management device 220 quantity can tie
Actual conditions are closed flexibly to set.
The data processing method in the application is described in detail below, referring to Fig. 2, the embodiment of the present invention provides
Data processing method one embodiment, the data processing method be applied to above-mentioned data processing system 10 in, method can
To include:
201, network storage equipment obtains small computer system interface SCSI read write command.
In the embodiment of the present application, SCSI read write command includes SCSI read command and SCSI write command, wherein SCSI reads life
It enables for carrying out read operation to external hard drive, SCSI write command is used to carry out write operation to external hard drive.
202, network storage equipment is packaged the small computer system interface SCSI read write command, is sealed
Small computer system interface scsi data packet after dress.
In the embodiment of the present application, network storage equipment can read and write the SCSI after getting SCSI read write command
Order is packaged, specifically, data head and data structure can be added.
In the embodiment of the present application, data head includes at least the address of target hard disk for needing to access, for for SAS card from
The target hard disk for needing to access is determined at least one external hard disk of network storage equipment;It can also include SCSI read-write life
The information such as the type of order or the length of SCSI read write command.Wherein, the length of SCSI read write command refers to SCSI read write command
The length in shared space in the packet.Storage has the SCSI read write command in data structure.
In the embodiment of the present application, the address of target hard disk can be the IP address of target hard disk, or target hard disk
Lan address, can also be for other kinds of address etc., specifically herein without limitation.
203, small computer system interface scsi data packet is sent to serial small computer by network storage equipment
System interface SAS card.
In the embodiment of the present application, network storage equipment, can after SCSI read write command is encapsulated into scsi data packet
The scsi data packet is sent to SAS card, which is used to indicate SAS card and sends out the SCSI read write command
It is sent to target hard disk, the SCSI read write command is used to indicate target hard disk will data corresponding with the SCSI read write command
As a result it is sent to SAS card.
In the embodiment of the present application, data result is corresponding with SCSI read write command, specifically, wrapping when in SCSI data packet
Contain when being SCSI read command, the data result that target hard disk returns after SCSI read command execution read operation according to returning
Read data;When include in scsi data packet be SCSI write command when, target hard disk return data result can be to write behaviour
Succeeding, or storage location etc. of the write-in data in target hard disk, the example above only understand this programme for convenience,
Herein without limitation.
204, network storage equipment obtains data result by system for serial small computer interface SAS card.
In the embodiment of the present application, network storage equipment is external by least one hard disk by SAS card, when network storage is set
For when getting SCSI read write command, SCSI read write command is packaged to obtain SCSI data packet, by data head for SAS
Block the target hard disk for determining from least one external hard disk and needing to access, SCSI read write command be put into data structure,
And scsi data packet is sent to SAS card, to indicate that SCSI read write command is sent to target hard disk by SAS card, with obtain with
The corresponding data result of SCSI read write command, and then network storage equipment gets data result by SAS card, to realize
Network storage equipment is write data into external hard drive by SAS card, since SAS card can provide more relative to SCSI
How fast data processing speed, scheme provided by the present application specifically illustrate network storage equipment by SAS card realization data
Input/output, significantly improve network storage equipment data interaction efficiency;Further, since SAS card can be with compared to SCSI
External more hard disks, to extend the memory space of network storage equipment.
Referring to Fig. 3, another embodiment of data processing method provided in an embodiment of the present invention, method is applied to Fig. 1
In data processing system 10, method may include:
301, SAS clamping receives and unseals small computer system interface scsi data packet.
In the embodiment of the present application, SAS is stuck in receive scsi data packet after, the scsi data packet can be unsealed, to obtain
The data head and data structure of the scsi data packet.
302, SAS card determines the target hard disk for needing to access according to data head from least one hard disk.
In the embodiment of the present application, since data head includes at least the address for the target hard disk that needs access, then SAS is stuck in
After deblocking obtains the data head of scsi data packet, at least one hard disk that can be external from SAS card according to the address of target hard disk
The middle determining target hard disk for needing to access.
303, the SCSI read write command in data structure is sent to target hard disk by SAS card.
In the embodiment of the present application, since storage has the SCSI read write command in data structure, then SAS is stuck in deblocking and obtains
After the data structure for obtaining scsi data packet, the SCSI read write command can be obtained, and the SCSI read write command is sent to
The target hard disk determined by step 302.
304, the data result that target hard disk is sent is received in SAS clamping.
In the embodiment of the present application, after the SCSI read write command is sent to target hard disk by SAS card, target hard disk according to
The SCSI read write command executes read-write operation, and obtains data result corresponding with SCSI read write command, so that SAS card can
To receive the data result of target hard disk transmission.
305, data result is sent to network storage equipment by SAS card.
In the embodiment of the present application, the scsi data packet of network storage equipment transmission is received and is unsealed in SAS clamping, obtains SCSI
The data head and data structure of data packet determine the target for needing to access according to data head from least one external hard disk
SCSI read write command in data structure is sent to target hard disk by hard disk, to obtain data corresponding with SCSI read write command
As a result, data result is sent to network storage equipment in turn, to realize network storage equipment by SAS card for data
It is written in external hard drive, it is provided by the present application since SAS card can provide faster data processing speed relative to SCSI
Scheme specifically illustrates the input/output how network storage equipment realizes data by SAS card, significantly improves network and deposits
Store up device data interactive efficiency;Further, since SAS card can be with external more hard disks, to extend net compared to SCSI
The memory space of network storage equipment.
Referring to Fig. 4, another embodiment of data processing method provided in an embodiment of the present invention, method is applied to Fig. 1
In data processing system 10, method may include:
401, network storage equipment obtains the attribute value of SAS card.
In the embodiment of the present application, network storage equipment can send attribute value acquisition instruction at least one SAS card, into
And receive the attribute value that each SAS card is sent at least one SAS card.
In the embodiment of the present application, the attribute value of SAS card includes at least the request data frame maximum value and return that SAS card is supported
Complex data frame maximum value, is used to indicate the data-handling capacity of SAS card, and the attribute value of SAS card can also include that SAS card is supported
Performance parameters, the attribute value of SAS card such as largest extension device number, hard disk number and/or shelf management device number can also wrap
Include the product informations such as the mark of SAS card and/or the version number of SAS card.
In the embodiment of the present application, the data-handling capacity of SAS card refers to the request data frame maximum value that SAS card is supported
With reply data frame maximum value.
In the embodiment of the present application, data frame is the protocol Data Unit of data link layer, it includes three parts: frame head, number
According to part, postamble.Wherein, frame head and postamble include some necessary control information, such as synchronizing information, address information, mistake
Control information etc.;Data portion then includes the data that network layer hands down.Wherein, request data frame and reply data frame are two
The data frame of seed type is respectively used to carrying request data and replys data.
402, network storage equipment is SAS card storage allocation address space according to the data-handling capacity of SAS card.
In the embodiment of the present application, network storage equipment, can be according to extremely after the attribute value for getting each SAS card
The request data frame maximum value and reply data frame maximum value of multiple each self-supportings of SAS card in a few SAS card are established respectively
One frame pond being made of multiple request data frames and a frame pond being made of multiple reply data frames, and according to each SAS
Blocking the request data frame maximum value of each self-supporting and replying data frame maximum value is that each SAS card in multiple SAS cards distributes frame
Pool space.
In the embodiment of the present application, memory address space includes the frame pool space of request data frame and the frame for replying data frame
Pool space.
403, network storage equipment sends initialization command to SAS card.
In the embodiment of the present application, network storage equipment, can be to SAS card after the attribute value for getting each SAS card
Send the frame pool space that carrying in initialization command is described the information of memory address space namely SAS card is assigned to.
In the embodiment of the present application, network storage equipment can send initialization life with any one SAS card in multiple SAS cards
It enables, initialization command can also be sent to multiple SAS cards simultaneously, specifically herein without limitation.
404, SAS card executes initialization operation.
In the embodiment of the present application, SAS card executes initialization operation based on the initialization command received.
405, network storage equipment obtains the port attribute value of SAS card.
In the embodiment of the present application, the port attribute value of SAS card include port number on SAS card, port type and/or
Is supported to the maximum of scsi command by number for each port.
As a kind of implementation, network storage equipment can be after step 403 to SAS card sending port attribute value
Acquisition instruction, so that SAS card is after step 404 to network storage equipment sending port attribute value.
As another implementation, step 405 can also merge with step 401 namely network storage equipment can be same
When the attribute value of SAS card and the port attribute value acquisition instruction of SAS card are sent to SAS card, then SAS card can and meanwhile to network
It stores equipment and sends the attribute value of SAS card and the port attribute value of SAS card.
406, the enabled order in port that network storage equipment is sent is received in SAS clamping.
In the embodiment of the present application, the enabled order in port refers to port start command.
In the embodiment of the present application, network storage equipment obtains the attribute of the attribute value of each SAS card and the port of SAS card
It is worth, and determines the data-handling capacity of SAS card according to the attribute value of each SAS card, thus for the interior of the SAS card assignment response
It deposits, is not only convenient for network storage equipment and manages each SAS card, and be conducive to improve the benefit of the memory headroom of network storage equipment
Use efficiency.
407, SAS card obtains configuration page information.
In the embodiment of the present application, SAS card is based on the enabled order in the port, starts to work, acquisition and storage configuration page letter
Breath.Wherein, SAS card configuration page, port configuration page, expander configuration page be may each comprise in the configuration page information of each SAS card
And/or shelf management device configuration page.
In the embodiment of the present application, SAS card configuration page includes the type, each external of the external external equipment of each SAS card
Port numbers, each external equipment belonging to the port numbers of the port configured on the device number of equipment, each SAS card, each equipment
Address and/or other kinds of SAS card configuration page information etc..
Wherein, the address of external equipment can be the Internet protocol (Internet Protocol, IP) of external equipment
Location, as an example, the IP address of such as hard disk;Or the lan address of external equipment, as an example, such as cabinet
The lan address that manager distributes in the local area network being made of network management device, SAS card and external equipment;It can be with
For other kinds of address etc., specifically herein without limitation.
In the embodiment of the present application, port configuration page includes the port width, every of the port numbers of each port, each port
The port type of a port, the port address of each port and/or other kinds of port configure page information.
In the embodiment of the present application, expander configuration page include the warning that is generated during finding external equipment and mistake,
The address of expander, the port numbers of the port of expander ownership and/or other kinds of expander configure page information.
In the embodiment of the present application, shelf management device configuration page includes management agreement version, the management that shelf management device is supported
Component type and management component index address and/or other kinds of shelf management device configuration page letter
Breath.
In the embodiment of the present application, external equipment may include hard disk, shelf management device and/or other kinds of external set
It is standby etc..
408, network storage equipment reads the configuration page information in SAS card.
In the embodiment of the present application, network storage equipment is reading the configuration page information in the configuration page information in SAS card
Afterwards, can the external equipment according to described in configuration page information, expander, port and SAS card attaching relation, for each SAS
Card establishes topological tree form data structure, specifically, can first initialization logic root node, using expander as limb node, often
One external equipment is as leaf node, to establish the topological tree form data structure of each SAS card.
In the embodiment of the present application, network storage equipment gets the configuration page information of external equipment by SAS card, and
According to external equipment, expander, port and SAS card attaching relation, for each SAS card establish topology tree form data structure, from
And conveniently SAS card is managed, network storage equipment is improved to the utilization rate of external equipment, expander.
409, network storage equipment obtains small computer system interface scsi command.
In the embodiment of the present application, network storage equipment can receive scsi command, and SCSI order also can be generated.Its
In, scsi command is issued by starter, can be according to behaviour corresponding with scsi command for allowing object machine to execute certain operation
The type of work is divided into different types, as an example, SCSI read command such as, SCSI write command or to shelf management device
Sending is different types of order etc. for controlling the orders such as the SCSI control command of expander, specific scsi command
Type, herein without limiting.
410, network storage equipment is packaged small computer system interface scsi command, small after being encapsulated
Type computer system interface scsi data packet.
In the embodiment of the present application, network storage equipment can carry out the scsi command after getting scsi command
Encapsulation, specifically, data head and data structure can be added.
411, small computer system interface scsi data packet is sent to SAS card by network storage equipment.
In the embodiment of the present application, scsi data packet can be sent to SAS card by network storage equipment, so that SAS card can be with
The scsi data packet is unsealed, to obtain the data head and data structure of the scsi data packet.Storage has described in data structure
Scsi command and data storage address, wherein data storage address is for storing data result.
In the embodiment of the present application, the data head of scsi data packet includes at least the address for needing the external equipment accessed, when
When scsi command is the read write command executed to hard disk, it is hard that the data head of scsi data packet includes at least the target for needing to access
The address of disk;When scsi command is the control command executed to expander, the data head of scsi data packet, which includes at least, to be needed
The address of the shelf management device of access.It can also include the type of scsi command or the information such as length of scsi command.It should manage
Solution, the citing of the data head to scsi data packet and data structure only understands this programme for convenience herein, does not limit herein specifically
It is fixed.
412, small computer system interface scsi command is sent to external equipment by SAS card.
In the embodiment of the present application, SAS, which is stuck in, has determined external equipment that needs access according to the data head of scsi data packet
Address after, the scsi command in the data structure of scsi data packet is sent to the external equipment.Specifically, working as
When scsi command is SCSI read write command, SAS card can determine mesh that needs access according to the data head of SCSI data packet
After the address for marking hard disk, the SCSI read write command is sent to target hard disk;When scsi command is SCSI control command
When, SAS card can be after the address that shelf management device that needs access has been determined according to the data head of SCSI data packet, will
The SCSI read write command is sent to the shelf management device, it should be understood that herein to the citing of scsi command only for convenience of reason
This programme is solved, specifically herein without limitation.
In the embodiment of the present application, external equipment executes corresponding operation according to the scsi command received, as an example,
When scsi command is SCSI read command, target hard disk executes read operation, and the data result that will be read according to SCSI read command
Return to SAS card;When include in scsi data packet be SCSI write command when, target hard disk return data result can be
Write operation success, or storage location of the write-in data in target hard disk;When scsi command is SCSI control command
When, shelf management device can be according to the SCSI control command to component executive control operation corresponding on expander, should
Understand, this programme is only understood for convenience to the citing of scsi command herein, specifically herein without limitation.
413, data result is received in SAS clamping.
In the embodiment of the present application, SAS card can receive the data result of external equipment return.
414, data result is written in data storage address SAS card.
In the embodiment of the present application, the data structures of scsi data packet can be written in the data result received by SAS card
In data storage address.
415, network storage equipment reads data result from data storage address.
In the embodiment of the present application, network storage equipment is external by least one hard disk by SAS card, when network storage is set
It is standby when getting SCSI read write command, SCSI read write command is packaged to obtain SCSI data packet, SAS clamping, which is received, simultaneously to be unsealed
The scsi data packet that network storage equipment is sent, obtains the data head and data structure of scsi data packet, according to data head from outer
The target hard disk for needing to access is determined at least one hard disk connect, and the SCSI read write command in data structure is sent to mesh
Hard disk is marked, to obtain data result corresponding with SCSI read write command, and then data result is sent to network storage equipment,
It is write data into external hard drive to realize network storage equipment by SAS card, since SAS card can relative to SCSI
To provide faster data processing speed, how scheme provided by the present application specifically illustrates network storage equipment by SAS card
The input/output for realizing data, significantly improves network storage equipment data interaction efficiency;Further, since SAS card compared to
SCSI can be with external more hard disks, to extend the memory space of network storage equipment.
For the above scheme of better implementation the embodiment of the present application, phase for implementing the above scheme is also provided below
Close device.
It is a kind of structural schematic diagram of network storage equipment provided by the embodiments of the present application, the net referring particularly to Fig. 5
Network storage equipment 500 is contained in data processing system 10 shown in FIG. 1, and network storage equipment 500 includes:
Acquiring unit 501, for obtaining small computer system interface SCSI read write command;
Encapsulation unit 502, for being packaged to SCSI read write command, scsi data packet after being encapsulated, SCSI number
It include data head and data structure according to packet, data head is used to determine the target for needing to access from least one hard disk for SAS card
Hard disk includes SCSI read write command in data structure;
Transmission unit 503, for scsi data packet to be sent to SAS card, scsi data packet is used to indicate SAS card will
SCSI read write command is sent to target hard disk, and SCSI read write command is used to indicate target hard disk will be corresponding with SCSI read write command
Data result be sent to SAS card;
Acquiring unit 501 is also used to obtain data result by SAS card.
In the embodiment of the present application, data structure also includes data storage address, and acquiring unit 501 is specifically used for: from data
Data result is read in storage address, address data memory is used to indicate SAS card and fills in the data result that target hard disk is sent
Into address data memory.
In the embodiment of the present application, it is configured at least one port on SAS card, is configured with port one by one on each port
At least one corresponding expander, SAS card are connect by expander at least one external equipment, at least one external equipment
In include at least one hard disk, network storage equipment 500 further include:
Reading unit 504, for reading the configuration page information in SAS card, the configuration page information includes at least one expansion
Address information, the address information of at least one external equipment for opening up device, each external equipment at least one external equipment with
The attaching relation of the expander.
In the embodiment of the present application, acquiring unit 501 is also used to obtain the attribute value of SAS card, is used to indicate the number of SAS card
According to processing capacity;
Network storage equipment further include: allocation unit 505, for being SAS card point according to the data-handling capacity of SAS card
With memory address space;
Transmission unit 503 is also used to send initialization command to SAS card, carries with being described memory in initialization command
The information in location space;
Acquiring unit 501 is also used to obtain the port attribute value of SAS card, and to the enabled order of SAS card sending port, makes
It can order and be used to indicate SAS card acquisition configuration page information.
It is a kind of knot of system for serial small computer interface SAS card provided by the embodiments of the present application referring particularly to Fig. 6
Structure schematic diagram, the SAS card 600 are contained in data processing system 10 shown in FIG. 1, and SAS card 600 includes:
It unseals unit 601 and obtains scsi data for receiving and unsealing small computer system interface scsi data packet
The data head and data structure of packet;
Determination unit 602, for determining the target hard disk for needing to access from least one hard disk according to data head;
Transmission unit 603, for the small computer system interface SCSI read write command in data structure to be sent to mesh
Hard disk is marked, SCSI read write command is used to indicate target hard disk and obtains data result corresponding with SCSI read write command;
Receiving unit 604, for receiving the data result of target hard disk transmission;
Transmission unit 603 is also used to data result being sent to network storage equipment.
In a kind of possible implementation of the application, data structure also includes data storage address,
Transmission unit 603 is also used to data result be written in data storage address, and data storage address is used for for net
Network storage equipment reads data result from data storage address.
In a kind of possible implementation of the application, it is configured at least one port on SAS card, is configured on each port
With at least one one-to-one expander of port, SAS card is connect by expander at least one external equipment, and at least one
It include at least one hard disk, SAS card in a external equipment further include:
Acquiring unit 605, for obtaining configuration page information, configuration page information includes that the address of at least one expander is believed
It ceases, the address information of at least one external equipment, the ownership of each external equipment and expander at least one external equipment
Relationship.
In a kind of possible implementation of the application, transmission unit 603 is also used to send SAS card to network storage equipment
Attribute value, the attribute value of SAS card are used to indicate the data-handling capacity of SAS card, and the data-handling capacity of SAS card is used for for net
It is SAS card storage allocation address space that network, which stores equipment according to the data-handling capacity of SAS card,;
Receiving unit 604 is also used to receive the initialization command of network storage equipment transmission, carries in initialization command
It is described the information of memory address space;
SAS card further include: initialization unit 606 executes initialization operation for being based on initialization command;
Receiving unit 604 is also used to receive the enabled order in port of network storage equipment transmission;
Acquiring unit 605 is also used to obtain configuration page information, specifically includes:
Acquiring unit 605 is also used to obtain configuration page information based on the enabled order in port.
It is apparent to those skilled in the art that for convenience and simplicity of description, foregoing description is
System, the specific work process of device and unit can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Next another host provided by the embodiments of the present application is introduced, is please referred to shown in Fig. 7, is the embodiment of the present application
A kind of structural schematic diagram of the network storage equipment of offer, terminal device 700 include:
Receiver 701, transmitter 702, processor 703 and (the wherein processor in terminal device 700 of memory 704
703 quantity can be one or more, take a processor as an example in Fig. 7).In some embodiments of the present application, receiver
701, transmitter 702, processor 703 and memory 704 can be connected by bus or other means, wherein to pass through in Fig. 7
For bus connection.
Memory 704 may include read-only memory and random access memory, and to processor 703 provide instruction and
Data.The a part of of memory 704 can also include nonvolatile RAM (non-volatile random
Access memory, NVRAM).Memory 704 is stored with operating system and operational order, executable module or data knot
Structure perhaps their subset or their superset, wherein operational order may include various operational orders, for realizing
Various operations.Operating system may include various system programs, for realizing various basic businesses and hardware based of processing
Business.
The operation of 703 controlling terminal equipment of processor, processor 703 can also be known as central processing unit (central
Processing unit, CPU).In specific application, the various components of terminal device are coupled by bus system,
Wherein bus system can also include power bus, control bus and status signal bus in addition etc. in addition to including data/address bus.
But for the sake of clear explanation, various buses are referred to as bus system in figure.
The method that above-mentioned the embodiment of the present application discloses can be applied in processor 703, or be realized by processor 703.
Processor 703 can be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 703 or the instruction of software form.Above-mentioned processing
Device 703 can be general processor, digital signal processor (digital signal processing, DSP), dedicated integrated
Circuit (application specific integrated circuit, ASIC), field programmable gate array (field-
Programmable gate array, FPGA) either other programmable logic device, discrete gate or transistor logic device
Part, discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present application.
General processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with the application reality
The step of applying method disclosed in example can be embodied directly in hardware decoding processor and execute completion, or use decoding processor
In hardware and software module combination execute completion.Software module can be located at random access memory, and flash memory, read-only memory can
In the storage medium of this fields such as program read-only memory or electrically erasable programmable memory, register maturation.The storage
Medium is located at memory 704, and processor 703 reads the information in memory 704, and the step of the above method is completed in conjunction with its hardware
Suddenly.
Receiver 701 can be used for receiving the number or character information of input, and generate related to network storage equipment
Setting and the related signal input of function control.
Transmitter 702 can be used for exporting number or character information by external interface;Can also by PCIE interface with
SAS cartoon letters;Equipment can also be shown including display screen etc..
In the embodiment of the present application, processor 703, the data processing side executed for executing network storage equipment above-mentioned
Method.
A kind of computer program product comprising data processing instructions is also provided in the embodiment of the present application, when it is being calculated
When being run on machine so that computer execute as earlier figures 2 into the method described in embodiment illustrated in fig. 4 network storage equipment institute
The step of execution.
A kind of computer program product comprising data processing instructions is also provided in the embodiment of the present application, when it is being calculated
When being run on machine, so that computer execution step as performed by the SAS card into the method described in embodiment illustrated in fig. 4 of earlier figures 2
Suddenly.
A kind of computer readable storage medium is also provided in the embodiment of the present application, is deposited in the computer readable storage medium
The instruction of data processing is contained, when run on a computer, is implemented such as earlier figures 2 to shown in Fig. 4 so that computer is executed
Step performed by network storage equipment in the method for example description.
A kind of computer readable storage medium is also provided in the embodiment of the present application, is deposited in the computer readable storage medium
The instruction of data processing is contained, when run on a computer, is implemented such as earlier figures 2 to shown in Fig. 4 so that computer is executed
The performed step of SAS card in the method for example description.
Wherein, the processor that any of the above-described place mentions, can be a general central processor, microprocessor, ASIC,
Or the integrated circuit that one or more programs for controlling above-mentioned first aspect method execute.
A kind of chip system is also provided in the embodiment of the present application, which includes processor, for supporting network to set
It is standby to realize function involved in above-mentioned aspect, for example, for example send or handle data involved in the above method and/or
Information.In a kind of possible design, the chip system further includes memory, the memory, for saving the network equipment
Necessary program instruction and data.The chip system, can be made of chip, also may include chip and other discrete devices.
In addition it should be noted that, the apparatus embodiments described above are merely exemplary, wherein described as separation
The unit of part description may or may not be physically separated, component shown as a unit can be or
It may not be physical unit, it can it is in one place, or may be distributed over multiple network units.It can root
According to actual need that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.In addition, the application mentions
In the Installation practice attached drawing of confession, the connection relationship between module indicates there is communication connection between them, specifically may be implemented
For one or more communication bus or signal wire.
Through the above description of the embodiments, it is apparent to those skilled in the art that the application can
Realized by the mode of software plus required common hardware, naturally it is also possible to by specialized hardware include specific integrated circuit,
Dedicated cpu, private memory, special components and parts etc. are realized.Under normal circumstances, it is all by computer program complete function all
It can easily be realized with corresponding hardware, moreover, being used to realize that the specific hardware structure of same function is also possible to more
Kind multiplicity, such as analog circuit, digital circuit or special circuit etc..But software journey in more situations for purposes of this application
Sequence realization is more preferably embodiment.Based on this understanding, the technical solution of the application is substantially in other words to existing skill
The part that art contributes can be embodied in the form of software products, which, which is stored in, can be read
In storage medium, such as the floppy disk of computer, USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random
Memory (RAM, Random Access Memory), magnetic or disk etc. are accessed, including some instructions are used so that one
Computer equipment (can be personal computer, server or the network equipment etc.) executes described in each embodiment of the application
Method.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.
The computer program product includes one or more computer instructions.Described in loading and execute on computers
When computer program instructions, entirely or partly generate according to process or function described in the embodiment of the present application.The computer
It can be general purpose computer, special purpose computer, computer network or other programmable devices.The computer instruction can be with
Storage in a computer-readable storage medium, or from a computer readable storage medium to another computer-readable storage
Medium transmission, for example, the computer instruction can be from a web-site, computer, server or data center by having
Line (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode are to another
A web-site, computer, server or data center are transmitted.The computer readable storage medium can be calculating
Any usable medium that machine can store either includes integrated server, the data center etc. of one or more usable mediums
Data storage device.The usable medium can be magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example,
) or semiconductor medium (such as solid state hard disk Solid State Disk (SSD)) etc. DVD.
Claims (10)
1. a kind of data processing method, which is characterized in that be applied to data processing system, the data processing system includes network
Equipment, system for serial small computer interface SAS card and at least one hard disk are stored, the network storage equipment passes through described
At least one external described hard disk of SAS card, which comprises
The network storage equipment obtains small computer system interface SCSI read write command;
The network storage equipment is packaged the SCSI read write command, and the scsi data packet after being encapsulated is described
Scsi data packet includes data head and data structure, and the data head is used for for the SAS card from least one described hard disk
It determines the target hard disk for needing to access, includes the SCSI read write command in the data structure;
The scsi data packet is sent to the SAS card by the network storage equipment, and the scsi data packet is used to indicate institute
It states SAS card and sends the target hard disk for the SCSI read write command, the SCSI read write command is used to indicate the target
Data result corresponding with the SCSI read write command is sent to the SAS card by hard disk;
The network storage equipment obtains the data result by the SAS card.
2. described the method according to claim 1, wherein the data structure also includes data storage address
Network storage equipment obtains the data result by the SAS card, comprising:
The network storage equipment reads the data result from the data storage address, and the address data memory is used for
The data result for indicating that the SAS card sends the target hard disk is filled up in the address data memory.
3. the method according to claim 1, wherein being configured at least one port, Mei Gesuo on the SAS card
It states on port configured at least one expander, the SAS card pass through the expander and institute correspondingly with the port
The connection of at least one external equipment is stated, at least one hard disk comprising described at least one described external equipment, the method is also
Include:
The network storage equipment reads the configuration page information in the SAS card, and the configuration page information includes described at least one
The address information of the address information of a expander, at least one external equipment, it is every at least one described external equipment
The attaching relation of a external equipment and the expander.
4. the method according to claim 1, wherein the method also includes:
The network storage equipment obtains the attribute value of the SAS card, and the attribute value of the SAS card is used to indicate the SAS card
Data-handling capacity;
The network storage equipment is the SAS card storage allocation address space according to the data-handling capacity of the SAS card;
The network storage equipment sends initialization command to the SAS card, is carried described in being described in the initialization command
The information of memory address space;
The network storage equipment obtains the port attribute value of the SAS card, and orders to the SAS card sending port is enabled,
The enabled order is used to indicate the SAS card and obtains configuration page information.
5. a kind of data processing method, which is characterized in that be applied to data processing system, the data processing system includes network
Equipment, system for serial small computer interface SAS card and at least one hard disk are stored, the network storage equipment passes through described
At least one external described hard disk of SAS card, which comprises
The small computer system interface scsi data packet that the network storage equipment is sent is received and is unsealed in the SAS clamping, is obtained
To the data head and data structure of the scsi data packet;
The SAS card determines the target hard disk for needing to access according to the data head from least one described hard disk;
It is hard that small computer system interface SCSI read write command in the data structure is sent to the target by the SAS card
Disk, the SCSI read write command are used to indicate the target hard disk and obtain data result corresponding with the SCSI read write command;
The data result that the target hard disk is sent is received in the SAS clamping;
The data result is sent to the network storage equipment by the SAS card.
6. described according to the method described in claim 5, it is characterized in that, the data structure also includes data storage address
The data result is sent to the network storage equipment by SAS card, comprising:
The data result is written in the data storage address SAS card, and the data storage address is for described in confession
Network storage equipment reads the data result from the data storage address.
7. according to the method described in claim 5, it is characterized in that, being configured at least one port, Mei Gesuo on the SAS card
It states on port configured at least one expander, the SAS card pass through the expander and institute correspondingly with the port
The connection of at least one external equipment is stated, at least one hard disk comprising described at least one described external equipment, the method is also
Include:
The SAS card obtains configuration page information, and the configuration page information includes the address information of at least one expander, institute
The address information of at least one external equipment is stated, each external equipment at least one described external equipment and the expander
Attaching relation.
8. a kind of network storage equipment, which is characterized in that the network storage equipment is contained in data processing system, the number
It further include system for serial small computer interface SAS card and at least one hard disk according to processing system, the network storage equipment is logical
At least one external described hard disk of the SAS card is crossed, the network storage equipment includes:
Acquiring unit, for obtaining small computer system interface SCSI read write command;
Encapsulation unit, for being packaged to the SCSI read write command, the scsi data packet after being encapsulated, the SCSI number
It include data head and data structure according to packet, the data head is used to determine from least one described hard disk for the SAS card and need
The target hard disk to be accessed includes the SCSI read write command in the data structure;
Transmission unit, for the scsi data packet to be sent to the SAS card, the scsi data packet is used to indicate described
The SCSI read write command is sent the target hard disk by SAS card, and it is hard that the SCSI read write command is used to indicate the target
Data result corresponding with the SCSI read write command is sent to the SAS card by disk;
The acquiring unit is also used to obtain the data result by the SAS card.
9. a kind of system for serial small computer interface SAS card, which is characterized in that the SAS card is contained in data processing system
In, the data processing system further includes network storage equipment and at least one hard disk, and the network storage equipment passes through described
At least one external described hard disk of SAS card, the SAS card include:
It unseals unit and obtains the scsi data packet for receiving and unsealing small computer system interface scsi data packet
Data head and data structure;
Determination unit, for determining the target hard disk for needing to access from least one described hard disk according to the data head;
Transmission unit, for the small computer system interface SCSI read write command in the data structure to be sent to the mesh
Hard disk is marked, the SCSI read write command is used to indicate the target hard disk and obtains data knot corresponding with the SCSI read write command
Fruit;
Receiving unit, the data result sent for receiving the target hard disk;
The transmission unit is also used to the data result being sent to the network storage equipment.
10. a kind of network storage equipment, which is characterized in that including memory and processor;
The memory is for storing computer program code;
The processor is used to execute the code of the memory storage, so that the network storage equipment perform claim requires 1
To 4 described in any item methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811470807.6A CN109597582A (en) | 2018-12-03 | 2018-12-03 | A kind of data processing method and relevant device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811470807.6A CN109597582A (en) | 2018-12-03 | 2018-12-03 | A kind of data processing method and relevant device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109597582A true CN109597582A (en) | 2019-04-09 |
Family
ID=65960907
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811470807.6A Pending CN109597582A (en) | 2018-12-03 | 2018-12-03 | A kind of data processing method and relevant device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109597582A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110399171A (en) * | 2019-07-23 | 2019-11-01 | 苏州浪潮智能科技有限公司 | A kind of hard disk management method, system and associated component |
CN110515540A (en) * | 2019-07-26 | 2019-11-29 | 苏州浪潮智能科技有限公司 | A kind of method and device of topology hard disk |
CN111159080A (en) * | 2019-12-31 | 2020-05-15 | 加弘科技咨询(上海)有限公司 | Case management system and management method |
CN111352585A (en) * | 2020-02-23 | 2020-06-30 | 苏州浪潮智能科技有限公司 | Method and device for improving performance of multiple hard disks based on expander |
CN111722686A (en) * | 2020-06-21 | 2020-09-29 | 苏州浪潮智能科技有限公司 | Cross-node in-band heat dissipation control method and device |
CN111796876A (en) * | 2020-07-08 | 2020-10-20 | 深圳忆联信息系统有限公司 | Method, device, equipment and medium for defining requirements on storage equipment based on user |
CN113542412A (en) * | 2021-07-16 | 2021-10-22 | 中国电信股份有限公司 | Data transmission method and device, electronic equipment and storage medium |
CN113778320A (en) * | 2020-06-09 | 2021-12-10 | 华为技术有限公司 | Network card and method for processing data by network card |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1655540A (en) * | 2003-11-13 | 2005-08-17 | 戴尔产品有限公司 | System and method for communications in serial attached SCSI storage network |
US20070088917A1 (en) * | 2005-10-14 | 2007-04-19 | Ranaweera Samantha L | System and method for creating and maintaining a logical serial attached SCSI communication channel among a plurality of storage systems |
CN101681238A (en) * | 2007-04-30 | 2010-03-24 | 惠普发展公司,有限责任合伙企业 | A system and method of a storage expansion unit for a network attached storage device |
CN102968280A (en) * | 2012-11-21 | 2013-03-13 | 华为技术有限公司 | Storage system, storage appliance and control appliance |
US20170168730A1 (en) * | 2015-12-15 | 2017-06-15 | Quanta Computer Inc. | System and method for storage area network management using serial attached scsi expander |
-
2018
- 2018-12-03 CN CN201811470807.6A patent/CN109597582A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1655540A (en) * | 2003-11-13 | 2005-08-17 | 戴尔产品有限公司 | System and method for communications in serial attached SCSI storage network |
US20070088917A1 (en) * | 2005-10-14 | 2007-04-19 | Ranaweera Samantha L | System and method for creating and maintaining a logical serial attached SCSI communication channel among a plurality of storage systems |
CN101681238A (en) * | 2007-04-30 | 2010-03-24 | 惠普发展公司,有限责任合伙企业 | A system and method of a storage expansion unit for a network attached storage device |
CN102968280A (en) * | 2012-11-21 | 2013-03-13 | 华为技术有限公司 | Storage system, storage appliance and control appliance |
US20170168730A1 (en) * | 2015-12-15 | 2017-06-15 | Quanta Computer Inc. | System and method for storage area network management using serial attached scsi expander |
Non-Patent Citations (1)
Title |
---|
黄晓宇: "《大学计算机基础》", 31 December 2010 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110399171A (en) * | 2019-07-23 | 2019-11-01 | 苏州浪潮智能科技有限公司 | A kind of hard disk management method, system and associated component |
CN110399171B (en) * | 2019-07-23 | 2022-06-07 | 苏州浪潮智能科技有限公司 | Hard disk management method, system and related components |
CN110515540A (en) * | 2019-07-26 | 2019-11-29 | 苏州浪潮智能科技有限公司 | A kind of method and device of topology hard disk |
CN111159080A (en) * | 2019-12-31 | 2020-05-15 | 加弘科技咨询(上海)有限公司 | Case management system and management method |
CN111159080B (en) * | 2019-12-31 | 2021-11-12 | 加弘科技咨询(上海)有限公司 | Case management system and management method |
CN111352585A (en) * | 2020-02-23 | 2020-06-30 | 苏州浪潮智能科技有限公司 | Method and device for improving performance of multiple hard disks based on expander |
CN113778320A (en) * | 2020-06-09 | 2021-12-10 | 华为技术有限公司 | Network card and method for processing data by network card |
CN111722686A (en) * | 2020-06-21 | 2020-09-29 | 苏州浪潮智能科技有限公司 | Cross-node in-band heat dissipation control method and device |
CN111722686B (en) * | 2020-06-21 | 2022-04-29 | 苏州浪潮智能科技有限公司 | Cross-node in-band heat dissipation control method and device |
CN111796876A (en) * | 2020-07-08 | 2020-10-20 | 深圳忆联信息系统有限公司 | Method, device, equipment and medium for defining requirements on storage equipment based on user |
CN113542412A (en) * | 2021-07-16 | 2021-10-22 | 中国电信股份有限公司 | Data transmission method and device, electronic equipment and storage medium |
CN113542412B (en) * | 2021-07-16 | 2024-01-05 | 天翼云科技有限公司 | Data transmission method, device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109597582A (en) | A kind of data processing method and relevant device | |
US9842623B2 (en) | High resolution tape directory (HRTD) stored at end of data in an index partition | |
US9804881B2 (en) | System and method for resizing a virtual desktop infrastructure using virtual desktop infrastructure monitoring tools | |
WO2017152633A1 (en) | Port binding implementation method and device | |
TW201939305A (en) | Host system and method thereof and acceleration module | |
CN105094983B (en) | Computer, control apparatus, and data processing method | |
CN102790777B (en) | Network interface adapter register method and driving equipment, server | |
CN107170474A (en) | Expansible the storage box, computer implemented method and computer readable storage means | |
CN109302466A (en) | Data processing method, relevant device and computer storage medium | |
CN105912275A (en) | Method and device for establishing connection in nonvolatile memory system | |
US10678437B2 (en) | Method and device for managing input/output (I/O) of storage device | |
CN108776648A (en) | Data transmission method, system and FPGA isomeries accelerator card and storage medium | |
CN104486234A (en) | Method and server for uninstalling service exchanger to physical network card | |
CN103440111B (en) | The extended method in magnetic disk of virtual machine space, host and platform | |
CN102413183B (en) | Cloud intelligence switch and processing method and system thereof | |
CN108304044A (en) | A kind of setting method and system of NVME hard disk hot-plugs | |
CN106610789B (en) | A kind of data processing method, apparatus and system | |
CN107294865B (en) | load balancing method of software switch and software switch | |
CN107203408A (en) | The methods, devices and systems of redirection | |
CN110389711A (en) | Endpoint device is helped to realize method, equipment and the computer program product of SR-IOV function | |
CN109857553A (en) | EMS memory management process and device | |
CN116540952B (en) | Disk access method and device, storage medium and electronic equipment | |
CN111562883B (en) | Cache management system, method and device for solid state disk | |
CN109597565A (en) | Virtual Plane management | |
US10439934B2 (en) | Systems and methods for addressing multiple physical and virtual functions in network controller-sideband interface |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190409 |