WO2014089781A1 - 一种硬盘系统操作方法、存储系统及处理器 - Google Patents

一种硬盘系统操作方法、存储系统及处理器 Download PDF

Info

Publication number
WO2014089781A1
WO2014089781A1 PCT/CN2012/086452 CN2012086452W WO2014089781A1 WO 2014089781 A1 WO2014089781 A1 WO 2014089781A1 CN 2012086452 W CN2012086452 W CN 2012086452W WO 2014089781 A1 WO2014089781 A1 WO 2014089781A1
Authority
WO
WIPO (PCT)
Prior art keywords
hard disk
external interface
processor
processing software
firmware
Prior art date
Application number
PCT/CN2012/086452
Other languages
English (en)
French (fr)
Inventor
雷晓松
袁远
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to JP2015546796A priority Critical patent/JP6198843B2/ja
Priority to CN201280003011.4A priority patent/CN104040517B/zh
Priority to EP12890110.5A priority patent/EP2921968B1/en
Priority to PCT/CN2012/086452 priority patent/WO2014089781A1/zh
Publication of WO2014089781A1 publication Critical patent/WO2014089781A1/zh
Priority to US14/736,058 priority patent/US10664164B2/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
    • 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/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0607Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
    • 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/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0632Configuration or reconfiguration of storage systems by initialisation or re-initialisation of storage systems
    • 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/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system

