CN112667158A - Storage method and system of magnetic disk - Google Patents

Storage method and system of magnetic disk Download PDF

Info

Publication number
CN112667158A
CN112667158A CN202011563250.8A CN202011563250A CN112667158A CN 112667158 A CN112667158 A CN 112667158A CN 202011563250 A CN202011563250 A CN 202011563250A CN 112667158 A CN112667158 A CN 112667158A
Authority
CN
China
Prior art keywords
disk
preset
rule
storage pool
serial number
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.)
Pending
Application number
CN202011563250.8A
Other languages
Chinese (zh)
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.)
Shenzhen Innovation Technology Co ltd
Original Assignee
Shenzhen Innovation 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 Shenzhen Innovation Technology Co ltd filed Critical Shenzhen Innovation Technology Co ltd
Priority to CN202011563250.8A priority Critical patent/CN112667158A/en
Publication of CN112667158A publication Critical patent/CN112667158A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a storage method and a storage system of a magnetic disk, which comprise the following steps: acquiring attribute information of a disk; judging whether the attribute information meets a preset rule or not; if the requirement is met, the disk is added into the storage pool according to the preset rule, a new disk can be automatically added into the storage system without manual operation, and therefore the management efficiency of the disk is improved.

Description

Storage method and system of magnetic disk
Technical Field
The present invention relates to the field of storage technologies, and in particular, to a method and a system for storing a disk.
Background
A large number of disks are stored in the storage system, and an operator can effectively monitor the disks on the management page. And if a certain disk is in a non-working state, namely the disk is disconnected or cannot be read and written, the disk is considered to be damaged. At this time, the operator replaces the damaged disk with a new disk, and then performs an operation on the management page, that is, adds the new disk to the storage system, thereby implementing management of the new disk.
However, this method requires manual operation by an operator, and when there are many damaged disks, the operator needs to sequentially replace the damaged disks and manually add the damaged disks to the storage system, which results in low efficiency and failure to effectively manage new disks in real time.
Disclosure of Invention
In view of this, the present invention provides a method and a system for storing a disk, which can automatically add a new disk into a storage system without manual operation, thereby improving the management efficiency of the disk.
In a first aspect, an embodiment of the present invention provides a method for storing a disk, where the method includes:
acquiring attribute information of a disk;
judging whether the attribute information meets a preset rule or not;
and if so, adding the disk into the storage pool according to the preset rule.
Further, the attribute information at least includes one or more of a slot position, a serial number and a vendor name.
Further, the determining whether the attribute information satisfies a preset rule includes:
judging whether the slot position meets a preset slot position rule or not;
alternatively, the first and second electrodes may be,
judging whether the serial number meets a preset serial number rule or not;
alternatively, the first and second electrodes may be,
and judging whether the manufacturer name meets a preset manufacturer rule or not.
Further, the adding the disk into the storage pool according to the preset rule includes:
adding the disk into the storage pool according to the preset slot position rule;
alternatively, the first and second electrodes may be,
adding the disk into the storage pool according to the preset serial number rule;
alternatively, the first and second electrodes may be,
and adding the disk into the storage pool according to the preset manufacturer rule.
Further, the preset slot rule is a correspondence between a slot of the disk and the storage pool, the preset serial number rule is a correspondence between a serial number of the disk and the storage pool, and the preset manufacturer rule is a correspondence between a manufacturer name of the disk and the storage pool.
In a second aspect, an embodiment of the present invention provides a storage system for a magnetic disk, where the system includes:
the acquisition unit is used for acquiring the attribute information of the disk;
the judging unit is used for judging whether the attribute information meets a preset rule or not;
and the adding unit is used for adding the disk into the storage pool according to the preset rule under the condition of meeting the preset rule.
Further, the attribute information at least includes one or more of a slot position, a serial number and a vendor name.
Further, the determining unit is specifically configured to:
judging whether the slot position meets a preset slot position rule or not;
alternatively, the first and second electrodes may be,
judging whether the serial number meets a preset serial number rule or not;
alternatively, the first and second electrodes may be,
and judging whether the manufacturer name meets a preset manufacturer rule or not.
In a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, where the memory stores a computer program operable on the processor, and the processor implements the method described above when executing the computer program.
In a fourth aspect, embodiments of the invention provide a computer readable medium having non-volatile program code executable by a processor, the program code causing the processor to perform the method as described above.
The embodiment of the invention provides a disk storage method and a disk storage system, which comprise the following steps: acquiring attribute information of a disk; judging whether the attribute information meets a preset rule or not; if the requirement is met, the disk is added into the storage pool according to the preset rule, a new disk can be automatically added into the storage system without manual operation, and therefore the management efficiency of the disk is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for storing a disk according to an embodiment of the present invention;
fig. 2 is a schematic view of an application scenario in which a disk is stored in a corresponding storage pool according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a storage system of a magnetic disk according to a third embodiment of the present invention.
Icon:
1-an acquisition unit; 2-a judging unit; 3-adding units.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
A large number of disks are stored in the storage system, and an operator can effectively monitor the disks on the management page. And if a certain disk is in a non-working state, namely the disk is disconnected or cannot be read and written, the disk is considered to be damaged. At this time, the operator replaces the damaged disk with a new disk, and then performs an operation on the management page, that is, adds the new disk to the storage system, thereby implementing management of the new disk.
However, this method requires manual operation by an operator, and when there are many damaged disks, the operator needs to sequentially replace the damaged disks and manually add the damaged disks to the storage system, which results in low efficiency and failure to effectively manage new disks in real time.
For the understanding of the present embodiment, the following detailed description will be given of the embodiment of the present invention.
The first embodiment is as follows:
fig. 1 is a flowchart of a storage method of a disk according to an embodiment of the present invention.
Referring to fig. 1, the method includes the steps of:
step S101, acquiring attribute information of a disk;
step S102, judging whether the attribute information meets a preset rule or not;
and step S103, if the storage capacity is met, adding the disk into the storage pool according to a preset rule.
Specifically, the attribute information at least includes one or more of a slot position, a serial number, and a vendor name. When an operator replaces a damaged disk with a new disk, attribute information of the disk can be automatically identified, and the attribute information of the disk can comprise a slot position, a serial number, a manufacturer name, the slot position and the serial number, the slot position and the manufacturer name, the serial number and the manufacturer name, and can also comprise the slot position, the serial number and the manufacturer name.
The attribute information is provided with a corresponding preset rule, so that whether the attribute information meets the preset rule or not needs to be judged, and if so, the disk is added into the storage pool according to the preset rule; if not, the disk cannot be added to the storage pool. Therefore, the method and the device can automatically add the new disk into the storage system without manual operation, and therefore the management efficiency of the disk is improved.
Further, step S102 includes:
judging whether the slot position meets a preset slot position rule or not;
alternatively, the first and second electrodes may be,
judging whether the serial number meets a preset serial number rule or not;
alternatively, the first and second electrodes may be,
and judging whether the manufacturer name meets the preset manufacturer rule or not.
Further, step S103 includes:
adding the disk into the storage pool according to the preset slot rule;
alternatively, the first and second electrodes may be,
adding the disk into the storage pool according to a preset serial number rule;
alternatively, the first and second electrodes may be,
and adding the disk into the storage pool according to the preset manufacturer rule.
Specifically, the preset rules include a preset slot rule, a preset serial number rule and a preset manufacturer rule. After the disk is inserted, reading the slot position, the serial number and the manufacturer name of the disk, judging whether the slot position, the serial number and the manufacturer name meet preset rules, and adding the disk into the storage pool according to the preset slot position rules when the slot position meets the preset slot position rules; when the serial number meets a preset serial number rule, adding the disk into the storage pool according to the preset serial number rule; and when the manufacturer name meets the preset manufacturer rule, adding the disk into the storage pool according to the preset manufacturer rule.
Further, the preset slot rule is a corresponding relationship between a slot of the disk and the storage pool, the preset serial number rule is a corresponding relationship between a serial number of the disk and the storage pool, and the preset manufacturer rule is a corresponding relationship between a manufacturer name of the disk and the storage pool.
Specifically, the preset slot rule is used to represent the correspondence between the slots of the disk and the storage pool, for example, slots 1-4 of the disk are stored in storage pool 1, and slots 5-8 of the disk are stored in storage pool 2.
The preset serial number rule is used for characterizing the correspondence between the serial numbers of the disks and the storage pools, for example, the serial numbers 1111, 1112, 1113, and 1114 of the disks are stored in the storage pool 1, and the serial numbers 2111, 2112, 2113, and 2114 of the disks are stored in the storage pool 2.
The preset vendor rule is used for representing the correspondence between the vendor names of the disks and the storage pool, for example, the vendor names aaaa, bbbb, cccc and dddd of the disks are stored in the storage pool 1, and the vendor names eeee, ffff, jjjj and vvvvv of the disks are stored in the storage pool 3. The number of the storage pools may be 1, or may be multiple, and when there are multiple storage pools, the disks are stored in the storage pools according to preset rules.
The embodiment of the invention provides a disk storage method, which comprises the following steps: acquiring attribute information of a disk; judging whether the attribute information meets a preset rule or not; if the requirement is met, the disk is added into the storage pool according to the preset rule, a new disk can be automatically added into the storage system without manual operation, and therefore the management efficiency of the disk is improved.
Example two:
fig. 2 is a schematic application scenario diagram of a disk storing a corresponding storage pool according to a second embodiment of the present invention.
Referring to fig. 2, adding a disk to a corresponding storage pool specifically includes: the device 1 includes a plurality of disks, and the device 2 also includes a plurality of disks.
In the device 1, the disk 1 is respectively arranged at the slot position 1, the slot position 2, the slot position 3 and the slot position 4, the disk 2 is respectively arranged at the slot position 5, the slot position 6, the slot position 7 and the slot position 8, the disk 1 arranged at the slot position 1, the slot position 2, the slot position 3 and the slot position 4 is stored in the storage pool 1, and the disk 2 arranged at the slot position 5, the slot position 6, the slot position 7 and the slot position 8 is stored in the storage pool 2.
In the device 2, the disk 1 is respectively arranged at the slot position 1, the slot position 2, the slot position 3 and the slot position 4, the disk 2 is respectively arranged at the slot position 5, the slot position 6, the slot position 7 and the slot position 8, the disk 1 arranged at the slot position 1, the slot position 2, the slot position 3 and the slot position 4 is stored in the storage pool 1, and the disk 2 arranged at the slot position 5, the slot position 6, the slot position 7 and the slot position 8 is stored in the storage pool 2.
Therefore, by the mode, the disk is added into the storage pool according to the preset rule, a new disk can be automatically added into the storage system, manual operation is not needed, and the management efficiency of the disk is improved.
Example three:
fig. 3 is a schematic diagram of a storage system of a magnetic disk according to a third embodiment of the present invention.
Referring to fig. 3, the system includes:
an acquisition unit 1, configured to acquire attribute information of a disk;
a judging unit 2, configured to judge whether the attribute information satisfies a preset rule;
and the adding unit 3 is used for adding the disk into the storage pool according to a preset rule under the condition of meeting the requirement.
Further, the attribute information at least includes one or more of a slot position, a serial number, and a vendor name.
Further, the determining unit 2 is specifically configured to:
judging whether the slot position meets a preset slot position rule or not;
alternatively, the first and second electrodes may be,
judging whether the serial number meets a preset serial number rule or not;
alternatively, the first and second electrodes may be,
and judging whether the manufacturer name meets the preset manufacturer rule or not.
Further, the adding unit 3 is specifically configured to:
adding the disk into the storage pool according to a preset slot rule;
alternatively, the first and second electrodes may be,
adding the disk into the storage pool according to the preset serial number rule;
alternatively, the first and second electrodes may be,
and adding the disk into the storage pool according to preset manufacturer rules.
Further, the preset slot rule is a corresponding relationship between a slot of the disk and the storage pool, the preset serial number rule is a corresponding relationship between a serial number of the disk and the storage pool, and the preset manufacturer rule is a corresponding relationship between a manufacturer name of the disk and the storage pool.
An embodiment of the present invention provides a disk storage system, including: acquiring attribute information of a disk; judging whether the attribute information meets a preset rule or not; if the requirement is met, the disk is added into the storage pool according to the preset rule, a new disk can be automatically added into the storage system without manual operation, and therefore the management efficiency of the disk is improved.
The embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the steps of the storage method for a magnetic disk provided in the above embodiment are implemented.
The embodiment of the present invention further provides a computer readable medium having a non-volatile program code executable by a processor, where a computer program is stored on the computer readable medium, and when the computer program is executed by the processor, the steps of the storage method of the magnetic disk of the above embodiment are performed.
The computer program product provided in the embodiment of the present invention includes a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment, which is not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; 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 in specific cases to those skilled in the art.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A method for storing a disk, the method comprising:
acquiring attribute information of a disk;
judging whether the attribute information meets a preset rule or not;
and if so, adding the disk into the storage pool according to the preset rule.
2. The method according to claim 1, wherein the attribute information at least includes one or more of a slot position, a serial number, and a vendor name.
3. The method for storing the magnetic disk according to claim 2, wherein the determining whether the attribute information satisfies a preset rule includes:
judging whether the slot position meets a preset slot position rule or not;
alternatively, the first and second electrodes may be,
judging whether the serial number meets a preset serial number rule or not;
alternatively, the first and second electrodes may be,
and judging whether the manufacturer name meets a preset manufacturer rule or not.
4. The method for storing the disk according to claim 3, wherein the adding the disk into the storage pool according to the preset rule comprises:
adding the disk into the storage pool according to the preset slot position rule;
alternatively, the first and second electrodes may be,
adding the disk into the storage pool according to the preset serial number rule;
alternatively, the first and second electrodes may be,
and adding the disk into the storage pool according to the preset manufacturer rule.
5. The method according to claim 4, wherein the preset slot rule is a correspondence between a slot of the disk and the storage pool, the preset serial number rule is a correspondence between a serial number of the disk and the storage pool, and the preset vendor rule is a correspondence between a vendor name of the disk and the storage pool.
6. A storage system for magnetic disks, the system comprising:
the acquisition unit is used for acquiring the attribute information of the disk;
the judging unit is used for judging whether the attribute information meets a preset rule or not;
and the adding unit is used for adding the disk into the storage pool according to the preset rule under the condition of meeting the preset rule.
7. The disc storage system according to claim 6, wherein the attribute information at least includes one or more of a slot position, a serial number, and a vendor name.
8. The disc storage system according to claim 7, wherein the determining unit is specifically configured to:
judging whether the slot position meets a preset slot position rule or not;
alternatively, the first and second electrodes may be,
judging whether the serial number meets a preset serial number rule or not;
alternatively, the first and second electrodes may be,
and judging whether the manufacturer name meets a preset manufacturer rule or not.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1-5 when executing the computer program.
10. A computer-readable medium having non-volatile program code executable by a processor, wherein the program code causes the processor to perform the method of any of claims 1-5.
CN202011563250.8A 2020-12-25 2020-12-25 Storage method and system of magnetic disk Pending CN112667158A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011563250.8A CN112667158A (en) 2020-12-25 2020-12-25 Storage method and system of magnetic disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011563250.8A CN112667158A (en) 2020-12-25 2020-12-25 Storage method and system of magnetic disk

