[go: up one dir, main page]

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

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

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

磁盘的存储方法和系统Disk storage method and system

技术领域technical field

本发明涉及存储技术领域,尤其是涉及磁盘的存储方法和系统。The present invention relates to the field of storage technology, in particular to a storage method and system of a magnetic disk.

背景技术Background technique

存储系统上存储在大量的磁盘,操作人员在管理页面上对磁盘进行有效监控。如果某个磁盘处于非工作状态,即掉线或不能读写,则认为该磁盘损坏。此时,操作人员将损坏的磁盘替换为新的磁盘,然后在管理页面上进行操作,即将新的磁盘加入到存储系统中,从而实现对新的磁盘的管理。A large number of disks are stored on the storage system, and the operator can effectively monitor the disks on the management page. A disk is considered damaged if it is inactive, i.e. down or unable to read or write. At this point, the operator replaces the damaged disk with a new disk, and then operates on the management page, that is, adds the new disk to the storage system, thereby realizing the management of the new disk.

但是,这种方式需要操作人员手动进行操作,当损坏的磁盘较多时,操作人员需要依次对损坏的磁盘进行替换,并手动加入到存储系统中,从而导致效率低,无法对新的磁盘进行实时有效管理。However, this method requires operators to operate manually. When there are many damaged disks, the operator needs to replace the damaged disks in turn and manually add them to the storage system, resulting in low efficiency and inability to perform real-time on the new disks. Effective management.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明的目的在于提供磁盘的存储方法和系统,可以自动将新的磁盘加入到存储系统中,无需人工操作,从而提高对磁盘的管理效率。In view of this, the purpose of the present invention is to provide a storage method and system for a magnetic disk, which can automatically add a new magnetic disk to the storage system without manual operation, thereby improving the management efficiency of the magnetic disk.

第一方面,本发明实施例提供了磁盘的存储方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a storage method for a magnetic disk, and the method includes:

获取磁盘的属性信息;Get the attribute information of the disk;

判断所述属性信息是否满足预设规则;Judging whether the attribute information satisfies a preset rule;

如果满足,则将所述磁盘按照所述预设规则加入到存储池中。If satisfied, the disk is added to the storage pool according to the preset rule.

进一步的,所述属性信息至少包括槽位、序列号和厂商名称中的一种或几种。Further, the attribute information includes at least one or more of slot, serial number and manufacturer name.

进一步的,所述判断所述属性信息是否满足预设规则,包括:Further, the judging whether the attribute information satisfies a preset rule includes:

判断所述槽位是否满足预设槽位规则;Judging whether the slot satisfies the preset slot rule;

或者,or,

判断所述序列号是否满足预设序列号规则;Determine whether the serial number satisfies the preset serial number rule;

或者,or,

判断所述厂商名称是否满足预设厂商规则。It is judged whether the manufacturer name satisfies the preset manufacturer rule.

进一步的,所述将所述磁盘按照所述预设规则加入到存储池中,包括:Further, adding the disk to the storage pool according to the preset rule includes:

将所述磁盘按照所述预设槽位规则加入到所述存储池中;adding the disk to the storage pool according to the preset slot rule;

或者,or,

将所述磁盘按照所述预设序列号规则加入到所述存储池中;adding the disk to the storage pool according to the preset serial number rule;

或者,or,

将所述磁盘按照所述预设厂商规则加入到所述存储池中。The disk is added to the storage pool according to the preset manufacturer rule.

进一步的,所述预设槽位规则为所述磁盘的槽位与所述存储池的对应关系,所述预设序列号规则为所述磁盘的序列号与所述存储池的对应关系,所述预设厂商规则为所述磁盘的厂商名称与所述存储池的对应关系。Further, the preset slot position rule is the corresponding relationship between the slot position of the disk and the storage pool, the preset serial number rule is the corresponding relationship between the serial number of the disk and the storage pool, so The preset manufacturer rule is the corresponding relationship between the 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, and the system includes:

获取单元,用于获取磁盘的属性信息;The acquisition unit is used to acquire the attribute information of the disk;

判断单元,用于判断所述属性信息是否满足预设规则;a judging unit for judging whether the attribute information satisfies a preset rule;