Definitions

  • the present invention belongs to the field of hard disk processing technologies, and in particular, to a hard disk system operating method, a storage system, and a processor.
  • SAS Serial Attached SCSI
  • SATA Serial Advanced Technology Attached
  • Firmware The function is usually fixed before the hard disk is shipped from the factory. However, in practical applications, the hard disk may be incompatible with many new hardware and software, and the hard disk may be updated or upgraded in time. Firmware files will be necessary to enhance their compatibility.
  • Embodiments of the present invention provide a method for implementing a smart hard disk to solve the problem of timely, dynamic update or upgrade of the hard disk firmware.
  • a method of operating a hard disk system comprising:
  • the storage system includes an external interface, a processor, a non-volatile storage medium, a hard disk controller, and a hard disk, wherein the external interface is configured to receive control signals and service data external to the storage system.
  • the processor is configured to obtain service data from the external interface, and control the hard disk controller to store service data into the hard disk, where the method includes:
  • the processor starts a loader Boot Loader recorded in a non-volatile storage medium, and after the loader is started, configures the storage system An IP address, and then establishing an IP transmission channel between the external interface and the server based on the IP address;
  • the processor acquires hard disk firmware from the external interface, the hard disk firmware is the external interface through the IP a transmission channel received from the server;
  • the processor stops the hard disk and loads the hard disk firmware into the memory.
  • the method further includes:
  • the processor loads the OS image into memory and starts and runs the loaded OS image.
  • the method further includes:
  • the processor obtains hard disk service processing software from the external interface, where the hard disk service processing software is the external interface through the IP a transmission channel received from the server;
  • the processor stops the process of the original hard disk service processing software, loads the hard disk service processing software into the memory, and then starts the loaded hard disk service processing software process.
  • a storage system in a second aspect, includes an external interface, a processor, a non-volatile storage medium, a hard disk controller, and a hard disk;
  • the external interface is configured to receive control signals and service data external to the storage system
  • the processor is configured to obtain service data from the external interface, and control the hard disk controller to store service data into the hard disk;
  • the processor is configured to start a loader recorded in a non-volatile storage medium. After the loader is started, configure an IP address for the storage system, and then establish an IP between the external interface and the server based on the IP address. Transmitting a channel, and acquiring hard disk firmware from the external interface, stopping the hard disk, loading the hard disk firmware into a memory, wherein the hard disk firmware is the external interface through the IP The transmission channel is received from the server.
  • the processor is further configured to acquire an operating system OS from the external interface. Mirroring, loading the OS image into memory, starting and running the loaded OS image, wherein the OS image is the external interface through the IP
  • the transmission channel is received from the server.
  • the processor is further configured to obtain the hard disk service processing software from the external interface, and stop the original hard disk service processing.
  • the software process, the hard disk service processing software is loaded into the memory, and the loaded hard disk service processing software process is started, wherein the hard disk service processing software is the external interface through the The IP transmission channel is received from the server.
  • a processor is applied to a storage system, where the storage system includes an external interface, a processor, a non-volatile storage medium, a hard disk controller, and a hard disk, wherein the external interface is used to receive the storage system.
  • the external control signal and the service data the processor is configured to obtain the service data from the external interface, and control the hard disk controller to store the service data in the hard disk, where the processor specifically includes:
  • Transfer channel establishing unit for starting the loader recorded in the non-volatile storage medium Boot Loader After the loader is started, configuring an IP address for the storage system, and then establishing an IP transmission channel between the external interface and the server based on the IP address;
  • An information acquiring unit configured to acquire hard disk firmware from the external interface, where the hard disk firmware is the external interface through the IP a transmission channel received from the server;
  • the processing unit is configured to stop the hard disk and load the hard disk firmware into the memory.
  • the information acquiring unit is further configured to acquire an operating system OS from the external interface.
  • Mirroring
  • the processing unit is further configured to load the OS image into a memory, and start and run the loaded OS image, where the The OS image is that the external interface is received from the server over the IP transport channel.
  • the information acquiring unit is further configured to obtain hard disk service processing software from the external interface;
  • the processing unit is further configured to stop the process of the original hard disk service processing software, load the hard disk service processing software into the memory, and then start the loaded hard disk service processing software process, where the hard disk service processing software is Said external interface through said The IP transmission channel is received from the server.
  • the external interface includes:
  • the external connection Control components include system-on-chip or riser card .
  • the external interface includes an Ethernet port, PCI Express interface, USB interface, and / or Infiniband interface.
  • the embodiment of the present invention has the beneficial effects of: receiving a control signal and service data outside the storage system through the set external interface, obtaining service data from the external interface through the set processor, and controlling the hard disk control.
  • the service data is stored in the hard disk to implement dynamic and timely update or upgrade of the hard disk, enhance the flexibility and compatibility of the hard disk processing, and meet the ever-changing requirements of the software and hardware environment.
  • FIG. 1 is a structural diagram of a storage system to which a method for operating a hard disk system according to an embodiment of the present invention is applied;
  • FIG. 2 is a flowchart of an implementation of a method for operating a hard disk system according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of an external interface according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of another external interface according to an embodiment of the present invention.
  • FIG. 5 is a structural diagram of a processor according to an embodiment of the present invention.
  • the terms 'system' and 'network' are used interchangeably herein in the context of the present invention.
  • the term 'in the embodiment of the present invention' And / or ' is just an association describing the associated object, indicating that there can be three relationships, for example, A and / or B, which can mean: A exists separately, and A and B exist simultaneously. There are three cases of B alone.
  • the character ' / ' in the embodiment of the present invention generally indicates that the context related object is an 'or' relationship.
  • FIG. 1 is a diagram showing an implementation method of an intelligent hard disk according to an embodiment of the present invention.
  • the constituent structure of the storage system for the convenience of explanation, only the parts related to the present embodiment are shown.
  • the storage system is a cloud computing system with data storage and management as its core. As shown in FIG. 1, the storage system includes an external interface 1 , processor 2, non-volatile storage media 3, hard disk controller 4, and hard disk 5 .
  • the external interface 1 is configured to receive control signals and service data external to the storage system, and the processor 2 And used to acquire service data from the external interface 1 and control the hard disk controller 4 to store business data into the hard disk 5.
  • the processor 2 is configured to start a loader Boot Loader recorded in the non-volatile storage medium 3 After the loader is started, configure an IP address for the storage system, and then establish an IP transmission channel between the external interface 1 and the server based on the IP address, and from the external interface 1
  • the hard disk firmware is obtained, the hard disk 5 is suspended, and the hard disk firmware is loaded into the memory, wherein the hard disk firmware is received by the external interface 1 from the server through the IP transmission channel.
  • the processor 2 is further configured to obtain an operating system OS image from the external interface 1 and the OS The image is loaded into memory, and the loaded OS image is started and run, wherein the OS image is received by the external interface from the server through the IP transmission channel.
  • the processor 2 is further configured to use the external interface 1
  • the hard disk service processing software is obtained, the original hard disk service processing software process is stopped, the hard disk service processing software is loaded into the memory, and the loaded hard disk service processing software process is started, wherein the hard disk service processing software is the external interface 1 received from the server through the IP transmission channel.
  • the external interface 1 includes an Ethernet port, a peripheral component interconnecting a standard bus PCI Express interface, USB interface and / or Infiniband interface, etc.
  • the traditional hard disk becomes a smart hard disk, which constitutes a micro storage node in the storage system, has a smaller fault domain granularity (single hard disk), and improves the overall storage system. reliability.
  • the prior art is usually through a single processor (for example Intel X86 The processor controls and manages dozens of hard disks. When the processor fails, it may cause tens of tens of gigabytes or even terabytes of data to be invalidated. The data migration and fault recovery are coarser and have a greater impact on the business. Big.
  • the overall space occupation of the storage system can be reduced, the integration degree can be improved, and the overall energy consumption of the storage system can be reduced.
  • Controlling message interaction with the server through the external interface establishing a transmission channel, receiving the hard disk firmware, the OS image and the OS image transmitted by the server through the transmission channel Or the hard disk business processing software, and the hard disk firmware, the OS image, and/or received by the processor Or the hard disk business processing software is written into the non-volatile storage unit, which can realize the initial installation of the hard disk, as well as dynamic and timely update or upgrade, and enhance the flexibility and compatibility of the hard disk intelligent processing to meet the needs of various new services.
  • FIG. 2 shows a method for operating a hard disk system according to another embodiment of the present invention.
  • the hard disk system operation method in this embodiment can be applied to the storage system shown in FIG. 1, and the process of the method is as follows:
  • step S201 the processor starts the loader Boot Loader recorded in the non-volatile storage medium After the loader is started, configure an IP address for the storage system, and then establish an IP transmission channel between the external interface and the server based on the IP address.
  • the external interface includes an interface directly externally on the hard disk (see FIG. 3).
  • the external interface provided by the external control unit is connected outside the hard disk (as shown in Figure 4).
  • the left box is the hard disk body, including the hard disk drive components (Hard Drive Assembly, HDA) and preamplifier (Preamp).
  • the box on the right is a printed circuit board (Printed Circuit Board, PCB) ), including the disk voice coil motor (Spindle Voice Coil Motor, Spindle VCM), read / write channel (Read / Write Channel ), memory, non-volatile storage media (such as Electrical Programmable Read-Only-Memory) , EPROM), etc., Transformer and built-in processor and external interface.
  • PCB printed circuit board
  • the external interface is an Ethernet port (Ethernet) Network Interface
  • the semantics carried on the Ethernet port may include an Internet small computer system interface iSCSI protocol, an advanced technology accessory ATA protocol, a small computing system interface SCSI protocol, transport control protocol, and / or Internet Protocol TCP and / or IP, key - value Key-Value protocol and hypertext transfer protocol HTTP .
  • the processor further includes a service processing unit (Service Processing), an Ethernet message processing unit, and a hard disk controller (Hard Disk Controller). .
  • Hard Disk Controller in the processor is respectively associated with the Spindle VCM Connected to a Read/Write Channel, the Read/Write Channel is connected to the Preamp, and the Preamp is The Transformer is connected to the external interface, the disk voice coil motor in the hard disk, the read channel and/or the write channel, the non-volatile storage medium, and the memory, respectively.
  • the Read/Write Channel The disk data is read and written by the read/write head, and the memory provides storage space for the hard disk control, the Ethernet message processing, and the service processing, and the ROM is used for storing the firmware of the hard disk.
  • Transformer provides power conversion
  • the Ethernet Network Interface provides external Ethernet ports.
  • Built-in processor (Controller Unit ) is used to provide at least one of the following functions: hard disk control, Ethernet message processing, and business processing.
  • the Ethernet message processing unit is configured to process the message sent and received by the Ethernet port
  • the service processing unit is configured to perform semantic processing on the received message and semantically convert the response message and the report message of the hard disk
  • the hard disk controller is used for The hard disk operation is controlled according to the semantics of sending and receiving messages.
  • Ethernet message processing, and service processing functions can be deployed in different hardware respectively. (such as the addition of Ethernet message processor and service processor, etc.), can also be integrated into the same system on chip (SoC), microcontroller unit (Micro Controller Unit, MCU) or Digital Signal Processor (DSP).
  • SoC system on chip
  • MCU microcontroller unit
  • DSP Digital Signal Processor
  • firmware can be pre-stored in the ROM or directly loaded via the Ethernet port.
  • the left box is the hard disk (SAS hard disk or SATA Hard disk)
  • the right box is an external control unit, including but not limited to a system on chip or riser card.
  • the external control component includes a processor, an external interface (such as an Ethernet port), a memory, and a non-volatile storage medium (for example, EPROM).
  • the processor is respectively connected to the memory, an Ethernet port, and an EPROM.
  • the processor is configured to process semantics of a hard disk interface, parsing, assembling, and processing of an Ethernet interface message; Used to store firmware (firmware); messages processed on the Ethernet port include but are not limited to iSCSI, ATA, SCSI, TCP/IP, key-value Messages for protocols such as Key-Value and HTTP.
  • step S202 the processor acquires hard disk firmware from the external interface, and the hard disk firmware is the external interface through the IP a transmission channel received from the server;
  • step S203 the processor stops the hard disk and loads the hard disk firmware into the memory.
  • this embodiment may further include:
  • the processor loads the OS image into memory and starts and runs the loaded OS image.
  • this embodiment may further include:
  • the processor obtains hard disk service processing software from the external interface, where the hard disk service processing software is the external interface through the IP a transmission channel received from the server;
  • the processor stops the process of the original hard disk service processing software, loads the hard disk service processing software into the memory, and then starts the loaded hard disk service processing software process.
  • the hard disk firmware, the OS image, and/or are downloaded from the server through the external interface.
  • the hard disk business processing software specifically includes:
  • the loader BootLoader When the loader BootLoader is stored in the non-volatile storage unit of the hard disk, the hard disk is not powered, and the processor is started by the processor The BootLoader then configures an IP address. After the IP address is configured, the external interface interacts with the server to control messages and establish a transmission channel.
  • the hard disk with the external interface is connected to the server through the network, and performs control message interaction with the server and establishes a firmware transmission channel.
  • the control message interaction channel and the firmware transmission channel may be the same channel or different channels.
  • the control message may be an interface through a small computer system of the Internet iSCSI or Serial Attached Small Computer System Interface Control Information Hosted by SAS Mode or Serial Advanced Technology Attachment SATA Interface Hosted Advanced Technology Attached ATA Control information, including but not limited to Write Buffer in SCSI Enclosure Services (SES), Messages such as Switch Page.
  • the control message may also be user-defined control information, including firmware update or upgrade request, firmware write (WriteFirmware), firmware check ( CheckFirmware), firmware report (NotifyFirmware) and other messages.
  • the processor needs to start the loader (boot loader) and startup parameters (Boot) at runtime. Parameters), kernel (kernel) and root file system (Root FileSystem).
  • Boot Loader The main task is to read the kernel (operating system image) from the storage medium into memory and then jump to the entry point of the kernel to start the operating system.
  • the root file system contains the necessary device files, configuration files, and runtime libraries.
  • non-volatile storage media boot for example, via EPROM or NAND
  • Load startup such as Flash or NOR Flash
  • network boot supports network boot through BIOS PXE or UBoot, generally the controller is already loaded at this time
  • BootLoader the hard disk is booted (you need to load the BootLoader through the non-volatile storage unit, then load the hard drive, and boot the operating system from the hard drive).
  • the hard disk firmware when the external interface is directly externally connected to the hard disk, the hard disk firmware, the OS image, and/or are loaded.
  • the specific methods of the hard disk service processing software include but are not limited to the following three methods:
  • Method 1 Only the non-volatile storage unit (such as NOR Flash) stores BootLoader At this time, the hard disk is not powered.
  • the built-in processor is reset from a fixed address of the non-volatile storage medium, and the processor starts the BootLoader in the non-volatile storage medium.
  • the processor then passes the dynamic host setup protocol ( Dynamic Host Configuration Protocol (DHCP) or other way to configure IP address in IP
  • DHCP Dynamic Host Configuration Protocol
  • the address is configured, download the hard disk firmware, OS image, and/or hard disk business processing software (including memory image, hard disk drive, root file system, and business running software package) from the server.
  • the way to download can be followed Protocols such as TFTP or NFS.
  • hard drive firmware if hard drive firmware, OS image and /
  • the hard disk service processing software needs to be updated or upgraded, it is determined whether the received hard disk firmware, the OS image, and/or the hard disk service processing software is the required version information, and if so, the hard disk firmware and the OS are loaded.
  • Mirror and / or hard disk business processing software if not, download the required version information from the server, download it, and then load it.
  • the hard disk firmware when it is necessary to update the hard disk firmware, first power off the hard disk, load the required version of the hard disk firmware into the memory, power on the hard disk, drive the hard disk, and read and write the hard disk; when the OS needs to be updated When mirroring, the required version of the operating system image file is loaded into the memory, and the required version of the operating system image is started and run.
  • the hard disk business processing software needs to be updated, the original hard disk business processing software process is stopped, and the new one is The hard disk service processing software (that is, the required version of the hard disk business processing software) starts the new hard disk business processing software process.
  • the embodiment downloads the hard disk firmware, the OS image, and/or from the server.
  • the hard disk firmware, the OS image, and/or the hard disk business processing software may be written into the non-volatile storage unit, and when the update or upgrade is required, the hard disk firmware and the OS may be used.
  • the image and/or hard disk business processing software is loaded from the non-volatile storage unit into the memory of the hard disk.
  • a non-volatile storage unit such as NOR Flash
  • hard disk firmware operating system image
  • hard disk business processing software and so on.
  • the built-in processor starts Boot Loader from non-volatile storage media.
  • hard disk Firmware The operating system image, the hard disk business processing software, and the like may be pre-stored in the non-volatile storage medium, or may be obtained from the server through the external interface (the same manner) It can also be pre-installed on the hard disk. After the hard disk drive is loaded, boot the operating system from the hard disk.
  • Method 3 The BootLoader and the hard disk firmware are stored in the non-volatile storage medium of the hard disk, and the hard disk is initially installed.
  • the BootLoader is started by the processor when the OS image is mirrored and several hard disk service processing software is used. And loading the hard disk firmware from the non-volatile storage unit to drive the hard disk to read the installed OS Mirror to load.
  • the hard disk service processing software may be selected from the installed plurality of hard disk service processing software or downloaded from the server through the external interface (same mode 1) It can also be pre-installed on the hard disk. After the hard disk drive is loaded, boot the operating system from the hard disk.
  • the specific loading of the hard disk firmware and the hard disk service software includes:
  • Hard disk Firmware update or upgrade The processor of the external control unit downloads a new hard disk from the server through the external interface Firmware Information, and the downloaded new hard disk firmware information is written to the non-volatile storage medium of the external control unit, and when the hard disk firmware needs to be updated, the stored in the non-volatile storage medium of the external control unit is determined. Whether the hard disk firmware information is the required version information, if yes, first power off the hard disk, and then load the hard disk from the non-volatile storage medium of the external control unit. Firmware can be read and written by using the traditional hard disk firmware upgrade interface to upgrade and power on.
  • non-volatile storage media such as NOR Flash
  • the built-in processor starts Boot Loader from non-volatile storage media.
  • hard disk Firmware The operating system image and the hard disk business processing software may be pre-stored on the non-volatile storage medium, or may be obtained from the server through the external interface, or may be pre-installed on the hard disk. After the hard disk drive is loaded, boot from the hard disk. The operating system starts.
  • the traditional hard disk interface is a connection component between the hard disk and the host system, and is only used to transfer data between the hard disk memory and the host memory.
  • the hard disk update or upgrade can be implemented by connecting the network through the traditional hard disk interface.
  • the external interface can facilitate the hard disk to connect to the network, and the initial installation of the hard disk and the dynamic and timely update or upgrade are implemented.
  • FIG. 5 shows a processor according to another embodiment of the present invention.
  • the composition of the structure for the convenience of description, only shows the parts related to the embodiment of the present invention.
  • the processor 2 can be applied to the storage system shown in Fig. 1.
  • the processor 2 specifically includes a transmission channel establishing unit 21, an information acquiring unit 22, and a processing unit 23 .
  • the specific functions of each unit are as follows:
  • An information obtaining unit 22 configured to acquire hard disk firmware from the external interface, where the hard disk firmware is the external interface through the IP a transmission channel received from the server;
  • the processing unit 23 is configured to stop the hard disk and load the hard disk firmware into the memory.
  • the information acquiring unit 22 is further configured to obtain an operating system OS image from the external interface
  • the processing unit 23 is further configured to load the OS image into a memory, and start and run the loaded OS image, where the The OS image is that the external interface is received from the server over the IP transport channel.
  • the information acquiring unit 22 is further configured to acquire hard disk service processing software from the external interface;
  • the processing unit 23 And the method of the original hard disk service processing software is stopped, the hard disk service processing software is loaded into the memory, and the loaded hard disk service processing software process is started, wherein the hard disk service processing software passes the external interface. Said The IP transmission channel is received from the server.
  • the external interface includes an interface directly externally on the hard disk or an external interface provided outside the hard disk by connecting an external control unit.
  • the external control unit includes a system on chip or a riser card or the like.
  • the external interface includes an Ethernet port, PCI Express interface, USB interface and / or Infiniband interface.
  • the embodiment of the present invention Receiving control signals and service data external to the storage system through the set external interface, obtaining service data from the external interface through the set processor, and controlling the hard disk controller to store the service data to the hard disk, thereby realizing dynamic and timely operation of the hard disk.
  • the processor By adding the processor to the traditional hard disk, the hard disk becomes a smart hard disk, which constitutes a micro storage node in the storage system, has a smaller fault domain granularity (single hard disk), and improves the overall reliability of the storage system.
  • the overall space occupation of the storage system can be reduced, the integration degree can be improved, and the overall energy consumption of the storage system can be reduced.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the embodiments of the present invention may be integrated into one controller, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the medium includes a number of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor ( Processor) Performs all or part of the steps of the method described in the various embodiments of the embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, and a read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory) )
  • ROM Read-Only Memory
  • RAM Random Access Memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