Publications (1)

Publication Number Publication Date
CN112667158A true CN112667158A (en) 2021-04-16

Family

ID=75409185

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011563250.8A Pending CN112667158A (en) 2020-12-25 2020-12-25 Storage method and system of magnetic disk

Country Status (1)

Country Link
CN (1) CN112667158A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110258385A1 (en) * 2003-08-14 2011-10-20 Soran Philip E Virtual disk drive system and method
CN106528005A (en) * 2017-01-12 2017-03-22 郑州云海信息技术有限公司 Disk adding method and device for distributed type storage system
CN106528265A (en) * 2016-10-24 2017-03-22 郑州云海信息技术有限公司 Virtual machine management method and system based on distributed SAN (Storage Area Network) storage architecture
CN109669631A (en) * 2018-12-10 2019-04-23 浪潮(北京)电子信息产业有限公司 A kind of storage pool planing method, device, equipment and computer readable storage medium
CN110187841A (en) * 2019-05-30 2019-08-30 苏州浪潮智能科技有限公司 A kind of method, apparatus and storage server of system management memory disk

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110258385A1 (en) * 2003-08-14 2011-10-20 Soran Philip E Virtual disk drive system and method
CN106528265A (en) * 2016-10-24 2017-03-22 郑州云海信息技术有限公司 Virtual machine management method and system based on distributed SAN (Storage Area Network) storage architecture
CN106528005A (en) * 2017-01-12 2017-03-22 郑州云海信息技术有限公司 Disk adding method and device for distributed type storage system
CN109669631A (en) * 2018-12-10 2019-04-23 浪潮(北京)电子信息产业有限公司 A kind of storage pool planing method, device, equipment and computer readable storage medium
CN110187841A (en) * 2019-05-30 2019-08-30 苏州浪潮智能科技有限公司 A kind of method, apparatus and storage server of system management memory disk