加入单元,用于在满足的情况下,将所述磁盘按照所述预设规则加入到存储池中。The adding unit is configured to add the disk to the storage pool according to the preset rule under the condition that it is satisfied.

进一步的,所述属性信息至少包括槽位、序列号和厂商名称中的一种或几种。Further, the attribute information includes at least one or more of slot, serial number and manufacturer name.

进一步的,所述判断单元具体用于:Further, the judging unit is specifically used for:

判断所述槽位是否满足预设槽位规则;Judging whether the slot satisfies the preset slot rule;

或者,or,

判断所述序列号是否满足预设序列号规则;Determine whether the serial number satisfies the preset serial number rule;

或者,or,

判断所述厂商名称是否满足预设厂商规则。It is judged whether the manufacturer name satisfies the preset manufacturer rule.

第三方面,本发明实施例提供了电子设备,包括存储器、处理器,所述存储器上存储有可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上所述的方法。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 that can run on the processor, and the processor implements the above when executing the computer program method described.

第四方面,本发明实施例提供了具有处理器可执行的非易失的程序代码的计算机可读介质,所述程序代码使所述处理器执行如上所述的方法。In a fourth aspect, an embodiment of the present invention provides a computer-readable medium having non-volatile program code executable by a processor, the program code causing the processor to execute the method as described above.

本发明实施例提供了磁盘的存储方法和系统,包括:获取磁盘的属性信息;判断属性信息是否满足预设规则;如果满足,则将磁盘按照预设规则加入到存储池中,可以自动将新的磁盘加入到存储系统中,无需人工操作,从而提高对磁盘的管理效率。The embodiments of the present invention provide a storage method and system for a disk, including: acquiring attribute information of the disk; judging whether the attribute information satisfies a preset rule; if so, adding the disk to the storage pool according to the preset rule, and new The disk is added to the storage system without manual operation, thereby improving the management efficiency of the disk.

本发明的其他特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Other features and advantages of the present invention will be set forth in the description which follows, and in part will be apparent 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 description, claims and drawings.

为使本发明的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below, and are described in detail as follows in conjunction with the accompanying drawings.

附图说明Description of drawings

为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the specific embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the specific embodiments or the prior art. Obviously, the accompanying drawings in the following description The drawings are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative efforts.

图1为本发明实施例一提供的磁盘的存储方法流程图;1 is a flowchart of a storage method for a magnetic disk provided in Embodiment 1 of the present invention;

图2为本发明实施例二提供的磁盘存入对应的存储池的应用场景示意图;2 is a schematic diagram of an application scenario in which a disk is stored in a corresponding storage pool according to Embodiment 2 of the present invention;

图3为本发明实施例三提供的磁盘的存储系统示意图。FIG. 3 is a schematic diagram of a storage system of a magnetic disk according to Embodiment 3 of the present invention.

图标:icon:

1-获取单元;2-判断单元;3-加入单元。1-acquisition unit; 2-judging unit; 3-adding unit.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, 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. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of them. example. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

存储系统上存储在大量的磁盘,操作人员在管理页面上对磁盘进行有效监控。如果某个磁盘处于非工作状态,即掉线或不能读写,则认为该磁盘损坏。此时,操作人员将损坏的磁盘替换为新的磁盘,然后在管理页面上进行操作,即将新的磁盘加入到存储系统中,从而实现对新的磁盘的管理。A large number of disks are stored on the storage system, and the operator can effectively monitor the disks on the management page. A disk is considered damaged if it is inactive, i.e. down or unable to read or write. At this point, the operator replaces the damaged disk with a new disk, and then operates on the management page, that is, adds the new disk to the storage system, thereby realizing the management of the new disk.

但是,这种方式需要操作人员手动进行操作,当损坏的磁盘较多时,操作人员需要依次对损坏的磁盘进行替换,并手动加入到存储系统中,从而导致效率低,无法对新的磁盘进行实时有效管理。However, this method requires the operator to perform manual operations. When there are many damaged disks, the operator needs to replace the damaged disks in turn and manually add them to the storage system, resulting in low efficiency and inability to perform real-time on the new disks. Effective management.