本发明适用于硬盘处理技术领域,提供了一种硬盘系统操作方法、存储系统及处理器,所述方法包括:处理器启动非易失性存储介质中记录的装载器 Boot Loader ,装载器启动后,为存储系统配置 IP 地址,然后基于所述 IP 地址建立所述外部接口与服务器之间的 IP 传输通道;所述处理器从所述外部接口获取硬盘固件,所述硬盘固件是所述外部接口通过所述 IP 传输通道从所述服务器接收的;所述处理器对所述硬盘停盘,将所述硬盘固件加载到内存。通过本发明可实现对硬盘的初始安装,以及动态、及时的更新或升级,增强硬盘智能处理的灵活性及兼容性。

Description

一种硬盘系统操作方法、存储系统及处理器 技术领域
本发明属于硬盘处理技术领域,尤其涉及一种硬盘系统操作方法、存储系统及处理器。
背景技术
现有的串行连接小计算系统接口 (Serial Attached SCSI , SAS) 硬盘和串行高级技术附件( Serial Advanced Technology Attached , SATA )硬盘的固件( Firmware )功能一般都是在硬盘出厂前就已经固定好的。然而,在实际应用中,可能随着周围所使用的软、硬件环境的改变及更新,硬盘对于许多新的硬、软件将有可能出现不兼容现象,及时的更新或升级硬盘的 Firmware 文件以增强其兼容性将显得十分必要。
技术问题
本发明实施例提供 一种智能硬盘的实现方法,以解决硬盘固件的及时、动态更新或升级问题。
技术解决方案
第一方面, 一种硬盘系统操作方法,所述方法包括:
应用于存储系统中,所述存储系统包括外部接口、处理器、非易失性存储介质、硬盘控制器以及硬盘,其中,所述外部接口用于接收存储系统外部的控制信号和业务数据,所述处理器用于从所述外部接口获取业务数据,并控制所述硬盘控制器将业务数据存储到所述硬盘中,该方法包括:
所述处理器启动非易失性存储介质中记录的装载器 Boot Loader ,装载器启动后,为存储系统配置 IP 地址,然后基于所述 IP 地址建立所述外部接口与服务器之间的 IP 传输通道;
所述处理器从所述外部接口获取硬盘固件,所述硬盘固件是所述外部接口通过所述 IP 传输通道从所述服务器接收的;
所述处理器对所述硬盘停盘,将所述硬盘固件加载到内存。
在第一方面的第一种可能的实现方式中, 所述方法还包括:
所述处理器从所述外部接口获取操作系统 OS 镜像,所述 OS 镜像是所述外部接口通过所述 IP 传输通道从所述服务器接收的;
所述处理器将所述 OS 镜像加载到内存,并启动和运行加载后的所述 OS 镜像。
结合第一方面或 第一方面的第一种可能的实现方式,在第二种可能的实现方式中, 所述方法还包括:
所述处理器从所述外部接口获取硬盘业务处理软件,所述硬盘业务处理软件是所述外部接口通过所述 IP 传输通道从所述服务器接收的;
所述处理器停止原有硬盘业务处理软件进程,将所述硬盘业务处理软件加载到内存,再启动加载后的所述硬盘业务处理软件进程。
第二方面,一种存储系统,所述存储系统包括外部接口、处理器、非易失性存储介质、硬盘控制器以及硬盘;
所述外部接口,用于接收存储系统外部的控制信号和业务数据;
所述处理器,用于从所述外部接口获取业务数据,并控制所述硬盘控制器将业务数据存储到所述硬盘中;
具体的是,所述处理器,用于启动非易失性存储介质中记录的装载器 Boot Loader ,装载器启动后,为存储系统配置 IP 地址,然后基于所述 IP 地址建立所述外部接口与服务器之间的 IP 传输通道,并从所述外部接口获取硬盘固件,对所述硬盘停盘,将所述硬盘固件加载到内存,其中所述硬盘固件是所述外部接口通过所述 IP 传输通道从所述服务器接收的。
在第二方面的第一种可能实现方式中,所述处理器,还用于从所述外部接口获取操作系统 OS 镜像,并将所述 OS 镜像加载到内存,启动和运行加载后的所述 OS 镜像,其中所述 OS 镜像是所述外部接口通过所述 IP 传输通道从所述服务器接收的。
结合第二方面或第二方面的第一种可能实现方式,在第二种可能实现方式中,所述处理器,还用于从所述外部接口获取硬盘业务处理软件,停止原有硬盘业务处理软件进程,将所述硬盘业务处理软件加载到内存,再启动加载后的所述硬盘业务处理软件进程,其中所述硬盘业务处理软件是所述外部接口通过所述 IP 传输通道从所述服务器接收的。
第三方面,一种处理器,应用于存储系统中,所述存储系统包括外部接口、处理器、非易失性存储介质、硬盘控制器以及硬盘,其中,所述外部接口用于接收存储系统外部的控制信号和业务数据,所述处理器用于从所述外部接口获取业务数据,并控制所述硬盘控制器将业务数据存储到所述硬盘中,所述处理器具体包括:
传输通道建立单元,用于启动非易失性存储介质中记录的装载器 Boot Loader ,装载器启动后,为存储系统配置 IP 地址,然后基于所述 IP 地址建立所述外部接口与服务器之间的 IP 传输通道;
信息获取单元,用于从所述外部接口获取硬盘固件,所述硬盘固件是所述外部接口通过所述 IP 传输通道从所述服务器接收的;
处理单元,用于对所述硬盘停盘,将所述硬盘固件加载到内存。
在第三方面的第一种可能实现方式中,所述信息获取单元,还用于从所述外部接口获取操作系统 OS 镜像;以及
所述处理单元,还用于将所述 OS 镜像加载到内存,启动和运行加载后的所述 OS 镜像,其中所述 OS 镜像是所述外部接口通过所述 IP 传输通道从所述服务器接收的。
结合第三方面或第三方面的第一种可能实现方式,在第二种可能实现方式中,所述信息获取单元,还用于从所述外部接口获取硬盘业务处理软件;以及
所述处理单元,还用于停止原有硬盘业务处理软件进程,将所述硬盘业务处理软件加载到内存,再启动加载后的所述硬盘业务处理软件进程,其中所述硬盘业务处理软件是所述外部接口通过所述 IP 传输通道从所述服务器接收的。
结合第三方面或第三方面的第一种可能实现方式或第三方面的第二种可能实现方式,在第三种可能实现方式中,所述外部接口包括:
在硬盘上直接外置的接口或者在硬盘外通过连接外接控制部件提供的外置的接口。
结合第三方面或第三方面的第一种可能实现方式或第三方面的第二种可能实现方式或第三方面的第三种可能实现方式,在第四种可能实现方式中,所述外接控制部件包括片上系统或转接卡 。
结合第三方面或第三方面的第一种可能实现方式或第三方面的第二种可能实现方式或第三方面的第三种可能实现方式或第三方面的第四种可能实现方式,在第五种可能实现方式中,所述外部接口包括以太网口、 PCI Express 接口、 USB 接口和 / 或 Infiniband 接口。
有益效果
本发明实施例与现有技术相比存在的有益效果是:通过设置的外部接口接收存储系统外部的控制信号和业务数据,通过设置的处理器从所述外部接口获取业务数据,并控制硬盘控制器将业务数据存储到硬盘中,从而实现硬盘动态、及时的更新或升级,增强硬盘处理的灵活性及兼容性,满足软、硬件环境不断变化的需求。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图 1 是 本发明一实施例 提供的 硬盘系统操作方法所适用 的存储系统的组成结构图;
图 2 是本发明一实施例提供的 硬盘系统操作方法 的实现流程图;
图 3 是本发明一实施例提供的 外部接口示意 图;
图 4 是本发明一实施例提供的另一 外部接口示意 图;
图 5 是本发明一实施例提供的 处理器 的组成结构图。
本发明的实施方式
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、接口、技术之类的具体细节,以便透切理解本发明实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本发明。在其它情况中,省略对众所周知的装置、电路以及方法的详细说明,以免不必要的细节妨碍本发明的描述。
本发明实施例中术语 ' 系统 ' 和 ' 网络 ' 在本文中常可被互换使用。本发明实施例中术语 ' 和 / 或 ' ,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如, A 和 / 或 B ,可以表示:单独存在 A ,同时存在 A 和 B ,单独存在 B 这三种情况。另外,本发明实施例中字符' / ',一般表示前后关联对象是一种'或'的关系。
图 1 示出了 本发明一实施例 提供的 智能硬盘实现方法所适用 的存储系统的组成结构,为了便于说明,仅示出了与本实施例相关的部分。
该存储系统是一个以数据存储和管理为核心的云计算系统。如图 1 所示,所述存储系统包括外部接口 1 、处理器 2 、非易失性存储介质 3 、硬盘控制器 4 以及硬盘 5 。 其中,所述外部接口 1 用于接收存储系统外部的控制信号和业务数据,所述处理器 2 用于从所述外部接口 1 获取业务数据,并控制所述硬盘控制器 4 将业务数据存储到所述硬盘 5 中。
具体的是,所述处理器 2 ,用于启动非易失性存储介质 3 中记录的装载器 Boot Loader ,装载器启动后,为存储系统配置 IP 地址,然后基于所述 IP 地址建立所述外部接口 1 与服务器之间的 IP 传输通道,并从所述外部接口 1 获取硬盘固件,对所述硬盘 5 停盘,将所述硬盘固件加载到内存,其中所述硬盘固件是所述外部接口 1 通过所述 IP 传输通道从所述服务器接收的。
进一步的,所述处理器 2 ,还用于从所述外部接口 1 获取操作系统 OS 镜像,并将所述 OS 镜像加载到内存,启动和运行加载后的所述 OS 镜像,其中所述 OS 镜像是所述外部接口通过所述 IP 传输通道从所述服务器接收的。
进一步的,所述处理器 2 ,还用于从所述外部接口 1 获取硬盘业务处理软件,停止原有硬盘业务处理软件进程,将所述硬盘业务处理软件加载到内存,再启动加载后的所述硬盘业务处理软件进程,其中所述硬盘业务处理软件是所述外部接口 1 通过所述 IP 传输通道从所述服务器接收的。
在本实施例中,所述外部接口 1 包括以太网口、外设组件互连标准的总线 PCI Express 接口、 USB 接口和 / 或 Infiniband 接口等。
在本实施例中,通过为传统硬盘增加所述处理器,使传统硬盘成为智能硬盘,构成存储系统中的一个微型存储节点,拥有更小的故障域粒度(单个硬盘),提升存储系统的整体可靠性。需要说明的是,现有技术通常是通过单个处理器(例如 Intel X86 处理器)控制和管理数十块硬盘,当该处理器出现故障可能导致数十万亿字节甚至百万亿字节数据的失效,引起的数据迁移和故障恢复粒度较粗,对业务影响较大。而且通过将所述处理器内置到硬盘中,可以减少存储系统的整体空间占用,提高集成度,降低存储系统的整体能耗。
另外, 通过所述外部接口与服务器进行控制消息交互,建立传输通道,接收所述服务器通过所述传输通道传输的硬盘固件、 OS 镜像和 / 或硬盘业务处理软件,并通过所述处理器将接收到的所述硬盘固件、 OS 镜像和 / 或硬盘业务处理软件写入非易失性存储单元,可实现对硬盘的初始安装,以及动态、及时的更新或升级,增强硬盘智能处理的灵活性及兼容性 ,满足各种新业务的需求。
本实施例提供的应用场景只用于解释本发明,并不限定本发明的保护范围。
图 2 示出了本发明另一实施例 提供的 硬盘系统操作方法 的 实现流程,本实施例所述硬盘系统操作方法可应用于如图 1 所示的存储系统中,该方法过程详述如下:
在步骤 S201 中, 处理器启动非易失性存储介质中记录的装载器 Boot Loader ,装载器启动后,为存储系统配置 IP 地址,然后基于所述 IP 地址建立外部接口与服务器之间的 IP 传输通道。
示例性的, 所述外部接口包括在硬盘上直接外置的接口(如图 3 所示)或者在硬盘外通过连接外接控制部件提供的外置的接口(如图 4 所示)。
在硬盘上直接外置的接口,如图 3 所示,左边方框为硬盘盘体,包括硬盘机组件( Hard Drive Assembly , HDA )和预放大器( Preamp )。右边方框为印刷电路板( Printed Circuit Board , PCB ),包括磁盘音圈电机( Spindle Voice Coil Motor , Spindle VCM )、读 / 写通道( Read/Write Channel )、内存、非易失性存储介质(例如电可编程序只读存储器 (Electrically Programmable Read-Only-Memory , EPROM) 等)、变压器 (Transformer) 以及内置的处理器和外置的接口,示例性的,所述外置的接口为以太网口( Ethernet Network Interface ), 所述以太网口上承载的语义可以包括因特网小计算机系统接口 iSCSI 协议、高级技术附件 ATA 协议、小计算系统接口 SCSI 协议、传输控制协议和 / 或因特网互联协议 TCP 和 / 或 IP 、键 - 值 Key-Value 协议以及超文本传输协议 HTTP 。所述处理器还包括业务处理单元( Service Processing ) 、以太网消息处理单元以及硬盘控制器( Hard Disk Controller ) 。
其中,所述处理器中的 Hard Disk Controller 分别与 所述 Spindle VCM 和 Read/Write Channel 连接,所述 Read/Write Channel 与所述 Preamp 连接,所述 Preamp 与所述 Transformer 连接,所述处理器分别与所述外置的接口、硬盘中的磁盘音圈电机、读通道和 / 或写通道、非易失性存储介质、内存分别连接。
在本实施例中,所述 Read/Write Channel 通过读写磁头进行磁盘数据读写,所述内存为硬盘控制、以太网消息处理以及业务处理提供存储空间,所述 ROM 用于存放硬盘固件( Firmware ), Transformer 提供电源转换, Ethernet Network Interface 对外提供以太网口。内置的处理器( Controller Unit )用于提供以下至少一种功能:硬盘控制、以太网消息处理以及业务处理。具体的是,以太网消息处理单元用于对以太网口收发的消息进行处理,业务处理单元用于对收到消息进行语义处理以及对硬盘的响应消息和上报消息进行语义转换,硬盘控制器用于依据收发消息的语义对硬盘操作进行控制。需要说明的是,上述硬盘控制、以太网消息处理以及业务处理功能可分别以不同的硬件部署 ( 例如新增以太网消息处理器以及业务处理器等 ) ,也可集成到同一片上系统 (System On Chip , SoC) 、微控制器单元 (Micro Controller Unit , MCU) 或 数字信号处理器 (Digital Signal Processor , DSP) 上。另外,所需 Firmware 可预先存放在 ROM 中,也可通过以太网口直接加载。
在硬盘外通过连接外接控制部件以提供外置的接口,如图 4 所示,左边方框为硬盘( SAS 硬盘或者 SATA 硬盘),右边方框为外接控制部件,所述外接控制部件包括但不限于片上系统或转接卡。其中,所述外接控制部件包括处理器、外置的接口(例如以太网口)、内存以及非易失性存储介质(例如 EPROM )。所述处理器分别与所述内存、以太网口以及 EPROM 连接。所述处理器用于处理硬盘接口语义、以太网口消息的解析、组装及处理;所述 ROM 用于存放硬盘固件( Firmware );以太网口上处理的消息包括但不限于基于 iSCSI 、 ATA 、 SCSI 、 TCP/IP 、键 - 值 Key-Value 、 HTTP 等协议的消息。
需要说明的是,上述外置的接口是以以太网接口为例, 本领域的普通技术人员应当理解 ,其他外置接口例如 PCI Express 接口、 USB 接口以及 Infiniband 接口同样适用本实施例。
在步骤 S202 中, 处理器从所述外部接口获取硬盘固件,所述硬盘固件是所述外部接口通过所述 IP 传输通道从所述服务器接收的;
在步骤 S203 中,处理器对所述硬盘停盘,将所述硬盘固件加载到内存。
进一步的,本实施例还可以包括:
所述处理器从所述外部接口获取操作系统 OS 镜像,所述 OS 镜像是所述外部接口通过所述 IP 传输通道从所述服务器接收的;
所述处理器将所述 OS 镜像加载到内存,并启动和运行加载后的所述 OS 镜像。
进一步的,本实施例还可以包括:
所述处理器从所述外部接口获取硬盘业务处理软件,所述硬盘业务处理软件是所述外部接口通过所述 IP 传输通道从所述服务器接收的;
所述处理器停止原有硬盘业务处理软件进程,将所述硬盘业务处理软件加载到内存,再启动加载后的所述硬盘业务处理软件进程。
在本实施例中,通过所述外部接口从服务器下载硬盘固件、 OS 镜像和 / 或硬盘业务处理软件具体包括:
在硬盘的非易失性存储单元中存储有装载器 BootLoader 时,硬盘不上电,通过所述处理器启动所述 BootLoader ,接着配置 IP 地址,在 IP 地址配置完后,通过所述外部接口与服务器进行控制消息交互,并建立传输通道;
接收所述部署服务器通过所述传输通道传输的硬盘固件、 OS 镜像和 / 或硬盘业务处理软件;
判断接收到的所述硬盘固件、 OS 镜像和 / 或硬盘业务处理软件是否为所需版本的信息,若是,加载所述硬盘固件、 OS 镜像和 / 或硬盘业务处理软件,以实现硬盘的初始安装、更新或升级。
在本实施例中,带外部接口的硬盘与服务器通过网络连接,并与所述服务器进行控制消息交互以及建立固件传输通道。其中,所述控制消息交互通道与所述固件传输通道可以为同一通道也可以为不同通道。所述控制消息可以为通过因特网小计算机系统接口 iSCSI 或串行连接小型计算机系统接口 SAS 方式承载的控制信息或者串行高级技术附件 SATA 接口承载的高级技术附着 ATA 控制信息,包括但不限于小计算机系统接口外壳服务 (SCSI Enclosure Services , SES) 中的 Write Buffer 、 Switch Page 等消息。所述控制消息也可以为用户自定义的控制信息,包括固件更新或升级请求、固件写入( WriteFirmware )、固件检查( CheckFirmware )、固件上报( NotifyFirmware )等消息。
需要说明的是,所述处理器在运行时需要启动装载器( Boot Loader )、启动参数 (Boot Parameters) 、内核 (kernel) 以及根文件系统 (Root FileSystem) 。其中 Boot Loader 的主要任务是将内核(操作系统镜像)从存储介质上读到内存中然后跳转到内核的入口点去运行,以启动操作系统。根文件系统包含必须的设备文件、配置文件以及运行库等。
其中,启动处理器运行的方式分为三种:非易失性存储介质启动 ( 例如通过 EPROM 或 NAND Flash 或 NOR Flash 等加载启动 ) 、网络启动 ( 通过 BIOS 的 PXE 或 UBoot 来支持网络启动,一般此时所述控制器已经加载了 BootLoader) 、硬盘启动 ( 需要通过非易失性存储单元先加载 BootLoader ,然后加载硬盘驱动,再从硬盘引导操作系统启动 ) 。
在本实施例中,在所述外置接口的方式为在硬盘上直接外置接口时,加载硬盘固件、 OS 镜像和 / 或硬盘业务处理软件的具体方式包括但不限于以下三种方式:
方式一:非易失性存储单元(例如 NOR Flash )中仅存放 BootLoader ,此时硬盘不上电。内置的处理器复位时从非易失性存储介质的固定地址启动,处理器启动非易失性存储介质中的 BootLoader 。然后处理器通过动态主机设置协议( Dynamic Host Configuration Protocol, DHCP )或其他方式配置 IP 地址,在 IP 地址配置完后,从服务器下载硬盘固件、 OS 镜像和 / 或硬盘业务处理软件(包括内存镜像、硬盘驱动、根文件系统以及业务运行软件包等)。其中,下载的方式可以遵循 TFTP 或 NFS 等协议。
在硬盘运行过程中,如果硬盘固件、 OS 镜像和 / 或硬盘业务处理软件等需要更新或者升级时,判断接收到的所述硬盘固件、 OS 镜像和 / 或硬盘业务处理软件是否为所需版本的信息,若是,加载所述硬盘固件、 OS 镜像和 / 或硬盘业务处理软件;若否,则从所述服务器中下载所需版本信息,下载后,再加载。
具体的,当需要更新硬盘固件时,先对硬盘下电停盘,将所需版本的硬盘固件加载到内存,对硬盘上电,驱动硬盘,对硬盘进行读写操作;当需要更新 OS 镜像时,将所需版本的操作系统镜像文件加载到内存,启动和运行所述所需版本的操作系统镜像;当需要更新硬盘业务处理软件时,停止原有硬盘业务处理软件进程,将新的硬盘业务处理软件(即所需版本的硬盘业务处理软件),再启动新的硬盘业务处理软件进程。
可选的是,本实施例从服务器下载所述硬盘固件、 OS 镜像和 / 或硬盘业务处理软件后,可以先将所述硬盘固件、 OS 镜像和 / 或硬盘业务处理软件写入所述非易失性存储单元,在需要更新或升级时,再将所述硬盘固件、 OS 镜像和 / 或硬盘业务处理软件从所述非易失性存储单元加载到硬盘的内存中运行。
方式二:系统启动时,非易失性存储单元(例如 NOR Flash )中存有 Boot Loader 、硬盘 Firmware 、操作系统镜像、硬盘业务处理软件等。此时内置的处理器从非易失性存储介质中启动 Boot Loader ,并从所述非易失性存储介质中加载所述硬盘固件,以驱动硬盘。其中,硬盘 Firmware 、操作系统镜像、硬盘业务处理软件等可预存于非易失性存储介质,也可以通过所述外部接口从服务器获取 ( 同方式一 ) ,也可以在硬盘上预装,待硬盘驱动加载后,从硬盘引导操作系统启动。
方式三:在硬盘的非易失性存储介质中存储有 BootLoader 以及硬盘固件,且所述硬盘初始安装了 OS 镜像以及若干个硬盘业务处理软件时,通过所述处理器启动所述 BootLoader ,并从所述非易失性存储单元中加载所述硬盘固件,以驱动硬盘,读取所述已安装的 OS 镜像以加载。所述硬盘业务处理软件可以从所述已安装的若干个硬盘业务处理软件中选择,或者通过所述外置的接口从服务器下载 ( 同方式一 ) ,也可以在硬盘上预装,待硬盘驱动加载后,从硬盘引导操作系统启动。
在所述外置接口设置的方式为在硬盘外通过连接外接控制部件时,加载硬盘固件和硬盘业务软件的具体包括:
(1) 硬盘 Firmware 更新或升级:外接控制部件的处理器通过所述外置的接口从服务器下载新的硬盘 Firmware 信息,并将下载的所述新的硬盘固件信息写入外接控制部件的非易失性存储介质,当需要更新硬盘固件时,判断所述外接控制部件的非易失性存储介质中存储的所述硬盘固件信息是否为所需版本的信息,若是,先对硬盘下电停盘,再从所述外接控制部件的非易失性存储介质中加载所述硬盘 Firmware ,通过传统硬盘 Firmware 升级接口进行升级后上电,即可对硬盘进行读写操作;
(2) 硬盘固件、 OS 镜像和 / 或硬盘业务处理软件的更新或者升级:非易失性存储介质(例如 NOR Flash )中存有 Boot Loader 、硬盘固件、 OS 镜像、硬盘业务处理软件等。此时内置的处理器从非易失性存储介质中启动 Boot Loader ,接着加载硬盘固件,以驱动硬盘。其中,硬盘 Firmware 、操作系统镜像、硬盘业务处理软件等可预存于非易失性存储介质,也可以通过所述外置的接口从服务器获取,也可以在硬盘上预装,待硬盘驱动加载后,从硬盘引导操作系统启动。
需要说明的是,传统硬盘接口是硬盘与主机系统间的连接部件,仅用于在硬盘内存和主机内存之间传输数据。通过传统的硬盘接口无法连接网络实现硬盘更新或升级,而本实施例通过所述外部接口可方便硬盘连接网络,实现对硬盘的初始安装以及动态、及时的更新或升级。
图 5 示出了本发明另一实施例提供的 处理器 的组成结构,为了便于说明,仅示出了与本发明实施例相关的部分。
该 处理器 2 可应用于图 1 所示的存储系统中。
该 处理器 2 具体包括 传输通道建立单元 21 、信息获取单元 22 以及处理单元 23 。其中,各单元的具体功能如下:
传输通道建立单元 21 ,用于启动非易失性存储介质中记录的装载器 Boot Loader ,装载器启动后,为存储系统配置 IP 地址,然后基于所述 IP 地址建立所述外部接口与服务器之间的 IP 传输通道;
信息获取单元 22 ,用于从所述外部接口获取硬盘固件,所述硬盘固件是所述外部接口通过所述 IP 传输通道从所述服务器接收的;
处理单元 23 ,用于对所述硬盘停盘,将所述硬盘固件加载到内存。
进一步的,所述信息获取单元 22 ,还用于从所述外部接口获取操作系统 OS 镜像;以及
所述处理单元 23 ,还用于将所述 OS 镜像加载到内存,启动和运行加载后的所述 OS 镜像,其中所述 OS 镜像是所述外部接口通过所述 IP 传输通道从所述服务器接收的。
进一步的,所述信息获取单元 22 ,还用于从所述外部接口获取硬盘业务处理软件;以及
所述处理单元 23 ,还用于停止原有硬盘业务处理软件进程,将所述硬盘业务处理软件加载到内存,再启动加载后的所述硬盘业务处理软件进程,其中所述硬盘业务处理软件是所述外部接口通过所述 IP 传输通道从所述服务器接收的。
在本实施例中, 所述外部接口包括在硬盘上直接外置的接口或者在硬盘外通过连接外接控制部件提供的外置的接口等。所述外接控制部件包括片上系统或转接卡等。所述外部接口包括以太网口、 PCI Express 接口、 USB 接口和 / 或 Infiniband 接口等。
本实施例所述处理器中各单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
综上所述, 本发明实施例 通过设置的外部接口接收存储系统外部的控制信号和业务数据,通过设置的处理器从所述外部接口获取业务数据,并控制硬盘控制器将业务数据存储到硬盘中,从而实现硬盘动态、及时的更新或升级,增强硬盘处理的灵活性及兼容性,满足软、硬件环境不断变化的需求。而且, 通过为传统硬盘增加所述处理器,使硬盘成为智能硬盘,构成存储系统中的一个微型存储节点,拥有更小的故障域粒度(单个硬盘),提升存储系统的整体可靠性。另外,通过将所述处理器内置到硬盘中,可以减少存储系统的整体空间占用,提高集成度,降低存储系统的整体能耗。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能单元的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元完成,即将装置的内部结构划分成不同的功能单元,以完成以上描述的全部或者部分功能。 另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明实施例的保护范围。 上述描述的系统,处理器和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本发明实施例所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明实施例各个实施例中的各功能单元可以集成在一个控制器中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器( processor )执行本发明实施例各个实施例所述方法的全部或部分步骤。而前述的存储介质包括: U 盘、移动硬盘、只读存储器( ROM , Read-Only Memory )、随机存取存储器( RAM , Random Access Memory )、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述 实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明实施例各实施例技术方案的精神和范围 。