Similar Documents

Publication Publication Date Title
JP4725719B2 (en) Blade server system and management method thereof
CN109165170B (en) Method and system for automatic request test
CN108984366B (en) Terminal monitoring processing method, device and equipment
CN112596672B (en) Storage processing method and device of main control chip, processor and electronic equipment
CN113689911B (en) Fault diagnosis method, device, equipment and readable storage medium
JP2009211658A (en) Failure detection device, failure detection method and program therefor
CN108966227A (en) Identify data processing method, device, equipment and the storage medium of rete mirabile user
CN112667158A (en) Storage method and system of magnetic disk
CN111324366A (en) BMC (baseboard management controller) starting firmware rollback method and device, BMC and storage medium
CN113377812A (en) Order duplication eliminating method and device for big data
CN110968456B (en) Method and device for processing fault disk in distributed storage system
CN116705129A (en) Testing method of solid state disk
CN110795155B (en) System starting method and device, electronic equipment and storage medium
CN112632075A (en) Storage and reading method and device of cluster metadata
CN113112023A (en) Inference service management method, device, system and medium of inference platform
CN113300964A (en) Method, device and system for generating topological information of LED control system and storage medium
CN110781146A (en) Event storage method, power terminal and computer-readable storage medium
CN112162759B (en) Loading method and system of radio frequency software board card, electronic equipment and storage medium
CN115563041A (en) Downloader interface identification circuit and method of multi-interface extension module
CN114238040A (en) Device and method for displaying running state of equipment
CN116661698B (en) Management method and device for storage in inspection well drainage monitoring equipment
CN116991636B (en) Data incremental backup method, system and storage medium based on distributed storage
CN112306824B (en) Disk performance evaluation method, system, device and computer readable storage medium
CN115208742B (en) Intelligent operation and maintenance management method and system
CN115016946A (en) User consultation processing method and system

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