Variable magnetic recording system and method, server and storage medium
Through the interactive interface and software configuration of the monitor and processor, flexible switching of PMR and SMR magnetic recording modes is achieved, solving the problems of high cost and complex management in a single mode of hard disk, improving the flexibility and compatibility of hard disks, and reducing the difficulty and cost of hardware transformation.
Patent Information
- Application Number
- CN202510668962.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-22
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2045-05-22
AI Technical Summary
Existing hard disks usually only support a single magnetic recording mode, which leads to users who need to purchase multiple types of equipment when facing diversified needs, increasing deployment costs and management complexity, and technical solutions that try to achieve multi-mode switching are difficult to popularize due to the complex hardware transformation.
Select the target memory and magnetic recording mode through the display interactive interface, and use the processor to modify the magnetic recording mode of the memory to achieve flexible switching between PMR and SMR. It adopts software configuration instead of hardware transformation, and combines servo signal generation and BIOS optimization to support mode switching.
It realizes the flexibility to switch magnetic recording mode without complex hardware transformation, reduces cost and design difficulty, improves the flexibility and compatibility of hard disks, and improves storage efficiency and user experience.
Smart Images

Figure CN120581044A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of server data storage, and in particular to a variable magnetic recording system, method, server, and storage medium. Background Art
[0002] As the demand for big data storage grows, hard drive technology continues to evolve. Traditional perpendicular magnetic recording (PMR) technology significantly improves storage density by arranging data bits perpendicularly on the disk surface. However, as storage demand continues to increase, PMR technology is approaching the physical limits of hard drives. To overcome this limitation, shingled magnetic recording (SMR) technology has emerged. Hard drive technology has evolved from traditional perpendicular magnetic recording (PMR) to shingled magnetic recording (SMR) to increase storage density. Although PMR significantly improves storage efficiency by arranging data bits vertically, it is gradually approaching its physical limits. SMR further increases storage density by overlapping tracks, but this results in reduced write performance and increased complexity. Most hard drives currently on the market only support a single magnetic recording mode, limiting users' ability to flexibly switch according to actual needs and increasing costs and management complexity.
[0003] Although related technologies attempt to implement multi-mode magnetic recording to solve these problems, these solutions usually require complex hardware modifications or additional control circuits, which are accompanied by high costs and increased design complexity, while also lacking flexibility and compatibility. Summary of the Invention
[0004] The present application provides a variable magnetic recording system, method, server and storage medium to at least solve the problem in related technologies that complex hardware modifications or additional control circuits are usually required to switch the target magnetic recording mode, which is costly and difficult to design.
[0005] The present application provides a variable magnetic recording system, comprising: at least one memory and a read-write device for the memory; a display, wherein the interactive interface of the display displays operation options of the at least one memory, and determines a target memory and a target magnetic recording mode based on the operation options, wherein the target magnetic recording mode includes a perpendicular magnetic recording mode or a shingled magnetic recording mode; a processor, wherein the processor is connected to the read-write device and the display, modifies the current magnetic recording mode of the target memory based on the target magnetic recording mode, and sends the target magnetic recording mode to the read-write device.
[0006] The present application also provides a server comprising the above-mentioned variable magnetic recording system.
[0007] The present application also provides a variable magnetic recording method, which is applied to the above-mentioned variable magnetic recording system, including: determining the target memory and target magnetic recording mode on the interactive interface of the display; switching the current memory of the server to the target memory, and modifying the current magnetic recording mode of the target memory based on the target magnetic recording mode; sending the target magnetic recording mode to the read-write device, and the read-write device writing or reading data on the target hard disk based on the target magnetic recording mode.
[0008] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the above-mentioned variable magnetic recording methods are implemented.
[0009] Through this application, since the user can determine the target memory and target magnetic recording mode based on the operation options through the interactive interface of the display, and then use the processor to modify the current magnetic recording mode of the target memory based on the target magnetic recording mode, it is possible to switch the target magnetic recording mode through software configuration without complex hardware modification. Therefore, it can solve the technical problems that related technologies usually require complex hardware modification or additional control circuits to switch the target magnetic recording mode, and the high cost and design difficulty, and achieve the technical effect of flexible switching of the target magnetic recording mode at low cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0011] Figure 1 A schematic diagram of magnetic recording of a PMR hard disk in the related art;
[0012] Figure 2 A schematic diagram of magnetic recording of an SMR hard disk in the related art;
[0013] Figure 3 A schematic diagram of SMR hard drive track design in related technology;
[0014] Figure 4 A schematic structural diagram of a variable magnetic recording system provided in an embodiment of the present application;
[0015] Figure 5 A schematic diagram of a variable servo signal writing process according to an embodiment of the present application;
[0016] Figure 6A schematic diagram of a server BIOS design process provided for one embodiment of the present application;
[0017] Figure 7 A schematic flow chart of a variable magnetic recording method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0018] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0019] It should be noted that, in the description of this application, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. The terms "first," "second," etc., in this application are used to distinguish similar objects, and are not used to describe a particular order or sequence.
[0020] In the prior art, there are two main magnetic recording modes: hard disk perpendicular magnetic recording and hard disk shingled magnetic recording. Specifically:
[0021] like Figure 1 As shown, PMR is a type of perpendicular magnetic recording in hard disks that improves the storage density and performance of hard disks by changing the magnetization direction from horizontal to vertical.
[0022] PMR hard drives have the following advantages:
[0023] High storage density: The vertically aligned magnetization direction can reduce the interference between magnetic domains, allowing for smaller magnetic domain size, thereby increasing storage density.
[0024] High performance: The perpendicular magnetization direction reduces interference between magnetic domains, improving read and write speed and stability.
[0025] Compatibility: PMR hard drives are compatible with traditional hard drive interfaces and can be easily integrated into existing systems.
[0026] Despite its widespread adoption and tremendous success, PMR technology is approaching its physical limits for further increasing storage density. Due to factors such as head write width, thermal stability, and signal-to-noise ratio, further reductions in magnetic domain size will face technical bottlenecks, leading to significantly increased costs and diminishing returns.
[0027] like Figure 2 As shown in the figure, SMR is a shingled magnetic recording method for hard drives, which increases the storage capacity of hard drives by overlapping tracks. SMR hard drives partially overlap tracks like roof tiles, taking advantage of the fact that the write width of the head is larger than the read width, so that newly written data overlaps the edges of adjacent tracks, thereby increasing the storage density of the hard drive. Its disk channel design is as follows Figure 3 shown.
[0028] The working mode of SMR hard drive is: data writing. Due to track overlap, writing new data may affect adjacent tracks. Therefore, it is necessary to read and cache the affected data first, then write the new data, and finally write back the cached data; data reading: the reading operation is similar to that of traditional hard drives. The head directly positions itself at the target track to read data.
[0029] The advantages of SMR hard drives are:
[0030] Significantly improve storage density: Compared with PMR, SMR can increase storage density by 20% to 40%, which is very suitable for large-capacity storage needs.
[0031] Lower costs: Higher single-disk capacity means lower cost per TB, making it suitable for scenarios such as large-scale data centers and cold data archiving.
[0032] Suitable for sequential writes: SMR performs well in tasks with large amounts of sequential writes (such as video surveillance and log backups). However, it has disadvantages such as lower write performance and increased latency due to complex data management.
[0033] Despite this, SMR still has disadvantages that cannot be ignored, as follows:
[0034] Write performance degrades significantly: Frequent read-modify-write operations increase latency and lead to poor random write performance.
[0035] Complex data management mechanisms: Dedicated firmware algorithms are required to manage data layout, garbage collection, and caching strategies.
[0036] Not suitable for high-concurrency write scenarios: It performs poorly in applications that are sensitive to input / output response time, such as databases and virtualization.
[0037] To overcome these limitations, related technologies attempt to develop multi-mode magnetic recording hard drives, meaning that a single hard drive can switch between PMR and SMR. However, such solutions generally face the following challenges:
[0038] Complex hardware modification: requires additional servo signal modules, head control logic and dedicated circuits;
[0039] Complex firmware logic: It needs to support advanced functions such as data structure conversion, formatting, and garbage collection in dual modes;
[0040] High manufacturing cost: Additional hardware and complex control logic significantly increase product cost;
[0041] Compatibility and stability issues: Switching between different modes may cause data loss or read and write abnormalities, affecting system stability.
[0042] In summary, PMR and SMR are the two main trends in current hard drive magnetic recording technology, suited to high-performance and high-capacity applications, respectively. However, because existing hard drives typically support only a single mode, users must purchase multiple devices to meet diverse needs, increasing deployment costs and management complexity. Furthermore, attempts to implement multi-mode switching have proven difficult to popularize due to the complex hardware and firmware modifications involved.
[0043] In response to the defects of the above-mentioned related technologies, this application proposes a variable magnetic recording system, method, server and storage medium to solve the technical problems that the related technologies usually require complex hardware modifications or additional control circuits to switch the target magnetic recording mode, which are costly and difficult to design. The details will be described in detail below.
[0044] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0045] Specifically, Figure 4 A structural diagram of a variable magnetic recording system provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the system includes: a memory 101 , a read / write device 102 , a display 103 and a processor 104 .
[0046] Among them, there is at least one memory 101 and its read-write device 102, the interactive interface of the display 103 displays the operation options of at least one memory 101, and determines the target memory 101 and the target magnetic recording mode based on the operation options, wherein the target magnetic recording mode includes a perpendicular magnetic recording mode or a shingled magnetic recording mode; the processor 104 is connected to the read-write device 102 and the display 103, modifies the current magnetic recording mode of the target memory 101 based on the target magnetic recording mode, and sends the target magnetic recording mode to the read-write device 102.
[0047] It can be understood that the embodiment of the present application includes a display 103, a memory 101, a memory read-write device 102 and a processor 104. The interactive interface of the display 103 can present operation options of at least one memory. Through the display 103, the user can select a target memory and its corresponding target magnetic recording mode in at least one memory 101 according to the operation options, that is, a perpendicular magnetic recording mode or a shingled magnetic recording mode. The processor 104 is connected to the display 103 and the read-write device 102, and can modify the current magnetic recording mode of the target memory according to the target magnetic recording mode selected by the user, and send the target mode to the read-write device 102 to realize the switching of the magnetic recording mode.
[0048] In an embodiment of the present application, before the processor 104 modifies the current magnetic recording mode of the target memory based on the target magnetic recording mode, it reads the magnetic recording mode switching function of the target memory. If the target memory does not support the magnetic recording mode switching function, the operation option of the target memory is closed.
[0049] Among them, the magnetic recording mode switching function is the ability of the hard disk to switch between its different magnetic recording modes, such as PMR and SMR. Not all hard disks support this switching function.
[0050] It can be understood that before modifying the magnetic recording mode of the target storage according to the user's selection, the embodiment of the present application first needs to detect whether the target storage selected by the user has the ability to switch the magnetic recording mode. If the detection result shows that the target storage does not support this function, the relevant operation options need to be automatically disabled to avoid attempting to perform operations that cannot be completed, thereby ensuring the stability and reliability of the system; for hard disks that support this function, users can select the magnetic recording mode that best suits their needs through display 103 to achieve the best balance between performance and storage efficiency.
[0051] In an embodiment of the present application, the processor 104 includes a first processor and a second processor, wherein the first processor is provided with a basic input and output system, and the second processor is provided with an operating system of the server. The first processor switches the magnetic recording mode of the target memory during the server startup phase, and the second processor switches the magnetic recording mode of the target memory during the server operation phase.
[0052] The Basic Input / Output System (BIOS) is used to perform hardware initialization and basic settings when the system starts.
[0053] It can be understood that the processor 104 of the embodiment of the present application is configured with two processors: a first processor and a second processor. The first processor is used for controlling the server startup phase, and a basic input and output system runs on it; the second processor runs the server's operating system and is responsible for task processing in the running phase. When it is necessary to switch the magnetic recording mode of the target memory, the first processor completes the initial mode setting or switching at the beginning of the server startup; and after the server enters the normal operating state, if the magnetic recording mode needs to be adjusted, the second processor dynamically switches according to the configuration in the operating system, thereby realizing flexible control of the magnetic recording mode of the memory in different system stages.
[0054] In the embodiment of the present application, the first processor 104 checks the current magnetic recording mode of the target memory 101 through the basic input and output system.
[0055] It can be understood that the first processor of the embodiment of the present application detects and initializes the hardware status through its built-in basic input and output system during the server startup process. At this stage, the first processor will access the relevant hardware information of the target memory and read its current magnetic recording mode to ensure that the current magnetic recording mode of the memory can be accurately obtained, providing a basis for judging whether to execute the magnetic recording mode switch subsequently.
[0056] In the embodiment of the present application, the second processor 104 checks the current magnetic recording mode of the target memory 101 through an operating system or a pipeline tool.
[0057] Among them, management tools are a type of software running on the operating system, used to monitor, configure or maintain hardware devices, such as the magnetic recording mode of the hard disk and other information.
[0058] It can be understood that in the embodiment of the present application, during the normal operation stage of the server, the second processor accesses the relevant information of the target memory through the loaded operating system or dedicated management tool, usually with the help of the driver or management software interface provided by the operating system, to send a query instruction to the target memory to obtain its current magnetic recording mode, thereby allowing the user to dynamically understand the working status of the storage device while the system is running, and providing a basis for whether to switch the magnetic recording mode subsequently.
[0059] In the embodiment of the present application, the processor 104 identifies the current magnetic recording mode of the target memory, and switches the current magnetic recording mode of the target memory to the target magnetic recording mode if the current magnetic recording mode is inconsistent with the target magnetic recording mode.
[0060] It can be understood that the processor 104 of the embodiment of the present application modifies the current magnetic recording mode of the target memory according to the target magnetic recording mode selected by the user. First, the magnetic recording mode currently used by the target memory is identified by the first processor and the second processor, and then compared with the target magnetic recording mode selected by the user; if the two are inconsistent, it means that the current magnetic recording mode does not meet the user's expectations. The processor 104 will trigger the mode switching process to change the magnetic recording mode of the target memory from the current mode to the target mode to achieve the configuration required by the user.
[0061] In an embodiment of the present application, after the processor 104 modifies the current magnetic recording mode of the target memory based on the target magnetic recording mode, it sends a formatting instruction to the target memory. The target memory responds to the formatting instruction and is formatted. After the formatting is completed, the read-write device 102 writes or reads data on the target hard disk based on the target magnetic recording mode.
[0062] Formatting is the process of clearing the data structure inside the storage device and reorganizing it according to new rules. It is performed after the magnetic recording mode is switched to ensure compatibility.
[0063] It can be understood that in the embodiment of the present application, after the processor 104 completes the modification of the magnetic recording mode of the target memory, it will send a formatting instruction to the target memory. After receiving the formatting instruction, the target memory starts to perform the formatting operation, clears the original data structure and rebuilds the storage structure according to the target magnetic recording mode. After the formatting is completed, the read-write device 102 will read or write data to the target hard disk according to the new target magnetic recording mode, thereby realizing the normal use of the memory 101 after the configuration change, ensuring the stability of the system and the accuracy of data access after the magnetic recording mode is switched.
[0064] In an embodiment of the present application, the variable magnetic recording system further includes: an interactive device for obtaining interactive input from a user and selecting an operation option based on the interactive input.
[0065] The interactive device includes a hardware or software interface used by the user to exchange information with the system, such as a touch screen, keyboard, mouse or graphical user interface, which is used to receive user operation instructions.
[0066] It can be understood that the embodiment of the present application also includes an interactive device for receiving user operation instructions. When the user inputs corresponding interactive information through the interactive device, such as clicking an interface button, the system will recognize the user's intention based on the input and select the corresponding magnetic recording mode control function from multiple available operation options. For example, if the user selects "switch to shingled magnetic recording mode (SMR)", the system will trigger subsequent processes to complete the switching of the target memory magnetic recording mode, thereby realizing the user's flexible control and real-time configuration of the magnetic recording mode.
[0067] According to the variable magnetic recording system proposed in the embodiment of the present application, the user can determine the target memory and the target magnetic recording mode based on the operation options through the interactive interface of the display, and then use the processor to modify the current magnetic recording mode of the target memory based on the target magnetic recording mode. This realizes the switching of the target magnetic recording mode through software configuration without the need for complex hardware modification, thereby achieving the technical effect of flexible switching of the target magnetic recording mode at low cost.
[0068] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method.
[0069] The variable magnetic recording system is further described below through a specific embodiment.
[0070] This embodiment proposes a variable magnetic recording servo system. The system is designed with modules for generating and switching different servo signals, as well as for writing servo signals. The system includes two sets of servo signals, PMR and SMR, and establishes a writing process for variable servo signals for selection and autonomous switching by the server system. The specific modules are as follows:
[0071] (1) Servo signal generation module
[0072] The servo system includes built-in PMR and SMR servo signal generation modules. PMR servo signals support traditional perpendicular magnetic recording, while SMR servo signals support shingled magnetic recording. Both modules are implemented using firmware algorithms to generate servo signals based on the user-selected mode.
[0073] (2) Servo signal switching module
[0074] The servo signal switching module is responsible for switching the servo signal based on the user-selected magnetic recording mode (PMR or SMR). This module receives instructions from the server BIOS, selects the corresponding servo signal generation module, and transmits the generated signal to the hard drive read / write head.
[0075] (3) Servo signal writing module
[0076] When the user selects PMR mode, the hard drive servo system generates PMR servo signals and writes them to the disk surface to implement PMR magnetic recording. When the user selects SMR mode, the hard drive servo system generates SMR servo signals and writes them to the disk surface to implement SMR magnetic recording.
[0077] The writing process of variable servo signal is as follows Figure 5As shown, the following steps are included:
[0078] Step S201: Select hard disk magnetic recording mode
[0079] The hard drive selects the desired recording mode based on instructions from the BIOS. During system startup or user configuration, the BIOS sends instructions to the hard drive controller, which automatically selects the target recording mode, either perpendicular or shingled. This step is the starting point of the entire process, determining the direction of subsequent servo signal generation and read / write strategies.
[0080] Step S202: Determine the type of target magnetic recording mode
[0081] Determine whether the target magnetic recording mode is a PMR mode or an SMR mode. If it is a PMR mode, proceed to step S203; if it is an SMR mode, proceed to step S207.
[0082] Step S203: Compare the target magnetic recording mode with the current magnetic recording mode of the hard disk. If the current magnetic recording mode is the PMR mode, which is the same as the target magnetic recording mode, directly return to the mode setting completion; if the current magnetic recording mode is the SMR mode, which is different from the current magnetic recording mode, proceed to step S204 to switch the servo signal.
[0083] Step S204: Servo signal switching
[0084] The system selects and switches to the corresponding servo signal generation module according to the target magnetic recording mode. According to the target magnetic recording mode, the system selects and activates the corresponding servo signal generation module. The servo signal is used to guide the magnetic head to accurately position the specified position on the track.
[0085] Step S205: Generating servo signals
[0086] The servo signals generated based on the target magnetic recording pattern are then transmitted to the hard drive read / write head. These signals typically contain key information such as synchronization marks, track numbers, and position error signals.
[0087] Step S206: Servo signal writing
[0088] The generated target servo signal is written to the hard disk platter, usually the servo sector, and the servo signal is verified. If the verification passes, the servo signal switching is completed to ensure its accuracy and integrity.
[0089] Step S207: Compare the target magnetic recording mode with the current magnetic recording mode of the hard disk. If the current magnetic recording mode is the SMR mode, which is the same as the target magnetic recording mode, directly return to the mode setting completion; if the current magnetic recording mode is the PMR mode, which is different from the current magnetic recording mode, proceed to step S208 to switch the servo signal.
[0090] Step S208: Servo signal switching
[0091] Select and switch to the corresponding servo signal generation module according to the target magnetic recording mode.
[0092] Step S209: Generating servo signals
[0093] Generates corresponding servo signals according to the target magnetic recording pattern and transmits the signals to the hard disk read / write head.
[0094] Step S210: Servo signal writing
[0095] The generated target servo signal is written into the hard disk and the servo signal is verified. If the verification passes, the servo signal switching is completed.
[0096] The following details the server BIOS design of this embodiment. To enable flexible switching between perpendicular and shingled magnetic recording modes, this embodiment proposes a BIOS-based hard drive management mode. By optimizing the server's basic input and output system startup process and adding a functional module for hard drive magnetic recording mode management, users can select the target hard drive mode, switch servo signals, and perform formatting operations during system startup, thereby ensuring that the hard drive can operate normally in the specified magnetic recording mode. Specifically:
[0097] (1)BIOS boot options
[0098] When the server starts, users can select the target hard disk to be switched and set its magnetic recording mode (PMR or SMR) through the BIOS interface. The BIOS interface provides intuitive operation options, and users only need to select through the keyboard or mouse.
[0099] For example, during server startup, when the system enters the BIOS setup interface, users can access the newly added "Hard Drive Magnetic Recording Mode Settings" menu via keyboard or mouse. This menu provides the following functions: Target Drive Selection: Lists all currently connected hard drive devices, allowing users to select the target drive to configure; Magnetic Recording Mode Selection: Each target hard drive can be set to operate in either PMR or SMR mode; Real-time Status Display: Displays the selected hard drive's current magnetic recording mode and whether mode switching is supported.
[0100] (2) Mode setting and formatting
[0101] When the user selects PMR or SMR mode, the BIOS sends the corresponding instructions to the hard drive, triggering the hard drive's servo system to switch servo signals. The BIOS then initiates the hard drive formatting process, adapting the drive to the selected magnetic recording mode. This formatting process is controlled by the BIOS and is independent of the operating system. It supports low-level formatting or proprietary formatting, and can be performed in either a quick format or a full drive erase, depending on security requirements.
[0102] (3) Startup and operation
[0103] After formatting is complete, the server boots up normally and the hard disk runs in the magnetic recording mode selected by the user. The user can view the current mode of the hard disk through the operating system or management tools and switch it again as needed.
[0104] like Figure 6 The flowchart shown is a server BIOS design, where the hard disk is a HDD (Hard Disk Drive), and includes the following steps:
[0105] Step S301: The BIOS checks whether the hard drive supports changing the magnetic recording mode. If so, the BIOS enables the hard drive's magnetic recording mode switching function. If not, the BIOS disables the corresponding function. This detection method includes: querying the hard drive's firmware version and feature flags; attempting to send a mode switching test command to observe whether there is a response; and determining whether the hard drive supports PMR / SMR switching.
[0106] Step S302: If the hard disk supports modification of the magnetic recording mode, the BIOS enables the hard disk magnetic recording mode conversion function, and the hard disk returns to the function-on state.
[0107] Displays the "Magnetic Recording Mode Setting" option in the BIOS menu; allows users to select PMR / SMR mode; and prepares the underlying resources required for subsequent servo signal switching and formatting operations.
[0108] Step S303: Select the hard disk magnetic recording mode and return to the selection state.
[0109] Displays the selected hard drive name, capacity, current mode, target mode, etc.; prompts the user to confirm the operation to avoid accidental switching; if the user cancels or does not change, the subsequent process is skipped directly.
[0110] Step S304: Send a magnetic recording mode modification instruction to the hard disk, and the hard disk returns to the servo signal switching state.
[0111] Step S305: BIOS sends a formatting instruction to the hard disk, the hard disk is formatted, and the boot is completed.
[0112] Before formatting, clear the old data mapping table in the cache; rebuild the servo sector and track structure according to the new magnetic recording mode; after completion, verify whether the servo signal is written correctly; after formatting is complete, the BIOS returns control to the boot program; the boot program loads the operating system from the formatted hard disk; the system starts normally, and the hard disk runs in the new magnetic recording mode.
[0113] This embodiment achieves flexible switching between PMR and SMR magnetic recording modes by optimizing the hard disk servo system and server BIOS design. Users can independently select PMR or SMR mode according to actual needs without purchasing different types of hard disks, reducing costs and management complexity and improving hard disk flexibility. In scenarios where high storage density is required, users can select SMR mode, and in scenarios where high write performance is required, users can select PMR mode, thereby maximizing the storage efficiency of the hard disk and improving storage efficiency. This embodiment does not require complex hardware modification, and mode switching can be achieved through software configuration, reducing manufacturing costs and design difficulty and simplifying hardware design. The design scheme of this embodiment is highly compatible with existing hard disk technology and server systems. Users can enjoy the new mode switching function without replacing hardware, thereby enhancing compatibility. Through the intuitive BIOS interface and simple operation process, users can easily complete mode switching, improving the usage experience and user experience.
[0114] An embodiment of the present application further provides a server comprising the above-mentioned variable magnetic recording system.
[0115] The embodiment of the present application also provides a variable magnetic recording method, Figure 7 A flow chart of a variable magnetic recording method provided in an embodiment of the present application is shown in FIG. Figure 7 As shown, the method includes the following steps:
[0116] In step S401, a target memory and a target magnetic recording mode are determined on an interactive interface of a display.
[0117] It can be understood that in the embodiment of the present application, on the display of the system, the user can browse the list of available storage devices through the interactive interface provided by it, and select one as the target storage device. At the same time, the interface also provides options for magnetic recording modes. The user can select the desired target magnetic recording mode according to actual needs, and then perform subsequent operations based on the user's selection, thereby realizing the configuration update of the magnetic recording mode of the target storage device.
[0118] In step S402, the current storage of the server is switched to the target storage, and the current magnetic recording mode of the target storage is modified based on the target magnetic recording mode.
[0119] It can be understood that after the embodiment of the present application confirms the target memory and the target magnetic recording mode in the previous step, during the operation of the server, the current memory originally used is switched to the target memory according to user needs. Subsequently, based on the target magnetic recording mode set by the user, the current magnetic recording mode of the newly selected target memory is detected and modified. If the target memory supports mode switching and the current mode does not match, the magnetic recording mode conversion operation is performed to make it conform to the target mode selected by the user, thereby realizing flexible adjustment and optimization of the storage configuration.
[0120] In step S403, the target magnetic recording mode is sent to the read / write device, and the read / write device writes or reads data on the target hard disk based on the target magnetic recording mode.
[0121] It can be understood that after the embodiment of the present application completes the switching of the magnetic recording mode, the system sends the target magnetic recording mode information set by the user to the read-write device. After receiving the mode information, the read-write device will adjust its own read-write strategy according to the magnetic recording method, such as the head positioning method, data encoding rules, etc., and then perform data reading or writing operations on the target hard disk. This process ensures that the read-write device can adapt to the target magnetic recording mode, thereby correctly and efficiently accessing the data in the target hard disk.
[0122] According to the variable magnetic recording method provided in the embodiment of the present application, the user can determine the target memory and the target magnetic recording mode based on the operation options through the interactive interface of the display, and then use the processor to modify the current magnetic recording mode of the target memory based on the target magnetic recording mode. This realizes the switching of the target magnetic recording mode through software configuration without the need for complex hardware modification, thereby achieving the technical effect of flexible switching of the target magnetic recording mode at low cost.
[0123] For the description of the features in the embodiment corresponding to the variable magnetic recording method, reference can be made to the relevant description of the embodiment corresponding to the variable magnetic recording system, which will not be repeated here.
[0124] An embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in the above variable magnetic recording method embodiment.
[0125] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps in the above-mentioned variable magnetic recording method embodiment when running.
[0126] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0127] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of any of the above-mentioned variable magnetic recording method embodiments are implemented.
[0128] An embodiment of the present application also provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above-mentioned variable magnetic recording method embodiments are implemented.
[0129] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0130] The above describes in detail the variable magnetic recording system, method, server, and storage medium provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only intended to help understand the method and core concept of the present application. It should be noted that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
Claims
1. A variable magnetic recording system, characterized in that: include: at least one memory and a device for reading and writing the memory; a display, wherein an interactive interface of the display displays operation options of the at least one memory, and determines a target memory and a target magnetic recording mode based on the operation options, wherein the target magnetic recording mode includes a perpendicular magnetic recording mode or a shingled magnetic recording mode; A processor is connected to the read-write device and the display, modifies a current magnetic recording mode of the target memory based on the target magnetic recording mode, and sends the target magnetic recording mode to the read-write device.
2. The variable magnetic recording system according to claim 1, wherein: Before modifying the current magnetic recording mode of the target memory based on the target magnetic recording mode, the processor reads the magnetic recording mode switching function of the target memory, and closes the operation option of the target memory if the target memory does not support the magnetic recording mode switching function.
3. The variable magnetic recording system according to claim 1, wherein: The processor identifies a current magnetic recording mode of the target memory, and switches the current magnetic recording mode of the target memory to the target magnetic recording mode if the current magnetic recording mode is inconsistent with the target magnetic recording mode.
4. The variable magnetic recording system according to claim 1, wherein: The processor includes a first processor and a second processor, wherein the first processor is provided with a basic input and output system, and the second processor is provided with an operating system of the server. The first processor switches the magnetic recording mode of the target memory during the server startup phase, and the second processor switches the magnetic recording mode of the target memory during the server operation phase.
5. The variable magnetic recording system according to claim 3, wherein: The first processor checks the current magnetic recording mode of the target memory through a basic input and output system.
6. The variable magnetic recording system according to claim 3, wherein: The second processor checks the current magnetic recording mode of the target storage through the operating system or pipeline tool.
7. The variable magnetic recording system according to claim 1, wherein: Also includes: The interactive device obtains the user's interactive input and selects the operation option based on the interactive input.
8. A server, characterized in that: A variable magnetic recording system comprising the variable magnetic recording system according to any one of claims 1 to 6.
9. A variable magnetic recording method, characterized in that: The method is applied to the variable magnetic recording system according to any one of claims 1 to 6, wherein the method comprises: determining a target memory and a target magnetic recording mode on an interactive interface of a display; Switching the current storage of the server to the target storage, and modifying the current magnetic recording mode of the target storage based on the target magnetic recording mode; The target magnetic recording pattern is sent to the read-write device, and the read-write device writes or reads data on the target hard disk based on the target magnetic recording pattern.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the variable magnetic recording method according to claim 9 when executed by a processor.
Citation Information
Patent Citations
Method and system for switching access mode of hard drive
CN102981775A
Maximize SMR drive capacity
CN106558320A
Random write instruction processing method, SMR hard disk and computer equipment
CN116048430A
Data back-storage optimization method and device based on tile overlapping, equipment and medium
CN117591011A
Firmware mode switching method and device, electronic equipment and storage medium
CN117707436A