Claims (12)

  1. 一种硬盘系统操作方法,其特征在于,应用于存储系统中,所述存储系统包括外部接口、处理器、非易失性存储介质、硬盘控制器以及硬盘,其中,所述外部接口用于接收存储系统外部的控制信号和业务数据,所述处理器用于从所述外部接口获取业务数据,并控制所述硬盘控制器将业务数据存储到所述硬盘中,该方法包括:
    所述处理器启动非易失性存储介质中记录的装载器 Boot Loader ,装载器启动后,为存储系统配置 IP 地址,然后基于所述 IP 地址建立所述外部接口与服务器之间的 IP 传输通道;
    所述处理器从所述外部接口获取硬盘固件,所述硬盘固件是所述外部接口通过所述 IP 传输通道从所述服务器接收的;
    所述处理器对所述硬盘停盘,将所述硬盘固件加载到内存。
  2. 如权利要求 1 所述的方法,其特征在于,所述方法还包括:
    所述处理器从所述外部接口获取操作系统 OS 镜像,所述 OS 镜像是所述外部接口通过所述 IP 传输通道从所述服务器接收的;
    所述处理器将所述 OS 镜像加载到内存,并启动和运行加载后的所述 OS 镜像。
  3. 如权利要求 1 或 2 所述的方法,其特征在于,所述方法还包括:
    所述处理器从所述外部接口获取硬盘业务处理软件,所述硬盘业务处理软件是所述外部接口通过所述 IP 传输通道从所述服务器接收的;
    所述处理器停止原有硬盘业务处理软件进程,将所述硬盘业务处理软件加载到内存,再启动加载后的所述硬盘业务处理软件进程。
  4. 一种存储系统,其特征在于,所述存储系统包括外部接口、处理器、非易失性存储介质、硬盘控制器以及硬盘;
    所述外部接口,用于接收存储系统外部的控制信号和业务数据;
    所述处理器,用于从所述外部接口获取业务数据,并控制所述硬盘控制器将业务数据存储到所述硬盘中;
    具体的是,所述处理器,用于启动非易失性存储介质中记录的装载器 Boot Loader ,装载器启动后,为存储系统配置 IP 地址,然后基于所述 IP 地址建立所述外部接口与服务器之间的 IP 传输通道,并从所述外部接口获取硬盘固件,对所述硬盘停盘,将所述硬盘固件加载到内存,其中所述硬盘固件是所述外部接口通过所述 IP 传输通道从所述服务器接收的。
  5. 如权利要求 4 所述的系统,其特征在于,所述处理器,还用于从所述外部接口获取操作系统 OS 镜像,并将所述 OS 镜像加载到内存,启动和运行加载后的所述 OS 镜像,其中所述 OS 镜像是所述外部接口通过所述 IP 传输通道从所述服务器接收的。
  6. 如权利要求 4 或 5 所述的系统,其特征在于,所述处理器,还用于从所述外部接口获取硬盘业务处理软件,停止原有硬盘业务处理软件进程,将所述硬盘业务处理软件加载到内存,再启动加载后的所述硬盘业务处理软件进程,其中所述硬盘业务处理软件是所述外部接口通过所述 IP 传输通道从所述服务器接收的。
  7. 一种处理器,其特征在于,应用于存储系统中,所述存储系统包括外部接口、处理器、非易失性存储介质、硬盘控制器以及硬盘,其中,所述外部接口用于接收存储系统外部的控制信号和业务数据,所述处理器用于从所述外部接口获取业务数据,并控制所述硬盘控制器将业务数据存储到所述硬盘中,所述处理器具体包括:
    传输通道建立单元,用于启动非易失性存储介质中记录的装载器 Boot Loader ,装载器启动后,为存储系统配置 IP 地址,然后基于所述 IP 地址建立所述外部接口与服务器之间的 IP 传输通道;
    信息获取单元,用于从所述外部接口获取硬盘固件,所述硬盘固件是所述外部接口通过所述 IP 传输通道从所述服务器接收的;
    处理单元,用于对所述硬盘停盘,将所述硬盘固件加载到内存。
  8. 如权利要求 7 所述的处理器,其特征在于,所述信息获取单元,还用于从所述外部接口获取操作系统 OS 镜像;以及
    所述处理单元,还用于将所述 OS 镜像加载到内存,启动和运行加载后的所述 OS 镜像,其中所述 OS 镜像是所述外部接口通过所述 IP 传输通道从所述服务器接收的。
  9. 如权利要求 7 或 8 所述的处理器,其特征在于,所述信息获取单元,还用于从所述外部接口获取硬盘业务处理软件;以及
    所述处理单元,还用于停止原有硬盘业务处理软件进程,将所述硬盘业务处理软件加载到内存,再启动加载后的所述硬盘业务处理软件进程,其中所述硬盘业务处理软件是所述外部接口通过所述 IP 传输通道从所述服务器接收的。
  10. 如权利要求 7 至 9 任一项所述的处理器,其特征在于,所述外部接口包括:
    在硬盘上直接外置的接口或者在硬盘外通过连接外接控制部件提供的外置的接口。
  11. 如权利要求 7 至 10 任一项所述的处理器,其特征在于,所述外接控制部件包括片上系统或转接卡。
  12. 如权利要求 7 至 11 任一项所述的处理器,其特征在于,所述外部接口包括以太网口、 PCI Express 接口、 USB 接口和 / 或 Infiniband 接口。