为便于对本实施例进行理解,下面对本发明实施例进行详细介绍。In order to facilitate the understanding of this embodiment, the following describes the embodiment of the present invention in detail.

实施例一:Example 1:

图1为本发明实施例一提供的磁盘的存储方法流程图。FIG. 1 is a flowchart of a storage method for a magnetic disk according to Embodiment 1 of the present invention.

参照图1,该方法包括以下步骤:Referring to Figure 1, the method includes the following steps:

步骤S101,获取磁盘的属性信息;Step S101, acquiring attribute information of the disk;

步骤S102,判断属性信息是否满足预设规则;Step S102, judging whether the attribute information satisfies a preset rule;

步骤S103,如果满足,则将磁盘按照预设规则加入到存储池中。Step S103, if it is satisfied, add the disk to the storage pool according to the preset rule.

具体地,属性信息至少包括槽位、序列号和厂商名称中的一种或几种。当操作人员将损坏的磁盘替换为新的磁盘时,可以自动识别磁盘的属性信息,磁盘的属性信息可以包括槽位、序列号、厂商名称、槽位和序列号、槽位和厂商名称、序列号和厂商名称,还可以包括槽位、序列号和厂商名称。Specifically, the attribute information includes at least one or more of slot, serial number and manufacturer name. When the operator replaces the damaged disk with a new one, the attribute information of the disk can be automatically identified. The attribute information of the disk can include slot, serial number, manufacturer name, slot and serial number, slot and manufacturer name, serial number and manufacturer name, and can also include slot, serial number, and manufacturer name.

由于属性信息设置有对应的预设规则,故需先判断属性信息是否满足预设规则,如果满足,则将磁盘按照预设规则加入到存储池中;如果不满足,则无法将磁盘加入到存储池中。因此,本申请可以自动将新的磁盘加入到存储系统中,无需人工操作,从而提高对磁盘的管理效率。Since the attribute information is set with corresponding preset rules, it is necessary to first determine whether the attribute information satisfies the preset rules. If so, add the disk to the storage pool according to the preset rules; if not, the disk cannot be added to the storage pool. in the pool. Therefore, the present application can automatically add a new disk to the storage system without manual operation, thereby improving the management efficiency of the disk.

进一步的,步骤S102包括:Further, step S102 includes:

判断槽位是否满足预设槽位规则;Determine whether the slot meets the preset slot rules;

或者,or,

判断序列号是否满足预设序列号规则;Determine whether the serial number satisfies the preset serial number rule;

或者,or,

判断厂商名称是否满足预设厂商规则。Determines whether the manufacturer name satisfies the default manufacturer rule.

进一步的,步骤S103包括:Further, step S103 includes:

将磁盘按照所述预设槽位规则加入到存储池中;adding the disk to the storage pool according to the preset slot rule;

或者,or,

将磁盘按照预设序列号规则加入到存储池中;Add the disks to the storage pool according to the preset serial number rules;

或者,or,

将磁盘按照所述预设厂商规则加入到存储池中。The disks are added to the storage pool according to the preset manufacturer rules.

具体地,预设规则包括预设槽位规则、预设序列号规则和预设厂商规则。当插入磁盘后,读取磁盘的槽位、序列号和厂商名称,判断槽位、序列号和厂商名称是否满足预设规则,当槽位满足预设槽位规则时,将磁盘按照预设槽位规则加入到存储池中;当序列号满足预设序列号规则时,将磁盘按照预设序列号规则加入到存储池中;当厂商名称满足预设厂商规则时,将磁盘按照预设厂商规则加入到存储池中。Specifically, the preset rules include preset slot rules, preset serial number rules, and preset manufacturer rules. After inserting the disk, read the slot, serial number and manufacturer name of the disk to determine whether the slot, serial number and manufacturer name meet the preset rules. The bit rule is added to the storage pool; when the serial number meets the preset serial number rule, the disk is added to the storage pool according to the preset serial number rule; when the manufacturer name meets the preset manufacturer rule, the disk is added according to the preset manufacturer rule added to the storage pool.

