WO2021170048A1 - 一种数据存储方法、装置及存储介质 - Google Patents

一种数据存储方法、装置及存储介质 Download PDF

Info

Publication number
WO2021170048A1
WO2021170048A1 PCT/CN2021/077949 CN2021077949W WO2021170048A1 WO 2021170048 A1 WO2021170048 A1 WO 2021170048A1 CN 2021077949 W CN2021077949 W CN 2021077949W WO 2021170048 A1 WO2021170048 A1 WO 2021170048A1
Authority
WO
WIPO (PCT)
Prior art keywords
hard disk
storage device
abnormal
abnormality
information
Prior art date
Application number
PCT/CN2021/077949
Other languages
English (en)
French (fr)
Inventor
李庆华
余高峰
张宏海
Original Assignee
杭州海康威视数字技术股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 杭州海康威视数字技术股份有限公司 filed Critical 杭州海康威视数字技术股份有限公司
Publication of WO2021170048A1 publication Critical patent/WO2021170048A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0619Improving the reliability of storage systems in relation to data integrity, e.g. data losses, bit errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0653Monitoring storage devices or systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device

Definitions

  • This application relates to the field of storage technology, and in particular to a data storage method, device and storage medium.
  • the detection of whether the hard disk is abnormal is usually to add related sensors to the storage device, such as adding a vibration sensor to the connection of the hard disk rack, or setting a temperature monitoring point on the backplane of the storage device, etc. According to the information about the environment of the hard disk collected by the sensor, it is judged whether the hard disk is abnormal. Because the relevant sensor needs to be added, the detection cost is high.
  • the purpose of this application is to provide a data storage method, device, and storage medium, which can isolate and protect the hard disk when the hard disk of the storage device is abnormal, while also protecting the data from loss, and the implementation cost is low.
  • a data storage method applied to a storage device including:
  • the data to be stored is stored in the pre-configured storage space, and after it is determined that the internal abnormality of the hard disk of the storage device is recovered, the data to be stored is read from the pre-configured storage space, and the The read data to be stored is stored in the hard disk of the storage device;
  • a data storage device applied to a storage device comprising: a processor, and a non-transitory computer-readable storage medium connected to the processor through a bus;
  • the non-transitory computer-readable storage medium stores one or more computer programs that can be executed by the processor; when the processor executes the one or more computer programs, the following steps are implemented:
  • the data to be stored is stored in the preset storage space, and after it is determined that the internal abnormality of the hard disk of the storage device is recovered, the data to be stored is read from the pre-set storage space , Storing the read data to be stored in the hard disk of the storage device;
  • a non-transitory computer-readable storage medium that stores instructions that, when executed by a processor, causes the processor to perform the steps in the above-mentioned data storage method.
  • the internal abnormality information of the hard disk of the storage device is obtained, and the internal hard disk of the storage device is determined based on this.
  • the internal hard disk of the storage device When the internal hard disk of the storage device is abnormal, it will wait The stored data is stored in the pre-configured storage space, and after it is determined that the internal hard disk of the storage device is abnormally recovered, the data to be stored is read from the pre-configured storage space, and the read data to be stored is stored in the storage device.
  • the hard disk when the inside of the hard disk of the storage device is normal, the data to be stored is stored in the hard disk of the storage device.
  • the hard disk can be isolated to protect it from being used under abnormal conditions.
  • the purpose of causing greater damage can also be achieved to protect the data from loss, and there is no need to add additional sensors when judging whether the hard disk of the storage device is abnormal or not, and the implementation cost is low.
  • FIG. 1 is a flowchart of a data storage method according to Embodiment 1 of the present application.
  • FIG. 2 is a flowchart of a data storage method according to Embodiment 2 of the present application.
  • FIG. 3 is a flowchart of a data storage method according to Embodiment 3 of the present application.
  • Figure 4 is a schematic diagram of a data storage process in an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a data storage device according to an embodiment of the present application.
  • FIG. 1 is a flowchart of a data storage method according to Embodiment 1 of the present application. The method is applied to a storage device. As shown in FIG. 1, the method may include the following steps:
  • Step 101 Obtain internal abnormality information of the hard disk of the storage device
  • Step 102 Determine whether the internal hard disk of the storage device is abnormal according to the internal abnormal information of the hard disk, if yes, go to step 103, otherwise, go to step 104;
  • Step 103 Store the to-be-stored data in the pre-configured storage space, and after it is determined that the internal hard disk of the storage device recovers from the abnormality, read the to-be-stored data from the pre-configured storage space, and store the read-out data to be stored in the storage device In the hard drive.
  • Step 104 Store the data to be stored in the hard disk of the storage device.
  • the application obtains the internal abnormality information of the hard disk of the storage device and determines whether the internal hard disk of the storage device is abnormal or not.
  • the application obtains the internal abnormality information of the hard disk of the storage device and determines whether the internal hard disk of the storage device is abnormal or not.
  • determining whether the hard disk of the storage device is abnormal Using the pre-configured storage space to store the data to be stored, instead of continuing to write data to the hard disk, can isolate the hard disk to protect it from being used under abnormal conditions and cause greater damage.
  • the pre-configured storage space can be a storage space located in a storage medium other than a hard disk in the storage device, or a storage space located in a storage medium of a device other than the storage device.
  • the storage device and other devices can be The connection is established in advance through the network or data line.
  • Fig. 2 is a flowchart of a data storage method according to the second embodiment of the present application. The method is applied to a storage device. As shown in Fig. 2, the method may include the following steps:
  • Step 201 Use the hard disk internal abnormality tool provided by the storage device manufacturer to obtain the hard disk internal abnormality information of the storage device, and/or use the hard disk detection tool that comes with the operating system of the storage device to obtain the hard disk internal abnormality of the storage device information.
  • storage device manufacturers usually provide a hard disk internal abnormality tool after producing storage devices.
  • This hard disk internal abnormality tool can perform health checks on the hard disk to obtain the internal abnormal information of the hard disk of the storage device.
  • a hard disk internal abnormality tool provided by a storage device manufacturer may be used to obtain the hard disk internal abnormality information of the storage device.
  • some operating systems such as UNIX usually have their own hard disk detection tools, such as smartctl.
  • the hard disk detection tools that come with the operating system can perform health checks on the internal hard disk to obtain abnormal information about the internal hard disk of the storage device.
  • a hard disk detection tool that comes with the operating system of the storage device may also be used to obtain the internal abnormality information of the hard disk of the storage device.
  • This step 201 is a detailed refinement of step 101 shown in FIG. 1.
  • Step 202 Determine whether the internal hard disk of the storage device is abnormal according to the internal abnormal information of the hard disk, if yes, go to step 203, otherwise, go to step 204;
  • Step 203 Store the data to be stored in the pre-configured storage space, and after determining that the internal hard disk of the storage device recovers from the abnormality, read the data to be stored from the pre-configured storage space, and store the read data to be stored in the storage device In the hard drive.
  • Step 204 Store the data to be stored in the hard disk of the storage device.
  • the application obtains the internal abnormality information of the hard disk of the storage device and determines whether the internal hard disk of the storage device is abnormal or not.
  • determining whether the hard disk of the storage device is abnormal Using the pre-configured storage space to store the data to be stored, instead of continuing to write data to the hard disk, can isolate the hard disk to protect it from being used under abnormal conditions and cause greater damage. At the same time, it can also achieve the purpose of storing The purpose of protecting data from loss when the hard disk of the device is abnormal.
  • this application uses the hard disk internal abnormality tool provided by the storage device manufacturer, or the hard disk detection tool that comes with the operating system of the storage device to obtain the internal hard disk abnormal information of the storage device. This process is realized by using existing tools and does not require additional Add and use sensors to achieve lower cost.
  • Figure 3 is a flow chart of a data storage method in Embodiment 3 of the present application. The method is applied to a storage device. As shown in Figure 3, the method mainly includes the following steps:
  • Step 301 Obtain internal abnormality information of the hard disk of the storage device.
  • the internal abnormality tool of the hard disk provided by the manufacturer of the storage device may be used to obtain the internal abnormality information of the hard disk of the storage device, or the hard disk detection tool of the operating system of the storage device may be used to obtain the hard disk of the storage device. Internal exception information.
  • hard disk abnormalities can include a variety of abnormal types, such as abnormal vibration, abnormal shock, abnormal temperature, abnormal mechanical structure (such as abnormal connection of cables), abnormal air pressure, etc., among which any abnormal type of hard disk abnormality occurs At times, it may cause the hard disk to be unavailable and need to be isolated.
  • abnormal types such as abnormal vibration, abnormal shock, abnormal temperature, abnormal mechanical structure (such as abnormal connection of cables), abnormal air pressure, etc., among which any abnormal type of hard disk abnormality occurs At times, it may cause the hard disk to be unavailable and need to be isolated.
  • the internal abnormality information of the hard disk may include any combination of abnormal information of the following abnormal types: abnormal vibration information, abnormal impact information, abnormal temperature information, abnormal mechanical structure information, and abnormal air pressure information.
  • the internal abnormal information of the hard disk may also include other abnormal information in addition to the above five types of abnormal information.
  • Step 3021 according to the abnormal information of each abnormal type included in the internal abnormality information of the hard disk, determine whether the hard disk abnormality of this abnormal type occurs in the hard disk.
  • This step 3021 may specifically include:
  • the vibration abnormality information may include: vibration intensity and vibration abnormality log.
  • the internal abnormality tool of the hard disk provided by the manufacturer of the storage device can determine the vibration intensity of the hard disk of the storage device according to the number of internal retry attempts on the disk surface of the magnetic head. If there is vibration when writing data, the writing to the disk will fail, and it will try to write multiple times. This data can be used to determine whether there is vibration.
  • the hard disk internal abnormality tool provided by the storage device manufacturer detects hard disk vibration, the detection time and vibration intensity can be written into the vibration abnormal log as a log record.
  • the vibration occurs within a duration (such as 3 minutes)
  • a duration such as 3 minutes
  • most of the records indicate that the hard disk vibration can refer to the record indicating the hard disk vibration and the total number of records in the vibration abnormal log.
  • the record whose ratio exceeds the preset ratio threshold may also refer to the record indicating that the hard disk vibration exceeds the preset number threshold.
  • the specific method for obtaining abnormal vibration information of the storage device may be: using the internal abnormality tool of the hard disk provided by the storage device manufacturer to obtain the current time vibration of the hard disk of the storage device Intensity, when the vibration intensity exceeds the preset intensity threshold, obtain the abnormal vibration log of the hard disk of the storage device within the first preset period of time before the current time, where the first preset period can be set according to actual needs and/or experience A duration, such as 3 minutes, 5 minutes, etc.
  • judging whether an abnormal vibration occurs in the hard disk of the storage device according to the abnormal vibration information may include: counting the vibration intensity of the hard disk of the storage device in the vibration abnormal log within the first preset period of time before the current time exceeds the preset intensity threshold The ratio of the number of records to the total number of records. If the ratio exceeds the preset ratio threshold, it is determined that there is abnormal vibration inside the hard disk of the storage device; otherwise, it is determined that there is no abnormal vibration inside the hard disk of the storage device.
  • the abnormal vibration information may include parameters: data positioning error rate (Seek_Error_Rate) and reading and writing positioning time (Seek_Time_Performance).
  • data positioning error rate Seek_Error_Rate
  • Seek_Time_Performance reading and writing positioning time
  • the values of these two parameters are too high, it indicates that the hard disk surface is eccentric. Or the magnetic head cannot be accurately positioned, and the eccentricity of the hard disk surface rotation and the inaccurate positioning of the magnetic head may be caused by abnormal vibration, that is, when the values of these two parameters are too high, it can be determined that the internal vibration of the hard disk is abnormal, so these two parameters It can also be used to determine whether abnormal vibration occurs inside the hard disk.
  • These two parameters can be obtained using the hard disk detection tool (such as smartctl) that comes with the operating system of the storage device.
  • the method of obtaining abnormal vibration information of the storage device may be specifically: using the hard disk detection tool that comes with the operating system of the storage device to obtain the data location error rate and reading of the hard disk of the storage device. Write positioning time.
  • step S11 judging whether there is abnormal vibration inside the hard disk of the storage device according to the abnormal vibration information, which may specifically include: if the data positioning error rate of the hard disk of the storage device exceeds a preset positioning error rate threshold, and/or the hard disk of the storage device If the reading and writing positioning time exceeds the preset positioning time threshold, it is determined that there is abnormal vibration inside the hard disk of the storage device; otherwise, it is determined that there is no abnormal vibration inside the hard disk of the storage device.
  • the abnormal vibration information which may specifically include: if the data positioning error rate of the hard disk of the storage device exceeds a preset positioning error rate threshold, and/or the hard disk of the storage device If the reading and writing positioning time exceeds the preset positioning time threshold, it is determined that there is abnormal vibration inside the hard disk of the storage device; otherwise, it is determined that there is no abnormal vibration inside the hard disk of the storage device.
  • the impact abnormality information may include: impact abnormality log.
  • the storage device can record the impact abnormality log inside the hard disk, so the current time can be read from the hard disk of the storage device within a period of time (for example, 24 hours). Analyze whether there is an abnormal impact log in the abnormal impact log, and if there is an abnormal impact record, it can be determined that the internal hardware of the storage device has an abnormal impact.
  • the shock abnormality log of the hard disk of the storage device can be obtained by using the internal abnormality tool of the hard disk provided by the manufacturer of the storage device.
  • the method for obtaining abnormal abnormal information of the storage device can be specifically: using the internal abnormality tool of the hard disk provided by the storage device manufacturer to obtain the hard disk of the storage device that is second before the current time. Impact abnormal log within a preset time period.
  • step S12 judging whether there is an abnormal impact inside the hard disk of the storage device according to the abnormal impact information, specifically including: determining whether the hard disk of the storage device has an abnormal impact record in the abnormal impact log within the second preset period of time before the current time, if If yes, it is determined that there is an abnormal shock inside the hard disk of the storage device; otherwise, it is determined that there is no abnormal shock inside the hard disk of the storage device.
  • the shock abnormality information may include parameters: head flying height (High_Fly_Writes) and shock error rate (G-Sense_Error_Rate).
  • the high flying height of the head indicates that there is a problem with the hard disk head reading data, and the problem with the hard disk head reading data may be caused by an abnormal impact on the hard disk; an excessively high impact error rate indicates an impact event, if the impact error rate has been increased to exceed A certain threshold indicates that the hard disk has an abnormal impact.
  • Both of these parameters can be used to determine whether there is an abnormal impact inside the hard disk of the storage device. You can use the hard disk detection tool (such as smartctl) that comes with the operating system of the storage device to obtain these two parameters.
  • the specific method for obtaining the shock abnormality information of the storage device can also be: obtain the head flying height of the hard disk of the storage device using the hard disk detection tool that comes with the operating system of the storage device And impact error rate.
  • step S12 judging whether an impact abnormality occurs inside the hard disk of the storage device according to the impact abnormality information, which may specifically include: if the flying height of the magnetic head of the hard disk of the storage device exceeds a preset height threshold, and/or the impact error rate of the hard disk of the storage device If the preset impact error rate threshold is exceeded, it is determined that an impact abnormality occurs inside the hard disk of the storage device; otherwise, it is determined that there is no impact abnormality inside the hard disk of the storage device.
  • the impact abnormality information which may specifically include: if the flying height of the magnetic head of the hard disk of the storage device exceeds a preset height threshold, and/or the impact error rate of the hard disk of the storage device If the preset impact error rate threshold is exceeded, it is determined that an impact abnormality occurs inside the hard disk of the storage device; otherwise, it is determined that there is no impact abnormality inside the hard disk of the storage device.
  • the temperature abnormality information includes: the hard disk temperature.
  • the hard disk detection tool such as smartctl
  • the hard disk detection tool that comes with the operating system of the storage device can be used to obtain the temperature of the hard disk of the storage device.
  • the method for obtaining the abnormal temperature information of the storage device may specifically be: obtaining the temperature of the hard disk of the storage device by using a hard disk detection tool that comes with the operating system of the storage device.
  • judging whether there is a temperature abnormality inside the hard disk of the storage device according to the temperature abnormality information may specifically include: if the temperature of the hard disk of the storage device exceeds a preset temperature threshold, determining that the temperature of the hard disk of the storage device is abnormal; otherwise, Make sure that there is no abnormal temperature inside the hard disk of the storage device.
  • the internal abnormality information of the hard disk includes the abnormality information of the mechanical structure, determine whether there is an abnormality of the mechanical structure inside the hard disk of the storage device according to the abnormality information of the mechanical structure.
  • the mechanical structure abnormality information may include: a structural abnormality flag; the structural abnormality flag has two values, namely: a value indicating structural abnormality and a value indicating structural normality.
  • the abnormal signs of mechanical structure can be obtained by using the internal abnormality tool of the hard disk provided by the manufacturer of the storage device.
  • the internal abnormality tool of the hard disk provided by the storage device manufacturer can determine whether there is a connection line problem, signal transmission problem, etc., in the hardware of the storage device, and then return a mechanical structure abnormality flag according to the judgment result.
  • the method for obtaining the abnormal information of the mechanical structure of the storage device can be specifically: using the internal abnormality tool of the hard disk provided by the storage device manufacturer to obtain the structural abnormality flag of the hard disk of the storage device value.
  • step S14 judging whether there is a mechanical structure abnormality inside the hard disk of the storage device according to the mechanical structure abnormality information, which may specifically include: judging whether the structure abnormality flag value of the hard disk of the storage device is a value indicating the structure abnormality, and if so, determining the storage There is an abnormality in the mechanical structure of the hard disk of the device. Otherwise, it is determined that there is no abnormality in the mechanical structure of the hard disk of the storage device.
  • the mechanical structure abnormality information may include a parameter: interface CRC write error count (CRC_Error_Count). This parameter can be used to determine the connection line problem, and can be obtained by using the hard disk detection tool that comes with the operating system of the storage device.
  • CRC_Error_Count interface CRC write error count
  • the specific method for obtaining the abnormal information of the mechanical structure of the storage device may be: using the hard disk detection tool that comes with the operating system of the storage device to obtain the interface CRC of the hard disk of the storage device Write error count.
  • step S14 judging whether there is a mechanical structure abnormality inside the hard disk of the storage device according to the information of the mechanical structure abnormality, which may specifically include: if the interface CRC write error count of the hard disk of the storage device exceeds a preset count threshold, determining the hard disk of the storage device The internal mechanical structure is abnormal, otherwise, it is determined that there is no mechanical structural abnormality inside the hard disk of the storage device.
  • the abnormal air pressure information includes: abnormal air pressure flag; the abnormal air pressure flag has two values, namely: a value indicating abnormal air pressure (for example, 0) and a value indicating normal air pressure (for example, 1).
  • the abnormal pressure sign can be obtained by the hard disk detection tool that comes with the operating system of the storage device.
  • the method for obtaining abnormal air pressure information of the storage device can be specifically: using the hard disk detection tool that comes with the operating system of the storage device to obtain the abnormal air pressure flag value of the hard disk of the storage device .
  • step S15 judging whether there is abnormal air pressure inside the hard disk of the storage device according to the abnormal air pressure information, which specifically includes: if the abnormal air pressure flag value of the hard disk of the storage device is a value indicating the abnormal air pressure, it is determined that the hard disk of the storage device has abnormal air pressure. Otherwise, make sure that there is no abnormal air pressure inside the hard disk of the storage device.
  • steps S11 to S15 are executed in no particular order, and may be executed sequentially, in parallel, or alternately.
  • Step 3022 when any abnormal type of hard disk abnormality occurs in the hard disk of the storage device, determine that the hard disk of the storage device is abnormal.
  • the hard disk since any abnormal type of hard disk is abnormal, the hard disk may be unusable. Therefore, regardless of whether the internal abnormal information of the hard disk includes several abnormal types of abnormal information, it can be determined according to the abnormal information of any one of the abnormal types. If such an abnormal type of hard disk abnormality (such as abnormal vibration) occurs inside the hard disk of the storage device, it is considered that the internal hard disk of the storage device is abnormal.
  • an abnormal type of hard disk abnormality such as abnormal vibration
  • step 303 When it is determined that the hard disk of the storage device is abnormal, the hard disk of the storage device needs to be isolated, and the data to be stored is no longer stored in the hard disk, but the pre-configured storage space is used to temporarily store the data to be stored, that is, step 303 is performed.
  • Step 3023 When no abnormal type of hard disk abnormality occurs in the hard disk of the storage device, it is determined that the hard disk of the storage device is normal.
  • step 304 is executed.
  • Step 303 Store the data to be stored in the pre-configured storage space, and after determining that the internal hard disk of the storage device recovers from the abnormality, read the data to be stored from the pre-configured storage space, and store the read data to be stored in the storage device In the hard drive.
  • the pre-configured storage space when storing the stored data in the pre-configured storage space, it will also periodically check whether the internal hard disk of the storage device has recovered from the abnormality (that is, restored to normal). When it is determined that the internal hard disk of the storage device has recovered from the abnormality After recovery, the data to be stored previously stored in the pre-configured storage space can be read out and stored in the hard disk of the storage device. In this process, methods such as resumable transmission/interrupted transmission can be used to ensure data storage. The continuity is not lost.
  • the pre-configured storage space may be the cache of the storage device, or may be pre-added to the system card (that is, the disk where the operating system of the storage device is located) or a solid state drive (SSD) in the storage device.
  • the pre-configured storage space can be a hot spare disk of the RAID disk array.
  • the hard disk of the storage device can be removed from the disk array.
  • the hard disk of the storage device recovers abnormally, the hard disk of the storage device can be added to the RAID disk array again.
  • Step 304 Store the data to be stored in the hard disk of the storage device.
  • the hard disk of the storage device After obtaining the internal abnormality information of the hard disk of the storage device in the present application, it is determined whether the hard disk of the storage device has such abnormal information according to the abnormal information of each type of abnormality in the internal abnormal information of the hard disk.
  • An abnormal type of hard disk is abnormal, so when it is determined that any abnormal type of hard disk abnormality occurs in the hard disk of the storage device, the internal hard disk of the storage device is determined to be abnormal, and when the hard disk of the storage device is determined to be abnormal, the pre-configured storage space is used to store the waiting Storing data, instead of continuing to write data to the hard disk, can isolate the hard disk to protect it from being used under abnormal conditions and cause greater damage.
  • the hard disk of the storage device can also protect data when the hard disk of the storage device is abnormal.
  • the purpose is not lost, and the realization cost is low.
  • the hard disk of the storage device by separately determining whether the hard disk of the storage device has the abnormal type of hard disk abnormality according to the abnormal information of each abnormal type, it is possible to determine the internal abnormality of the hard disk of the storage device while determining the internal abnormality of the hard disk of the storage device.
  • the abnormal type can help the staff to repair the hard disk in the follow-up.
  • the hard disk abnormality detection module 41 regularly uses the storage device manufacturer’s
  • the internal abnormality tool of the hard disk or the hard disk detection tool that comes with the operating system of the storage device obtains the internal abnormality information of the hard disk, determines whether there is an abnormality in the hard disk based on this, and notifies the determination result (that is, the abnormality detection result) to the business data storage module 42.
  • a hard disk abnormality flag that can be accessed by the hard disk abnormality detection module 41 and the business data storage module 42 can be set.
  • the hard disk abnormality detection module 41 can notify the abnormality by setting the hard disk abnormality flag with a value indicating the hard disk is abnormal or a value indicating the hard disk is normal. Detection results; on the other hand, when storing data, the business data storage module 42 determines whether the hard disk is abnormal according to the hard disk abnormality flag, and determines how to store it according to whether there is an abnormality inside the hard disk. Specifically, when the hard disk is normal, Directly store the data to be stored in the hard disk. When there is an abnormality in the hard disk, implement isolation protection on the hard disk, and store the data to be stored in the pre-configured storage space (such as cache, system card, SSD, etc.), and in the hard disk. After the abnormality is recovered, the data to be stored stored in the pre-configured storage space is restored back to the hard disk through technical means such as resumable transmission.
  • the pre-configured storage space such as cache, system card, SSD, etc.
  • FIG. 5 is a schematic structural diagram of a data storage device according to an embodiment of the present application. The device is applied to a storage device. As shown in FIG. Transitory computer-readable storage medium 502;
  • the non-transitory computer-readable storage medium 502 stores one or more computer programs that can be executed by the processor 501; when the processor 501 executes the one or more computer programs, the following steps are implemented:
  • the processor 501 when acquiring the internal abnormal information of the hard disk of the storage device, is used to:
  • the internal abnormality information of the hard disk includes any combination of abnormal information of the following abnormal types: abnormal vibration information, abnormal impact information, abnormal temperature information, abnormal mechanical structure information, and abnormal air pressure information;
  • the processor 501 judges whether the internal hard disk of the storage device is abnormal according to the internal abnormal information of the hard disk, including:
  • the abnormal information of each abnormal type included in the internal abnormal information of the hard disk determine whether the abnormal type of hard disk abnormality occurs in the hard disk
  • the hard disk of the storage device does not have any abnormal type of hard disk abnormality, it is determined that the hard disk of the storage device is normal.
  • Abnormal vibration information includes: vibration intensity and abnormal vibration log;
  • the processor 501 when obtaining the abnormal vibration information of the storage device, is used to obtain the current time vibration intensity of the hard disk of the storage device by using the internal abnormality tool of the hard disk provided by the manufacturer of the storage device, and obtain the storage when the vibration intensity exceeds a preset intensity threshold.
  • the processor 501 determines whether abnormal vibration occurs in the hard disk of the storage device according to the abnormal vibration information, including: counting records in the abnormal vibration log of the hard disk of the storage device within the first preset period of time before the current time that the vibration intensity exceeds a preset intensity threshold The ratio of the number of records to the total number of records. If the ratio exceeds the preset ratio threshold, it is determined that there is abnormal vibration inside the hard disk of the storage device; otherwise, it is determined that there is no abnormal vibration inside the hard disk of the storage device;
  • Abnormal vibration information includes: data positioning error rate and reading and writing positioning time;
  • the processor 501 when acquiring the abnormal vibration information of the storage device, is used to: use the hard disk detection tool that comes with the operating system of the storage device to acquire the data positioning error rate and read and write positioning time of the hard disk of the storage device;
  • the processor 501 judges whether there is an abnormal vibration inside the hard disk of the storage device according to the abnormal vibration information, including: if the data positioning error rate of the hard disk of the storage device exceeds a preset positioning error rate threshold, and/or the read and write positioning of the hard disk of the storage device When the time exceeds the preset positioning time threshold, it is determined that there is an abnormal vibration inside the hard disk of the storage device; otherwise, it is determined that there is no abnormal vibration inside the hard disk of the storage device.
  • Impact abnormal information includes: impact abnormal log;
  • the processor 501 when acquiring the shock abnormality information of the storage device, is configured to: use the hard disk internal abnormality tool provided by the storage device manufacturer to obtain the shock abnormality log of the hard disk of the storage device within the second preset period of time before the current time;
  • the processor 501 determines whether an impact abnormality occurs inside the hard disk of the storage device, including: determining whether there is an impact abnormality record in the impact abnormality log of the hard disk of the storage device within a second preset period of time before the current time, if so, It is determined that there is an abnormal impact inside the hard disk of the storage device; otherwise, it is determined that there is no abnormal impact inside the hard disk of the storage device;
  • Impact abnormal information includes: head flying height and impact error rate
  • the processor 501 when acquiring the shock abnormality information of the storage device, is used to: obtain the head flying height and the shock error rate of the hard disk of the storage device by using the hard disk detection tool that comes with the operating system of the storage device;
  • the processor 501 judges whether there is an abnormal shock inside the hard disk of the storage device according to the shock abnormal information, including: if the flying height of the hard disk of the storage device exceeds the preset height threshold, and/or the shock error rate of the hard disk of the storage device exceeds the preset Impact error rate threshold, it is determined that an impact abnormality occurs inside the hard disk of the storage device; otherwise, it is determined that there is no impact abnormality inside the hard disk of the storage device.
  • Abnormal temperature information includes: hard disk temperature;
  • the processor 501 when acquiring abnormal temperature information of the storage device, is configured to: acquire the temperature of the hard disk of the storage device by using the hard disk detection tool that comes with the operating system of the storage device;
  • the processor 501 judges whether there is an abnormal temperature inside the hard disk of the storage device according to the temperature abnormality information, including: if the temperature of the hard disk of the storage device exceeds a preset temperature threshold, determining that the temperature of the hard disk of the storage device is abnormal; otherwise, determining the storage device There is no abnormal temperature inside the hard disk.
  • the abnormal information of mechanical structure includes: abnormal structure flag; the abnormal structure flag has two values, namely: a value indicating abnormal structure and a value indicating normal structure;
  • the processor 501 when acquiring the information about the abnormality of the mechanical structure of the storage device, is used to: use the internal abnormality tool of the hard disk provided by the manufacturer of the storage device to obtain the structural abnormality flag value of the hard disk of the storage device;
  • the processor 501 judges whether there is a mechanical structure abnormality inside the hard disk of the storage device according to the mechanical structure abnormality information, including: determining whether the structure abnormality flag value of the hard disk of the storage device is a value indicating the structure abnormality, and if so, determining the hard disk of the storage device If there is an abnormality in the internal mechanical structure, otherwise, it is determined that there is no abnormality in the internal mechanical structure of the hard disk of the storage device;
  • the abnormal information of the mechanical structure includes: interface CRC write error count;
  • the processor 501 when obtaining the abnormal information about the mechanical structure of the storage device, is used to: obtain the interface CRC write error count of the hard disk of the storage device by using the hard disk detection tool that comes with the operating system of the storage device;
  • the processor 501 judges whether there is a mechanical structure abnormality inside the hard disk of the storage device according to the information of the mechanical structure abnormality, including: if the interface CRC write error count of the hard disk of the storage device exceeds a preset count threshold, determining whether there is a mechanical structure inside the hard disk of the storage device. The structure is abnormal, otherwise, it is determined that there is no mechanical structure abnormality inside the hard disk of the storage device.
  • the abnormal air pressure information includes: abnormal air pressure flag; the abnormal air pressure flag has two values, namely: a value indicating abnormal air pressure and a value indicating normal air pressure;
  • the processor 501 when acquiring the abnormal air pressure information of the storage device, is configured to: use the hard disk detection tool that comes with the operating system of the storage device to obtain the abnormal air pressure flag value of the hard disk of the storage device;
  • the processor 501 judges whether there is an abnormal air pressure inside the hard disk of the storage device according to the abnormal air pressure information, including: if the abnormal air pressure flag value of the hard disk of the storage device is a value indicating an abnormal air pressure, determining that the hard disk of the storage device has an abnormal air pressure; otherwise , Make sure that there is no abnormal air pressure inside the hard disk of the storage device.
  • the pre-configured storage space is the cache of the storage device, the system card, or the solid state drive SSD;
  • the hard disk of the storage device is a disk in a RAID disk array
  • the pre-configured storage space is a hot spare disk of the RAID disk array
  • the embodiment of the present application also provides a non-transitory computer-readable storage medium.
  • the non-transitory computer-readable storage medium stores instructions.
  • the processor executes the data storage methods shown in Figure 1, Figure 2, and Figure 3. A step of.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本申请提供了一种数据存储方法、装置及存储介质,该方法应用于存储设备,包括:获取所述存储设备的硬盘内部异常信息;根据所述硬盘内部异常信息判断所述存储设备的硬盘内部是否异常;判定所述存储设备的硬盘内部异常,则将待存储数据存储到预先配置的存储空间,并在确定所述存储设备的硬盘内部异常恢复后,从预先配置的存储空间读取待存储数据,将读取的待存储数据存储到所述存储设备的硬盘中;判定所述存储设备的硬盘内部正常,则将待存储数据存储到所述存储设备的硬盘中。本申请能够在存储设备的硬盘出现异常时对硬盘实施隔离保护同时也保护数据不丢失,且实现成本较低。