PCT/CN2012/086452 2012-12-12 2012-12-12 一种硬盘系统操作方法、存储系统及处理器 WO2014089781A1 (zh)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2015546796A JP6198843B2 (ja) 2012-12-12 2012-12-12 ハードディスクシステム操作方法、ストレージシステム及びプロセッサ
CN201280003011.4A CN104040517B (zh) 2012-12-12 2012-12-12 一种硬盘系统操作方法、存储系统及处理器
EP12890110.5A EP2921968B1 (en) 2012-12-12 2012-12-12 Hard disk system operating method, storage system, and processor
PCT/CN2012/086452 WO2014089781A1 (zh) 2012-12-12 2012-12-12 一种硬盘系统操作方法、存储系统及处理器
US14/736,058 US10664164B2 (en) 2012-12-12 2015-06-10 Hard disk system operation method, storage system, and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/086452 WO2014089781A1 (zh) 2012-12-12 2012-12-12 一种硬盘系统操作方法、存储系统及处理器

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/736,058 Continuation US10664164B2 (en) 2012-12-12 2015-06-10 Hard disk system operation method, storage system, and processor

Publications (1)

Publication Number Publication Date
WO2014089781A1 true WO2014089781A1 (zh) 2014-06-19

Family

ID=50933697

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/086452 WO2014089781A1 (zh) 2012-12-12 2012-12-12 一种硬盘系统操作方法、存储系统及处理器

