CN114721603B - Electric data processing and identifying method for avoiding disk drift - Google Patents

Electric data processing and identifying method for avoiding disk drift Download PDF

Info

Publication number
CN114721603B
CN114721603B CN202210650849.8A CN202210650849A CN114721603B CN 114721603 B CN114721603 B CN 114721603B CN 202210650849 A CN202210650849 A CN 202210650849A CN 114721603 B CN114721603 B CN 114721603B
Authority
CN
China
Prior art keywords
disk
control unit
central control
drift
controls
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210650849.8A
Other languages
Chinese (zh)
Other versions
CN114721603A (en
Inventor
许永森
许永蒙
池昌平
王瑞环
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Haolian Information Technology Co ltd
Original Assignee
Zhejiang Haolian Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Haolian Information Technology Co ltd filed Critical Zhejiang Haolian Information Technology Co ltd
Priority to CN202210650849.8A priority Critical patent/CN114721603B/en
Publication of CN114721603A publication Critical patent/CN114721603A/en
Application granted granted Critical
Publication of CN114721603B publication Critical patent/CN114721603B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • G06F3/0676Magnetic disk device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • 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/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket

Abstract

The invention relates to an electric data processing and identifying method for avoiding disk drift, which comprises the following steps: the obtaining unit obtains a universal unique identifier UUID of each disk; the configuration unit self-defines a label for each disk, establishes a mapping relation between the label of the disk and a universal unique identifier UUID, and binds and stores a binding relation between a disk slot position and a corresponding disk identifier name; when the system is restarted, the central control unit mounts the disk according to the disk symbol name corresponding to the disk slot position; when the detection unit detects that the disk deviates from the disk slot position, the central control unit controls the read-write position of the magnetic head according to the deviated displacement data of the disk so as to eliminate drift influence or mount the disk again. The central control unit processes the disk drift in a targeted manner according to the displacement data of the disk deviation, so that the times of reloading the disk are reduced, on one hand, the influence on a user is reduced, on the other hand, the load of a system is reduced, and the running speed is increased.

Description

Electric data processing and identifying method for avoiding disk drift
Technical Field
The invention relates to the technical field of computers, in particular to an electric data processing and identifying method for avoiding disk drift.
Background
When Linux manages a plurality of disks (taking sata disks as an example), the naming rule of/dev/sda,/dev/sdb … is given to the disks in sequence according to the order of loading of the disks, so that after a disk is hot plugged or restarted, the drive letter may change, which may affect some applications that depend on the drive letter to work, such as mount according to the drive letter in fstab. To solve the problem of disk drive symbol drifting,
a disk is a storage device of a server, and in order to meet storage requirements, a plurality of disk devices are generally present in the server. In a Linux system of a server, for a plurality of disk devices, a kernel generally allocates disk identifiers in the order of scanning to hard disk devices during system startup, for example, in the order of/dev/sda,/dev/sdb,/dev/sdc, etc., and grows sequentially. However, after the system is started, in some cases, the disk needs to be hot-plugged again, for example, when the disk fails, the failed disk needs to be unplugged, repaired or replaced and then be unplugged again. However, when the hard disk is managed based on the single disk raid0 mode or the JBOD mode in the prior art, the system reallocates the drive letter to the disk after the disk is hot-plugged. For example, when a certain disk is inserted for the first time, the drive letter is/dev/sdb, and after the disk is pulled out and inserted again, the drive letter may become/dev/sde, which is the drive letter drifting.
In the Linux system, the drive letter of the disk usually has system software and/or application software with direct or indirect reference relationship, if the drive letter of the disk drifts, the corresponding system software and/or application software can be greatly influenced, and the operation of changing the reference drive letter of the system software and/or application software is tedious and takes a long time.
Chinese patent publication No.: CN103677650B discloses a method and apparatus for preventing and processing disk identifier drift, in the disclosed solution, when the device management tool Udev monitors a Uevent for loading a disk, the device management tool Udev determines whether the disk identifier drift occurs on the disk, and if it is detected that the allocated disk identifier drifts, unloads a mount point corresponding to the original disk identifier to release the reference of the original disk in the kernel, and reloads the disk in a manner of simulating hot plug to make the kernel module name of the disk consistent with the device file name; however, in the using process of the user, the disk is directly mounted again without detecting and classifying the drifting degree of the disk, which not only causes inconvenience to the user, but also increases the load of the system and reduces the running speed.
Disclosure of Invention
Therefore, the invention provides an electric data processing and identifying method for avoiding disk drift, which is used for overcoming the problems that in the prior art, disk drift is directly reloaded without detecting and classifying the drift degree of the disk, so that the use of a user is inconvenient, the load of a system is increased, and the running speed is reduced.
In order to achieve the above object, the present invention provides an electrical data processing and identifying method for avoiding disk drift, comprising:
step S1, the obtaining unit obtains the universal unique identifier UUID of each disk;
step S2, the configuration unit self-defines a label for each disk, establishes the mapping relation between the label of the disk and the UUID, and binds the disk slot position and the corresponding disk symbol name and stores the binding relation when the mapping relation is established;
step S3, the central control unit mounts the disk according to the disk signature name corresponding to the disk slot position when the system is restarted;
step S4, the central control unit judges the mounting position of the disk according to the UUID when receiving the disk adding information transmitted by the detection unit;
step S5, when receiving the disk deletion information sent by the detection unit, the central control unit unloads the mount point of the disk in the system to release the disk slot, and controls the configuration unit to delete the drive letter name corresponding to the disk;
step S6, when the detection unit detects that the disk deviates from the disk slot, the central control unit controls the read/write position of the magnetic head according to the displacement data of the disk deviation to eliminate the drift effect or to re-mount the disk.
Further, in step S3, the central control unit controls the detection unit to detect the disk tag corresponding to the disk slot when the system is restarted,
if the corresponding disk label is detected, the central control unit mounts the disk corresponding to the disk label;
if the corresponding disk label is not detected, the central control unit controls the detection unit to detect the universal unique identification code UUID of the disk corresponding to the disk slot position so as to mount the corresponding disk.
Further, in the step S4, the central control unit controls the detection unit to detect the universally unique identifier UUID of the disk to determine whether the disk is a disk recorded by the system upon receiving the disk addition information delivered by the detection unit,
if the detected universal unique identifier UUID of the disk exists in the mapping relation, the central control unit judges that the disk is a disk recorded by the system and matches the disk with the bound disk slot position for mounting;
and if the detected universal unique identifier UUID of the disk does not exist in the mapping relation, the central control unit block judges that the disk is a newly added disk, controls the configuration unit to define a tag for the newly added disk and binds an available disk slot position for mounting.
Further, in step S6, when the detecting unit detects that the disk deviates from the disk slot, the central control unit determines the disk wandering degree according to the displacement data d of the disk deviation to select a corresponding processing method, the central control unit is provided with a first track, a second track and a third track which are annularly distributed with the disk slot as a center, wherein the radius of the first track is R1, the radius of the second track is R2, the radius of the third track is R3, R1 < R2 < R3,
if d is less than or equal to R1, the central control unit judges that the disk drift is primary drift and controls the read-write position of the magnetic head to eliminate the drift influence;
if the d is more than R1 and less than or equal to R2, the central control unit judges that the disk drift is secondary drift and detects the running time required by the disk drive to store one update;
and if the d is more than R2 and less than or equal to R3, the central control unit judges that the disk drift is three-level drift, and the central control unit judges that the disk drift cannot be corrected, redetects the disk label corresponding to the disk slot and reloads the disk.
Further, when the central control unit determines that the disk drifts to be primary drifts and the disk is located in the first magnetic track, the central control unit determines whether to correct the offset according to whether the disk is in a read-write period; the central control unit is provided with a first correction offset value c1,
if the magnetic disk is in a read-write period, the central control unit judges that the offset does not need to be corrected, controls the read-write position of the magnetic head to be matched with the address data of the magnetic disk so as to eliminate drift influence, and after the information of the magnetic disk is updated, the central control unit modifies the address data by using a first correction offset value c1 so as to correct the offset;
if the magnetic disk is not in the read-write period, the central control unit uses the first correction offset value c1 to modify the address data to correct the offset.
Further, when the central control unit determines that the disk drift is secondary drift and the disk is located in the second track, the central control unit detects the running time t required by the disk driver to store one update and determines whether the running time required by the disk driver to store one update meets the standard according to the t; the central control unit is provided with a standard running time t0 of the disk drive and a second correction offset value c2, wherein c2 is more than c1, the central control unit compares t with t0,
if t is not more than t0, the central control unit judges that the running time required by the disk drive for storing one-time update meets the standard and controls the read-write position of the magnetic head to be matched with the address data of the disk so as to eliminate the drift influence, and the second correction offset value c2 is used for correcting the address data of the disk after the disk information is updated;
if t is greater than t0, the central control unit determines that the running time required by the disk drive to save one update does not meet the standard, redetects the disk label corresponding to the disk slot, and reloads the disk.
Further, when the central control unit determines that the disk drift is secondary drift and corrects the address data of the disk by using the second correction offset value c2, the central control unit calculates the difference between the displacement data d of the disk deviation and the first track radius R1 and simultaneously calculates the difference between the displacement data d of the disk deviation and the second track radius R2, the central control unit is provided with a first traction coefficient alpha 1 and a second traction coefficient alpha 2, wherein alpha 1 < alpha 2,
if d-R1 is not less than R2-d, the central control unit corrects the second correction offset value c2 to a corresponding value by using the first traction coefficient alpha 1, and the corrected offset value is recorded as c2 ', and c 2' = c2 multiplied by alpha 1 is set;
if d-R1 > R2-d, the central control unit corrects the second correction offset value c2 to a corresponding value using the second traction coefficient α 2, and the corrected offset value is denoted as c2 ", and c 2" = c2 × α 2 is set.
Further, in step S5, when the central control unit receives the disk deletion information sent by the detection unit, the central control unit controls the detection unit to detect whether the mount point of the disk in the system is unloaded, and if the disk is in the mount state, the central control unit unloads the corresponding drive letter to release the disk slot, and at the same time, controls the configuration unit to delete the drive letter name corresponding to the disk.
Further, when the file system on the disk is reformatted, the custom tag corresponding to the disk disappears, the central control unit detects the universal unique identifier UUID of the disk to determine the mounted disk when the system is restarted, and simultaneously the central control unit controls the configuration unit to redefine the custom tag for the disk, establish a new mapping relationship and bind with the corresponding disk slot.
Further, in step S2, the disc identifier name includes a universally unique identifier UUID and a custom label of the magnetic disc.
Compared with the prior art, the method has the advantages that the central control unit processes the disk drift in a targeted manner according to the displacement data of the disk deviation, so that the times of re-mounting the disk are reduced, on one hand, the influence on a user is reduced, on the other hand, the load of a system is reduced, and the running speed is increased.
Furthermore, each disk of the configuration unit is self-defined with a tag, when the system is restarted, the central control unit mounts the disk according to the self-defined tag, and if the corresponding disk tag cannot be detected, the central control unit mounts the corresponding disk according to the universal unique identification code UUID.
Furthermore, when the central control unit judges that the disk drift is the first-level drift, if the disk is in the period of being read and written, the central control unit corrects the offset after the disk information is updated, so that the influence of the disk drift on the use of a user is further reduced.
Furthermore, when the central control unit judges that the disk drift is the secondary drift, the central control unit judges whether the disk needs to be mounted again according to the running time required by one-time updating stored by the disk drive, so that the times of re-mounting the disk are reduced, and the influence of the disk drift on the use of a user is further reduced.
Further, when the central control unit determines that the disk drift is the secondary drift and corrects the address data of the disk by using the second correction offset value c2, the central control unit selects a corresponding traction coefficient according to the displacement data d of the disk deviation to correct the second correction offset value c2, so that the accuracy of drift correction is improved.
Drawings
FIG. 1 is a block diagram of a system for an electrical data processing identification method for disk drift avoidance according to the present invention;
FIG. 2 is a flow chart of an electrical data processing identification method for avoiding disk wander in accordance with the present invention.
Detailed Description
In order that the objects and advantages of the invention will be more clearly understood, the invention is further described below with reference to examples; it should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only for explaining the technical principles of the present invention, and do not limit the scope of the present invention.
It should be noted that in the description of the present invention, the terms of direction or positional relationship indicated by the terms "upper", "lower", "left", "right", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, which are only for convenience of description, and do not indicate or imply that the device or element must have a specific orientation, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present invention.
Furthermore, it should be noted that, in the description of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
Fig. 1 is a block diagram of a system for processing and identifying electrical data for avoiding disk drifting according to the present invention, which includes:
the acquisition unit is used for acquiring a universal unique identifier UUID of each disk;
the configuration unit is used for customizing a label for each disk and establishing a mapping relation between the label of the disk and the UUID (universal unique identifier);
the detection unit is used for detecting the information added or deleted by the disk and the drift data information of the disk;
the central control unit is respectively connected with the acquisition unit, the configuration unit and the detection unit and is used for controlling the detection unit to detect the disk label corresponding to the disk slot position so as to mount the disk corresponding to the disk label when the system is restarted, and if the corresponding disk label cannot be detected, the central control unit controls the detection unit to detect the universal unique identification code UUID of the disk corresponding to the disk slot position so as to mount the corresponding disk; the central control unit controls the detection unit to detect the universal unique identifier UUID of the disk when receiving the disk addition information transmitted by the detection unit so as to judge whether the disk is a disk recorded by the system; and when the detection unit detects that the disk deviates from the disk slot position, the central control unit judges the disk drifting degree according to the displacement data d of the disk deviation so as to select a corresponding processing method.
Referring to fig. 2, it is a flow chart of the electrical data processing and identifying method for avoiding disk drifting according to the present invention, including:
step S1, the obtaining unit obtains the universal unique identifier UUID of each disk;
step S2, the configuration unit self-defines a label for each disk, establishes the mapping relation between the label of the disk and the UUID, and binds the disk slot position and the corresponding disk symbol name and stores the binding relation when the mapping relation is established;
step S3, the central control unit mounts the disk according to the disk signature name corresponding to the disk slot position when the system is restarted;
step S4, the central control unit judges the mounting position of the disk according to the UUID when receiving the disk adding information transmitted by the detection unit;
step S5, the central control unit unloads the mounting point of the disk in the system to release the disk slot position when receiving the disk deleting information transmitted by the detection unit, and controls the configuration unit to delete the corresponding disk identifier name of the disk;
step S6, when the detecting unit detects that the disk deviates from the disk slot, the central control unit controls the read-write position of the magnetic head according to the displacement data of the disk deviation to eliminate the drift effect or to reload the disk.
The central control unit processes the disk drift in a targeted manner according to the displacement data of the disk deviation, so that the times of re-mounting the disk are reduced, on one hand, the influence on a user is reduced, on the other hand, the load of a system is reduced, and the running speed is increased.
Specifically, in step S3, the central control unit controls the detection unit to detect the disk tag corresponding to the disk slot when the system is restarted,
if the corresponding disk label is detected, the central control unit mounts the disk corresponding to the disk label;
if the corresponding disk label is not detected, the central control unit controls the detection unit to detect the universal unique identifier UUID of the disk corresponding to the disk slot position so as to mount the corresponding disk.
Specifically, in step S4, the central control unit controls the detection unit to detect the universally unique identifier UUID of the disk to determine whether the disk is a disk recorded by the system when receiving the disk addition information delivered by the detection unit,
if the detected universal unique identifier UUID of the disk exists in the mapping relation, the central control unit judges that the disk is a disk recorded by the system and matches the disk with the bound disk slot position for mounting;
if the detected universal unique identifier UUID of the disk does not exist in the mapping relation, the central control unit block judges that the disk is a newly added disk, controls the configuration unit to define a label for the newly added disk and binds an available disk slot position for mounting.
According to the invention, each disk of the configuration unit defines a label by self, when the system is restarted, the central control unit mounts the disk according to the self-defined label, and if the corresponding disk label cannot be detected, the central control unit mounts the corresponding disk according to the universal unique identifier UUID.
Specifically, in step S6, when the detecting unit detects that the disk deviates from the disk slot, the central control unit determines the disk wander degree according to the displacement data d of the disk deviation to select the corresponding processing method, and the central control unit is provided with a first track, a second track and a third track which are annularly distributed around the disk slot, wherein the radius of the first track is R1, the radius of the second track is R2, the radius of the third track is R3, R1 < R2 < R3,
if d is less than or equal to R1, the central control unit judges that the disk drift is primary drift and controls the read-write position of the magnetic head to eliminate the drift influence;
if the d is more than R1 and less than or equal to R2, the central control unit judges that the disk drift is secondary drift and detects the running time required by the disk drive to store one update;
and if the d is more than R2 and less than or equal to R3, the central control unit judges that the disk drift is three-level drift, and the central control unit judges that the disk drift cannot be corrected, redetects the disk label corresponding to the disk slot and reloads the disk.
Specifically, when the central control unit determines that the disk drifts to be primary drifts and the disk is located in the first magnetic track, the central control unit determines whether to correct the offset according to whether the disk is in a read-write period; the central control unit is provided with a first correction offset value c1,
if the magnetic disk is in a read-write period, the central control unit judges that the offset does not need to be corrected, controls the read-write position of the magnetic head to be matched with the address data of the magnetic disk so as to eliminate drift influence, and after the information of the magnetic disk is updated, the central control unit modifies the address data by using a first correction offset value c1 so as to correct the offset;
if the magnetic disk is not in the read-write period, the central control unit uses the first correction offset value c1 to modify the address data to correct the offset.
When the central control unit judges that the disk drift is the first-level drift, if the disk is in the period of being read and written, the central control unit corrects the offset after the disk information is updated, and the influence of the disk drift on the use of a user is further reduced.
Specifically, when the central control unit determines that the disk drift is secondary drift and the disk is located in the second track, the central control unit detects the running time t required by the disk drive to store one update and determines whether the running time required by the disk drive to store one update meets the standard according to the t; the central control unit is provided with a standard running time t0 of the disk drive and a second correction offset value c2, wherein c2 is more than c1, the central control unit compares t with t0,
if t is not more than t0, the central control unit judges that the running time required by the disk drive for storing one-time update meets the standard and controls the read-write position of the magnetic head to be matched with the address data of the disk so as to eliminate the drift influence, and the second correction offset value c2 is used for correcting the address data of the disk after the disk information is updated;
if t is greater than t0, the central control unit judges that the running time required by the disk drive to save one update is not in accordance with the standard, redetects the disk label corresponding to the disk slot position and reloads the disk.
When the central control unit judges that the disk drift is the secondary drift, the central control unit judges whether the disk needs to be mounted again according to the running time required by one-time updating stored by the disk driver, so that the times of re-mounting the disk are reduced, and the influence of the disk drift on the use of a user is further reduced.
Specifically, when the central control unit determines that the disk drift is secondary drift and corrects the address data of the disk by using the second correction offset value c2, the central control unit calculates the difference between the displacement data d of the disk deviation and the first track radius R1 and simultaneously calculates the difference between the displacement data d of the disk deviation and the second track radius R2, the central control unit is provided with a first traction coefficient alpha 1 and a second traction coefficient alpha 2, wherein alpha 1 < alpha 2,
if d-R1 is not less than R2-d, the central control unit corrects the second correction offset value c2 to a corresponding value by using the first traction coefficient alpha 1, and the corrected offset value is recorded as c2 ', and c 2' = c2 multiplied by alpha 1 is set;
if d-R1 > R2-d, the central control unit corrects the second correction offset value c2 to a corresponding value using the second traction coefficient α 2, and the corrected offset value is denoted as c2 ", and c 2" = c2 × α 2 is set.
When the central control unit judges that the disk drift is the secondary drift and corrects the address data of the disk by using the second correction offset value c2, the central control unit selects the corresponding traction coefficient according to the displacement data d deviated by the disk to correct the second correction offset value c2, so that the accuracy of drift correction is improved.
Specifically, in step S5, when the central control unit receives the disk deletion information sent by the detection unit, the central control unit controls the detection unit to detect whether the mount point of the disk in the system is unloaded, and if the disk is in the mount state, the central control unit unloads the corresponding drive letter to release the disk slot, and at the same time, controls the configuration unit to delete the drive letter name corresponding to the disk.
Specifically, when the file system on the disk is reformatted, the custom tag corresponding to the disk disappears, the central control unit detects the universal unique identifier UUID of the disk to determine the mounted disk when the system is restarted, and simultaneously the central control unit controls the configuration unit to re-define the tag for the disk, establish a new mapping relationship, and bind with the corresponding disk slot.
Specifically, in step S2, the disc identifier name includes a universally unique identifier UUID and a custom label of the magnetic disc.
So far, the technical solutions of the present invention have been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of the present invention is obviously not limited to these specific embodiments. Equivalent changes or substitutions of related technical features can be made by those skilled in the art without departing from the principle of the invention, and the technical scheme after the changes or substitutions can be within the protection scope of the invention.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention; various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. An electrical data processing identification method for avoiding disk wander, comprising:
step S1, the obtaining unit obtains the universal unique identifier UUID of each disk;
step S2, the configuration unit self-defines a label for each disk, establishes the mapping relation between the label of the disk and the UUID, and binds the disk slot position and the corresponding disk symbol name and stores the binding relation when the mapping relation is established;
step S3, the central control unit mounts the disk according to the disk signature name corresponding to the disk slot position when the system is restarted;
step S4, the central control unit judges the mounting position of the disk according to the UUID when receiving the disk adding information transmitted by the detection unit;
step S5, when receiving the disk deletion information sent by the detection unit, the central control unit unloads the mount point of the disk in the system to release the disk slot, and controls the configuration unit to delete the drive letter name corresponding to the disk;
step S6, when the detection unit detects that the disk deviates from the disk slot position, the central control unit controls the read-write position of the magnetic head according to the displacement data of the disk deviation to eliminate the drift influence or to re-mount the disk;
in step S6, when the detecting unit detects that the disk deviates from the disk slot, the central control unit determines the disk drifting degree according to the disk deviation displacement data d to select the corresponding processing method, the central control unit is provided with a first track, a second track and a third track which are annularly distributed around the disk slot, wherein the radius of the first track is R1, the radius of the second track is R2, the radius of the third track is R3, R1 < R2 < R3,
if d is less than or equal to R1, the central control unit judges that the disk drift is primary drift and controls the read-write position of the magnetic head to eliminate the drift influence;
if the d is more than R1 and less than or equal to R2, the central control unit judges that the disk drift is secondary drift and detects the running time required by the disk drive to store one update;
and if the d is more than R2 and less than or equal to R3, the central control unit judges that the disk drift is three-level drift, and the central control unit judges that the disk drift cannot be corrected, redetects the disk label corresponding to the disk slot and reloads the disk.
2. The electrical data processing and identifying method for avoiding disk wander as defined in claim 1, wherein in step S3, the central control unit controls the detecting unit to detect the disk tag corresponding to the disk slot when the system is restarted,
if the corresponding disk label is detected, the central control unit mounts the disk corresponding to the disk label;
if the corresponding disk label is not detected, the central control unit controls the detection unit to detect the universal unique identification code UUID of the disk corresponding to the disk slot position so as to mount the corresponding disk.
3. The electrical data processing identification method for avoiding disk wander as defined in claim 1, wherein in step S4, the central control unit controls the detection unit to detect the UUID to determine whether the disk is a system-recorded disk when receiving the disk-added information transmitted from the detection unit,
if the detected universal unique identifier UUID of the disk exists in the mapping relation, the central control unit judges that the disk is a disk recorded by the system and matches the disk with the bound disk slot position for mounting;
and if the detected universal unique identifier UUID of the disk does not exist in the mapping relation, the central control unit block judges that the disk is a newly added disk, controls the configuration unit to define a tag for the newly added disk and binds an available disk slot position for mounting.
4. The method according to claim 1, wherein when the central control unit determines that the disk drift is primary drift and the disk is located in the first track, the central control unit determines whether to correct the offset according to whether the disk is in a read-write period; the central control unit is provided with a first correction offset value c1,
if the magnetic disk is in a read-write period, the central control unit judges that the offset does not need to be corrected, controls the read-write position of the magnetic head to be matched with the address data of the magnetic disk so as to eliminate drift influence, and after the information of the magnetic disk is updated, the central control unit modifies the address data by using a first correction offset value c1 so as to correct the offset;
if the magnetic disk is not in the read-write period, the central control unit uses the first correction offset value c1 to modify the address data to correct the offset.
5. The method for identifying electrical data processing to avoid disk wander of claim 1, wherein when the central control unit determines that the disk wander is secondary wander and the disk is located in the second track, the central control unit detects a running time t required by the disk drive to save an update and determines whether the running time t required by the disk drive to save an update meets a standard according to t; the central control unit is provided with a standard running time t0 of the disk drive and a second correction offset value c2, wherein c2 is more than c1, the central control unit compares t with t0,
if t is not more than t0, the central control unit judges that the running time required by the disk drive for storing one-time update meets the standard and controls the read-write position of the magnetic head to be matched with the address data of the disk so as to eliminate the drift influence, and the second correction offset value c2 is used for correcting the address data of the disk after the disk information is updated;
if t is greater than t0, the central control unit judges that the running time required by the disk drive to save one update is not in accordance with the standard, redetects the disk label corresponding to the disk slot position and reloads the disk.
6. The electrical data processing identification method for avoiding disk wander of claim 5 wherein, when the central control unit determines that the disk wander is secondary wander and corrects the address data of the disk using the second correction offset value c2, the central control unit calculates a difference between the displacement data d of the disk deviation and the first track radius R1 and simultaneously calculates a difference between the displacement data d of the disk deviation and the second track radius R2, the central control unit being provided with a first traction coefficient α 1 and a second traction coefficient α 2, wherein α 1 < α 2,
if d-R1 is not less than R2-d, the central control unit corrects the second correction offset value c2 to a corresponding value by using the first traction coefficient alpha 1, and the corrected offset value is recorded as c2 ', and c 2' = c2 multiplied by alpha 1 is set;
if d-R1 > R2-d, the central control unit corrects the second correction offset value c2 to a corresponding value using the second traction coefficient α 2, and the corrected offset value is denoted as c2 ″, and sets c2 "= c2 × α 2.
7. The method for processing and identifying electrical data for avoiding disk wander of claim 1, wherein in step S5, when the central control unit receives the disk deletion information sent by the detection unit, the central control unit controls the detection unit to detect whether a mount point of the disk in the system is unloaded, and if the disk is in a mount state, the central control unit unloads the corresponding drive to release the disk slot, and controls the configuration unit to delete the drive name corresponding to the disk.
8. The electrical data processing and identifying method for avoiding disk drift according to claim 2, wherein when the file system on the disk is reformatted, the custom tag corresponding to the disk disappears, the central control unit detects the UUID of the universally unique identifier of the disk to determine the mounted disk when the system is restarted, and the central control unit controls the configuration unit to redefine the custom tag for the disk, establish a new mapping relationship, and bind with the corresponding disk slot.
9. The electrical data processing identification method for avoiding disk wander as described in claim 1, wherein in said step S2, said drive letter name comprises a universally unique identifier UUID and a custom label of the disk.
CN202210650849.8A 2022-06-10 2022-06-10 Electric data processing and identifying method for avoiding disk drift Active CN114721603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210650849.8A CN114721603B (en) 2022-06-10 2022-06-10 Electric data processing and identifying method for avoiding disk drift

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210650849.8A CN114721603B (en) 2022-06-10 2022-06-10 Electric data processing and identifying method for avoiding disk drift

Publications (2)

Publication Number Publication Date
CN114721603A CN114721603A (en) 2022-07-08
CN114721603B true CN114721603B (en) 2022-08-26

Family

ID=82232971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210650849.8A Active CN114721603B (en) 2022-06-10 2022-06-10 Electric data processing and identifying method for avoiding disk drift

Country Status (1)

Country Link
CN (1) CN114721603B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5354007A (en) * 1976-10-26 1978-05-17 Xerox Corp Method and device for collecting data track
US7145744B1 (en) * 2005-08-03 2006-12-05 Western Digital Technologies, Inc. Reducing spiral write time and clock track drift while writing spiral reference patterns to a disk of a disk drive
CN1988003A (en) * 2005-12-21 2007-06-27 株式会社东芝 Method and apparatus for head positioning control in a disk drive
CN101479791A (en) * 2006-06-29 2009-07-08 齐拉泰克斯技术有限公司 Method of controlling the position of a read/write head and apparatus for testing a read/write head
CN103677650A (en) * 2012-09-12 2014-03-26 北京百度网讯科技有限公司 Drive letter drifting preventing and treating method and device
JP2014199696A (en) * 2013-03-29 2014-10-23 株式会社日立ハイテクノロジーズ Magnetic read/write inspection method and apparatus thereof
US9520149B1 (en) * 2016-06-01 2016-12-13 Seagate Technology Llc Direct current magnetoresistive jog offset compensation
CN107239273A (en) * 2017-05-02 2017-10-10 杭州沃趣科技股份有限公司 A kind of disk drive binding method of server
CN108681468A (en) * 2018-05-21 2018-10-19 郑州云海信息技术有限公司 A kind of linux system disk unit binding method, device and server

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218180B (en) * 2013-05-14 2017-03-15 北京百度网讯科技有限公司 Disk localization method and positioner
CN105589690A (en) * 2015-12-11 2016-05-18 浪潮电子信息产业股份有限公司 Method for binding hard disk mounting sequence under Linux system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5354007A (en) * 1976-10-26 1978-05-17 Xerox Corp Method and device for collecting data track
US7145744B1 (en) * 2005-08-03 2006-12-05 Western Digital Technologies, Inc. Reducing spiral write time and clock track drift while writing spiral reference patterns to a disk of a disk drive
CN1988003A (en) * 2005-12-21 2007-06-27 株式会社东芝 Method and apparatus for head positioning control in a disk drive
CN101479791A (en) * 2006-06-29 2009-07-08 齐拉泰克斯技术有限公司 Method of controlling the position of a read/write head and apparatus for testing a read/write head
CN103677650A (en) * 2012-09-12 2014-03-26 北京百度网讯科技有限公司 Drive letter drifting preventing and treating method and device
JP2014199696A (en) * 2013-03-29 2014-10-23 株式会社日立ハイテクノロジーズ Magnetic read/write inspection method and apparatus thereof
US9520149B1 (en) * 2016-06-01 2016-12-13 Seagate Technology Llc Direct current magnetoresistive jog offset compensation
CN107239273A (en) * 2017-05-02 2017-10-10 杭州沃趣科技股份有限公司 A kind of disk drive binding method of server
CN108681468A (en) * 2018-05-21 2018-10-19 郑州云海信息技术有限公司 A kind of linux system disk unit binding method, device and server

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
IBM阵列存储系统逻辑漂移问题的解决方法;付喜春等;《石油仪器》;20070831(第04期);第81-83、120页 *
Stochastic Evaluation of Magnetic Head Wears in Hard Disk Drives;Yu Wang等;《IEEE Transactions on Magnetics》;20131203;第1-7页 *

Also Published As

Publication number Publication date
CN114721603A (en) 2022-07-08

Similar Documents

Publication Publication Date Title
US8069271B2 (en) Systems and methods for converting a media player into a backup device
US7818160B2 (en) Data backup devices and methods for backing up data
US7162496B2 (en) System and method for blind media support
EP0405925B1 (en) Method and apparatus for managing a shadow set of storage media
US7813913B2 (en) Emulation component for data backup applications
US7596676B2 (en) Method of inheriting information identifying virtual volume and storage system using the same
US7725611B2 (en) Method and apparatus for verifying data in a storage system
US6978363B2 (en) System and method to enable a legacy BIOS system to boot from a disk that includes EFI GPT partitions
EP1586997B1 (en) Method of data storage capacity allocation and management using one or more data storage drives
US7822595B2 (en) Systems and methods for selectively copying embedded data files
JP2007305122A (en) System and method for replacing contents addressable storage
US20070143096A1 (en) Data backup system including a data protection component
US8185673B2 (en) Information processing apparatus, and method for controlling the same
US20080028004A1 (en) Apparatus and Method for Protecting System Data on Computer Hard-Disk
US20050144254A1 (en) Data transfer method and system
EP1826663A2 (en) Apparatus, method and computer program for processing information
US7469261B2 (en) Apparatus and method for protecting system data on computer hard-disk
US6052764A (en) Computer data restoration assembly and associated method
US20050216684A1 (en) Information recording medium, data processing apparatus, and recording region setting method of information recording medium
CN114721603B (en) Electric data processing and identifying method for avoiding disk drift
US20030079101A1 (en) Automatic adjustment of host protected area by BIOS
US6684293B1 (en) Methods and computer readable media for preserving unique critical information during data imaging
JP3028055B2 (en) PC card system and program rewriting method
Cisco Switch flash Commands
Cisco Switch flash Commands

Legal Events

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