Description

一种数据存储方法、装置及存储介质
本申请要求于2020年02月26日提交中国专利局、申请号为202010118424.3发明名称为“一种数据存储方法、装置及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及存储技术领域,特别涉及一种数据存储方法、装置及存储介质。
背景技术
当硬盘发生异常时,如果向硬盘写入数据,则可能会出现存储失败等问题而导致数据丢失。
为了减少硬盘异常情况的出现,通常会采取一些措施以保证数据存储的安全性,例如在硬盘托架下方添加减少振动的减震垫以减小硬盘振动情况的发生。然而这些措施是无法完全避免硬盘内部异常的,这就需要对硬盘是否发生异常进行检测。现有技术中,对硬盘是否发生异常情况的检测,通常是在存储设备里添加相关的传感器,比如在硬盘架的连接处添加振动传感器,或者在存储设备的背板上设置温度监控点等,根据传感器采集到的硬盘所处环境的相关信息判断硬盘是否发生异常,由于需要添加相关传感器,因此检测成本较高。
发明内容
有鉴于此,本申请的目的在于提供一种数据存储方法、装置及存储介质,能够在存储设备的硬盘出现异常时对硬盘实施隔离保护同时也保护数据不丢失,且实现成本较低。
为了达到上述目的,本申请提供了如下技术方案:
一种数据存储方法,应用于存储设备,该方法包括:
获取所述存储设备的硬盘内部异常信息;
根据所述硬盘内部异常信息判断所述存储设备的硬盘内部是否异常;
判定所述存储设备的硬盘内部异常,则将待存储数据存储到预先配置的存储空间,并在确定所述存储设备的硬盘内部异常恢复后,从预先配置的存 储空间读取待存储数据,将读取的待存储数据存储到所述存储设备的硬盘中;
判定所述存储设备的硬盘内部正常,则将待存储数据存储到所述存储设备的硬盘中。
一种数据存储装置,应用于存储设备,该装置包括:处理器、以及与所述处理器通过总线相连的非瞬时计算机可读存储介质;
所述非瞬时计算机可读存储介质,存储有可被所述处理器执行的一个或多个计算机程序;所述处理器执行所述一个或多个计算机程序时实现以下步骤:
获取所述存储设备的硬盘内部异常信息;
根据所述硬盘内部异常信息判断所述存储设备的硬盘内部是否异常;
判定所述存储设备的硬盘内部异常,则将待存储数据存储到预先设定的存储空间,并在确定所述存储设备的硬盘内部异常恢复后,从预先设定的存储空间读取待存储数据,将读取的待存储数据存储到所述存储设备的硬盘中;
判定所述存储设备的硬盘内部正常,则将待存储数据存储到所述存储设备的硬盘中。
一种非瞬时计算机可读存储介质,所述非瞬时计算机可读存储介质存储指令,所述指令在由处理器执行时使得所述处理器执行如上述数据存储方法中的步骤。
由上面的技术方案可知,本申请中,通过获取所述存储设备的硬盘内部异常信息,并据此判断所述存储设备的硬盘内部是否异常,在所述存储设备的硬盘内部异常时,将待存储数据存储到预先配置的存储空间,并在确定所述存储设备的硬盘内部异常恢复后,从预先配置的存储空间读取待存储数据,将读取的待存储数据存储到所述存储设备的硬盘中;在所述存储设备的硬盘内部正常时,将待存储数据存储到所述存储设备的硬盘中。可以看出,本申请中由于在硬盘异常时将待存储数据存储到预先配置的存储空间,而不是继续向硬盘写数据,可以起到隔离硬盘以保护其不会在异常情况下继续被使用而造成更大损害的目的,同时也可以达到保护数据不丢失的目的,而且判断存储设备的硬盘内部异常与否时不需要额外添加传感器,实现成本较低。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性 的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例一数据存储方法流程图;
图2是本申请实施例二数据存储方法流程图;
图3是本申请实施例三数据存储方法流程图;
图4是本申请实施例数据存储过程示意图;
图5是本申请实施例数据存储装置的结构示意图。
具体实施方式
为使本申请的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本申请进一步详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。本领域普通技术人员基于本申请中的实施例所获得的所有其他实施例,都属于本申请保护的范围。
实施例一
参见图1,图1是本申请实施例一数据存储方法流程图,该方法应用于存储设备,如图1所示,该方法可以包括以下步骤:
步骤101、获取存储设备的硬盘内部异常信息;
步骤102、根据硬盘内部异常信息判断存储设备的硬盘内部是否异常,如果是,则执行步骤103,否则,执行步骤104;
步骤103、将待存储数据存储到预先配置的存储空间,并在确定存储设备的硬盘内部异常恢复后,从预先配置的存储空间读取待存储数据,将读取的待存储数据存储到存储设备的硬盘中。
步骤104、将待存储数据存储到存储设备的硬盘中。
从图1所示本申请实施例可以看出,本申请通过获取所述存储设备的硬盘内部异常信息并据此判断所述存储设备的硬盘内部异常与否,在判定存储设备的硬盘异常时,利用预先配置的存储空间存储待存储数据,而不是继续向硬盘写数据,可以起到隔离硬盘以保护其不会在异常情况下继续被使用而造成更大损害的目的,同时也可以达到在存储设备的硬盘出现异常时保护数据不丢失的目的,而且由于本申请是根据硬盘内部异常信息判断硬盘内部是否异常的,因此只需借助硬盘内部的相关检测工具获取内部异常信息即可判断硬盘是否发生异常,无需借助额外添加的传感器用以采集硬盘外部环境的信息,因此本申请不需要使用额外添加的传感器就可以获取所述存储设备的硬盘内部异常信息,并据此判断所述存储设备的硬盘内部异常与否,实现成本较低。
其中,预先配置的存储空间可以是位于存储设备中除硬盘以外的其他存储介质中的存储空间,也可以是位于存储设备以外的其他设备的存储介质中的存储空间,存储设备与其他设备可以是预先通过网络或数据线的方式建立连接。
实施例二
参见图2,图2是本申请实施例二数据存储方法流程图,该方法应用于存储设备,如图2所示,该方法可以包括以下步骤:
步骤201、利用存储设备生产者提供的硬盘内部异常工具获取所述存储设备的硬盘内部异常信息,和/或,利用存储设备的操作系统自带的硬盘检测工具获取所述存储设备的硬盘内部异常信息。
在实际应用中,存储设备生产者(如设备厂商)在生产存储设备后,通常会提供硬盘内部异常工具,此硬盘内部异常工具可以对硬盘内部进行健康检测从而得到存储设备的硬盘内部异常信息。本申请实施例中,可利用存储设备生产者提供的硬盘内部异常工具获取存储设备的硬盘内部异常信息。
另外,在UNIX等一些操作系统中通常会自带有硬盘检测工具,例如smartctl,操作系统自带的硬盘检测工具可以对硬盘内部进行健康检测从而得到存储设备的硬盘内部异常信息。本申请实施例中,还可以利用存储设备的操作系统自带的硬盘检测工具获取所述存储设备的硬盘内部异常信息。
本步骤201是图1所示步骤101的具体细化。
步骤202、根据硬盘内部异常信息判断所述存储设备的硬盘内部是否异常,如果是,则执行步骤203,否则,执行步骤204;
步骤203、将待存储数据存储到预先配置的存储空间,并在确定存储设备的硬盘内部异常恢复后,从预先配置的存储空间读取待存储数据,将读取的待存储数据存储到存储设备的硬盘中。
步骤204、将待存储数据存储到存储设备的硬盘中。
从图2所示本申请实施例可以看出,本申请通过获取所述存储设备的硬盘内部异常信息并据此判断所述存储设备的硬盘内部异常与否,在判定存储设备的硬盘异常时,利用预先配置的存储空间存储待存储数据,而不是继续向硬盘写数据,可以起到隔离硬盘以保护其不会在异常情况下继续被使用而造成更大损害的目的,同时也可以达到在存储设备的硬盘出现异常时保护数据不丢失的目的。而且本申请是利用存储设备生产者提供的硬盘内部异常工具,或存储设备的操作系统自带的硬盘检测工具来获取存储设备的硬盘内部异常信息,此过程是利用已有工具实现,不需要额外添加和使用传感器,实现成本较低。
实施例三
参见图3,图3是本申请实施例三数据存储方法流程图,该方法应用于存储设备,如图3所示,该方法主要包括以下步骤:
步骤301、获取所述存储设备的硬盘内部异常信息。
具体的,在一种实施例中可以是利用存储设备生产者提供的硬盘内部异常工具获取存储设备的硬盘内部异常信息,或者,利用存储设备的操作系统自带的硬盘检测工具获取存储设备的硬盘内部异常信息。
在实际应用中,硬盘异常可包括多种异常类型,如振动异常、冲击异常、温度异常、机械结构异常(如连接线的连接异常)、气压异常等,其中任意一种异常类型的硬盘异常发生时,都有可能导致硬盘不可用,需要隔离。
本申请实施例中,硬盘内部异常信息可包括以下异常类型的异常信息的任意组合:振动异常信息、冲击异常信息、温度异常信息、机械结构异常信息、气压异常信息。在其他可能的实施例中,硬盘内部异常信息也可以包括除上述五种异常信息以外的其他异常信息。
步骤3021、根据所述硬盘内部异常信息包括的每种异常类型的异常信息,确定所述硬盘内部是否发生该种异常类型的硬盘异常。
本步骤3021具体可以包括:
S11、当硬盘内部异常信息包括振动异常信息时,根据振动异常信息判断存储设备的硬盘内部是否出现振动异常。
在本申请的一个实施例中,振动异常信息可以包括:振动强度和振动异常日志。存储设备生产者提供的硬盘内部异常工具可以根据磁头写碟面的内部重新尝试次数确定所述存储设备的硬盘的振动强度,如果内部重新尝试次数较多超过内部阈值就会标记存在振动,因为磁头写数据时如果存在振动,写碟面就会写失败,就会尝试多次写,通过此数据即可判断是否存在振动情况。另外,当存储设备生产者提供的硬盘内部异常工具检测到硬盘振动时,可以将检测时间和振动强度作为一条日志记录写入振动异常日志,如果在一个持续时间段(如3分钟)内的振动异常日志中的多数记录都表明硬盘振动时,则可确定硬盘在持续振动,发生了振动异常,其中,多数记录都表明硬盘振动可以是指表明硬盘震动的记录与振动异常日志中总记录数的比例超过预设比例阈值的记录,也可以是指表明硬盘震动的记录超过预设数目阈值。
因此,在所述硬盘内部异常信息包括振动异常信息的情况下,获取存储设备的振动异常信息的具体方法可以为:利用存储设备生产者提供的硬盘内部异常工具获取存储设备的硬盘当前时间的振动强度,当振动强度超过预设强度阈值时,获取存储设备的硬盘在当前时间之前第一预设时长内的振动异 常日志,其中,第一预设时长可以是根据实际需求和/或经验设置的一个时长,如3分钟、5分钟等。
上述步骤S11中,根据振动异常信息判断存储设备的硬盘内部是否出现振动异常,可以包括:统计存储设备的硬盘在当前时间之前第一预设时长内的振动异常日志中振动强度超过预设强度阈值的记录数与总记录条数的比例,如果比例超过预设比例阈值,则确定存储设备的硬盘内部出现振动异常,否则,确定存储设备的硬盘内部未出现振动异常。
在本申请的另一实施例中,振动异常信息可以包括参数:数据定位错误率(Seek_Error_Rate)和读写定位时间(Seek_Time_Performance),这两个参数的取值过高时,表明硬盘碟面旋转偏心或磁头不能准确定位,而硬盘碟面旋转偏心和磁头不能准确定位可能是由振动异常导致的,即在这两个参数的取值过高时可以确定硬盘内部发生振动异常,因此这两个参数也可用于确定硬盘内部是否发生振动异常。这两个参数可利用存储设备的操作系统自带的硬盘检测工具(如smartctl)获得。
因此,在硬盘内部异常信息包括振动异常信息时,获取存储设备的振动异常信息的方法具体可以为:利用存储设备的操作系统自带的硬盘检测工具获取存储设备的硬盘的数据定位错误率和读写定位时间。
上述步骤S11中,根据振动异常信息判断存储设备的硬盘内部是否出现振动异常,具体可以包括:如果存储设备的硬盘的数据定位错误率超过预设定位错误率阈值,和/或存储设备的硬盘的读写定位时间超过预设定位时间阈值,则确定存储设备的硬盘内部出现振动异常,否则,确定存储设备的硬盘内部未出现振动异常。
S12、当硬盘内部异常信息包括冲击异常信息时,根据冲击异常信息判断存储设备的硬盘内部是否出现冲击异常。
在本申请的一个实施例中,冲击异常信息可以包括:冲击异常日志。在实际应用中,当有明显的撞击物撞击存储设备的硬盘时,存储设备可以在硬盘内部记录冲击异常日志,因此可以从存储设备的硬盘中读出当前时间之前一段时间(例如24小时)内的冲击异常日志,并分析冲击异常日志中是否存在冲击异常记录,存在冲击异常记录则可确定存储设备的硬件内部发生冲击异常。存储设备的硬盘的冲击异常日志可利用存储设备生产者提供的硬盘内部异常工具获得。
因此,在硬盘内部异常信息包括冲击异常信息的情况下,获取存储设备的冲击异常信息的方法具体可以为:利用存储设备生产者提供的硬盘内部异常工具获取存储设备的硬盘在当前时间之前第二预设时长内的冲击异常日志。
上述步骤S12中,根据冲击异常信息判断存储设备的硬盘内部是否出现冲击异常,具体包括:判断存储设备的硬盘在当前时间之前第二预设时长内的冲击异常日志中是否有冲击异常记录,如果是,则确定存储设备的硬盘内部出现冲击异常,否则,确定存储设备的硬盘内部未出现冲击异常。
在本申请的另一实施例中,冲击异常信息可以包括参数:磁头飞行高度(High_Fly_Writes)和冲击错误率(G-Sense_Error_Rate)。磁头飞行高度过高表明硬盘磁头读取数据出现问题,而硬盘磁头读取数据出现问题可能是由于硬盘出现冲击异常导致的;冲击错误率过高表示存在冲击事件,如果冲击错误率一直增加到超过一定阈值,则说明硬盘出现冲击异常。使用这两个参数均可判定存储设备的硬盘内部是否出现冲击异常,可以利用存储设备的操作系统自带的硬盘检测工具(如smartctl)获得这两个参数。
因此,在硬盘内部异常信息包括冲击异常信息的情况下,获取存储设备的冲击异常信息的具体方法还可以为:利用存储设备的操作系统自带的硬盘检测工具获取存储设备的硬盘的磁头飞行高度和冲击错误率。
上述步骤S12中,根据冲击异常信息判断存储设备的硬盘内部是否出现冲击异常,具体可以包括:如果存储设备的硬盘的磁头飞行高度超过预设高度阈值,和/或存储设备的硬盘的冲击错误率超过预设冲击错误率阈值,则确定存储设备的硬盘内部出现冲击异常,否则,确定存储设备的硬盘内部未出现冲击异常。
S13、当硬盘内部异常信息包括温度异常信息时,根据温度异常信息判断存储设备的硬盘内部是否出现温度异常。
本申请实施例中,温度异常信息包括:硬盘温度。可利用存储设备的操作系统自带的硬盘检测工具(如smartctl)获取存储设备的硬盘的温度。
因此,在硬盘内部异常信息包括温度异常信息的情况下,获取存储设备的温度异常信息的方法具体可以为:利用存储设备的操作系统自带的硬盘检测工具获取存储设备的硬盘的温度。
上述步骤S13中,根据温度异常信息判断存储设备的硬盘内部是否出现温度异常,具体可以包括:如果存储设备的硬盘的温度超过预设温度阈值,则确定存储设备的硬盘内部出现温度异常,否则,确定存储设备的硬盘内部未出现温度异常。
S14、当硬盘内部异常信息包括机械结构异常信息时,根据机械结构异常信息判断存储设备的硬盘内部是否出现机械结构异常。
在本申请的一个实施例中,机械结构异常信息可以包括:结构异常标志;结构异常标志具有两种取值,分别是:指示结构异常的值和指示结构正常的 值。机械结构异常标志可利用存储设备生产者提供的硬盘内部异常工具获得。存储设备生产者提供的硬盘内部异常工具可以判断出存储设备的硬件内部是否存在连接线问题、信号传输问题等,然后根据判断结果返回机械结构异常标志。
因此,在硬盘内部异常信息包括机械结构异常信息的情况下,获取存储设备的机械结构异常信息的方法具体可以为:利用存储设备生产者提供的硬盘内部异常工具获取存储设备的硬盘的结构异常标志值。
上述步骤S14中,根据机械结构异常信息判断存储设备的硬盘内部是否出现机械结构异常,具体可以包括:判断存储设备的硬盘的结构异常标志值是否是指示结构异常的值,如果是,则确定存储设备的硬盘内部出现机械结构异常,否则,确定存储设备的硬盘内部未出现机械结构异常。
在本申请的另一实施例中,机械结构异常信息可以包括参数:接口CRC写入错误计数(CRC_Error_Count)。此参数可用于判断连接线问题,可利用存储设备的操作系统自带的硬盘检测工具获得。
因此,在硬盘内部异常信息包括机械结构异常信息的情况下,获取存储设备的机械结构异常信息的方法具体可以为:利用存储设备的操作系统自带的硬盘检测工具获取存储设备的硬盘的接口CRC写入错误计数。
上述步骤S14中,根据机械结构异常信息判断存储设备的硬盘内部是否出现机械结构异常,具体可以包括:如果存储设备的硬盘的接口CRC写入错误计数超过预设计数阈值,则确定存储设备的硬盘内部出现机械结构异常,否则,确定存储设备的硬盘内部未出现机械结构异常。
S15、当硬盘内部异常信息包括气压异常信息时,根据气压异常信息判断存储设备的硬盘内部是否出现气压异常。
本申请实施例中,气压异常信息包括:气压异常标志;气压异常标志具有两种取值,分别是:指示气压异常的值(例如0)和指示气压正常的值(例如1)。气压异常标志可利用存储设备的操作系统自带的硬盘检测工具获得。
因此,在硬盘内部异常信息包括气压异常信息的情况下,获取存储设备的气压异常信息的方法具体可以为:利用存储设备的操作系统自带的硬盘检测工具获取存储设备的硬盘的气压异常标志值。
上述步骤S15中,根据气压异常信息判断存储设备的硬盘内部是否出现气压异常,具体包括:如果存储设备的硬盘的气压异常标志值是指示气压异常的值,则确定存储设备的硬盘内部出现气压异常,否则,确定存储设备的硬盘内部未出现气压异常。
以上步骤S11至S15的执行不分先后顺序,并且可以是依次执行的,也 可以是并行执行的,还是可以是交替执行的。
步骤3022、当存储设备的硬盘内部发生任意一种异常类型的硬盘异常时,确定存储设备的硬盘内部异常。
本申请实施例中,由于任意一种异常类型的硬盘异常都可能导致硬盘不可用,因此,不论硬盘内部异常信息包括几种异常类型的异常信息,只要根据其中任意一种异常类型的异常信息确定存储设备的硬盘内部发生该种异常类型的硬盘异常(例如振动异常),则就认为存储设备的硬盘内部异常。
当确定存储设备的硬盘内部异常时,需要隔离存储设备的硬盘,不再将待存储数据存储到硬盘中,而是利用预先配置的存储空间暂时存储待存储数据,即执行步骤303。
步骤3023、当存储设备的硬盘内部未发生任何异常类型的硬盘异常时,确定存储设备的硬盘内部正常。
本申请实施例中,当存储设备的硬盘内部未发生振动异常、冲击异常、温度异常、机械结构异常、及气压异常中的任何一种异常类型的硬盘异常时,认为存储设备的硬盘内部正常。
当确定存储设备的硬盘内部正常时,不需要隔离存储设备的硬盘,因此可以直接将待存储数据存储到硬盘中,即执行步骤304。
步骤303、将待存储数据存储到预先配置的存储空间,并在确定存储设备的硬盘内部异常恢复后,从预先配置的存储空间读取待存储数据,将读取的待存储数据存储到存储设备的硬盘中。
在本申请实施例中,在将存储数据存储到预先配置的存储空间时,还会定期检测存储设备的硬盘内部是否从异常中恢复(即恢复正常),当确定存储设备的硬盘内部从异常中恢复后,可以将此前存储到预先配置的存储空间中的待存储数据读取出来并存储到存储设备的硬盘中,此过程中可利用断点续传/断网续传等方法以保证数据存储的连续性和不丢失。
本申请实施例中,预先配置的存储空间可以是存储设备的缓存,也可以是预先添加到存储设备中系统卡(即存储设备的操作系统所在磁盘)或固态硬盘(SSD)。另外,当存储设备的硬盘是RAID磁盘阵列中的一个磁盘时,预先配置的存储空间可以是RAID磁盘阵列的一个热备盘,这种情况下,当存储设备的硬盘内部异常时,在用该热备盘替代存储设备的硬盘存储数据之前,可以将存储设备的硬盘从磁盘阵列中剔除出去,当存储设备的硬盘异常恢复后,再重新将存储设备的硬盘添加到RAID磁盘阵列中。
步骤304、将待存储数据存储到存储设备的硬盘中。
从图3所示本申请实施例可以看出,本申请中在获取存储设备的硬盘内 部异常信息后,根据硬盘内部异常信息中的每种异常类型的异常信息判断存储设备的硬盘是否发生该种异常类型的硬盘异常,从而在确定存储设备的硬盘发生任意一种异常类型的硬盘异常,均判定存储设备的硬盘内部异常,并在判定存储设备的硬盘异常时,利用预先配置的存储空间存储待存储数据,而不是继续向硬盘写数据,可以起到隔离硬盘以保护其不会在异常情况下继续被使用而造成更大损害的目的,同时也可以达到在存储设备的硬盘出现异常时保护数据不丢失的目的,且实现成本较低。另外,本申请中,通过分别根据每种异常类型的异常信息判断存储设备的硬盘是否发生该种异常类型的硬盘异常,可以在确定存储设备的硬盘内部异常时,同时确定存储设备的硬盘内部异常的异常类型,从而可以有助于工作人员后续对硬盘的修复。
以上用三个实施例对本申请提供的数据存储方法进行了详细说明,在实际应用中,数据存储过程具体可以如图4所示,一方面,硬盘异常检测模块41定期利用存储设备生产者提供的硬盘内部异常工具或存储设备的操作系统自带的硬盘检测工具获取硬盘内部异常信息,并据此判定硬盘内部是否出现异常,将判定结果(也即异常检测结果)通知给业务数据存储模块42,例如可以设置一个能够被硬盘异常检测模块41和业务数据存储模块42访问的硬盘异常标志,硬盘异常检测模块41可以通过对此硬盘异常标志设置指示硬盘异常的值或指示硬盘正常的值来通知异常检测结果;另一方面,业务数据存储模块42在存储数据时,根据硬盘异常标志来确定硬盘是否出现异常,并根据硬盘内部是否出现异常来确定如何进行存储,具体地,当硬盘内部正常时,直接将待存储数据存储到硬盘中,当硬盘内部出现异常时,对硬盘实施隔离保护,将待存储数据存储到预先配置的存储空间(如缓存、系统卡、SSD等)中,并在硬盘内部异常恢复后,通过断点续传等技术手段,将存储到预先配置的存储空间的待存储数据重新存回到硬盘中。
以上对本申请实施例数据存储方法进行了详细说明,本申请还提供了一种数据存储装置,以下结合图5进行详细说明。
参见图5,图5是本申请实施例数据存储装置的结构示意图,该装置应用于存储设备,如图5所示,该装置500包括:处理器501、以及与处理器501通过总线相连的非瞬时计算机可读存储介质502;
非瞬时计算机可读存储介质502,存储有可被处理器501执行的一个或多个计算机程序;处理器501执行一个或多个计算机程序时实现以下步骤:
获取存储设备的硬盘内部异常信息;
根据硬盘内部异常信息判断存储设备的硬盘内部是否异常;
判定存储设备的硬盘内部异常,则将待存储数据存储到预先设定的存储 空间,并在确定存储设备的硬盘内部异常恢复后,从预先设定的存储空间读取待存储数据,将读取的待存储数据存储到存储设备的硬盘中;
判定存储设备的硬盘内部正常,则将待存储数据存储到存储设备的硬盘中。
图5所示装置中,
处理器501,获取存储设备的硬盘内部异常信息时,用于:
利用存储设备生产者提供的硬盘内部异常工具获取存储设备的硬盘内部异常信息,或者,利用存储设备的操作系统自带的硬盘检测工具获取存储设备的硬盘内部异常信息。
图5所示装置中,
硬盘内部异常信息包括以下异常类型的异常信息的任意组合:振动异常信息、冲击异常信息、温度异常信息、机械结构异常信息、气压异常信息;
处理器501,根据硬盘内部异常信息判断存储设备的硬盘内部是否异常,包括:
根据硬盘内部异常信息包括的每种异常类型的异常信息,确定硬盘内部是否发生该种异常类型的硬盘异常;
当存储设备的硬盘内部发生任意一种异常类型的硬盘异常时,确定存储设备的硬盘内部异常;
当存储设备的硬盘内部未发生任何异常类型的硬盘异常时,确定存储设备的硬盘内部正常。
图5所示装置中,
振动异常信息包括:振动强度和振动异常日志;
处理器501,获取存储设备的振动异常信息时,用于:利用存储设备生产者提供的硬盘内部异常工具获取存储设备的硬盘当前时间的振动强度,当振动强度超过预设强度阈值时,获取存储设备的硬盘在当前时间之前第一预设时长内的振动异常日志;
处理器501,根据振动异常信息判断存储设备的硬盘内部是否出现振动异常,包括:统计存储设备的硬盘在当前时间之前第一预设时长内的振动异常日志中振动强度超过预设强度阈值的记录数与总记录条数的比例,如果比例超过预设比例阈值,则确定存储设备的硬盘内部出现振动异常,否则,确定存储设备的硬盘内部未出现振动异常;
或者,
振动异常信息包括:数据定位错误率和读写定位时间;
处理器501,获取存储设备的振动异常信息时,用于:利用存储设备的操 作系统自带的硬盘检测工具获取存储设备的硬盘的数据定位错误率和读写定位时间;
处理器501,根据振动异常信息判断存储设备的硬盘内部是否出现振动异常,包括:如果存储设备的硬盘的数据定位错误率超过预设定位错误率阈值,和/或存储设备的硬盘的读写定位时间超过预设定位时间阈值,则确定存储设备的硬盘内部出现振动异常,否则,确定存储设备的硬盘内部未出现振动异常。
图5所示装置中,
冲击异常信息包括:冲击异常日志;
处理器501,获取存储设备的冲击异常信息时,用于:利用存储设备生产者提供的硬盘内部异常工具获取存储设备的硬盘在当前时间之前第二预设时长内的冲击异常日志;
处理器501,根据冲击异常信息判断存储设备的硬盘内部是否出现冲击异常,包括:判断存储设备的硬盘在当前时间之前第二预设时长内的冲击异常日志中是否有冲击异常记录,如果是,则确定存储设备的硬盘内部出现冲击异常,否则,确定存储设备的硬盘内部未出现冲击异常;
或者,
冲击异常信息包括:磁头飞行高度和冲击错误率;
处理器501,获取存储设备的冲击异常信息时,用于:利用存储设备的操作系统自带的硬盘检测工具获取存储设备的硬盘的磁头飞行高度和冲击错误率;
处理器501,根据冲击异常信息判断存储设备的硬盘内部是否出现冲击异常,包括:如果存储设备的硬盘的磁头飞行高度超过预设高度阈值,和/或存储设备的硬盘的冲击错误率超过预设冲击错误率阈值,则确定存储设备的硬盘内部出现冲击异常,否则,确定存储设备的硬盘内部未出现冲击异常。
图5所示装置中,
温度异常信息包括:硬盘温度;
处理器501,获取存储设备的温度异常信息时,用于:利用存储设备的操作系统自带的硬盘检测工具获取存储设备的硬盘的温度;
处理器501,根据温度异常信息判断存储设备的硬盘内部是否出现温度异常,包括:如果存储设备的硬盘的温度超过预设温度阈值,则确定存储设备的硬盘内部出现温度异常,否则,确定存储设备的硬盘内部未出现温度异常。
图5所示装置中,
机械结构异常信息包括:结构异常标志;结构异常标志具有两种取值, 分别是:指示结构异常的值和指示结构正常的值;
处理器501,获取存储设备的机械结构异常信息时,用于:利用存储设备生产者提供的硬盘内部异常工具获取存储设备的硬盘的结构异常标志值;
处理器501,根据机械结构异常信息判断存储设备的硬盘内部是否出现机械结构异常,包括:判断存储设备的硬盘的结构异常标志值是否是指示结构异常的值,如果是,则确定存储设备的硬盘内部出现机械结构异常,否则,确定存储设备的硬盘内部未出现机械结构异常;
或者,
机械结构异常信息包括:接口CRC写入错误计数;
处理器501,获取存储设备的机械结构异常信息时,用于:利用存储设备的操作系统自带的硬盘检测工具获取存储设备的硬盘的接口CRC写入错误计数;
处理器501,根据机械结构异常信息判断存储设备的硬盘内部是否出现机械结构异常,包括:如果存储设备的硬盘的接口CRC写入错误计数超过预设计数阈值,则确定存储设备的硬盘内部出现机械结构异常,否则,确定存储设备的硬盘内部未出现机械结构异常。
图5所示装置中,
气压异常信息包括:气压异常标志;气压异常标志具有两种取值,分别是:指示气压异常的值和指示气压正常的值;
处理器501,获取存储设备的气压异常信息时,用于:利用存储设备的操作系统自带的硬盘检测工具获取存储设备的硬盘的气压异常标志值;
处理器501,根据气压异常信息判断存储设备的硬盘内部是否出现气压异常,包括:如果存储设备的硬盘的气压异常标志值是指示气压异常的值,则确定存储设备的硬盘内部出现气压异常,否则,确定存储设备的硬盘内部未出现气压异常。
图5所示装置中,
预先配置的存储空间为存储设备的缓存、系统卡、或固态硬盘SSD;
或者,存储设备的硬盘为一RAID磁盘阵列中的磁盘,预先配置的存储空间为RAID磁盘阵列的热备盘。
本申请实施例还提供了非瞬时计算机可读存储介质,非瞬时计算机可读存储介质存储指令,指令在由处理器执行时使得处理器执行如图1、图2、图3的数据存储方法中的步骤。
以上仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保 护的范围之内。