Country Status (5)

Country Link
US (1) US10664164B2 (zh)
EP (1) EP2921968B1 (zh)
JP (1) JP6198843B2 (zh)
CN (1) CN104040517B (zh)
WO (1) WO2014089781A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106547602A (zh) * 2016-12-09 2017-03-29 中南大学 一种适用于iSCSI协议远程无线加载的操作系统镜像的制作方法
CN109002309A (zh) * 2018-07-25 2018-12-14 郑州云海信息技术有限公司 一种硬件升级方法及相关装置

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150127930A1 (en) * 2013-11-06 2015-05-07 Seagate Technology Llc Authenticated device initialization
TW201525858A (zh) * 2013-12-31 2015-07-01 Ibm 基板管理控制器與其韌體載入方法
CN112214341B (zh) * 2020-09-11 2023-01-10 苏州浪潮智能科技有限公司 一种基于硬盘升级传输失败的处理方法及系统
CN114448779A (zh) * 2021-12-30 2022-05-06 锐凌无线有限责任公司 无线通信模组及其功能恢复方法、电子设备和存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7191327B2 (en) * 2002-04-04 2007-03-13 Intrinsyc Software International, Inc. Internet-enabled device provisioning, upgrade and recovery mechanism
US7207039B2 (en) * 2003-12-24 2007-04-17 Intel Corporation Secure booting and provisioning
US20080141235A1 (en) * 2006-12-12 2008-06-12 Russell Woodbury System and Method for Transparent Hard Disk Drive Update
CN101442548A (zh) * 2008-12-17 2009-05-27 成都市华为赛门铁克科技有限公司 一种固态硬盘的操作方法和固态硬盘

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6751681B2 (en) * 2001-06-18 2004-06-15 Sony Corporation System and method for providing automatic firmware updates and diagnostics for network attached storage devices
JP3708914B2 (ja) 2002-07-30 2005-10-19 株式会社東芝 ディスク記憶装置において実行されるプログラムを書き換えるための方法及び装置
US7562360B2 (en) * 2003-12-01 2009-07-14 Texas Instruments Incorporated Method and system for firmware downloads
US7197634B2 (en) * 2004-01-16 2007-03-27 Dell Products L.P. System and method for updating device firmware
JP4870915B2 (ja) * 2004-07-15 2012-02-08 株式会社日立製作所 ストレージ装置
TW200629072A (en) * 2005-02-01 2006-08-16 Sunplus Technology Co Ltd Bridge system for hetero-serial interfaces
US7450040B2 (en) 2006-03-20 2008-11-11 Marvell International Ltd. Method and apparatus for generating non-binary balanced codes
US20090077634A1 (en) * 2007-09-19 2009-03-19 Aten International Co., Ltd. Firmware update method and system using the same
US8219794B1 (en) * 2009-11-03 2012-07-10 Network Appliance, Inc. Non-disruptive firmware upgrade of a storage shelf
US9063816B2 (en) * 2010-02-05 2015-06-23 Lenovo (Singapore) Pte. Ltd. Method and apparatus for updating firmware on a storage device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7191327B2 (en) * 2002-04-04 2007-03-13 Intrinsyc Software International, Inc. Internet-enabled device provisioning, upgrade and recovery mechanism
US7207039B2 (en) * 2003-12-24 2007-04-17 Intel Corporation Secure booting and provisioning
US20080141235A1 (en) * 2006-12-12 2008-06-12 Russell Woodbury System and Method for Transparent Hard Disk Drive Update
CN101442548A (zh) * 2008-12-17 2009-05-27 成都市华为赛门铁克科技有限公司 一种固态硬盘的操作方法和固态硬盘

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2921968A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106547602A (zh) * 2016-12-09 2017-03-29 中南大学 一种适用于iSCSI协议远程无线加载的操作系统镜像的制作方法
CN109002309A (zh) * 2018-07-25 2018-12-14 郑州云海信息技术有限公司 一种硬件升级方法及相关装置