进一步的,预设槽位规则为磁盘的槽位与存储池的对应关系,预设序列号规则为磁盘的序列号与存储池的对应关系,预设厂商规则为磁盘的厂商名称与存储池的对应关系。Further, the preset slot rule is the correspondence between the disk slot and the storage pool, the preset serial number rule is the correspondence between the serial number of the disk and the storage pool, and the preset manufacturer rule is the manufacturer name of the disk and the storage pool. Correspondence.

具体地,预设槽位规则用于表征磁盘的槽位与存储池的对应关系,例如,磁盘的槽位1-4存储到存储池1中,磁盘的槽位5-8存储到存储池2中。Specifically, the preset slot rules are used to represent the corresponding relationship between the slots of the disk and the storage pool. For example, the slots 1-4 of the disk are stored in the storage pool 1, and the slots 5-8 of the disk are stored in the storage pool 2. middle.

预设序列号规则用于表征磁盘的序列号与存储池的对应关系,例如,磁盘的序列号1111、1112、1113和1114存储到存储池1中,磁盘的序列号2111、2112、2113和2114存储到存储池2中。The preset serial number rule is used to represent the correspondence between the serial number of the disk and the storage pool. For example, the serial numbers 1111, 1112, 1113 and 1114 of the disk are stored in the storage pool 1, and the serial numbers 2111, 2112, 2113 and 2114 of the disk are stored in the storage pool 1. Stored in storage pool 2.

预设厂商规则用于表征磁盘的厂商名称与存储池的对应关系,例如,磁盘的厂商名称aaaa、bbbb、cccc和dddd存储到存储池1中,磁盘的厂商名称eeee、ffff、jjjj和vvvv存储到存储池3中。其中,存储池可以为1个,也可以为多个,当存储池为多个时,将磁盘按照预设规则存储到存储池中。The preset vendor rules are used to characterize the correspondence between disk vendor names and storage pools. For example, disk vendor names aaaa, bbbb, cccc, and dddd are stored in storage pool 1, and disk vendor names eeee, ffff, jjjj, and vvvv are stored into storage pool 3. There may be one storage pool or multiple storage pools. When there are multiple storage pools, the disks are stored in the storage pools according to preset rules.

本发明实施例提供了磁盘的存储方法,包括:获取磁盘的属性信息;判断属性信息是否满足预设规则;如果满足,则将磁盘按照预设规则加入到存储池中,可以自动将新的磁盘加入到存储系统中,无需人工操作,从而提高对磁盘的管理效率。The embodiment of the present invention provides a storage method for a disk, including: acquiring attribute information of the disk; judging whether the attribute information satisfies a preset rule; if so, adding the disk to a storage pool according to the preset rule, and a new disk can be automatically added It is added to the storage system without manual operation, thereby improving the management efficiency of the disk.

实施例二:Embodiment 2:

图2为本发明实施例二提供的磁盘存入对应的存储池的应用场景示意图。FIG. 2 is a schematic diagram of an application scenario in which a disk is stored in a corresponding storage pool according to Embodiment 2 of the present invention.

参照图2,将磁盘加入到对应的存储池中,具体为:设备1中包括多个磁盘,设备2中也包括多个磁盘。Referring to FIG. 2 , adding a disk to a corresponding storage pool is specifically: device 1 includes multiple disks, and device 2 also includes multiple disks.

在设备1中,磁盘1分别设置在槽位1、槽位2、槽位3和槽位4处,磁盘2分别设置在槽位5、槽位6、槽位7和槽位8处,将设置在槽位1、槽位2、槽位3和槽位4处的磁盘1存储到存储池1中,将设置在槽位5、槽位6、槽位7和槽位8处的磁盘2存储到存储池2中。In device 1, disk 1 is set at slot 1, slot 2, slot 3, and slot 4, respectively, and disk 2 is set at slot 5, slot 6, slot 7, and slot 8, respectively. Disk 1 set in slot 1, slot 2, slot 3, and slot 4 is stored in storage pool 1, and disk 2 set in slot 5, slot 6, slot 7, and slot 8 is stored Stored in storage pool 2.