Claims (11)

  1. 一种数据存储方法,应用于存储设备,其特征在于,该方法包括:
    获取所述存储设备的硬盘内部异常信息;
    根据所述硬盘内部异常信息判断所述存储设备的硬盘内部是否异常;
    判定所述存储设备的硬盘内部异常,则将待存储数据存储到预先配置的存储空间,并在确定所述存储设备的硬盘内部异常恢复后,从预先配置的存储空间读取待存储数据,将读取的待存储数据存储到所述存储设备的硬盘中;
    判定所述存储设备的硬盘内部正常,则将待存储数据存储到所述存储设备的硬盘中。
  2. 根据权利要求1所述的方法,其特征在于,
    获取所述存储设备的硬盘内部异常信息的方法为:
    利用所述存储设备生产者提供的硬盘内部异常工具获取所述存储设备的硬盘内部异常信息,或者,利用所述存储设备的操作系统自带的硬盘检测工具获取所述存储设备的硬盘内部异常信息。
  3. 根据权利要求1所述的方法,其特征在于,
    所述硬盘内部异常信息包括以下异常类型的异常信息的任意组合:振动异常信息、冲击异常信息、温度异常信息、机械结构异常信息、气压异常信息;
    所述根据所述硬盘内部异常信息判断所述存储设备的硬盘内部是否异常,包括:
    根据所述硬盘内部异常信息包括的每种异常类型的异常信息,确定所述硬盘内部是否发生该种异常类型的硬盘异常;
    当所述存储设备的硬盘内部发生任意一种异常类型的硬盘异常时,确定所述存储设备的硬盘内部异常;
    当所述存储设备的硬盘内部未发生任何异常类型的硬盘异常时,确定所述存储设备的硬盘内部正常。
  4. 根据权利要求3所述的方法,其特征在于,
    所述振动异常信息包括:振动强度和振动异常日志;
    获取所述存储设备的振动异常信息的方法为:利用所述存储设备生产者提供的硬盘内部异常工具获取所述存储设备的硬盘当前时间的振动强度,当振动强度超过预设强度阈值时,获取所述存储设备的硬盘在当前时间之前第一预设时长内的振动异常日志;
    所述根据所述振动异常信息判断所述存储设备的硬盘内部是否出现振动异常,包括:统计所述存储设备的硬盘在当前时间之前第一预设时长内的振 动异常日志中振动强度超过预设强度阈值的记录数与总记录条数的比例,如果所述比例超过预设比例阈值,则确定所述存储设备的硬盘内部出现振动异常,否则,确定所述存储设备的硬盘内部未出现振动异常;
    或者,
    所述振动异常信息包括:数据定位错误率和读写定位时间;
    获取所述存储设备的振动异常信息的方法为:利用所述存储设备的操作系统自带的硬盘检测工具获取所述存储设备的硬盘的数据定位错误率和读写定位时间;
    所述根据所述振动异常信息判断所述存储设备的硬盘内部是否出现振动异常,包括:如果所述存储设备的硬盘的数据定位错误率超过预设定位错误率阈值,和/或所述存储设备的硬盘的读写定位时间超过预设定位时间阈值,则确定所述存储设备的硬盘内部出现振动异常,否则,确定所述存储设备的硬盘内部未出现振动异常。
  5. 根据权利要求3所述的方法,其特征在于,
    所述冲击异常信息包括:冲击异常日志;
    获取所述存储设备的冲击异常信息的方法为:利用所述存储设备生产者提供的硬盘内部异常工具获取所述存储设备的硬盘在当前时间之前第二预设时长内的冲击异常日志;
    所述根据所述冲击异常信息判断所述存储设备的硬盘内部是否出现冲击异常,包括:判断所述存储设备的硬盘在当前时间之前第二预设时长内的冲击异常日志中是否有冲击异常记录,如果是,则确定所述存储设备的硬盘内部出现冲击异常,否则,确定所述存储设备的硬盘内部未出现冲击异常;
    或者,
    所述冲击异常信息包括:磁头飞行高度和冲击错误率;
    获取所述存储设备的冲击异常信息的方法为:利用所述存储设备的操作系统自带的硬盘检测工具获取所述存储设备的硬盘的磁头飞行高度和冲击错误率;
    所述根据所述冲击异常信息判断所述存储设备的硬盘内部是否出现冲击异常,包括:如果所述存储设备的硬盘的磁头飞行高度超过预设高度阈值,和/或所述存储设备的硬盘的冲击错误率超过预设冲击错误率阈值,则确定所述存储设备的硬盘内部出现冲击异常,否则,确定所述存储设备的硬盘内部未出现冲击异常。
  6. 根据权利要求3所述的方法,其特征在于,
    所述温度异常信息包括:硬盘温度;
    获取所述存储设备的温度异常信息的方法为:利用所述存储设备的操作系统自带的硬盘检测工具获取所述存储设备的硬盘的温度;
    所述根据所述温度异常信息判断所述存储设备的硬盘内部是否出现温度异常,包括:如果所述存储设备的硬盘的温度超过预设温度阈值,则确定所述存储设备的硬盘内部出现温度异常,否则,确定所述存储设备的硬盘内部未出现温度异常。
  7. 根据权利要求3所述的方法,其特征在于,
    所述机械结构异常信息包括:结构异常标志;所述结构异常标志具有两种取值,分别是:指示结构异常的值和指示结构正常的值;
    获取所述存储设备的机械结构异常信息的方法为:利用所述存储设备生产者提供的硬盘内部异常工具获取所述存储设备的硬盘的结构异常标志值;
    所述根据所述机械结构异常信息判断所述存储设备的硬盘内部是否出现机械结构异常,包括:判断所述存储设备的硬盘的结构异常标志值是否是指示结构异常的值,如果是,则确定所述存储设备的硬盘内部出现机械结构异常,否则,确定所述存储设备的硬盘内部未出现机械结构异常;
    或者,
    所述机械结构异常信息包括:接口CRC写入错误计数;
    获取所述存储设备的机械结构异常信息的方法为:利用所述存储设备的操作系统自带的硬盘检测工具获取所述存储设备的硬盘的接口CRC写入错误计数;
    所述根据所述机械结构异常信息判断所述存储设备的硬盘内部是否出现机械结构异常,包括:如果所述存储设备的硬盘的接口CRC写入错误计数超过预设计数阈值,则确定所述存储设备的硬盘内部出现机械结构异常,否则,确定所述存储设备的硬盘内部未出现机械结构异常。
  8. 根据权利要求3所述的方法,其特征在于,
    所述气压异常信息包括:气压异常标志;所述气压异常标志具有两种取值,分别是:指示气压异常的值和指示气压正常的值;
    获取所述存储设备的气压异常信息的方法为:利用所述存储设备的操作系统自带的硬盘检测工具获取所述存储设备的硬盘的气压异常标志值;
    所述根据所述气压异常信息判断所述存储设备的硬盘内部是否出现气压异常,包括:如果所述存储设备的硬盘的气压异常标志值是指示气压异常的值,则确定所述存储设备的硬盘内部出现气压异常,否则,确定所述存储设备的硬盘内部未出现气压异常。
  9. 根据权利要求1所述的方法,其特征在于,
    所述预先配置的存储空间为所述存储设备的缓存、系统卡、或固态硬盘SSD;
    或者,所述存储设备的硬盘为一RAID磁盘阵列中的磁盘,所述预先配置的存储空间为所述RAID磁盘阵列的热备盘。
  10. 一种数据存储装置,应用于存储设备,其特征在于,该装置包括:处理器、以及与所述处理器通过总线相连的非瞬时计算机可读存储介质;
    所述非瞬时计算机可读存储介质,存储有可被所述处理器执行的一个或多个计算机程序;所述处理器执行所述一个或多个计算机程序时实现以下步骤:
    获取所述存储设备的硬盘内部异常信息;
    根据所述硬盘内部异常信息判断所述存储设备的硬盘内部是否异常;
    判定所述存储设备的硬盘内部异常,则将待存储数据存储到预先设定的存储空间,并在确定所述存储设备的硬盘内部异常恢复后,从预先设定的存储空间读取待存储数据,将读取的待存储数据存储到所述存储设备的硬盘中;
    判定所述存储设备的硬盘内部正常,则将待存储数据存储到所述存储设备的硬盘中。
  11. 一种非瞬时计算机可读存储介质,所述非瞬时计算机可读存储介质存储指令,其特征在于,所述指令在由处理器执行时使得所述处理器执行如权利要求1至9中任一权项所述的数据存储方法中的步骤。