Also Published As

Publication number Publication date
EP2921968A4 (en) 2015-12-09
JP2016508250A (ja) 2016-03-17
CN104040517B (zh) 2019-05-21
US20150277774A1 (en) 2015-10-01
EP2921968B1 (en) 2018-02-21
EP2921968A1 (en) 2015-09-23
US10664164B2 (en) 2020-05-26
JP6198843B2 (ja) 2017-09-20
CN104040517A (zh) 2014-09-10

Similar Documents

Publication Publication Date Title
WO2014089781A1 (zh) 一种硬盘系统操作方法、存储系统及处理器
US10282192B1 (en) Updating device code through a bus
US20170228228A1 (en) Remote launch of deploy utility
ES2632512T3 (es) Conversión de máquinas a máquinas virtuales
RU2562436C2 (ru) Технологические приемы выгрузки объекта назначения виртуального хранилища
JP2020013564A (ja) ディスクレスコンピュータシステムのスマートラックアーキテクチャ
WO2014200162A1 (en) Processor module, server system and method of controlling processor module
US10515040B2 (en) Data bus host and controller switch
US20160080210A1 (en) High density serial over lan managment system
WO2017113879A1 (zh) 智能接口卡的控制方法及装置
KR101548437B1 (ko) 휴대용 디바이스의 드라이버(들)를 휴대용 디바이스에 통합하는 방법 및 장치
US10324888B2 (en) Verifying a communication bus connection to a peripheral device
US7571274B2 (en) Method and system for virtual enclosure management
US20160112342A1 (en) Machine providing method, machine providing system and computer-readable recording medium having stored therein machine providing program
WO2014082250A1 (zh) 基于闪存存储的系统、分区方法和装置
WO2024022212A1 (zh) 配置信息的管理方法、装置及服务器
WO2023016379A1 (zh) 计算机系统、基于PCIe设备的控制方法及相关设备
WO2016165280A1 (zh) 操作系统部署方法和系统
WO2022242665A1 (zh) 一种数据存储方法及相关装置
WO2012079371A1 (zh) 基于proc技术的虚拟串口热插拔的实现方法及系统
CN115480621A (zh) 计算驱动器的配置
WO2021118117A1 (en) Cloud server and operating method of the same
WO2024130860A1 (zh) 一种fpga裸金属服务器的实现方法及系统
US20220197667A1 (en) Automatic installation method and system
TWI840849B (zh) 計算系統、電腦實施方法及電腦程式產品

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12890110

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2015546796

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2012890110

Country of ref document: EP