在设备2中,磁盘1分别设置在槽位1、槽位2、槽位3和槽位4处,磁盘2分别设置在槽位5、槽位6、槽位7和槽位8处,将设置在槽位1、槽位2、槽位3和槽位4处的磁盘1存储到存储池1中,将设置在槽位5、槽位6、槽位7和槽位8处的磁盘2存储到存储池2中。In device 2, disk 1 is set at slot 1, slot 2, slot 3, and slot 4, respectively, and disk 2 is set at slot 5, slot 6, slot 7, and slot 8, respectively. Disk 1 set in slot 1, slot 2, slot 3, and slot 4 is stored in storage pool 1, and disk 2 set in slot 5, slot 6, slot 7, and slot 8 is stored Stored in storage pool 2.

因此,通过上述方式,将磁盘按照预设规则加入到存储池中,可以自动将新的磁盘加入到存储系统中,无需人工操作,从而提高对磁盘的管理效率。Therefore, in the above manner, adding disks to the storage pool according to preset rules can automatically add new disks to the storage system without manual operation, thereby improving the management efficiency of the disks.

实施例三:Embodiment three:

图3为本发明实施例三提供的磁盘的存储系统示意图。FIG. 3 is a schematic diagram of a storage system of a magnetic disk according to Embodiment 3 of the present invention.

参照图3,该系统包括:Referring to Figure 3, the system includes:

获取单元1,用于获取磁盘的属性信息;Obtaining unit 1, for obtaining attribute information of the disk;

判断单元2,用于判断属性信息是否满足预设规则;Judging unit 2, for judging whether the attribute information satisfies the preset rule;

加入单元3,用于在满足的情况下,将磁盘按照预设规则加入到存储池中。The adding unit 3 is used for adding the disk to the storage pool according to the preset rule under the condition that it is satisfied.

进一步的,属性信息至少包括槽位、序列号和厂商名称中的一种或几种。Further, the attribute information includes at least one or more of slot, serial number and manufacturer name.

进一步的,判断单元2具体用于:Further, the judgment unit 2 is specifically used for:

判断槽位是否满足预设槽位规则;Determine whether the slot meets the preset slot rules;

或者,or,

判断序列号是否满足预设序列号规则;Determine whether the serial number satisfies the preset serial number rule;

或者,or,

判断厂商名称是否满足预设厂商规则。Determines whether the manufacturer name satisfies the default manufacturer rule.

进一步的,加入单元3具体用于:Further, adding unit 3 is specifically used for:

将磁盘按照预设槽位规则加入到存储池中;Add the disks to the storage pool according to the preset slot rules;

或者,or,

将磁盘按照所述预设序列号规则加入到存储池中;adding the disk to the storage pool according to the preset serial number rule;

或者,or,

将磁盘按照预设厂商规则加入到存储池中。Add the disks to the storage pool according to the preset manufacturer rules.

进一步的,预设槽位规则为磁盘的槽位与存储池的对应关系,预设序列号规则为磁盘的序列号与存储池的对应关系,预设厂商规则为磁盘的厂商名称与存储池的对应关系。Further, the preset slot rule is the correspondence between the disk slot and the storage pool, the preset serial number rule is the correspondence between the serial number of the disk and the storage pool, and the preset manufacturer rule is the manufacturer name of the disk and the storage pool. Correspondence.

本发明实施例提供了磁盘的存储系统,包括:获取磁盘的属性信息;判断属性信息是否满足预设规则;如果满足,则将磁盘按照预设规则加入到存储池中,可以自动将新的磁盘加入到存储系统中,无需人工操作,从而提高对磁盘的管理效率。The embodiment of the present invention provides a storage system for a disk, including: acquiring attribute information of the disk; judging whether the attribute information satisfies a preset rule; if so, adding the disk to the storage pool according to the preset rule, and a new disk can be automatically added It is added to the storage system without manual operation, thereby improving the management efficiency of the disk.

本发明实施例还提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现上述实施例提供的磁盘的存储方法的步骤。Embodiments of the present invention further provide an electronic device, including a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor implements the steps of the disk storage method provided by the above embodiments when the processor executes the computer program .

本发明实施例还提供一种具有处理器可执行的非易失的程序代码的计算机可读介质,计算机可读介质上存储有计算机程序,计算机程序被处理器运行时执行上述实施例的磁盘的存储方法的步骤。Embodiments of the present invention further provide a computer-readable medium having non-volatile program code executable by a processor, where a computer program is stored on the computer-readable medium. Store the steps of the method.