PCT/CN2021/077949 2020-02-26 2021-02-25 一种数据存储方法、装置及存储介质 WO2021170048A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010118424.3 2020-02-26
CN202010118424.3A CN113311990A (zh) 2020-02-26 2020-02-26 一种数据存储方法、装置及存储介质

Publications (1)

Publication Number Publication Date
WO2021170048A1 true WO2021170048A1 (zh) 2021-09-02

Family

ID=77369948

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/077949 WO2021170048A1 (zh) 2020-02-26 2021-02-25 一种数据存储方法、装置及存储介质

Country Status (2)

Country Link
CN (1) CN113311990A (zh)
WO (1) WO2021170048A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116069590A (zh) * 2023-01-09 2023-05-05 黑龙江愚公软件科技有限公司 一种基于人工智能的计算机数据安全监测系统及方法

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101379562A (zh) * 2006-02-06 2009-03-04 索尼株式会社 信息处理装置、摄像装置、信息处理方法以及计算机程序
CN102521058A (zh) * 2011-12-01 2012-06-27 北京威视数据系统有限公司 Raid组磁盘数据预迁移方法
CN103970638A (zh) * 2013-02-01 2014-08-06 国际商业机器公司 用于存档和备份存储的选择性监控的系统和方法
CN107526651A (zh) * 2016-06-21 2017-12-29 深圳中电长城信息安全系统有限公司 一种磁盘阵列备份的方法和系统
US20180018233A1 (en) * 2016-07-15 2018-01-18 Samsung Electronics Co., Ltd. Memory system for performing raid recovery and a method of operating the memory system
CN108234465A (zh) * 2017-12-26 2018-06-29 创新科存储技术有限公司 一种分布式文件系统中应对异常的冗余方法和装置
CN109614297A (zh) * 2018-12-10 2019-04-12 浪潮(北京)电子信息产业有限公司 数据保护方法、装置、设备、系统及计算机可读存储介质
US20190310916A1 (en) * 2018-04-06 2019-10-10 International Business Machines Corporation Dynamically merging parity data for multiple data stripes
CN112181298A (zh) * 2020-09-25 2021-01-05 杭州宏杉科技股份有限公司 阵列访问方法、装置、存储设备及机器可读存储介质
CN112346895A (zh) * 2019-08-09 2021-02-09 株式会社东芝 磁盘装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874299A (zh) * 2017-05-16 2018-11-23 中兴通讯股份有限公司 数据传输方法及装置、存储介质

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101379562A (zh) * 2006-02-06 2009-03-04 索尼株式会社 信息处理装置、摄像装置、信息处理方法以及计算机程序
CN102521058A (zh) * 2011-12-01 2012-06-27 北京威视数据系统有限公司 Raid组磁盘数据预迁移方法
CN103970638A (zh) * 2013-02-01 2014-08-06 国际商业机器公司 用于存档和备份存储的选择性监控的系统和方法
CN107526651A (zh) * 2016-06-21 2017-12-29 深圳中电长城信息安全系统有限公司 一种磁盘阵列备份的方法和系统
US20180018233A1 (en) * 2016-07-15 2018-01-18 Samsung Electronics Co., Ltd. Memory system for performing raid recovery and a method of operating the memory system
CN108234465A (zh) * 2017-12-26 2018-06-29 创新科存储技术有限公司 一种分布式文件系统中应对异常的冗余方法和装置
US20190310916A1 (en) * 2018-04-06 2019-10-10 International Business Machines Corporation Dynamically merging parity data for multiple data stripes
CN109614297A (zh) * 2018-12-10 2019-04-12 浪潮(北京)电子信息产业有限公司 数据保护方法、装置、设备、系统及计算机可读存储介质
CN112346895A (zh) * 2019-08-09 2021-02-09 株式会社东芝 磁盘装置
CN112181298A (zh) * 2020-09-25 2021-01-05 杭州宏杉科技股份有限公司 阵列访问方法、装置、存储设备及机器可读存储介质

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116069590A (zh) * 2023-01-09 2023-05-05 黑龙江愚公软件科技有限公司 一种基于人工智能的计算机数据安全监测系统及方法
CN116069590B (zh) * 2023-01-09 2023-10-24 甘肃昊润科技信息有限公司 一种基于人工智能的计算机数据安全监测系统及方法

