[go: up one dir, main page]

CN111914131B - Disk array mode query method, device, computer system and medium - Google Patents

Disk array mode query method, device, computer system and medium Download PDF

Info

Publication number
CN111914131B
CN111914131B CN202010809843.1A CN202010809843A CN111914131B CN 111914131 B CN111914131 B CN 111914131B CN 202010809843 A CN202010809843 A CN 202010809843A CN 111914131 B CN111914131 B CN 111914131B
Authority
CN
China
Prior art keywords
disk
disk device
array mode
name
disk array
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010809843.1A
Other languages
Chinese (zh)
Other versions
CN111914131A (en
Inventor
徐晨灿
袁宁
宫晨
石建勋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202010809843.1A priority Critical patent/CN111914131B/en
Publication of CN111914131A publication Critical patent/CN111914131A/en
Application granted granted Critical
Publication of CN111914131B publication Critical patent/CN111914131B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present disclosure provides a disk array mode query method, apparatus, system, device, and medium, which can be used in the financial field or other fields, including: receiving a disk device name queried by a user, querying a disk array mode corresponding to the disk device name queried by the user according to the corresponding relation between the disk device name and a pre-established disk array mode, wherein the disk array mode is generated by the following modes: and acquiring a disk array mode and a common identifier of each disk device on the server, acquiring the disk device names of each disk device through each common identifier, and establishing a corresponding relation between the disk device names and the disk array mode. According to the method, the disc device names are obtained through the common identifier, the disc device names are associated with the disc array modes of the disc devices, so that a user can know which disc array mode is used by each disc device, disc resources are conveniently and reasonably utilized, and the problems of resource waste, unstable system caused by disc misuse and the like are avoided.

Description

Disk array mode query method, device, computer system and medium
Technical Field
The present disclosure relates to the field of finance, and more particularly, to a disk array mode query method, apparatus, computer system, and computer storage medium.
Background
With the advent of the big data age, big data server clusters represented by Hadoop are becoming an important component of IT infrastructure. Large data servers typically have many disks, and in order to meet application requirements, in one server, different disk devices may be used as disk arrays in different modes. After the server hardware configurator makes the disk array for the server, the user cannot directly know which mode of disk array the name of each disk device corresponds to through the common operating system command or the disk array management software, and the information may be needed by the user, for example, the user can more reasonably utilize the disk resources by knowing the name of the disk device and the disk array mode corresponding to the disk device.
Disclosure of Invention
In view of this, the present disclosure provides a disk array mode query method, a device, a computer system and a computer storage medium.
One aspect of the present disclosure provides a disk array mode query method, including: receiving a disk device name queried by a user; inquiring a disk array mode corresponding to the disk equipment name inquired by the user according to the corresponding relation between the disk equipment name and the pre-established disk array mode; the disk array mode is generated by the following steps: obtaining a disk array mode and a common identifier of each disk device on the server; obtaining the disk device names of the disk devices through the common identifiers; and establishing a corresponding relation between the name of the disk device and the disk array mode. Optionally, acquiring the disk array mode and the common identifier of each disk device on the server includes: acquiring a preset coding sequence number corresponding to each magnetic disk device on the server; according to the preset coding sequence number, a preset mode acquisition instruction is sequentially executed on each magnetic disk device, and a magnetic disk array mode of each magnetic disk device is acquired; and executing a preset identifier acquisition instruction on each magnetic disk device according to the preset coding sequence number to acquire a common identifier of each magnetic disk device.
Optionally, the obtaining the preset code sequence number corresponding to each magnetic disk device on the server includes: executing a preset disk device quantity acquisition instruction to acquire the total number of disk devices on the server; and obtaining preset coding serial numbers of the magnetic disk devices based on the total number of the magnetic disk devices.
Optionally, the obtaining, by the common identifier, a disk device name of the disk device includes: executing a preset name acquisition instruction to acquire the name of the disk device corresponding to the common identifier; and storing the disk device names of the disk devices and the corresponding disk array modes.
Optionally, the method further comprises: and outputting the name of the magnetic disk device and the corresponding magnetic disk array mode to a display interface for a user to check.
Optionally, the preset mode obtaining instruction, the identifier obtaining instruction, the disk device number obtaining instruction and the name obtaining instruction are preset instructions of the server.
Another aspect of the present disclosure provides a disk array mode query apparatus, including: the input module is used for receiving the name of the disk equipment queried by the user; the inquiring module is used for inquiring the disk array mode corresponding to the disk equipment name inquired by the user according to the corresponding relation between the disk equipment name and the pre-established disk array mode; the identifier and mode acquisition module is used for acquiring a disk array mode and a common identifier of each disk device on the server; a disk device name acquisition module, configured to acquire a disk device name of each disk device through each common identifier; and the relation establishing module is used for establishing the corresponding relation between the name of the disk device and the disk array mode.
Optionally, the apparatus further comprises: and the output module is used for outputting the inquired name of the disk device and the corresponding disk array mode to a display interface for a user to check.
Another aspect of the present disclosure provides a computer system comprising: one or more processors; a memory for storing one or more instructions that, when executed by the one or more processors, cause the one or more processors to implement the method of the first aspect.
Another aspect of the present disclosure provides a computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to implement the method of the first aspect.
According to the embodiment of the disclosure, the method, the device, the computer system and the computer storage medium for inquiring the disk array mode are provided, the disk array mode of the disk device and the name of the disk device are used for corresponding to a common identifier, after the disk array mode of the disk device and the common identifier are obtained, the name of the disk device is obtained by using the common identifier, and the connection between the disk array mode and the name of the disk device is established, so that a user can directly know which disk array mode is used by each disk device on a server, the disk resources can be more reasonably utilized, and the problems of resource waste, unstable system caused by misuse of disks and the like are avoided.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments thereof with reference to the accompanying drawings in which:
FIG. 1 schematically illustrates a flow chart of a disk array pattern query method according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a block diagram of a disk array pattern querying device in accordance with an embodiment of the present disclosure;
fig. 3 schematically illustrates a block diagram of a computer system according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where expressions like at least one of "A, B and C, etc. are used, the expressions should generally be interpreted in accordance with the meaning as commonly understood by those skilled in the art (e.g.," a system having at least one of A, B and C "shall include, but not be limited to, a system having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a formulation similar to at least one of "A, B or C, etc." is used, in general such a formulation should be interpreted in accordance with the ordinary understanding of one skilled in the art (e.g. "a system with at least one of A, B or C" would include but not be limited to systems with a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
According to the embodiment of the disclosure, a disk array mode query method, a device, a system, a computer system and a computer storage medium are provided, and a common identifier corresponding to a disk array mode of a disk device and a disk device name is utilized to establish a connection between the two, so that which disk array mode each disk device on an operating system is respectively is determined. The following is an exemplary description with reference to the accompanying drawings. It should be noted that the sequence numbers of the respective operations in the following methods are merely representative of the operations for the purpose of description, and should not be construed as representing the order of execution of the respective operations. The method need not be performed in the exact order shown unless explicitly stated.
It should be noted that, the method and the device for querying disk array mode of the present disclosure may be used in the financial field, and may also be used in any field other than the financial field, and the application field of the method and the device for querying disk array mode of the present disclosure is not limited.
The terms referred to herein are explained as follows:
the magnetic disk is a memory for storing data by using a magnetic recording technology, is a main storage medium of a computer, can store a large amount of binary data, and can keep the data from losing even after power is off. The Disk used in early computers was a Floppy Disk (Floppy Disk), and the Disk commonly used today was a Hard Disk (Hard Disk).
Disk array mode is a technique for combining multiple independent hard disks (physical hard disks) in different ways to form a hard disk group (logical hard disk), thereby providing higher storage performance than a single hard disk and providing data backup. It mainly includes nine modes, denominated by numerals, RAID0, RAID1 through RAID 7, and RAID 0+1, with the four modes RAID0, RAID1, RAID5, and RAID 0+1 being the most common.
Fig. 1 schematically illustrates a flowchart of a disk array pattern query method according to an embodiment of the present disclosure.
As shown in fig. 1, a disk array mode query method provided by the present disclosure may include operations S110 to S120.
In operation S110, a disk device name queried by a user is received.
In the embodiment of the present disclosure, a correspondence relationship between a disk array mode and a disk device name may be established in advance, and then, the server may accept a user inquiry to specify a geomagnetic disk device name.
In operation S120, a disk array pattern corresponding to the disk device name queried by the user is queried according to the correspondence relationship between the disk device name and the disk array pattern.
According to the embodiment of the disclosure, after the correspondence between the disk device names and the disk array modes is established, the disk device names and the disk array modes of each disk device are stored in an associated mode, an instruction containing the disk device names is input through a software or web interface or an operating system command interface, the disk array mode of the designated disk device is queried, the directional query of the disk array mode of the disk device is realized, and a user only obtains the disk array mode of the disk device to be understood, so that the method is convenient and quick.
Optionally, the method may be automatically executed after a preset instruction is input by the user on the operating system, or may be executed by clicking a webpage or a button on software by the user, where the triggering manner is not unique and is not limited herein.
In the present disclosure, a method is described using a server including a disk device as a carrier, and one or more servers may be used. It will be appreciated that the device to which the method is applicable is not limited to a server but may be a smart phone, tablet, laptop and desktop computer, etc.
In the embodiment of the present disclosure, the establishment of the correspondence between the disk array mode and the disk device name includes steps S130 to S150.
In operation S130, a common identifier and a disk array pattern of each disk device on the server are acquired.
It should be noted that, the existence of the common identifier is not generally known to those skilled in the art, and the present disclosure uses an identifier that corresponds to a disk array mode and a disk device name on an operating system together to establish a connection between the two, so as to determine a disk array mode used by a disk device on the operating system.
According to an embodiment of the present disclosure, the common identifier and the disk array mode of each disk device may be acquired by executing a preset identifier acquisition instruction and mode acquisition instruction, and operations S131 to S133 may be included.
In operation S131, a preset code number corresponding to each disk device on the server is obtained.
Operation S131 includes two steps S1311 to S1312.
S1311, executing a preset disk device number acquisition instruction to acquire the total number of disk devices on the server.
According to the embodiment of the disclosure, when a user needs to know the disk array mode of each disk device, the total number N of all the disk devices on the server is obtained, and the total number of the disk devices can be obtained through a command, for example, by using a disk array management tool Storcli, executing the instruction "/opt/MegaRAID/starch 64/c0 show all|grep 'Virtual Drives'", after executing the command, the result is displayed through a window, and a part of the display result equal to the total number of the disk devices on the operating system is extracted. Storcli is only an optional disk array management tool, and other disk array management tools may be used to obtain corresponding information, and such tools will be used in the following steps, which will not be described further.
Alternatively, the window displaying the echo result may be a web page, a system window of an operating system, a visualized client software window, a terminal screen using Xshell, or the like.
S1312, obtaining preset coding serial numbers of all the magnetic disk devices based on the total number of the magnetic disk devices.
When each magnetic disk device is configured in the server, a preset coding sequence number is obtained for distinguishing the respective identities, and the preset coding sequence number of each magnetic disk device can be deduced to be 0 to N-1 in sequence because of the total number N of the obtained magnetic disk devices.
In operation S132, a preset mode acquisition instruction is sequentially executed on each disk device according to the preset code number, so as to acquire a disk array mode of each disk device.
The preset code sequence numbers of the disk devices correspond to the disk array modes of the disk devices, so that the disk array modes of the disk devices can be obtained by obtaining the preset code sequence numbers of the disk devices.
Alternatively, the mode acquisition instruction may be: the method comprises the steps of/opt/MegaRAID/garcili 64/c0/v { i } show all|grep RAID, wherein i represents a preset coding sequence number of the disk device, i represents a value of i, and the instruction means that a disk array mode of the disk device i is queried through a disk array management tool garcili. For example, when the preset encoding sequence number of the magnetic disk device is i=1, the corresponding mode acquisition instruction is: and (3) the opt/MegaRAID/store li64/c0/v1show all|grep RAID is used for inquiring the disk array mode of the disk device with the preset code number of 1, acquiring a echo after executing the command, and extracting a part of the echo representing the disk device array mode.
In operation S133, a preset identifier acquisition instruction is executed for each disk device according to the preset encoding sequence number, and a common identifier of each disk device is acquired.
Since the preset code serial numbers of the magnetic disk devices also correspond to the common identifiers, the common identifiers of the magnetic disk devices can be obtained by obtaining the preset code serial numbers of the magnetic disk devices.
Alternatively, the identifier acquisition instruction may be: the method comprises the steps of (1) carrying out an instruction by using a disk array management tool (garcali) to inquire a common identifier of a disk device (i), acquiring a back display after executing the instruction, and extracting a part of the common identifier of the back display, wherein i represents a preset coding sequence number of the disk device, and { i } represents a value of i.
According to the embodiment of the disclosure, after the instruction is executed, the result may be displayed back to the user through the window, and at the same time, the common identifier and the corresponding disk array mode are stored.
In operation S140, the disk device names of the respective disk devices are acquired by the respective common identifiers.
According to an embodiment of the present disclosure, the corresponding disk device name may be acquired by executing a preset name acquisition instruction, and operations S121 to S122 may be specifically included.
In operation S141, a preset name acquisition instruction is executed to acquire a disk device name corresponding to the common identifier.
According to the embodiments of the present disclosure, by using the correspondence relationship existing between the common identifier of each disk device and the disk device name of that disk device, the disk device name can be queried through the common identifier. The name acquisition instruction may be: "ls-al/dev/disk/by-id|grep wwn-0x { common identifier }" where { common identifier } represents the value of the common identifier, after execution of the command, the echo is obtained and the portion representing the disk device name on the operating system is extracted.
Alternatively, the common identifier is a character string such as "67000585bb657cc723a3f4e807e5 feea".
The preset mode acquisition instruction, the identifier acquisition instruction, the disk equipment quantity acquisition instruction and the name acquisition instruction are all preset instructions of the server.
Alternatively, the mode obtaining instruction, the identifier obtaining instruction, the disk device number obtaining instruction, and the name obtaining instruction may be a storage path for storing the disk array mode, the common identifier, the disk device number, and the disk device name for the server system.
In operation S142, the disk device names of the respective disk devices and the corresponding disk array patterns are stored.
In operation S150, a correspondence relationship between the disk device names and the disk array patterns is established.
According to the embodiment of the disclosure, after the disk array mode and the disk device name of the disk device are acquired, the disk array mode and the disk device name are correspondingly associated in the form of key value pairs, tables, labels and the like, so that the disk array mode and the disk device name are displayed for a user to check in pairs, the user can intuitively know the disk array mode of each disk device, and each disk device is more reasonably utilized.
Optionally, the method may further include operation S160.
In operation S161, the disk device name and the corresponding disk array mode are output to the display interface for viewing by the user.
According to the embodiment of the present disclosure, after the operation S130 is performed, the disk device names of all the disk devices on the server and the disk array modes corresponding to the disk device names may be displayed to the user through the display interface, so that the user may acquire the disk array modes of each disk device in real time; after the disk array name queried by the user is queried, the queried result is also displayed to the user for viewing.
Alternatively, the display interface may be software, a web page interface, an operating system command interface, a terminal screen using Xshell, or the like.
The following is an exemplary description with reference to specific examples.
In this example, since the server cannot display the disk array mode of the disk device and its disk device name to the user, in order to enable the user to intuitively check which disk array mode is used by each disk device, the disk device name and the disk array mode of the corresponding disk device may be associated with each other by using the common identifier of the disk device, and displayed to the user. Taking a server including three disk devices with the name sda, sdb, sdc as an example, the corresponding disk array modes are RAID0, RAID1 and RAID5 respectively. Firstly, a query instruction is executed through a disk array management tool Storcli, and the total number of all disk devices on a server is obtained, so that the number of the disk devices is 3.
Then, according to the total number of the disk devices, the preset coding sequence numbers of the disk devices are deduced, the disk devices are respectively marked as 0, 1 and 2, according to the preset coding sequence number sequence, a disk array management tool garcili respectively executes an identifier acquisition instruction and a mode acquisition instruction for the corresponding disk devices to acquire a common identifier and a disk array mode of the disk devices, and taking the disk device 1 as an example to acquire the common identifier and the disk array mode of the disk devices, wherein the disk array mode is RAID1.
And secondly, executing a name acquisition instruction through a disk array management tool Storcli according to the common identifier of the acquired disk device to acquire the disk device name of the disk device. Taking disk device 0 as an example, its disk device name "sda" is acquired by the common identifier.
And finally, establishing a corresponding relation between the names of the disk devices and the disk array modes, such as establishing key value pair storage for "sda" and "RAID0", "sdb" and "RAID1", "sdc" and "RAID5", and displaying the key value pair storage through an interface for the user to review.
According to the disk array mode query method provided by the disclosure, the disk array mode of the disk device and the name of the disk device correspond to one common identifier, after the disk array mode of the disk device and the common identifier are acquired, the name of the disk device is acquired by the common identifier, the connection between the disk array mode and the name of the disk device is established, the names of all the disk devices on the server and the disk array mode thereof can be displayed to a user for viewing through an interface by performing one-time method (the user operation can be simplified to be a simple operation such as pressing a key or inputting an instruction), so that the user can know the disk array mode of each disk device on the server, the user can know which disk array mode is used by each disk device on the server, the disk resources can be utilized more reasonably, and the problems of resource waste, unstable system caused by misuse of disks and the like are avoided.
Fig. 2 schematically illustrates a block diagram of a disk array pattern querying device according to an embodiment of the present disclosure. It should be noted that fig. 2 is only an example of an apparatus architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, but does not mean that the embodiments of the present disclosure may not be used in other devices, systems, environments, or scenarios.
As shown in fig. 2, the present disclosure provides a disk array mode query apparatus 200, including: the system comprises an input module 210, a query module 220, an identifier and mode acquisition module 230, a disk device name acquisition module 240 and a relationship establishment module 250.
An input module 210, configured to receive a disk device name queried by a user;
and a query module 220, configured to query the disk array mode corresponding to the disk device name queried by the user according to the correspondence between the disk device name and the disk array mode.
Wherein, the corresponding relationship between the disk array mode and the disk device name is established by the identifier and mode obtaining module 230, the disk device name obtaining module 240 and the relationship establishing module 250.
An identifier and mode obtaining module 230, configured to obtain a common identifier and a disk array mode of each disk device on the server;
a disk device name obtaining module 240, configured to obtain, through each common identifier, a disk device name of each disk device;
the relationship establishing module 250 is configured to establish a correspondence relationship between the name of the disk device and the disk array mode.
Optionally, the apparatus further comprises: and an output module 260.
And the output module 260 is configured to output the queried name of the disk device and the corresponding disk array mode to the display interface for the user to view.
For example, the process of querying each disk device for which disk array mode using the disk array mode querying apparatus 200 may include: when a user starts a disk array mode inquiring device to inquire a disk array mode of a certain disk device, the input module 210 receives the name of the disk device inquired by the user and transmits the name of the disk device to the inquiring module 220; the query module 220 queries a disk array mode corresponding to the disk device name queried by the user according to the corresponding relation between the prestored disk device name and the disk array mode; the output module 260 outputs the disk device name and the corresponding disk array mode to the display interface for the user to view. Wherein, the correspondence between the prestored disk device names and the disk array modes is obtained by the identifier and mode obtaining module 230, the disk device name obtaining module 240 and the relationship establishing module 250, which includes: the identifier and mode obtaining module 230 obtains a disk array mode and a common identifier of each disk device on the server; then, the disk device name acquisition module 240 executes a name acquisition instruction according to the common identifier of each disk device, obtains the disk device name of each disk device, and then the relationship establishment module 230 associates and stores the disk device name of each disk device with the disk array mode.
It should be noted that, in the embodiment of the apparatus portion, the implementation manner, the solved technical problem, the realized function, and the achieved technical effect of each module/unit/subunit and the like are the same as or similar to the implementation manner, the solved technical problem, the realized function, and the achieved technical effect of each corresponding step in the embodiment of the method portion, and are not described herein again.
It is understood that the input module 210, the query module 220, the identifier and pattern acquisition module 230, the disk device name acquisition module 240, and the relationship establishment module 250 may be combined in one module, or any one of the modules may be split into a plurality of modules. Alternatively, at least some of the functionality of one or more of the modules may be combined with at least some of the functionality of other modules and implemented in one module. According to embodiments of the invention, at least one of the input module 210, the query module 220, the identifier and pattern acquisition module 230, the disk device name acquisition module 240, the relationship establishment module 250 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or any other reasonable manner of integrating or packaging the circuitry, or in hardware or firmware, or in a suitable combination of software, hardware, and firmware implementations. Alternatively, at least one of the input module 210, the query module 220, the identifier and pattern acquisition module 230, the disk device name acquisition module 240, and the relationship establishment module 250 may be at least partially implemented as a computer program module, which when executed by a computer, may perform the functions of the respective module.
Fig. 3 schematically illustrates a block diagram of a computer system according to an embodiment of the disclosure.
Fig. 3 schematically illustrates a block diagram of a computer system suitable for implementing the above-described method according to an embodiment of the present disclosure. The computer system illustrated in fig. 3 is merely an example, and should not be construed as limiting the functionality and scope of use of the embodiments of the present disclosure.
As shown in fig. 3, a computer system 300 according to an embodiment of the present disclosure includes a processor 301 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 302 or a program loaded from a storage section 308 into a Random Access Memory (RAM) 303. Processor 301 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. Processor 301 may also include on-board memory for caching purposes. Processor 301 may include a single processing unit or multiple processing units for performing the different actions of the method flows according to embodiments of the disclosure.
In the RAM 303, various programs and data required for the operation of the system 300 are stored. The processor 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. The processor 301 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 302 and/or the RAM 303. Note that the program may be stored in one or more memories other than the ROM 302 and the RAM 303. The processor 301 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in one or more memories.
According to an embodiment of the present disclosure, the system 300 may further include an input/output (I/O) interface 305, the input/output (I/O) interface 305 also being connected to the bus 304. The system 300 may also include one or more of the following components connected to the I/O interface 305: an input section 306 including a keyboard, a mouse, and the like; an output portion 307 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 308 including a hard disk or the like; and a communication section 303 including a network interface card such as a LAN card, a modem, and the like. The communication section 303 performs communication processing via a network such as the internet. The drive 310 is also connected to the I/O interface 305 as needed. A removable medium 311 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed on the drive 310 as needed, so that a computer program read therefrom is installed into the storage section 308 as needed.
According to embodiments of the present disclosure, the method flow according to embodiments of the present disclosure may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 303, and/or installed from the removable medium 311. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 301. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be combined in various combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (10)

1. A disk array mode query method is applied to a server and is characterized by comprising the following steps:
receiving a disk device name queried by a user;
inquiring a disk array mode corresponding to the disk equipment name inquired by the user according to the corresponding relation between the disk equipment name and the pre-established disk array mode;
the disk array mode is generated by the following steps:
obtaining a disk array mode and a common identifier of each disk device on the server;
obtaining the disk device names of the disk devices through the common identifiers;
and establishing a corresponding relation between the name of the disk device and the disk array mode.
2. The method of claim 1, wherein the obtaining the disk array pattern and the common identifier of each disk device on the server comprises:
acquiring a preset coding sequence number corresponding to each magnetic disk device on the server;
according to the preset coding sequence number, a preset mode acquisition instruction is sequentially executed on each magnetic disk device, and a magnetic disk array mode of each magnetic disk device is acquired;
and executing a preset identifier acquisition instruction on each magnetic disk device according to the preset coding sequence number to acquire a common identifier of each magnetic disk device.
3. The method of claim 2, wherein the obtaining the preset code number corresponding to each of the disk devices on the server includes:
executing a preset disk device quantity acquisition instruction to acquire the total number of disk devices on the server;
and obtaining preset coding serial numbers of the magnetic disk devices based on the total number of the magnetic disk devices.
4. The method of claim 3, wherein the obtaining, by each of the common identifiers, a disk device name of each of the disk devices comprises:
executing a preset name acquisition instruction to acquire the name of the disk device corresponding to the common identifier;
and storing the disk device names of the disk devices and the corresponding disk array modes.
5. The method according to claim 4, wherein the method further comprises:
and outputting the inquired name of the disk device and the corresponding disk array mode to a display interface for a user to check.
6. The method of claim 4, wherein the preset mode acquisition instruction, the identifier acquisition instruction, the disk device number acquisition instruction, and the name acquisition instruction are preset instructions of the server.
7. A disk array mode query device applied to a server, comprising:
the input module is used for receiving the name of the disk equipment queried by the user;
the inquiring module is used for inquiring the disk array mode corresponding to the disk equipment name inquired by the user according to the corresponding relation between the disk equipment name and the pre-established disk array mode;
the identifier and mode acquisition module is used for acquiring a disk array mode and a common identifier of each disk device on the server;
a disk device name acquisition module, configured to acquire a disk device name of each disk device through each common identifier;
and the relation establishing module is used for establishing the corresponding relation between the name of the disk device and the disk array mode.
8. The apparatus of claim 7, wherein the apparatus further comprises:
and the output module is used for outputting the inquired name of the disk device and the corresponding disk array mode to a display interface for a user to check.
9. A computer system, comprising:
one or more processors;
a memory for storing one or more instructions,
wherein the one or more instructions, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-6.
10. A computer readable storage medium having stored thereon executable instructions which when executed by a processor cause the processor to implement the method of any of claims 1 to 6.
CN202010809843.1A 2020-08-12 2020-08-12 Disk array mode query method, device, computer system and medium Active CN111914131B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010809843.1A CN111914131B (en) 2020-08-12 2020-08-12 Disk array mode query method, device, computer system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010809843.1A CN111914131B (en) 2020-08-12 2020-08-12 Disk array mode query method, device, computer system and medium

Publications (2)

Publication Number Publication Date
CN111914131A CN111914131A (en) 2020-11-10
CN111914131B true CN111914131B (en) 2023-11-21

Family

ID=73284850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010809843.1A Active CN111914131B (en) 2020-08-12 2020-08-12 Disk array mode query method, device, computer system and medium

Country Status (1)

Country Link
CN (1) CN111914131B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557266A (en) * 2015-09-25 2017-04-05 伊姆西公司 For the method and apparatus of RAID RAID
CN107122138A (en) * 2017-04-28 2017-09-01 郑州云海信息技术有限公司 A kind of device and method for configuring disk array
CN111309535A (en) * 2020-02-14 2020-06-19 苏州浪潮智能科技有限公司 Method and system for testing hard disk in server, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557266A (en) * 2015-09-25 2017-04-05 伊姆西公司 For the method and apparatus of RAID RAID
CN107122138A (en) * 2017-04-28 2017-09-01 郑州云海信息技术有限公司 A kind of device and method for configuring disk array
CN111309535A (en) * 2020-02-14 2020-06-19 苏州浪潮智能科技有限公司 Method and system for testing hard disk in server, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111914131A (en) 2020-11-10

Similar Documents

Publication Publication Date Title
US9037555B2 (en) Asynchronous collection and correlation of trace and communications event data
CN111026931B (en) Data query method, device, equipment and medium
CN111796978B (en) Interface detection method, device, system, equipment and storage medium
US20080091775A1 (en) Method and apparatus for parallel operations on a plurality of network servers
CN111857674A (en) Business product generation method and device, electronic equipment and readable storage medium
CN114077367A (en) Method and device for realizing shortcut of android application in Linux system
CN111625625A (en) Method and device for determining abnormal log, computer equipment and storage medium
CN113656041A (en) Data processing method, device, equipment and storage medium
CN111552715A (en) User query method and device
CN113779117A (en) Data monitoring method and device, storage medium and electronic equipment
CN111914131B (en) Disk array mode query method, device, computer system and medium
CN107729341B (en) Electronic device, information inquiry control method, and computer-readable storage medium
CN112506490B (en) Interface generation method, device, electronic device and storage medium
CN114003608A (en) Form data temporary storage method, server, terminal device and storage medium
CN112445790B (en) Report data storage method, device, equipment and medium
US7356683B2 (en) System and method for monitoring BIOS messages of remote computers by a local server
CN112667513A (en) Test method, test device, test equipment and storage medium
CN112214497A (en) Label processing method and device and computer system
CN110427377B (en) Data processing method, device, equipment and storage medium
CN112364268A (en) Resource acquisition method and device, electronic equipment and storage medium
JP7696015B2 (en) Efficient storage and querying of schemaless data
CN113626099B (en) Application program starting method and device and electronic equipment
US20170161359A1 (en) Pattern-driven data generator
CN114218000A (en) Log management method and device, electronic equipment and computer readable storage medium
US20050235049A1 (en) System and method for monitoring startup processes of remote computers by a local server

Legal Events

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