本发明实施例所提供的计算机程序产品,包括存储了程序代码的计算机可读存储介质,所述程序代码包括的指令可用于执行前面方法实施例中所述的方法,具体实现可参见方法实施例,在此不再赘述。The computer program product provided by the embodiments of the present invention includes a computer-readable storage medium storing program codes, and the instructions included in the program codes can be used to execute the methods described in the foregoing method embodiments. For specific implementation, refer to the method embodiments. , and will not be repeated here.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the system and device described above, reference may be made to the corresponding process in the foregoing method embodiments, which will not be repeated here.

另外,在本发明实施例的描述中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。In addition, in the description of the embodiments of the present invention, unless otherwise expressly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it may be a fixed connection or a detachable connection , or integrally connected; it can be a mechanical connection or an electrical connection; it can be a direct connection, or an indirect connection through an intermediate medium, or the internal communication between the two components. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood in specific situations.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store 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. The indicated orientation or positional relationship is based on the orientation or positional relationship shown in the accompanying drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the indicated device or element must have a specific orientation or a specific orientation. construction and operation, and therefore should not be construed as limiting the invention. Furthermore, the terms "first", "second", and "third" are used for descriptive purposes only and should not be construed to indicate or imply relative importance.

最后应说明的是:以上所述实施例,仅为本发明的具体实施方式,用以说明本发明的技术方案,而非对其限制,本发明的保护范围并不局限于此,尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本发明实施例技术方案的精神和范围,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。Finally, it should be noted that the above-mentioned embodiments are only specific implementations of the present invention, and are used to illustrate the technical solutions of the present invention, but not to limit them. The protection scope of the present invention is not limited thereto, although referring to the foregoing The embodiment has been described in detail the present invention, and those of ordinary skill in the art should understand: any person skilled in the art who is familiar with the technical field of the present invention can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed by the present invention. Or can easily think of changes, or equivalently replace some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be covered in the present invention. within the scope of protection. Therefore, the protection scope of the present invention should be based on the protection scope of the 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;
or,
judging whether the serial number meets a preset serial number rule or not;
or,
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;
or,
adding the disk into the storage pool according to the preset serial number rule;
or,
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;
or,
judging whether the serial number meets a preset serial number rule or not;
or,
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
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

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
JP5253379B2 (en) Event processing based on the model
US20050062612A1 (en) Battery capacity indicator in a portable computing device
CN102523111B (en) Network management system that supports customizable groups
JP2005234705A (en) System layout design program for realizing automatic system configuration, system layout design apparatus, and system layout design method
CN109669631B (en) A storage pool planning method, apparatus, device, and computer-readable storage medium
JP5007994B2 (en) Computer automation method, data processing system, and computer program for bubble-up state severity index in hierarchical tree control
CN113687920B (en) Object policy operation method, device and equipment of distributed system
CN114861773A (en) Model training visualization method, device and cloud platform
JP2015001826A (en) Configuration requirement generation program, configuration requirement generation device, and configuration requirement generation method
JP2021530073A (en) Automatic control of distributed computing devices
JP5439775B2 (en) Fault response program, fault response apparatus, and fault response system
JPWO2020008991A1 (en) Verification automation equipment, verification automation methods, and programs
CN112667158A (en) Storage method and system of magnetic disk
CN118363693A (en) Robot flow automatic interface element positioning method, device and medium
CN110688200A (en) Method and device for migrating disk tree of virtual machine on line
CN110287182A (en) A big data data comparison method, device, equipment and terminal
CN112486461B (en) Information processing system based on springboot framework
JP7298208B2 (en) Information processing device and program
CN112328902A (en) Ontology recommendation method and system based on knowledge graph and electronic equipment
CN114969383B (en) Application processing method and device based on zero code development
JP2006018370A (en) Document management system
CN114489866B (en) Data management method and device
JP2005099976A (en) Configuration / performance information acquisition method
CN111833438B (en) Method and device for interrupting reference by three-dimensional model
CN107943926A (en) The attribute increase method, apparatus and medium of a kind of tables of data

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210416

RJ01 Rejection of invention patent application after publication