Also Published As

Publication number Publication date
CN113311990A (zh) 2021-08-27

Similar Documents

Publication Publication Date Title
Ma et al. RAIDShield: characterizing, monitoring, and proactively protecting against disk failures
EP2778926B1 (en) Hard disk data recovery method, device and system
US7917810B2 (en) Method for detecting problematic disk drives and disk channels in a RAID memory system based on command processing latency
US9047219B2 (en) Storage system, storage control device, and storage control method
US7360112B2 (en) Detection and recovery of dropped writes in storage devices
US7707460B2 (en) Method, apparatus and program storage device for protecting data writes in a data storage device
US7761660B1 (en) Identifying suspect disks
US10606490B2 (en) Storage control device and storage control method for detecting storage device in potential fault state
JP5634528B2 (ja) ストレージ装置及びストレージ装置の電源障害検出方法
US20110314325A1 (en) Storage apparatus and method of detecting power failure in storage apparatus
US7925926B2 (en) Disk array apparatus, computer-readable recording medium having disk array apparatus control program recorded thereon, and disk array apparatus control method
CN112181298B (zh) 阵列访问方法、装置、存储设备及机器可读存储介质
WO2023226380A1 (zh) 一种磁盘处理方法、系统及电子设备
US8843781B1 (en) Managing drive error information in data storage systems
US11947413B2 (en) Dynamic system log preprocessing
US8782465B1 (en) Managing drive problems in data storage systems by tracking overall retry time
WO2021170048A1 (zh) 一种数据存储方法、装置及存储介质
CN108170375B (zh) 一种分布式存储系统中的超限保护方法和装置
EP1717811A2 (en) Method and apparatus for time correlating deffects found on hard disks
JP2014048782A (ja) 情報処理装置、及び情報処理装置の障害処理方法
CN106990918A (zh) 触发raid阵列重建的方法及装置
Tsai et al. A study of soft error consequences in hard disk drives
US8001425B2 (en) Preserving state information of a storage subsystem in response to communication loss to the storage subsystem
JP4627327B2 (ja) 異常判定装置
JP2880701B2 (ja) ディスクサブシステム

Legal Events

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

Ref document number: 21760044

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21760044

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 21760044

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 28.02.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21760044

Country of ref document: EP

Kind code of ref document: A1