Peer-to-peer storage device messaging over the control bus
By using a low-bandwidth control bus for message transmission between peer-to-peer storage devices in a multi-device storage system, the problem of data loss when storage devices fail is solved, and reliable data transmission and backup between peer-to-peer storage devices is achieved. Improved system reliability and data security.
Patent Information
- Application Number
- CN202180006561.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-02-16
- Filing Date
- 2021-05-12
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-05-12
AI Technical Summary
In a multi-device storage system, when the storage device encounters a failure or reset, it may cause the loss of internal operation data. Especially when it does not rely on the host system, it is difficult to achieve reliable offloading and backup of data.
Messages are transferred between peer storage devices through a low-bandwidth control bus to offload and back up internal operational data, and peer-to-peer shared services are used for data selection, encryption and recovery to ensure data integrity during operations in front of the host.
It achieves reliable data transmission and backup between storage devices without waiting for or relying on the host system, improving system reliability and data security, and reducing the risk of data loss.
Smart Images

Figure CN114868117B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates generally to computing system devices interconnected by a low-bandwidth bus, and more particularly to peer-to-peer device communications over a low-bandwidth control bus without host system intervention. Background Art
[0002] Some computing systems, such as storage arrays, may include multiple storage devices that support one or more host systems through a peripheral or storage interface bus, such as Peripheral Component Interconnect Express (PCIe), Serial Advanced Technology Attachment (SATA), or Serial Attached [Small Computer Serial Interface (SCSI)] (SAS). These interfaces may be configured for high bandwidth transfer rates, such as 3 Gigabits (Gb) / second (s), 6 Gb / s, 8 Gb / s, 12 Gb / s, 16 Gb / s, etc., to enable fast and reliable data transfer to and from the storage devices, with some versions supporting up to 512 Gb / s.
[0003] Multi-device storage systems utilize multiple discrete storage devices, typically disk drives (solid-state drives, hard disk drives, hybrid drives, tape drives, etc.) for storing large amounts of data. These multi-device storage systems are typically arranged into arrays of drives interconnected by a common communication structure and, in many cases, controlled by a storage controller, a redundant array of independent disks (RAID) controller, or a general purpose controller for coordinating storage and system activities across the array of drives. The data stored in the array may be stored according to defined RAID levels, combinations of RAID modes, or other configurations for providing the desired data redundancy, performance, and capacity utilization. Generally speaking, these data storage configurations may involve some combination of redundant copies (mirroring), data stripping, and / or parity (calculated and stored), and may incorporate other data management, error correction, and data recovery processes that are sometimes specific to the type of disk drives used (e.g., solid-state drives versus hard disk drives).
[0004] Each storage device in a multi-device storage system may be connected to a host system through at least one high-bandwidth interface, such as PCIe, using an appropriate storage protocol for the storage device, such as solid-state drives (SSDs) or non-volatile memory express (NVMe) for accessing an all-flash array of storage blades. Some multi-device storage systems employ storage devices that are capable of communicating with each other and / or with a host system over an interconnect fabric and / or a network fabric through a high-bandwidth interface. Such fabric-based distributed storage systems may include storage devices configured with direct memory access to enable more efficient transfer of data to and from hosts and other systems.
[0005] In some configurations, each storage device may also include another interface configured for power management and / or low-bandwidth communication with a computing device sharing the same utility or control bus. For example, the storage device may include a control bus interface that complies with an internal integrated circuit (I2C), an improved internal integrated circuit (I3C), a system management bus (SMBus), or a similar low-bandwidth control bus protocol. These command buses can interconnect the storage devices in a multi-device storage system and provide a synchronous, multi-master, packet-switched serial communication bus. In some computing systems, control bus pins may be included as part of a physical peripheral device interface connector. Therefore, for example, a PCIe physical interface connector may include a set of I2C, I3C, or SMBus pins at one end of a connector for providing a low-bandwidth control interface. For comparison with a high-bandwidth peripheral device interface for data transmission, these low-bandwidth control bus interfaces can support approximately 3 to 30 megabits (Mb) / s and can operate at as low as 100 kilobits (kb) / s.
[0006] In some systems, a low-bandwidth control bus may be initialized for early communications in the boot cycle of a storage device to assist with power management, discovery, and access to external resources such as temperature sensors, fan controllers, light-emitting diode (LED) indicators, etc. The storage device may have access to the control bus before establishing host communications or control over a high-bandwidth peripheral bus.
[0007] The storage device may encounter errors before establishing host communication over the high-bandwidth peripheral bus and / or may experience failures that prevent host communication. As a result, internal operational data such as reset events, debug data, device logs, and configuration information in the various storage devices may be lost, especially in the case of an unrecoverable error that forces a system or storage device reset.
[0008] It may be advantageous to offload and / or back up internal operating data without waiting for or relying on a host system.A reliable way to offload internal operating data during pre-host operations and / or without relying on peripheral or storage bus communications with a host may be desired. Summary of the invention
[0009] The present invention describes various aspects of peer storage device communications, and in particular, messaging between peer storage devices over a low bandwidth control bus for offloading or backing up internal operating data.
[0010] One general aspect includes a system including a first device, which may include: a processor; a memory; a host interface configured to connect to a host system; a control bus interface configured to connect to a control bus, wherein a plurality of peer devices are configured to connect to the control bus; and a peer sharing service. The peer sharing service may be configured to: establish peer communication with a target peer device among the plurality of peer devices through the control bus interface; select internal operation data for the first device; send the selected internal operation data to the target peer device; and receive the selected internal operation data from the target peer device in response to a recovery event.
[0011] Implementations may include one or more of the following features. The first device may also include: a storage medium configured to store host data received through a host interface; a storage interface protocol configured to communicate with a host system through the host interface; and a non-volatile memory device controller configured to manage data input / output of the storage medium. The storage medium may include at least one non-volatile memory device. The storage interface protocol may be a non-volatile memory express (NVMe) protocol. The plurality of peer devices may include a plurality of peer storage devices, and each of the plurality of peer storage devices may include: a peer host interface configured to connect to a host system using an NVMe protocol; the peer storage medium may include at least one non-volatile memory; and a peer control bus interface configured to connect to a control bus. The peer sharing service may also include a discovery service configured to: broadcast a device identifier of the first device through a control bus interface; receive peer device identifiers from a plurality of peer devices through a control bus interface; and store the peer device identifiers in a peer device registry. The peer sharing service may be further configured to: determine a peer device identifier of a target peer device; and format a peer message including the selected internal operation data as a message payload. Sending the selected internal operation data may include sending the peer message to the target peer device using the peer device identifier for addressing. The peer sharing service may also include an encryption service configured to encrypt the selected internal operation data before sending the peer message. The internal operation data may be selected from: reset event data; debug data; device operation log data; or last good configuration data. The peer sharing service may be further configured to: receive peer internal operation data from at least one peer device of the plurality of peer devices via a control bus interface; store the peer internal operation data in a peer data partition in a memory; and send the peer internal operation data to at least one peer device in response to a peer recovery event. The system may also include a plurality of peer devices, wherein the plurality of peer devices store internal operating data received from the first device, and the peer sharing service may further include a recovery service configured to: determine a recovery event; respond to the recovery event and send a recovery request to at least one of the plurality of peer devices via a control bus interface; receive recovery internal operating data from the at least one peer device; and store the recovery internal operating data in an internal operating memory location. The recovery event may occur while in a pre-host operating state. The recovery internal operating data may include a last good configuration data page, and the first device may be further configured to complete a pre-host operation using the last good configuration data page received from the at least one peer device.
[0012] Another general aspect includes a computer-implemented method of establishing peer-to-peer communication from a first device with a target peer device among a plurality of peer devices, wherein the first device and each of the plurality of peer devices include: a host interface configured to connect to a host system and a control bus interface configured to connect to a control bus; selecting internal operating data for the first device; sending the selected internal operating data from the first device and through a control bus structure to the target peer device; and receiving the selected internal operating data from the target peer device to the first device through the control bus interface, wherein receiving the selected internal operating data is a response to a recovery event.
[0013] Implementations may include one or more of the following features. The first device and each of the plurality of peer devices may include: a storage medium configured to store host data received through a host interface; a storage interface protocol configured to communicate with a host system through the host interface; and a non-volatile memory device controller configured to manage data input / output of the storage medium. The computer-implemented method may also include: broadcasting a device identifier of the first device through a control bus interface; receiving peer device identifiers from a plurality of peer devices through a control bus interface; and storing the peer device identifier in a peer device registry in the first device. The computer-implemented method may also include: determining, by the first device, a peer device identifier of a target peer device; and formatting a peer message including selected internal operation data as a message payload, wherein sending the selected internal operation data includes sending the peer message to the target peer device using the peer device identifier for addressing. The computer-implemented method may also include encrypting the selected internal operation data before sending the peer message. The internal operation data may be selected from: reset event data; debug data; device operation log data; or last good configuration data. The computer-implemented method may include: receiving peer internal operation data from at least one of a plurality of peer devices at a first device and through a control bus interface; storing the peer internal operation data in a memory of the first device in a peer data partition in the memory; and sending the peer internal operation data to at least one peer device by the first device and in response to a peer recovery event. The computer-implemented method may also include: determining a recovery event by the first device; sending a recovery request to at least one of a plurality of peer devices in response to the recovery event and through a control bus interface; receiving recovery internal operation data from at least one peer device and through a control bus interface; and storing the recovery internal operation data in an internal operation memory location. The computer-implemented method may also include completing a pre-host operation by the first device using a last good configuration data page received from a target peer device, wherein the recovery event occurs while in a pre-host operation state and the selected internal operation data includes the last good configuration data page.
[0014] Yet another general aspect includes a storage system comprising a control bus and a plurality of peer storage devices, wherein each of the plurality of peer storage devices may include: a processor; a memory; a host interface configured to connect to a host system; a control bus interface configured to connect to the control bus; a device for establishing peer communication between the plurality of peer storage devices via the control bus interface; a device for selecting internal operating data from an internal operating memory location; a device for sending the selected internal operating data to at least one other peer storage device among the plurality of peer storage devices; and a device for receiving the selected internal operating data from at least one other peer storage device among the plurality of peer storage devices in response to a recovery event.
[0015] Various embodiments advantageously apply the teachings of storage devices and / or multi-device storage systems to improve the functionality of such computer systems. Various embodiments include operations that overcome or at least reduce problems previously encountered in storage arrays and / or systems, thereby being more reliable and / or efficient than other computing systems. That is, various embodiments disclosed herein include hardware and / or software that have functions such as improving communication and backup of internal operating data by using peer-to-peer messaging between storage devices through a control bus. Therefore, the embodiments disclosed herein provide various improvements for storage networks and / or storage systems.
[0016] It should be understood that the language used in this disclosure has been selected primarily for readability and instructional purposes, and is not intended to limit the scope of the subject matter disclosed herein. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A multi-device storage system having a storage interface bus and a control bus is schematically shown.
[0018] Figure 2 Schematically shows that Figure 1 A peer-to-peer discovery architecture used by multi-device storage systems.
[0019] Figure 3 Schematically shows that Figure 1 A peer-to-peer messaging architecture used by a multi-device storage system.
[0020] Figure 4 Schematically shows Figure 1 A host node in a multi-device storage system.
[0021] Figure 5 More detailed schematically shows Figures 1 to 5 Some components of the storage device.
[0022] Figure 6is a flow chart of an exemplary method for sending peer-to-peer messages between peer storage devices using a control bus.
[0023] Figure 7 is a flow chart of an exemplary method of restoring internal operating data from a peer storage device.
[0024] Figure 8 is a flow chart of an exemplary method of supporting peer-to-peer recovery of internal operational data. DETAILED DESCRIPTION
[0025] Figure 1 An embodiment of an exemplary data storage system 100 is shown, which has a data storage device 120 interconnected by a storage interface bus 108 and a control bus 110. Although some exemplary features are shown, various other features are not shown for the sake of brevity and in order not to obscure the relevant aspects of the exemplary embodiments disclosed herein. To this end, as a non-limiting example, the data storage system 100 includes one or more data storage devices 120 (sometimes also referred to as information storage devices, storage devices, disk drives or drives). In some embodiments, the storage device 120 may be configured in a server or storage array blade or in a similar storage unit for a data center storage rack or cabinet. The storage device 120 may interact with one or more hosts 102 and provide data storage and retrieval capabilities for those host systems or provide data storage and retrieval capabilities through those host systems. In some embodiments, the storage device 120 may be configured in a storage hierarchy including storage nodes, storage controllers and / or other intermediate components between the storage device 120 and the host 102. For example, each storage controller may be responsible for a corresponding set of storage nodes and their respective storage devices connected via a corresponding backplane network, although only storage devices 120 and hosts 102 are shown.
[0026] In the illustrated embodiment, a plurality of storage devices 120 are attached to a common storage interface bus 108 for host communication. For example, the storage device 120 may include a plurality of drives arranged in a storage array, such as a storage device of a common rack, unit or blade in a shared data center or an SSD in an all-flash array. In some embodiments, the storage device 120 may share a backplane network, a network switch and / or other hardware and software components accessed by the storage interface bus 108 and / or the control bus 110. For example, the storage device 120 may be connected to the storage interface bus 108 and / or the control bus 110 via a plurality of physical port connections that define physical, transport and other logical channels for establishing communication with different components and subcomponents for establishing a communication channel to the host 102. In some embodiments, the storage interface bus 108 may provide a host interface for storage device management and host data transfer, and the control interface bus 110 may include limited connectivity to the host for low-level control functions.
[0027] In some embodiments, the storage devices 120 may be referred to as a peer group or peer storage devices because they are interconnected via the storage interface bus 108 and / or the control bus 110. In some embodiments, the storage devices 120 may be configured for peer-to-peer communication between the storage devices 120 via the storage interface bus 108 with or without the assistance of the host 102. For example, the storage devices 120 may be configured for direct access to memory using one or more protocols such as Non-Volatile Memory Express (NVMe), Remote Direct Memory Access (RDMA), NVMe over Fabric (NVMeOF), etc. to provide command messaging and data transfer between storage devices using a high bandwidth storage interface and the storage interface bus 108.
[0028] In some embodiments, the storage devices 120 may be configured for peer-to-peer communication using multi-master discovery and messaging that conforms to a low-bandwidth interface standard. For example, the storage devices 120 may be configured for packet-based messaging over the control bus 110 using a low-bandwidth bus protocol such as an inter-integrated circuit (I2C), an improved inter-integrated circuit (I3C), a system management bus (SMBus), etc. The storage devices 120 may be interconnected via a common control bus to provide a low-bandwidth communication channel with the host 102 and other system components to assist in power management, discovery, and access to external resources such as temperature sensors, fan controllers, light-emitting diode (LED) indicators, etc. For example, the control bus 110 may connect the storage devices 120 to a baseboard management controller (BMC) to monitor the physical status of the storage devices 120 of the host 102. The storage devices 120 may be defined as peer storage devices based on their connection to the shared control bus 110.
[0029] In some embodiments, the data storage device 120 is a solid state drive (SSD) or includes an SSD. Each data storage device 120.1-120.n may include a non-volatile memory (NVM) or device controller 130 based on computing resources (processor and memory) and multiple NVM or media devices 140 for data storage (e.g., one or more NVM devices, such as one or more flash memory devices). In some embodiments, the corresponding data storage device 120 in the one or more data storage devices includes one or more NVM controllers, such as a flash memory controller or a channel controller (e.g., for a storage device with NVM devices in multiple memory channels). In some embodiments, the data storage devices 120 may each be encapsulated in a housing, such as a multi-component sealed housing with a defined form factor and ports and / or connectors for interconnecting with the storage interface bus 108 and / or the control bus 110.
[0030] In some embodiments, the corresponding data storage device 120 may include a single media device, while in other embodiments, the corresponding data storage device 120 includes multiple media devices. In some embodiments, the media device includes a NAND-type flash memory or a NOR-type flash memory. In some embodiments, the data storage device 120 may include one or more hard disk drives (HDDs). In some embodiments, the data storage device 120 may include a flash memory device, which in turn includes one or more flash memory dies, one or more flash memory packages, one or more flash memory channels, etc. However, in some embodiments, one or more of the data storage devices 120 may have other types of non-volatile data storage media (e.g., phase change random access memory (PCRAM), resistive random access memory (ReRAM), spin transfer torque random access memory (STT-RAM), magnetoresistive random access memory (MRAM), etc.).
[0031] In some embodiments, each storage device 120 includes a device controller 130, which includes one or more processing units (sometimes also referred to as CPUs or processors or microprocessors or microcontrollers) configured to execute instructions in one or more programs. In some embodiments, the one or more processors are shared by one or more components within the functionality of the device controller and in some cases beyond its functionality. The media device 140 is coupled to the device controller 130 via connectors, which typically transmit commands in addition to transmitting data, and in addition to transmitting data values to be stored in the media device and data values read from the media device 140, optionally transmit metadata, error correction information, and / or other information. The media device 140 may include any number (i.e., one or more) of memory devices, including but not limited to non-volatile semiconductor memory devices, such as one or more flash memory devices.
[0032] In some embodiments, the media device 140 in the storage device 120 is divided into a plurality of addressable and individually selectable blocks, sometimes referred to as erase blocks. In some embodiments, the individually selectable blocks are the smallest erasable units in the flash memory device. In other words, each block contains the minimum number of memory cells that can be erased simultaneously (i.e., in a single erase operation). Each block is typically further divided into a plurality of pages and / or word lines, wherein each page or word line is typically an instance of the smallest individually accessible (readable) portion in the block. However, in some embodiments (e.g., using certain types of flash memory), the smallest individually accessible unit of a data set is a sector or codeword, which is a subunit of a page. That is, a block includes a plurality of pages, each page includes a plurality of sectors or codewords, and each sector or codeword is the smallest data unit for reading data from the flash memory device.
[0033] A data unit may describe any size allocation of data, such as a host block, data object, sector, page, multi-plane page, erase / program block, media device / package, etc. A storage location may include a physical location and / or a logical location on the storage device 120, and may be described and / or allocated at different levels of granularity depending on the storage medium, storage device / system configuration, and / or context. For example, for host read / write purposes, a storage location may be allocated by host logical block address (LBA) data unit size and addressability, but in other contexts managed as a page with storage device addressing managed in the media flash translation layer (FTL). A media segment may include a physical storage location on the storage device 120, which may also correspond to one or more logical storage locations. In some embodiments, a media segment may include a series of consecutive physical storage locations, such as adjacent data units on a storage medium, and for a flash memory device, the media segment may correspond to one or more media erase or program blocks. A logical data group may include multiple logical data units that may be grouped on a logical basis regardless of the storage location, such as a data object, a file, or other logical data structure consisting of multiple host blocks.
[0034] In some embodiments, a host or host system 102 may be coupled to the data storage system 100 via a network interface as part of a host fabric network including a storage interface bus 108 as a host fabric interface. Figure 1 The fabric network may include a plurality of host systems 102 (only one of which is shown) coupled to the data storage system 100 via a fabric network, which may be a storage network interface or other interface capable of supporting communication with multiple host systems 102. The fabric network may include wired and / or wireless networks (e.g., any number and / or configuration of public and / or private computer networks) that may be coupled in a suitable manner for transmitting data. For example, the fabric network may include any means of a conventional data communication network, such as a local area network (LAN), a wide area network (WAN), a telephone network such as a public switched telephone network (PSTN), an intranet, the Internet, or any other suitable communication network or combination of communication networks.
[0035] The host system 102 or the corresponding host in the system with multiple hosts can be any suitable computer device, such as a computer, a computer server, a laptop computer, a tablet device, a netbook, an Internet kiosk, a personal digital assistant, a mobile phone, a smart phone, a gaming device, or any other computing device. The host system 102 is sometimes referred to as a host, a client, or a client system. In some embodiments, the host system 102 is a server system (such as a server system in a data center) or a storage system (such as a storage array in a data center). In some embodiments, one or more host systems 102 are one or more host devices different from a storage controller or a storage node that accommodates multiple storage devices 120. One or more host systems 102 can be configured to store and access data in multiple storage devices 120.
[0036] The host system 102 may include one or more central processing units (CPUs) 104 for performing computing operations or instructions to access the storage device 120 via the storage interface bus 108. In some embodiments, the CPU 104 may include a processor and be associated with an operating memory (not shown) for performing both storage operations and storage interface protocols compatible with the storage interface bus 108 and the storage device 120. In some embodiments, a separate storage interface unit (not shown) may provide the storage interface protocol and associated processor and memory resources. From the perspective of the storage device 120, the storage interface bus 108 may be referred to as a host interface bus and provides a host data path between the storage device 120 and the host 102.
[0037] The host system 102 may include a BMC 106 that is configured to monitor the physical state of the host 102, storage device 120, and / or other components of the data storage system 100. In some embodiments, the BMC 106 may include processors, memory, sensors, and other resources integrated in the BMC 106 and / or accessible via the control bus 110. The BMC 106 may be configured to measure internal variables such as temperature, humidity, power supply voltage, fan speed, communication parameters, and / or operating system (OS) functions within the housing, adjacent components, and / or from the components themselves within the host 102 or data storage system 100. The BMC 106 may enable the system and components to be power cycled or rebooted as needed via control signals on the control bus 110. In some embodiments, the BMC 106 may be configured to receive status communications from the storage device 120 via the control bus 110 during the boot cycle before initializing host communications via the storage interface bus 108.
[0038] In some embodiments, the data storage system 100 includes one or more processors, one or more types of memory, a display and / or other user interface components such as a keyboard, a touch screen display, a mouse, a trackpad, and / or any number of supplementary devices that add functionality. In some embodiments, the data storage system 100 does not have a display and other user interface components.
[0039] Figure 2 A schematic diagram of an exemplary storage system 200 is shown, such as Figure 1 The multi-device data storage system 100 in FIG. 1 is configured with a peer discovery architecture to support peer messaging over a control bus 110. The storage devices 120 may each be connected to the control bus 110 for communicating with a low-level physical management and power control subsystem (such as Figure 1 In some embodiments, control bus 110 supports a multi-master packet-based messaging system that enables storage devices 120.1 to establish communications with peer storage devices via control bus 110, in addition to their communications with BMC 106 or other system components. Peer messaging via control bus 110 may be independent of peer messaging via host interfaces or fabric interfaces such as Figure 1 any communications with the storage interface bus 108).
[0040] Each peer storage device 120.1-120.n connected to the control bus 110 may be configured to initiate a discovery message 210. The discovery message 210 may be broadcast to the control bus 110 during startup or initialization. For example, the storage device 120 may use a control bus protocol to establish priority or temporary master control of the control bus 110 and send a broadcast message that is received by all other devices connected to the control bus 110. The storage device 120.1 may thereby send the discovery message 210.1 to the storage devices 120.2-120.n, and each peer storage device may sequentially perform the same operation during system initialization, power cycle, or reboot. Each peer storage device 120 connected to the control bus 110 may receive a discovery message from each other peer storage device 120.
[0041] In some embodiments, the discovery message 210 may include a device identifier 212 and a vendor identifier 214. The device identifier 212 may include a unique identifier for the storage device relative to all other devices connected to the control bus 110. In some embodiments, the device identifier 212 may include a product serial number and / or a unique address assigned to a specific storage device. For example, each device connected to the control bus 110 may be assigned a 7-bit address that uniquely identifies the device on the control bus 110. Messages intended for that storage device will include the address in the message sequence, and only storage devices with matching addresses will process the contents of the message. Messages may also be sent with a general call address reserved for broadcast or for messages received and processed by all devices.
[0042] The vendor identifier 214 may include a group identifier that specifies storage devices that meet a specific set of criteria, such as storage devices manufactured or sold by a specific company or storage devices configured according to a specific peer-to-peer messaging protocol or standard. For example, the vendor identifier 214 may include a numeric identifier of a storage device from a specific vendor that is used for peer-to-peer messaging over a control bus. The vendor identifier may be defined and assigned according to a workgroup or standard protocol, or by other means to ensure that the vendor identifier is unique and used to correctly identify storage devices that are compatible with a specific peer-to-peer messaging protocol and content.
[0043] In some embodiments, each storage device 120 may use the discovery messages 210 received from the peer storage devices to populate an internal data structure for storing the addresses of one or more peer storage devices. For example, each storage device 120 may maintain a peer table 220 in an internal memory location to list the addresses, device identifiers 212, and / or vendor identifiers 214 of each other peer storage device attached to the control bus 110. In some embodiments, the peer table 220 may include a series, list, or array of peer device identifier entries 222. For example, each time a discovery message with a different device identifier 212 is received (and includes a corresponding vendor identifier 214 indicating that the device is a peer storage device for messaging purposes), the device identifier 212 may be entered as a new peer device identifier entry 222 in the peer table 220. After all discovery messages 210 have been received, each storage device 120 may include a complete peer table 220 containing the necessary information to send messages to each other peer storage device via the control bus 110.
[0044] Figure 3 A schematic diagram of an exemplary storage system 300 is shown, such as Figure 1The multi-device data storage system 100 in FIG. 1 is configured with a peer-to-peer messaging architecture to support various types of peer-to-peer messages 310, 320, 330 via a control bus 110. The storage devices 120 may each be connected to the control bus 110 for communicating with a low-level physical management and power control subsystem (such as Figure 1 In some embodiments, the control bus 110 supports a multi-master packet-based messaging system that enables the storage devices 120.1 to establish communications with peer storage devices via the control bus 110, in addition to their communications with the BMC 106 or other system components connected to the control bus 110. For example, each storage device may be able to request or assert master control or priority in order to send messages to peer storage devices operating as slaves via the control bus 110. Peer messaging via the control bus 110 may be independent of messaging via a host interface or fabric interface such as a master interface. Figure 1 any communications with the storage interface bus 108).
[0045] Each peer storage device 120.1-120.n connected to the control bus 110 may be configured to initiate one or more messages 310, 320, 330 using addressing and message syntax supported by the control bus 110. Although each exemplary message is shown from a particular storage device 120, each storage device 120 may be configured to use any or all message types. Peer messages 310 may be used by a storage device 120 to send a direct message to a target peer storage device, such as a message containing selected internal operating data to be uninstalled or backed up and / or requesting previously stored internal operating data for restoration. Broadcast messages 320 may be used by a storage device 120 to send a message to all peer storage devices at once, such as a message containing internal operating data to be redundantly stored or requesting restoration of previously stored internal operating data (where more than one peer storage device may contain the required data). Response messages 330 may be used by a storage device 120 to send a message back to a peer storage device with requested data, such as responding to a restore request by sending the requested internal operating data. Note that the response message 330 includes a data payload and, in some embodiments, may require the sending storage device to have master control or priority, and may be distinguished from a simple acknowledgment message that may be part of a slave device's messaging protocol.
[0046] In some embodiments, the peer message 310 may include a sender identifier 312, a target identifier 314, a vendor identifier 316, and a data payload 318. For example, the sender identifier 312 may include a device identifier of the sending storage device and / or a control bus address of the sending storage device. The target identifier 314 may include a device identifier of the target storage device and / or a control bus address of the target storage device. In some embodiments, the target identifier 314 may include a device identifier separate from a control bus address used by devices on the control bus 110 to determine the target device. The vendor identifier 316 may include a device identifier of the target device as described above with respect to the target storage device. Figure 2 214 in . Data payload 318 may include data generated by the sending storage device, such as storage device 120.1, to be stored by the target peer storage device. For example, data payload 318 may include internal operational data identified for offloading or backup on other storage devices. In some embodiments, data payload 318 may include recovery parameters that describe previously offloaded or stored data required for the sending storage device to perform data recovery, such as recovery of a lost event log, debug data, or last good page data.
[0047] In some embodiments, the broadcast message 320 may include a sender identifier 322, a broadcast address 324, a vendor identifier 326, and a data payload 328. For example, the sender identifier 322 may include a device identifier of the sending storage device and / or a control bus address of the sending storage device. The broadcast address 324 may include a reserved address, a header tag, or a similar identifier to indicate that the broadcast message should be sent to all devices on the control bus 110. The vendor identifier 326 may include the device identifier of the sending storage device and / or the control bus address of the sending storage device. Figure 2 The data payload 328 may include data generated by the sending storage device, such as storage device 120.1, to be stored by one or more target peer storage devices. For example, the data payload 328 may include internal operational data identified for offloading or backup on other storage devices. In some embodiments, the data payload 318 may include recovery parameters that describe previously offloaded or stored data required by the sending storage device for data recovery, such as recovery of a lost event log, debug data, or last good page data.
[0048] In some embodiments, the response message 330 may include a sender identifier 332, a target identifier 334, a vendor identifier 336, and a data payload 338. The response message 330 may be different from the peer message 310 because it may be a response to receiving the peer message 310. For example, the peer message 310 may include a restore request with parameters describing previously stored internal operating data, and the response message 330 may respond to the peer message 310 with the requested restore data. The sender identifier 332 may include a device identifier of the sending storage device and / or a control bus address of the sending storage device. The target identifier 334 may include a device identifier of the target storage device and / or a control bus address of the target storage device, which is generally the storage device that received the restore request. The vendor identifier 336 may include the device identifier of the target storage device and / or the control bus address of the target storage device, which is generally the storage device that received the restore request. Figure 2 The data payload 338 may include data previously stored by the sending storage device from and about the requesting storage device, which may now be the target peer storage device for the response message 330. For example, the data payload 318 may include internal operating data identified for restoration to the target storage device requesting the restoration data.
[0049] Figure 4 A schematic diagram of an exemplary host system 102 is shown. The host system 102 may include a bus 410, a processor 420, a local memory 430, one or more optional input units 440, one or more optional output units 450, and a communication interface 460. The bus 410 may include one or more conductors that allow communication between components of the host 102. The processor 420 may include any type of conventional processor or microprocessor that interprets and executes instructions. The local memory 430 may include a random access memory (RAM) or another type of dynamic storage device that stores information and instructions for execution by the processor 420 and / or a read-only memory (ROM) or another type of static storage device that stores static information and instructions for use by the processor 420 and / or any suitable storage element such as a hard disk or solid-state storage element. The optional input unit 440 may include one or more conventional mechanisms that allow an operator to input information to the host 102, such as a keyboard, a mouse, a pen, a voice identification and / or a biometric identification mechanism, etc. The optional output unit 450 may include one or more conventional mechanisms that output information to the operator, such as a display, a printer, a speaker, etc. Communication interface 460 may include any transceiver-like mechanism that enables host 102 to communicate with other devices and / or systems. In some embodiments, communication interface 460 may include one or more peripheral device interfaces, such as a PCIe interface for connecting to storage device 120.
[0050] Figure 5Schematically illustrates selected modules of a storage device 500 configured for peer-to-peer messaging, such as storage device 120. Storage device 500 may be combined with Figures 1 to 4 For example, storage device 500 may be configured as storage device 120 in a group of peer storage devices interconnected by a control bus and include a host or storage bus interface for transferring data to / from a host in a multi-device data storage system.
[0051] The storage device 500 may include a bus 510 interconnecting at least one processor 512, at least one memory 514, and at least one interface, such as a storage bus interface 516 and a control bus interface 518. The bus 510 may include one or more conductors that allow communication between components of the storage device 500. The processor 512 may include any type of processor or microprocessor that interprets and executes instructions. The memory 514 may include a random access memory (RAM) or another type of dynamic storage device that stores information and instructions for execution by the processor 512 and / or a read-only memory (ROM) or another type of static storage device that stores static information and instructions for use by the processor 512 and / or any suitable storage element such as a hard disk or a solid-state storage element.
[0052] The storage bus interface 516 may include a physical interface for connecting to a host using an interface protocol that supports storage device access. For example, the storage bus interface 516 may include a PCIe, SATA, SAS, or similar storage interface connector that supports NVMe access to solid-state media including non-volatile memory devices 520. The control bus interface 518 may include a physical interface for connecting to a control bus using a low-bandwidth interface protocol for low-level control messages between computing components. For example, the control bus interface 518 may include an I2C, I3C, SMBus, or a similar bus interface connector that supports component-to-component messaging (such as multi-master packet-based messaging over a two-wire bus).
[0053] The storage device 500 may include one or more non-volatile memory devices 520 configured to store host data. For example, the non-volatile memory device 520 may include multiple flash memory packages organized as an addressable memory array. In some embodiments, the non-volatile memory device 520 may include a NAND or NOR flash memory device composed of a single-level cell (SLC), a multi-level cell (MLC), or a triple-level cell.
[0054] The storage device 500 may include a plurality of modules or subsystems that are stored and / or instantiated in the memory 514 for execution by the processor 512 according to instructions or operations. For example, the memory 514 may include a host interface 530 configured to receive, process and respond to host data requests from a client or host system. The memory 514 may include a non-volatile memory (NVM) controller 534 configured to manage read operations and write operations to the non-volatile memory device 520. The memory 514 may include pre-host operations configured for low-level operating systems and firmware functions within the storage device 500 that are independent of host command execution, especially during device power-on, initialization, power cycle or ungraceful shutdown (UGSD). The memory 514 may include a control bus protocol configured to manage communications through the control bus interface 518 according to a determined protocol or standard. The memory 514 may include internal operating data 550 that is configured to store low-level operating data of the storage device 500 for device management and troubleshooting. The memory 514 may include a peer-to-peer sharing service 560 configured for communication between storage devices attached to the same control bus as the storage device 500 .
[0055] The host interface 530 may include an interface protocol and / or a set of functions and parameters for receiving, parsing, responding to, and otherwise managing host data requests from the host. For example, the host interface 530 may include functions for receiving and processing host requests for reading, writing, modifying, or otherwise manipulating data blocks and their corresponding client or host data and / or metadata according to the host communication and storage protocol. In some embodiments, for host data units 520.3 stored in the non-volatile memory device 520, the host interface 530 may perform direct memory access and / or access using the NVMe protocol through the storage bus interface 516. For example, the host interface 530 may include a host communication protocol compatible with PCIe, SATA, SAS, and / or another bus interface that supports data access to host data 520.3 using the NVMe protocol.
[0056] In some embodiments, the host interface 530 may include multiple hardware modules and / or software modules that are configured to use the processor 512 and the memory 514 to process or manage the defined operations of the host interface 530. For example, the host interface 530 may include a storage interface protocol 532 that is configured to conform to the physical, transport, and storage application protocols supported by the host for communicating through the storage bus interface 516. For example, the storage interface protocol 532 may include communications, commands, and syntax functions, programs, and data structures that are compatible with both PCIe and NVMe. In some embodiments, the host interface 530 may include additional modules (not shown) for command processing, buffer management, storage device management, and reporting, as well as other host-side functions.
[0057] The NVM controller 534 may include an interface protocol and / or a set of functions and parameters for reading, writing, and deleting data units in the non-volatile memory device 520. For example, the host interface 530 may include functions for performing host data operations related to host storage commands received through the host interface 530. For example, a PUT or write command may be configured to write a host data unit to the non-volatile memory device 520. A GET or read command may be configured to read data from the non-volatile memory device 520. A DELETE command may be configured to delete data from the non-volatile memory device 520, or at least mark the location of the data to be deleted until a future garbage collection or similar operation actually deletes the data or reallocates the physical storage location to another purpose. In some embodiments, the NVM controller 534 may include flash translation layer (FTL) management, data state machine, read / write buffer management, NVM device interface protocol, NVM device configuration / management / maintenance, and other device-side functions. In some embodiments, the NVM controller 534 may be configured to allocate a portion of the memory locations in the non-volatile memory device 520 for storing data other than the host data 520.3. For example, the NVM controller 534 may allocate device data 520.1 as a memory location reserved for internal device data (including device configuration, parameters, and internal operating data). In some embodiments, the NVM controller 534 may allocate peer data 520.2 as a memory location reserved for internal device data received from and about peer storage devices (including internal operating data from those peer storage devices). In some embodiments, the storage space allocated to device data 520.1 and / or peer data 520.2 may include device data partitions and / or peer data partitions that are excluded from the storage capacity available for host data 520.3, such as over-provisioned storage locations hidden from the host for storing internal operating data, FTL tables, replacing bad blocks, etc.
[0058] Pre-host operations 540 may include functions and parameters for managing low-level device operations of storage device 500. For example, pre-host operations 540 may include operations performed during startup or initialization of storage device 500 before host communications are established through host interface 530, represented as pre-host operational states. In some embodiments, pre-host operations 540 may also include functions and parameters for managing low-level device operations during shutdown, power cycling, error, or failure conditions where host communications may become temporarily unavailable. For example, pre-host operations 540 may include read-only memory, boot loader, firmware, and / or operating system operations that oversee the basic operation of storage device 500 as a set of interconnected computing components and interfaces, independent of higher-level host data storage functions.
[0059] In some embodiments, the pre-host operations 540 may include a plurality of hardware modules and / or software modules configured to process or manage predefined pre-host operations 540 using the processor 512 and the memory 514. For example, the pre-host operations 540 may include a read-only memory (ROM) 542 configured to provide an initial set of instructions executed by the processor 512 at boot time to initialize basic component detection, configuration, and communication between components on the internal bus 510. The pre-host operations 540 may include a boot loader 544 configured to provide and initiate startup or boot time tasks and processes to instantiate an operating system and / or firmware 546 of the storage device 500 and its components in the memory 514. The pre-host operations 540 may include firmware 546 configured to instantiate data structures, functions, and interfaces of the components of the storage device 500 to interact and perform the various functions described herein. In some embodiments, firmware 546 may include initialization of host interface 530, NVM controller 534, control bus protocol 548, and peer sharing services 560. In some embodiments, execution of read-only memory 542, boot loader 544, and / or firmware 546 may generate internal operating data 550, such as reset events 552, debug data 554, device logs 556, and last good configuration data 558.
[0060] The control bus protocol 548 may include interfaces, functions and parameters for communication within a host or associated baseboard management controller (BMC) using multi-master discovery and messaging compatible with a low-bandwidth interface standard. For example, the storage device 500 may be configured for packet-based messaging through the control bus interface 518 using a low-bandwidth bus protocol (such as I2C, I3C, SMBus, etc.). The control bus protocol 548 may include multiple hardware modules and / or software modules configured to use the processor 512, the memory 514 and the control bus interface 518 for communication with host components (including peer storage devices on the same control bus) using a control bus protocol supported by the connected control bus. In some embodiments, the control bus protocol 548 may provide a low-bandwidth communication channel with the host and other system components to assist in power management, discovery and access to external resources, such as temperature sensors, fan controllers, light-emitting diode (LED) indicators, etc. For example, the control bus interface 518 may connect the storage device 500 to the BMC for monitoring the physical state of the storage device 500. In some embodiments, the control bus protocol 548 may provide discovery and messaging functionality used by the peer-to-peer sharing service 560 .
[0061] Internal operational data 550 may include data structures and associated functions for instantiating data related to internal storage device operations in internal operational memory locations in memory 514 and / or device data 520.1 in non-volatile memory device 520. For example, internal operational data 550 may include data generated by internal management processes such as pre-host operations 540 and written to device data 520.1. In some embodiments, internal operational data 550 may include reset events 552, debug data 554, device logs 556, and / or last good configuration data 558.
[0062] For example, reset event 552 may include a reset event data set for operating state parameters of storage device 500 when a reset is triggered by firmware 546 and / or a hardware or software reset is initiated by controlling bus interface 518. Reset event 552 may include a reset occurrence during operation of ROM 542, boot loader 544, and / or firmware 546. The set of operating state parameters may be extracted from registers or other data structures in memory 514 that represent the current operating state of storage device 500 and stored to device data 520.1 during the reset operation. Debug data 554 may include a set of state parameters, trace data, or similar debug output generated by any failed process or service within storage device 500. For example, debug data 554 may include process parameters representing the state of storage device 500 and / or any process therein before a fatal assertion or crash occurred. Device log 556 may include one or more sets of operating parameters related to internal operations recorded over time in operational log data, and may represent processes operating in storage device 500 regardless of error, failure, or power cycle status. In some embodiments, the device log 556 may include a power mode log, which includes power mode changes, such as entering a low power mode and / or returning to a normal power mode. When the storage device 500 was last started and / or operated normally, the last good configuration data 558 may include a configuration parameter set in use. For example, the last good configuration data 558 may include a parameter describing the last good page written by the storage device 500 and / or the last firmware update processed for a stable configuration in the last good configuration data page. In some embodiments, as part of the device recovery process during initialization or power cycling, it may be necessary to find and load the last good page write data and / or stable firmware version. For example, the storage device being recovered may be configured to query the peer storage device for firmware field updates, restore the most current version (by comparing the version number associated with the storage device current firmware version / update and the firmware version / update available from the peer device), and use it for the recovery process. In some embodiments, the most recent firmware version may not be the previous firmware version used by the device, but a firmware field update released when the storage device is offline or otherwise unable to receive updates and / or successfully install such updates.
[0063] The peer-to-peer sharing service 560 may include an interface protocol and a set of functions and parameters for discovering peer storage devices, sending and receiving messages with those peer storage devices, and / or recovering data from those peer storage devices. For example, the peer-to-peer sharing service 560 may include functionality for utilizing low bandwidth communications through the control bus interface 518 using the control bus protocol 548. In some embodiments, the peer-to-peer sharing service 560 may include managing peer data 520.2 in the non-volatile memory device 520 for storing peer internal operating data, and / or may support data encryption for encrypting internal operating data in transit and / or storing the peer data 520.2 in an encrypted state.
[0064] In some embodiments, the peer-to-peer sharing service 560 may include a plurality of hardware modules and / or software modules configured to process or manage defined operations of the peer-to-peer sharing service 560 using the processor 512 and the memory 514. For example, the peer-to-peer sharing service 560 may include a discovery service 562, an encryption service 564, a messaging service 566, and / or a recovery service 568. For example, the discovery service 562 may be configured to discover peer storage devices on a shared control bus and store their addresses for use by the messaging service 566 and / or the recovery service 568. The encryption service 564 may be configured to encrypt and / or decrypt payload data for the messaging service 566 for transmission, storage to peer data 520.2, and / or for recovery and storage to device data 520.1. The messaging service 566 may be configured to send and receive one-to-one and / or broadcast messages to / from peer storage devices over a shared control bus. The restore service 568 may be configured to request and receive data from peer storage devices to assist in restore tasks of the storage device 500 .
[0065] The discovery service 562 may include data structures, functions, and interfaces for discovering peer devices on the control bus and determining peer device addresses for use by the peer sharing service 560. For example, during initialization or startup of the storage device 500, the discovery service 562 may broadcast its device identifier or address and receive similar broadcasts from other devices to accumulate device information of other devices on the control bus. In some embodiments, the discovery service 562 may include a peer device registry 562.1, which is configured to store storage device identifiers, control bus addresses, and / or other peer storage device information to establish and support communications with peer storage devices. For example, the peer device registry 562.1 may include data tables or other data structures in the memory 514 and / or the device data 520.1, which include multiple device identifier entries associated with corresponding control bus addresses. In some embodiments, the discovery service 562 may include a device ID broadcaster 562.2 configured to determine a storage device identifier and / or a control bus address of the storage device 500 and broadcast a message on the control bus to enable other devices on the control bus to discover the storage device 500. For example, the device ID broadcaster 562.2 may be triggered during ROM, boot loader, or firmware execution at startup or initialization of the storage device 500 in response to a discovery message from another device and / or another device discovery trigger event according to the control bus protocol 548. In some embodiments, the discovery service 562 may include a peer ID receiver 562.3 configured to monitor communications conducted over the control bus interface 518, identify discovery broadcasts from other storage devices, and add corresponding device identifier entries in the peer device registry 520.1. For example, the control bus protocol 548 may define the syntax of a broadcast message, such as a broadcast address, a tag, or similar parameters for specifying a discovery broadcast, and a data payload including a storage device identifier, a control bus address, a vendor identifier, etc., and the peer ID receiver 562.3 may be configured based on a parsed message that satisfies the syntax to extract a peer storage device identifier.
[0066] Encryption service 564 may include data structures, functions and interfaces for encrypting and decrypting internal operation data 550 for sharing and / or storage. For example, encryption service 564 may include encryption key exchange with peer storage device to establish encrypted message transmission between peer storage devices, and / or only local encryption to enable sharing and / or storage of encrypted internal operation data, wherein only source peer storage device can decrypt encrypted data. In some embodiments, since internal operation in storage device 500 generates internal operation data 550, the selected internal operation data may be encrypted by encryption service 564 and stored in device data 520.1 and / or sent to peer storage device via messaging service 566. Messaging service 566 may send encryption key to peer storage device to enable decryption of encrypted data payload by peer storage device before being stored as peer data or when peer data is subsequently accessed. In some embodiments, encryption service 564 may implement selected encryption algorithm and standard for target internal operation data, such as Advanced Encryption Standard (AES)-128 or other encryption standards.
[0067] The messaging service 566 may include data structures, functions, and interfaces for sending and receiving messages to / from peer devices over the control bus. For example, the messaging service 566 may implement the control bus protocol 548 to send and receive messages with other devices identified by the discovery service 562. In some embodiments, the messaging service 566 may use block write and block read commands between buffers in peer storage devices to send packetized data payloads over the control bus.
[0068] In some embodiments, the messaging service 566 may include a shared peer selector 566.1 configured to select a target or destination peer storage device to receive a message. For example, the shared peer selector 566.1 may include parameter settings or algorithms for selecting a peer storage device to receive a specific internal operating data set, such as a selected peer storage device for unloading or backing up the storage device 500 or an algorithm (random generator, polling schedule, etc.) for allocating internal operating data between peer storage devices. In some embodiments, the messaging service 566 may include a shared trigger event 566.2 configured to determine when to send the selected internal operating data to one or more peer storage devices. For example, the shared trigger event 566.2 may include multiple rule-based conditions for triggering the unloading of internal operating data, such as a reset event, an operating error, a power mode change, a successful startup, a good page stored, an uneven shutdown, a periodic backup schedule, etc. In some embodiments, the messaging service 566 may include a shared content selector 566.3 configured to select an internal operational data set to be offloaded via the messaging service 566. For example, the shared content selector 566.3 may include a parameter set for determining the type and scope of internal operational data to be sent to the peer storage device. Where the peer sharing service 560 supports multiple shared triggering events 566.2 and / or internal operational data types, a particular shared triggering event may determine the type of internal operational data and the degree of offloading, such as debug data for triggering operational failures, a defined time window for device log data for periodic triggering, the content of a recent firmware update, or the last good page for a successful operation, etc. In some embodiments, the messaging service 566 may include a shared message formatter 566.4 configured to format peer messages according to the control bus protocol 548 to include the control bus address of the target peer storage device and the selected content in the data payload. For example, the shared message formatter 566.4 may generate or determine a header containing a control bus address and a read / write flag, followed by a message payload and / or other parameters, such as a command code and / or an error code, to transmit selected internal operation data.
[0069] In some embodiments, the messaging service 566 may include a peer message monitor 566.5 configured to monitor the control bus interface 518 for messages addressed to the storage device 500 from a peer storage device (directly or via broadcast). For example, the peer message monitor 566.5 may receive peer messages initiated by a peer storage device and / or in response to messages sent by the messaging service 566 via the control bus. The peer message monitor 566.5 may parse the received messages to determine whether further action is required, such as transmitting peer data to a peer storage manager 566.6 or transmitting a recovery request or recovery data to a recovery service 568. In some embodiments, the messaging service 566 may include a peer storage manager 566.6 configured to store peer data received from a peer storage device for offloading or backup. For example, the peer storage manager 566.6 may receive internal operating data from one or more peer storage devices and store such data in peer data 520.2. In some embodiments, the peer storage manager 566.6 may maintain a reference table or similar data structure for locating peer data by storage device identifier, internal operation data type, and other parameters to support selective retrieval of peer data upon request. In some embodiments, the peer storage manager 566.6 may also maintain a reference table or similar data structure indicating which peer storage device has received the offloaded internal operation data 550 from the storage device 500.
[0070] The recovery service 568 may include data structures, functions, and interfaces for recovering internal operating data from a peer device over a control bus for use in a recovery operation. For example, the recovery service 568 may be initiated during a startup or power cycle following an uneven shutdown to request lost, corrupted, or untrusted internal operating data from a peer storage device to which the internal operating data was previously offloaded.
[0071] In some embodiments, the restore service 568 may include restore events 568.1 that are configured to determine when previously unloaded data should be restored for use by the storage device 500. For example, the restore event 568.1 may include a rule-based set of event conditions or parameters that trigger the search and retrieval of the unloaded internal operating data, such as a startup after an uneven shutdown, a power cycle, a power mode change, or a selected error condition. In some embodiments, the storage device 500 may initiate a peer recovery feature upon installation even without a reset event. For example, the storage device 500 may be equipped with a plug-and-play feature that can search for firmware updates from a peer storage device and "restore" the latest compatible firmware update. In some embodiments, the restore service 568 may include a restore peer selector 568.2 that is configured to determine a peer storage device that contains the target restore data (or previously unloaded internal operating data). For example, the peer selector 568.2 may use the peer storage manager 566.6 to identify the peer storage device or the device to which the desired restore data is unloaded (if known). In some embodiments, the storage device 500 may not know which peer storage device includes the desired recovery data, and the peer selector 568.2 may be configured to use the recovery requester 568.3 to poll the peer storage devices to determine whether any of them contains the desired recovery data. For example, the recovery requester 568.3 may send a recovery request to multiple peer storage devices, and any peer storage device containing the recovery data may respond with the recovery data. In some embodiments, the initial polling request may be sent by the messaging service 566 (or the recovery requester 568.3), the response message may indicate whether each peer storage device contains some or all of the data and to what extent each peer storage device contains some or all of the data, and the peer selector 568.2 may use the response to determine which peer storage device should receive the recovery request. In some embodiments, the recovery service 568 may include a recovery requester 568.3, which is configured to send a recovery request message to one or more peer storage devices via a control bus. For example, the restore requester 568.3 may use the messaging service 566 to send a restore message to a restore peer storage device containing some or all of the desired restore data. The restore request may identify a specific set of internal operational data desired for the restore operation in the data payload and / or include a command code or procedure call configured to request the target restore data. In some embodiments, the restore service 568 may include a restore manager 568.4 configured to receive responsive restore data from the peer storage device and store the received restore data to the memory 514 and / or device data 520.1 for use in completing the restore operation.For example, the restored data received by the messaging service 566 may be forwarded to the restore manager 568.4, and the restore manager 568.4 may determine one or more storage locations in the device data 520.1 for the restored internal operating data. Once the restored internal operating data is returned to the device data 520.1, it may be used by the storage device 500 to complete a restore operation, such as the pre-host operation 540 or other restore from an uneven shutdown or operating error.
[0072] like Figure 6 As shown, according to an exemplary method for sending peer messages between peer storage devices using a control bus (i.e., according to Figure 6 6 to 624 in the method 600 to operate the storage device 500.
[0073] At block 610, the device identifier may be broadcast to peer devices over the control bus. For example, a discovery service compliant with a control bus protocol may send a broadcast message identifying the storage device and its control bus address.
[0074] At block 612, a device identifier may be received from a peer device via the control bus. For example, the discovery service may also receive broadcast messages identifying other storage devices on the same control bus and their control bus addresses. These peer discovery messages may be received in response to a broadcast from a storage device at block 610, initiated as part of startup or initialization of each peer storage device, and / or based on a master discovery trigger event or broadcast.
[0075] At block 614, the device identifiers from the peer devices may be stored in a peer device registry of the storage device. For example, the discovery service may store a storage device identifier, a control bus address, and / or other information associated with each peer storage device in a peer storage device entry in the peer device registry.
[0076] Peer-to-peer communications may be established between peer storage devices at block 616. For example, a peer device registry may contain necessary information for addressing messages to peer storage devices, and a peer messaging service may be configured to send broadcast and / or direct messages to peer storage devices using a control bus protocol.
[0077] At block 618, internal operational data may be selected for offloading by the storage device. For example, the messaging service may select the internal operational data set based on one or more shared triggering conditions or events.
[0078] At block 620, a target peer device may be determined for the offload message. For example, the messaging service may select one or more peer storage devices from a peer device registry to receive the selected internal operating data.
[0079] At block 622, the peer messages may be formatted to conform to the control bus protocol. For example, the messaging service may encapsulate the selected internal operation data as a data payload in one or more peer messages with an appropriate address header for the target peer storage device.
[0080] At block 624, a peer message may be sent from the storage device generating the internal operating data to the peer storage device via the control bus. For example, the messaging service may send the peer message generated at block 622 via the control bus interface.
[0081] like Figure 7 As shown, according to the exemplary method for recovering internal operating data from a peer storage device (i.e., according to Figure 7 700) to operate the storage device 500 using the method 700 shown in boxes 710 to 720 in FIG.
[0082] At block 710, a resume event may be determined. For example, a resume service of previously offloaded internal operational data of a storage device to a peer storage device may detect a resume event, such as a startup after an unclean shutdown, power cycle, or power mode change.
[0083] At block 712, peer devices may be determined. For example, the restore service may determine peer storage devices that may have received the desired restore data and select one or more corresponding peer storage devices to receive the restore request.
[0084] A restore request may be sent to one or more peer storage devices at block 714. For example, the restore service may format a restore request specifying the internal operational data needed for restore and send the restore request.
[0085] At block 716, recovery internal operation data may be received. For example, the recovery service may receive one or more response messages from the peer storage device that received the recovery request. The recovery response message may include some or all of the recovery internal operation data requested in the recovery request.
[0086] The recovered internal operating data may be stored at block 718. For example, the recovery service may store the internal operating data recovered from the peer storage device to a device data repository for storing the device's internal operating data, such as in a storage location where the internal operating data is missing, corrupted, or unreliable.
[0087] At block 720, the restored internal operating data may be used to complete an operation. For example, the storage device may use the internal operating data restored from the peer storage device to complete one or more internal operations, such as a ROM, boot loader, or firmware process for startup, error recovery, power mode changes, etc.
[0088] like Figure 8 As shown, according to the exemplary method for supporting peer-to-peer recovery of internal operating data (i.e., according to Figure 8 810 to 820 in the method 800 to operate the storage device 500.
[0089] At block 810, peer internal operating data may be received from a peer storage device. For example, a messaging service may receive a peer message to offload internal operating data to a receiving storage device.
[0090] The peer internal operation data may be stored by the receiving storage device at block 812. For example, the storage device may include storage space allocated for storing the peer internal operation data and store the received peer internal operation data with metadata sufficient to identify, retrieve, and associate the stored peer internal operation with the peer storage device from which it originated.
[0091] A resume request may be received at block 814. For example, the messaging service may receive a peer message and identify it as a resume request that includes parameters describing internal operational data required for the resume.
[0092] At block 816, a determination may be made to restore the internal operating data. For example, the peer storage manager may use the restore request parameters to determine the scope of the requested internal operating data in the peer data.
[0093] At block 818, the restore internal operation data may be retrieved. For example, the peer storage manager may retrieve which portion of the requested restore internal operation data is stored in the peer data in the storage device.
[0094] At block 820, the peer internal operating data may be sent. For example, the messaging service may send one or more response messages including the restored internal operating data retrieved at block 818 to the peer storage device that sent the restore request.
[0095] Although at least one exemplary embodiment has been presented in the foregoing detailed description of the present technology, it should be understood that a large number of variations are possible. It should also be understood that one or more exemplary embodiments are examples and are not intended to limit the scope, applicability, or configuration of the technology in any way. On the contrary, the foregoing detailed description will provide those skilled in the art with a convenient guideline for implementing the exemplary embodiments of the present technology, and it should be understood that various modifications may be made to the functions and / or arrangements of the elements described in the exemplary embodiments without departing from the scope of the technology as set forth in the attached claims and their legal equivalents.
[0096] As will be appreciated by those of ordinary skill in the art, various aspects of the present technology may be embodied as a system, method, or computer program product. Therefore, some aspects of the present technology may take the form of a complete hardware implementation, a complete software implementation (including firmware, resident software, microcode, etc.), or a combination of hardware and software aspects, which may generally be referred to herein as circuits, modules, systems, and / or networks. In addition, various aspects of the present technology may take the form of a computer program product embodied in one or more computer-readable media, including computer-readable program codes embodied thereon.
[0097] Any combination of one or more computer-readable media can be utilized. Computer-readable media can be computer-readable signal media or physical computer-readable storage media. For example, physical computer-readable storage media can be, but are not limited to, electronic, magnetic, optical, crystal, polymer, electromagnetic, infrared or semiconductor systems, devices or equipment, etc., or any suitable combination of the foregoing. Non-limiting examples of physical computer-readable storage media can include, but are not limited to, electrical connections including one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM), electrically erasable programmable read-only memories (EEPROM), flash memories, optical fibers, compact disc read-only memories (CD-ROM), optical processors, magnetic processors, etc., or any suitable combination of the foregoing. In the context of this document, computer-readable storage media can be any tangible medium that can contain or store programs or data for use or in combination with instruction execution systems, devices, and / or equipment.
[0098] The computer code embodied on the computer-readable medium can be transmitted using any appropriate medium, including but not limited to wireless, wired, fiber optic cable, radio frequency (RF), etc., or any suitable combination of the foregoing. The computer code for performing the operations of various aspects of the present technology can be written in any static language, such as the C programming language or other similar programming languages. The computer code can be executed entirely on the user's computing device, partially on the user's computing device, as a separate software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the latter case, the remote computing device can be connected to the user's computing device through any type of network or communication system, including but not limited to, a local area network (LAN) or wide area network (WAN), a converged network or connection can be established to an external computer (e.g., through the Internet using an Internet service provider).
[0099] Aspects of the present technology may be described above with reference to flowchart illustrations and / or block diagrams of methods, devices, systems, and computer program products. It should be understood that each block of the flowchart illustration and / or block diagram and the combination of blocks in the flowchart illustration and / or block diagram may be implemented by computer program instructions. These computer program instructions may be provided to a processing device (processor) of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine, so that instructions executed by the processing device or other programmable data processing apparatus may be used to create an apparatus for implementing the operations / actions specified in one or more blocks of the flowchart and / or block diagram.
[0100] Some computer program instructions may also be stored in a computer-readable medium that may instruct a computer, other programmable data processing apparatus, or one or more other devices to operate in a particular manner, such that the instructions are stored in the computer-readable medium to produce an article of manufacture including instructions for implementing the operations / actions specified in one or more boxes of the flowchart and / or block diagram. Some computer program instructions may also be loaded onto a computing device, other programmable data processing apparatus, or one or more other devices to cause a series of operational steps to be performed on the computing device, other programmable apparatus, or one or more other devices to produce a computer-implemented process, such that the instructions executed by the computer or other programmable apparatus provide one or more processes for implementing one or more operations / one or more actions specified in one or more boxes of the flowchart and / or block diagram.
[0101] The flowcharts and / or block diagrams in the above figures may illustrate the possible specific implementation architecture, functions and / or operations of the devices, systems, methods and / or computer program products according to various aspects of the present technology. In this regard, the blocks in the flowchart or block diagram may represent modules, fragments or parts of the code, which may include one or more executable instructions for implementing one or more specified logical functions. It should also be noted that in some alternative aspects, some functions shown in the blocks may not occur in the order shown in the figure. For example, in fact, the two blocks shown in succession may be executed substantially simultaneously, or these blocks may sometimes be executed in the opposite order, depending on the operations involved. It should also be noted that the blocks illustrated in the block diagram and / or flowchart or the combination of blocks in the block diagram and / or flowchart can be implemented by a system based on dedicated hardware that can perform one or more specified operations or actions, or a combination of dedicated hardware and computer instructions.
[0102] While one or more aspects of the present technology have been described and discussed in detail, those of ordinary skill in the art will appreciate that modifications and / or adaptations may be made to the various aspects without departing from the scope of the present technology as set forth in the appended claims.
Claims
1. A computing system, include: A first device, the first device comprising: processor; Memory; a host interface configured to connect to a host system; A control bus interface configured to be connected to a control bus, wherein: The host interface has a bandwidth higher than the bandwidth of the control bus interface; The control bus interface is configured to use a communication protocol different from a storage interface protocol of the host interface; and Each peer device of the plurality of peer devices is configured to connect to the control bus; and A peer-to-peer sharing service, wherein the peer-to-peer sharing service is configured to: Establishing peer-to-peer communication with a target peer device among the plurality of peer devices through the control bus interface; selecting internal operating data for the first device; transmitting the selected internal operating data to the target peer device; and Selected internal operating data is received from the target peer device in response to a resume event.
2. The system according to claim 1, wherein the first device further include: a storage medium configured to store host data received via the host interface; a storage interface protocol configured to communicate with the host system via the host interface; and A non-volatile memory device controller configured to manage data input / output of the storage medium.
3. The system according to claim 2, in: The storage medium includes at least one non-volatile memory device; The storage interface protocol is a non-volatile memory express protocol, namely, an NVMe protocol; The plurality of peer devices comprises a plurality of peer storage devices; and Each of the plurality of peer storage devices comprises: a peer host interface configured to connect to the host system using the NVMe protocol; a peer-to-peer storage medium comprising at least one non-volatile memory; and A peer control bus interface is configured to connect to the control bus.
4. The system of claim 1 , wherein the peer-to-peer sharing service comprises a discovery service configured to: broadcasting a device identifier of the first device via the control bus interface; receiving peer device identifiers from the plurality of peer devices via the control bus interface; and The peer device identifier is stored in a peer device registry.
5. The system according to claim 1, in: The peer-to-peer sharing service is further configured to: determining a peer device identifier of the target peer device; and formatting a peer-to-peer message including the selected internal operational data as a message payload; and Transmitting the selected internal operating data comprises transmitting the peer message to the target peer device using the peer device identifier for addressing.
6. The system of claim 5, wherein the peer-to-peer sharing service includes an encryption service configured to encrypt the selected internal operational data prior to sending the peer-to-peer message.
7. The system of claim 1, wherein the internal operational data is selected from: Reset event data; Debug data; Equipment operation log data; or The last good configuration data.
8. The system of claim 1, wherein the peer-to-peer sharing service is further configured to: receiving peer internal operation data from at least one peer device of the plurality of peer devices via the control bus interface; storing the peer internal operational data in a peer data partition in the memory; and The peer internal operating data is sent to the at least one peer device in response to a peer recovery event.
9. The system of claim 1, further comprising the plurality of peer devices, in: The plurality of peer devices are configured to store the internal operating data received from the first device; and The peer-to-peer sharing service further includes a recovery service, wherein the recovery service is configured to: determining the recovery event; sending a resume request to at least one peer device of the plurality of peer devices in response to the resume event and via the control bus interface; receiving resume internal operating data from the at least one peer device; and The restored internal operating data is stored in an internal operating memory location.
10. The system according to claim 9, in: The recovery event occurs when the system is in a pre-host operation state; The restoring of internal operating data includes the last good configuration data page; and The first device is further configured to complete a pre-host operation using the last good configuration data page received from the at least one peer device.
11. A computer-implemented method, include: Establishing peer-to-peer communication from a first device with a target peer device from a plurality of peer devices, wherein: The first device and each of the plurality of peer devices include: a host interface configured to connect to a host system; and a control bus interface configured to be connected to a control bus; The host interface has a bandwidth higher than a bandwidth of the control bus interface; and The control bus interface is configured to use a communication protocol different from a storage interface protocol of the host interface; selecting internal operating data for the first device; sending, from the first device and through the control bus interface, the selected internal operating data to the target peer device; and Selected internal operating data is received at the first device and through the control bus interface from the target peer device, wherein receiving the selected internal operating data is responsive to a resume event.
12. The computer-implemented method of claim 11, wherein the first device and each of the plurality of peer devices include: a storage medium configured to store host data received via the host interface; a storage interface protocol configured to communicate with the host system via the host interface; and A non-volatile memory device controller configured to manage data input / output of the storage medium.
13. The computer-implemented method of claim 11 , further comprising: include: broadcasting a device identifier of the first device via the control bus interface; receiving peer device identifiers from the plurality of peer devices via the control bus interface; as well as The peer device identifier is stored in the first device in a peer device registration table.
14. The computer-implemented method of claim 11 , further comprising: include: determining, by the first device, a peer device identifier of the target peer device; as well as A peer to peer message including the selected internal operational data is formatted as a message payload, wherein sending the selected internal operational data comprises sending the peer to peer message to the target peer device using the peer device identifier for addressing.
15. The computer-implemented method of claim 14, further comprising: include: Selected internal operating data is encrypted prior to transmitting the peer message.
16. The computer-implemented method of claim 11, wherein the internal operational data is selected from: Reset event data; Debug data; Equipment operation log data; or The last good configuration data.
17. The computer-implemented method of claim 11, further comprising: include: receiving, at the first device and through the control bus interface, peer internal operating data from at least one peer device of the plurality of peer devices; storing, in a memory of the first device, the peer internal operational data in a peer data partition in the memory; as well as The peer internal operating data is sent by the first device to the at least one peer device in response to a peer recovery event.
18. The computer-implemented method of claim 11, further comprising: include: determining, by the first device, the resume event; sending a resume request to at least one peer device of the plurality of peer devices in response to the resume event and via the control bus interface; receiving restore internal operating data from the at least one peer device and through the control bus interface; as well as The restored internal operating data is stored in an internal operating memory location.
19. The computer-implemented method of claim 11, further comprising: include: completing, by the first device, a pre-host operation using a last good configuration data page received from the target peer device, wherein: The recovery event occurs while in a pre-host operation state; and The selected internal operating data includes the last good configuration data page.
20. A storage system, include: Control bus; and A plurality of peer storage devices, wherein each peer storage device of the plurality of peer storage devices comprises: processor; Memory; a host interface configured to connect to a host system; A control bus interface configured to be connected to the control bus, wherein: The host interface has a bandwidth higher than a bandwidth of the control bus interface; and The control bus interface is configured to use a communication protocol different from a storage interface protocol of the host interface; means for establishing peer-to-peer communications between the plurality of peer storage devices via the control bus interface; means for selecting internal operating data from an internal operating memory location; means for transmitting the selected internal operating data to at least one other peer storage device of the plurality of peer storage devices; and Means for receiving selected internal operating data from the at least one other peer storage device of the plurality of peer storage devices in response to a resume event.
