WO2019062093A1 - Raid管理方法、装置及计算机可读存储介质 - Google Patents

Raid管理方法、装置及计算机可读存储介质 Download PDF

Info

Publication number
WO2019062093A1
WO2019062093A1 PCT/CN2018/084091 CN2018084091W WO2019062093A1 WO 2019062093 A1 WO2019062093 A1 WO 2019062093A1 CN 2018084091 W CN2018084091 W CN 2018084091W WO 2019062093 A1 WO2019062093 A1 WO 2019062093A1
Authority
WO
WIPO (PCT)
Prior art keywords
raid
information
interface
disk
management method
Prior art date
Application number
PCT/CN2018/084091
Other languages
English (en)
French (fr)
Inventor
杜伟
周伟明
张少龙
Original Assignee
深圳市华德安科技有限公司
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 深圳市华德安科技有限公司 filed Critical 深圳市华德安科技有限公司
Publication of WO2019062093A1 publication Critical patent/WO2019062093A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers

Definitions

  • the present invention relates to the field of disk array technologies, and in particular, to a RAID management method, apparatus, and computer readable storage medium.
  • RAID Redundant Array of Independent Disks
  • RAID Redundant Array of Independent Disks
  • RAID 10 management is mainly implemented for terminals such as windows systems and large servers of the Linux system, and RAID 10 management cannot be performed in the terminals of the Android system.
  • the main purpose of the present invention is to provide a RAID management method, apparatus, and computer readable storage medium, which are aimed at solving the technical problem that the RAID 10 management cannot be implemented in the terminal of the Android system.
  • the present invention provides a RAID management method, which is applied to a terminal for installing an Android system, and the RAID management method includes the following steps:
  • the corresponding first RAID information is generated based on the configuration information, where the first RAID information includes a RAID 10 level and disk information;
  • an array creation interface including the first RAID information and a creation option corresponding to the first RAID information is displayed;
  • the RAID 10 Upon receiving the RAID 10 creation instruction triggered based on the creation option in the array creation interface, the RAID 10 is created based on the first RAID information and through the corresponding RAID 10 interface.
  • the present invention further provides a RAID management apparatus, which is applied to a terminal for installing an Android system, the RAID management apparatus including: a memory, a processor, and a memory stored in the memory and in the processor A RAID management program running thereon, wherein the RAID management program is executed by the processor to implement the steps of the RAID management method described in any of the above.
  • the present invention further provides a computer readable storage medium, wherein the computer readable storage medium stores a RAID management program, and the RAID management program is implemented by a processor to implement the foregoing The steps of a RAID management method as described.
  • the first RAID information is generated based on the configuration information, and then the number of disks corresponding to the disk information is 2N and N.
  • an array creation interface including the first RAID information and a creation option corresponding to the first RAID information is displayed, and then when a RAID creation instruction triggered based on a creation option in the array creation interface is received
  • the RAID 10 can be created through the corresponding RAID 10 interface according to the user requirements, and the RAID 10 management can be implemented through the terminal of the Android system, thereby improving the convenience of the RAID 10 management.
  • FIG. 1 is a schematic structural diagram of a terminal to which a RAID management device belongs in a hardware operating environment according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a first embodiment of a RAID management method according to the present invention
  • FIG. 3 is a schematic diagram of a storage structure of a RAID 10
  • FIG. 4 is a schematic diagram of the architecture of RAID 10.
  • FIG. 1 is a schematic structural diagram of a terminal to which a RAID management device belongs in a hardware operating environment according to an embodiment of the present invention.
  • the terminal of the embodiment of the present invention may be a PC.
  • the terminal may include a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002.
  • the communication bus 1002 is used to implement connection communication between these components.
  • the user interface 1003 can include a display, an input unit such as a keyboard, and the optional user interface 1003 can also include a standard wired interface, a wireless interface.
  • the network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface).
  • the memory 1005 may be a high speed RAM memory or a stable memory (non-volatile) Memory), such as disk storage.
  • the memory 1005 can also optionally be a storage device independent of the aforementioned processor 1001.
  • the terminal may further include a camera, RF (Radio) Frequency, RF) circuits, sensors, audio circuits, WiFi modules, and more.
  • sensors such as light sensors, motion sensors, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display according to the brightness of the ambient light, and the proximity sensor may turn off the display and/or when the mobile terminal moves to the ear. Backlighting.
  • the gravity acceleration sensor can detect the magnitude of acceleration in each direction (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, Related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. No longer.
  • terminal structure shown in FIG. 1 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
  • an operating system may be included in the memory 1005 as a computer storage medium.
  • a network communication module may be included in the memory 1005 as a computer storage medium.
  • a user interface module may be included in the memory 1005 as a computer storage medium.
  • a RAID management program may be included in the memory 1005 as a computer storage medium.
  • the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server;
  • the user interface 1003 is mainly used to connect the client (user end), and perform data communication with the client; and the processor
  • the 1001 may be used to invoke the RAID management program stored in the memory 1005, and execute the RAID management method provided by the embodiment of the present application.
  • FIG. 2 is a schematic flowchart diagram of a first embodiment of a RAID management method according to the present invention.
  • the RAID management method is applied to a terminal for installing an Android system
  • the terminal for installing the Android system may be a mobile terminal, such as a mobile phone, an IPAD, or a smart wearable device.
  • the RAID management method includes the following steps:
  • Step S110 when receiving configuration information of the disk array RAID 10 input by the user based on the currently displayed configuration interface, generating corresponding first RAID information based on the configuration information, where the first RAID information includes a RAID 10 level and disk information;
  • RAID technology is the core processing technology of storage disk arrays, and its purpose is to improve the efficiency and fault tolerance of data processing.
  • the storage system generally adopts the necessary means to ensure the performance of the system.
  • the usual method is to set the cache system.
  • the caching system is a virtualized system that works by efficiently processing I/O requests to improve performance.
  • FIG. 3 is a schematic diagram of a storage structure of the RAID 10.
  • RAID 10 technology combines RAID1 and RAID0, often referred to as RAID0+1.
  • RAID 10 has both efficient RAID 0 and high availability RAID 1 , which is characterized by high CPU usage and low disk utilization. The only thing worthy of recognition is the high readability of data and good data protection recovery. This makes the RAID10 cost-effective, but the storage capacity is less than half of the total capacity.
  • the structure of RAID10 is such that multiple independent RAID1s form RAID0. Because there is no code design, it is called logical RAID. When the system performs data write request processing, the data is stored in sequence on each RAID1.
  • sda and sdb form a RAID1
  • sdc and sdd, sde, and sdf form two additional RAID1s.
  • RAID1 forms RAID0 again.
  • the data D0, D3, D6, D9 written on sda, written in sdb is the data D0, D3, D6, D9
  • the data in sdc and sdd are D1, D4, D7, D10, the same sde and sdf
  • the data is D2, D5, D8, and D11. Therefore, the data is stored on each member disk, and the data pieces exist in RAID 1 or RAID 0, respectively, and have the characteristics of each RAID.
  • RAID10 is less than half of the total capacity in terms of storage capacity, its high-speed data processing capability and data reliability of dual backup make it highly attractive.
  • the disk array of the entire array can still work.
  • the system crashes directly when two disks fail This is because if a failed disk appears on two member disks of the same RAID0, such as sda and sdb, data loss will be irreparable. If it appears in a different RAID1, such as sda and sdc, then no data leakage, or data loss, will occur. Two faulty disks appear between different RAID1s, and the RAID status is displayed as severe.
  • the RAID of the structure does not have data verification, so there is no parity data bit, and data verification or data de-verification cannot be performed when the data is missing.
  • the structural design is based on The principle of RAID1 and RAID0 does not carry out detailed source code design. Basically, it needs to meet the characteristics of RAID1 and RAID0 to operate. Otherwise, data recovery operation cannot be performed.
  • the terminal that installs the Android system is installed with a RAID management application APP, and the holder (user) of the terminal owns the login password corresponding to the login account of the APP, and after the user logs in, the terminal can be displayed.
  • the interface displays the RAID10 management main interface corresponding to the APP.
  • the RAID10 management main interface includes array creation information, current login user information, current disk array information, disk capacity information of each disk array, free disk information, and configuration interface. Navigation information of the secondary interface such as the operation interface. You can use the navigation information corresponding to the configuration interface in the RAID10 management main interface to enter the configuration interface.
  • the user when the configuration interface setting is completed, the user can submit the configuration information of the RAID 10 through the option (button) of the current interface, and when receiving the configuration information of the RAID 10 input by the user based on the currently displayed configuration interface, based on The configuration information generates corresponding first RAID information, that is, all the configuration information is packaged according to a preset format to generate first RAID information.
  • the configuration information includes RAID 10 level information, disk information, and/or hot spare disk information.
  • step S120 when the number of disks corresponding to the disk information is 2N and N is greater than or equal to 2, an array creation interface including the first RAID information and the creation option corresponding to the first RAID information is displayed;
  • the display screen of the terminal is popped up or switched to the array creation interface, and the array is created.
  • the interface is configured to display the first RAID information and the creation option corresponding to the first RAID information, and the user can re-confirm whether the related configuration of the RAID to be created is correct by using the displayed first RAID information, and the related configuration may be passed when the related configuration is correct.
  • the creation option (button) displayed on the current array creation interface triggers the RAID10 creation instruction.
  • the first RAID information includes RAID 10 level information, disk information and/or hot spare disk information, RAID 10 interface information, and the like required for the RAID 10 to be created.
  • Step S130 when receiving a RAID10 creation instruction triggered based on the creation option in the array creation interface, create a RAID 10 based on the first RAID information and through a corresponding RAID 10 interface.
  • the terminal when the user clicks (selects) the creation selection time in the array creation interface, the RAID 10 creation instruction is triggered, and when receiving the RAID 10 creation instruction triggered based on the creation option in the array creation interface, the terminal passes the The RAID 10 interface corresponding to the first RAID information creates a RAID 10 based on the first RAID information.
  • the step S130 includes: through the first RAID information and through the corresponding RAID 10 interface, based on the RAID 10 format disk corresponding to the disk information and the RAID 10 format hot standby corresponding to the hot spare disk information.
  • the disk creates the RAID 10.
  • FIG. 4 is a schematic diagram of the architecture of the RAID 10.
  • the disk device When creating a RAID 10, the disk device requires 2N and N is greater than or equal to 2. That is, the number of RAID 10 disks in the MCU hardware layer is 2N, and N is greater than or equal to 2.
  • Linux kernel layer mainly modify the kernel driver, and currently the Linux kernel version needs 2.6 versions to support RAID devices.
  • the environment tested in this paper is Linux3.4.39 only need to open the function of the RAID device in the MD device, the specific configuration process As follows: a., enter Device Driver; b, select Mutiple devices driver support (RAID and LVM); c, select two options related to RAID-10.
  • Android system layer mainly deploy RAID tools to the system. For example, port mdadm, Btrfs, raidtools and other tools to the system process directory /system/bin.
  • a module such as a configuration module and an array creation module may be set in the terminal of the Android system, and the configuration module receives the disk array configuration information input by the user, and generates corresponding disk array information, and the array creation module is configured according to the configuration.
  • the disk array information generated by the module creates a corresponding RAID 10 interface.
  • the RAID management method of the present embodiment generates a corresponding first RAID information based on the configuration information, and then corresponds to the disk information, by receiving configuration information of the disk array RAID 10 input by the user based on the currently displayed configuration interface.
  • the number of disks is 2N and N is greater than or equal to 2
  • an array creation interface including the first RAID information and a creation option corresponding to the first RAID information is displayed, and then the creation based on the array creation interface is received.
  • the RAID 10 creation command is triggered by the option, the RAID 10 is created based on the first RAID information and the corresponding RAID 10 interface, and the RAID 10 can be created through the corresponding RAID 10 interface according to the user requirement, and the RAID 10 management can be implemented through the terminal of the Android system, and the RAID 10 management is improved. Convenience.
  • the RAID management method further includes:
  • step S140 when the disk that is currently in failure is detected, the second RAID information corresponding to the failed disk is obtained;
  • the terminal that installs the Android system can monitor the state of each disk currently in existence to obtain corresponding state information in real time, and obtain the corresponding disk corresponding to the invalid disk when determining the disk that is currently invalid according to the state information.
  • the RAID information is determined by the RAID 10 to which the failed disk belongs.
  • the second RAID information may be the number, name, and the like of the RAID 10.
  • step S150 the failed disk is deleted in the RAID 10 corresponding to the second RAID information by using the RAID 10 interface corresponding to the second RAID information.
  • the second RAID information is obtained, and the failed disk is deleted in the RAID 10 corresponding to the second RAID information.
  • the RAID 10 interface corresponding to the second RAID information may be used or invoked in the second The RAID 10 corresponding to the RAID information deletes the failed disk. Specifically, if the disks in the RAID 10 are paired, the failed disk and the disk paired with the failed disk are deleted at the same time. Otherwise, the failed disk and the RAID 10 are deleted at the same time. Any other disk in the disk, of course, can also select the disk corresponding to the failed disk according to the information storage data of the disk, for example, the disk with the highest storage rate of the disk is the disk corresponding to the failed disk.
  • step S160 the RAID 10 after the failed disk is deleted is reconstructed through the RAID 10 interface corresponding to the second RAID information based on the RAID 10 format disk that is currently in the idle state.
  • the RAID 10 format disk that is currently in an idle state is obtained.
  • the RAID 10 format disk in the idle state refers to a RAID 10 format disk that does not currently belong to any RAID 10.
  • the number of the RAID 10 format disks in the idle state is the same as the number of the disks that have been deleted, and then the RAID 10 formatted disks are rebuilt by the RAID 10 interface corresponding to the second RAID information to delete the failed disks, that is, after the reconstruction.
  • the RAID 10 includes the remaining disks and hot spare disks in the RAID 10 after the failed disks are deleted, and the RAID 10 format disks in the idle state. If the disk corresponding to the failed disk is deleted at the same time, the number of the RAID 10 format disks in the idle state is the same as the number of the deleted disks in the RAID 10.
  • the RAID 10 after the failed disk is deleted meets the requirement of the level of the RAID 10, that is, when the number of disks of the RAID 10 after the RAID 10 format disk is deleted is 2N, and N is greater than or equal to 2, the direct RAID10 is rebuilt.
  • the RAID management method of the present embodiment is configured to obtain the second RAID information corresponding to the failed disk when the disk that is currently in use is detected, and then delete the failed disk in the RAID 10 corresponding to the second RAID information, and then The RAID 10 format disk that is currently in an idle state is rebuilt by the RAID 1 interface corresponding to the second RAID information to delete the RAID 10 after the failed disk is deleted, thereby enabling the deletion of the failed disk in the RAID 10 through the terminal of the Android system and performing the RAID 10 on the RAID 10 Reconstruction further enhances the convenience of RAID10 management.
  • the RAID management method further includes:
  • step S160 when it is detected that the abnormal RAID 10 exists in the RAID 10, the abnormal information corresponding to the abnormal RAID 10 and the third RAID information are acquired;
  • the terminal that installs the Android system can monitor the status of all the RAIDs 10 in real time, and determine whether there is an abnormal RAID 10 currently in the root monitoring result, wherein the abnormal RAID 10 includes the sudden power failure of the RAID 10 or the sudden power failure of the disk in the RAID 10.
  • the RAID 10 is undergoing reconfiguration, the disk order of the RAID 10 is disordered, the RAID 10 is accidentally deleted, misformatted or mispartitioned, the disk of the RAID 10 is bad or damaged, and the disk of the RAID 10 is pulled out.
  • the terminal acquires the abnormal information corresponding to the abnormal RAID 10 and the third RAID information, and the third RAID information may be the number, name, and the like of the RAID 10.
  • Step S170 displaying prompt information including the abnormality information and the third RAID information.
  • the acquired abnormal information and the third RAID information are displayed on the display screen of the terminal, so that the user knows that the abnormal RAID 10 is present in time.
  • voice alarm information and the like may be output.
  • the RAID management method of the present embodiment obtains the abnormality information corresponding to the abnormal RAID and the third RAID information when the abnormal RAID 10 is detected in the RAID 10, and then displays the prompt information including the abnormality information and the third RAID information.
  • the abnormal information is displayed, so that the user can know in time that the abnormal RAID 10 exists, and the convenience of the RAID 10 management is further improved.
  • the RAID management method before the step S110, the RAID management method further includes:
  • Step S180 Acquire a login account and a login password corresponding to the login request when receiving a login request triggered by the login interface.
  • the terminal for installing the Android system is installed with a RAID management application APP, and the holder (user) of the terminal owns the login password corresponding to the login account of the APP.
  • the login interface corresponding to the APP is displayed, so that the user inputs a corresponding login account and login password based on the login interface, and triggers the login request by clicking a login option or the like.
  • the terminal acquires the login account and the login password corresponding to the login request.
  • Step S190 when the login account and the login password are verified, the RAID 10 management main interface is displayed;
  • the RAID 10 management main interface when the login account and the login password are obtained, the login account and the login password are verified, and when the verification is passed, the RAID 10 management main interface is displayed on the display screen of the terminal.
  • the RAID 10 management main interface includes array creation information, current login user information, current disk array information, disk capacity information of each disk array, free disk information, configuration interface, and operation interface. Information, etc.
  • step S200 when receiving the configuration interface display request triggered by the RAID 10 management main interface, the configuration interface corresponding to the configuration interface display request is displayed.
  • the user can enter the configuration interface by using the navigation information corresponding to the configuration interface in the RAID 10 management main interface. Specifically, when the configuration interface display request triggered by the RAID 10 management main interface is received, the configuration interface is displayed. Request the corresponding configuration interface, and then the user can set the level of the disk array to be created, the disk to be used, the hot spare disk, or generate and import configuration files, etc., when the setting is completed, the current interface can be used.
  • the option (button) is submitted to implement the input of the configuration information of RAID10.
  • the RAID management method further includes:
  • the RAID 10 corresponding to the expansion command is used to expand the RAID 10 corresponding to the expansion command by using the RAID 10 interface corresponding to the expansion command;
  • the add/delete in the RAID 10 corresponding to the add/delete command is added/deleted by the RAID 10 interface corresponding to the add/delete command. Delete the RAID10 format hot spare disk corresponding to the instruction.
  • the RAID 10 can be expanded through the operation interface, that is, the disk is added in the RAID 10, the disk is deleted in the RAID 10, and the hot spare disk is added/deleted in the RAID 10.
  • the RAID 10 and the RAID 10 format disk corresponding to the expansion instruction are obtained, and the RAID 10 format disk to be added is added to the RAID 10 by using the RAID 10 interface corresponding to the expansion instruction.
  • the RAID 10 format disk to be added it is preferable to obtain the RAID 10 format disk to be added, and determine whether the RAID 10 after the expansion meets the requirement of the RAID 1 level, that is, the RAID 01 disk after the expansion.
  • the number is 2N, and N is greater than or equal to 2.
  • the RAID 10 format disk corresponding to the disk deletion instruction is determined, and the RAID 10 interface corresponding to the disk deletion instruction is deleted in the RAID 10 corresponding to the disk deletion instruction.
  • the RAID 10 after the disk is deleted is rebuilt.
  • the RAID 10 after the disk is deleted meets the requirement of the level of the RAID 10, that is, when the number of disks of the RAID 10 after the disk of the RAID 10 format to be deleted is deleted is 2N, and N is greater than or equal to 2, the reconstruction may be directly performed, or may be selected.
  • the other RAID 10 format disks with the same number of disks to be deleted are the same.
  • the RAID 10 is deleted after the disk is deleted to ensure that the capacity of the RAID 10 after the disk is deleted is unchanged.
  • the RAID 10 after the disk is deleted does not meet the RAID 10 level.
  • the RAID management method of the present embodiment obtains the login account and the login password corresponding to the login request when receiving the login request triggered by the login interface, and then displays the RAID 10 when the login account and the login password are verified.
  • the main interface is managed; and when the configuration interface display request triggered by the RAID 10 management main interface is received, the configuration interface corresponding to the request is displayed on the configuration interface, and the main interface of the RAID 10 management is displayed on the Android terminal, so that the user can manage the main interface according to the RAID 10
  • the displayed content management RAID10 further improves the convenience of RAID10 management.
  • the RAID management method further includes:
  • Step S210 when receiving an operation interface display request triggered by the RAID 10 management main interface, displaying an operation interface corresponding to the operation interface display request;
  • the user can enter the operation interface by using the navigation information corresponding to the configuration interface in the RAID 10 management main interface.
  • the configuration interface is displayed.
  • the corresponding operation interface is requested, and the operation interface includes RAID10 operation options such as start/stop, format, and the like.
  • Step S220 Acquire, according to the start/stop command triggered by the operation interface, acquiring fourth RAID information corresponding to the start/stop command;
  • the user may click a start/stop option of the operation interface to trigger a start/stop command, and when receiving a start/stop command triggered based on the operation interface, the terminal acquires the start/stop command correspondingly.
  • the fourth RAID information may be the number, name, and the like of the RAID 10.
  • Step S230 Start/stop the acquired RAID 10 corresponding to the fourth RAID information by using the RAID 10 interface corresponding to the fourth RAID information.
  • the terminal when acquiring the fourth RAID information, the terminal starts/stops the acquired RAID 10 corresponding to the fourth RAID information by using the RAID 10 interface corresponding to the fourth RAID information.
  • the RAID management method of the present embodiment displays an operation interface corresponding to the operation interface display request by receiving an operation interface triggered by the RAID management main interface, and then receives a startup triggered by the operation interface. And acquiring the fourth RAID information corresponding to the start/stop command, and then starting/stopping the acquired RAID 10 corresponding to the fourth RAID information by using the RAID 10 interface corresponding to the fourth RAID information, and being able to pass Android
  • the terminal implements the startup/stop control of RAID10, which further improves the convenience of RAID10 management.
  • the RAID management method further includes:
  • Step S240 when receiving a formatting instruction triggered by the operation interface, acquiring fifth RAID information corresponding to the formatting instruction;
  • the user can click the format option of the operation interface to trigger the formatting instruction.
  • the terminal acquires the fifth RAID corresponding to the formatting instruction.
  • the fifth RAID information may be information such as the number and name of the RAID 10.
  • Step S250 Format the RAID 10 corresponding to the fifth RAID information by using the RAID 10 interface corresponding to the fifth RAID information.
  • the terminal when the fifth RAID information is obtained, the terminal formats the RAID 10 corresponding to the fifth RAID information by using the RAID 10 interface corresponding to the fifth RAID information. Specifically, the terminal may determine to be formatted. The disk, and then delete the partition of the determined disk, and finally format the fifth RAID information corresponding to each disk in the RAID 10 as a RAID 10 format disk.
  • the RAID management method of the present embodiment obtains the fifth RAID information corresponding to the formatting instruction, and then passes the RAID 10 interface corresponding to the fifth RAID information, when receiving the formatting instruction triggered by the operation interface.
  • the RAID 10 corresponding to the fifth RAID information is formatted, and the format of the RAID 10 can be implemented by using the Android terminal, thereby further improving the convenience of the RAID 10 management.
  • step S250 includes:
  • Step S251 acquiring partition information of each disk in the RAID 10 corresponding to the fifth RAID information;
  • the terminal acquires the partition information of each disk in the RAID 10 corresponding to the fifth RAID information.
  • step S252 the partition corresponding to each of the disks is sequentially deleted based on the partition information by using the RAID 10 interface corresponding to the fifth RAID information.
  • the terminal when acquiring the partition information, sequentially deletes the partitions corresponding to the disks according to the partition information by using the RAID 10 interface corresponding to the fifth RAID information, so as to format each disk.
  • Step S253 Format each disk after the partition is deleted into a RAID 10 format disk by using the RAID 10 interface corresponding to the fifth RAID information.
  • the terminal formats the disk after the partition is deleted into a RAID 10 format disk through the RAID 10 interface corresponding to the fifth RAID information, thereby implementing formatting of the RAID 10.
  • the RAID management method in this embodiment obtains the partition information of each disk in the RAID 10 corresponding to the fifth RAID information, and then sequentially deletes each of the disks based on the partition information by using the RAID 10 interface corresponding to the fifth RAID information. Corresponding partitions are then formatted into RAID10 format disks by the RAID 10 interface corresponding to the fifth RAID information, and then the partitions of the RAID 10 disks can be deleted through the Android terminal, and then the RAID 10 is formatted. Further improved the convenience of RAID10 management.
  • an embodiment of the present invention further provides a computer readable storage medium.
  • the computer readable storage medium stores a RAID management program, and the RAID management program is implemented by the processor to implement the steps of the foregoing RAID management method.
  • portions of the technical solution of the present invention that contribute substantially or to the prior art may be embodied in the form of a software product stored in a storage medium (such as a ROM/RAM as described above). , a disk, an optical disk, including a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a terminal device which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

一种RAID管理方法、一种RAID管理装置及计算机可读存储介质,所述方法包括:在接收用户基于当前显示的配置界面输入的磁盘阵列RAID10的配置信息时,基于配置信息生成对应的第一RAID信息(S110);在磁盘信息对应的磁盘数量为2N、且N大于或等于2时,显示包括第一RAID信息以及第一RAID信息对应的创建选项的阵列创建界面(S120);在接收到基于阵列创建界面中的创建选项触发的RAID10创建指令时,基于所述第一RAID信息并通过对应的RAID10接口创建RAID10(S130)。所述方法能够根据用户需求通过对应的RAID10接口创建RAID10,能够通过Android系统的终端实现RAID10管理,提高了RAID10管理的便捷性。

Description

RAID管理方法、装置及计算机可读存储介质
技术领域
本发明涉及磁盘阵列技术领域,尤其涉及一种RAID管理方法、装置及计算机可读存储介质。
背景技术
随着互联网技术的不断发展,互联网应用的用户不断增加,全球范围内每天产生的信息数据越来越多,数据增加速度越来越快。在这种环境下,各种存储技术以及存储方案应运而生。其中,RAID(Redundant Array of Independent Disks,独立磁盘冗余阵列简称磁盘阵列)技术凭借其高可靠性、大数据容量、适应强以及高带宽等优点,广泛的应用于大型服务器中的数据读取。
目前,在大型服务器的数据读取过程中,经常同时应用多个RAID10,因此,需要对多个RAID10进行合理有效的管理,以提高RAID10的效率。但是,目前主要是基于windows系统和linux系统的大型服务器等终端实现RAID10管理,而不能在Android系统的终端进行RAID10管理。
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。
发明内容
本发明的主要目的在于提供一种RAID管理方法、装置及计算机可读存储介质,旨在解决目前无法在Android系统的终端实现RAID10管理的技术问题。
为实现上述目的,本发明提供一种RAID管理方法,应用于安装Android系统的终端,所述RAID管理方法包括以下步骤:
在接收用户基于当前显示的配置界面输入的磁盘阵列RAID10的配置信息时,基于所述配置信息生成对应的第一RAID信息,其中,第一RAID信息包括RAID10等级以及磁盘信息;
在所述磁盘信息对应的磁盘数量为2N、且N大于或等于2时,显示包括所述第一RAID信息以及所述第一RAID信息对应的创建选项的阵列创建界面;
在接收到基于所述阵列创建界面中的创建选项触发的RAID10创建指令时,基于所述第一RAID信息并通过对应的RAID10接口创建RAID10。
此外,为实现上述目的,本发明还提供一种RAID管理装置,应用于安装Android系统的终端,所述RAID管理装置包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的RAID管理程序,所述RAID管理程序被所述处理器执行时实现上述任一项所述的RAID管理方法的步骤。
此外,为实现上述目的,本发明还提供一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有RAID管理程序,所述RAID管理程序被处理器执行时实现上述任一项所述的RAID管理方法的步骤。
本发明通过在接收用户基于当前显示的配置界面输入的磁盘阵列RAID10的配置信息时,基于所述配置信息生成对应的第一RAID信息,接着在所述磁盘信息对应的磁盘数量为2N、且N大于或等于2时,显示包括所述第一RAID信息以及所述第一RAID信息对应的创建选项的阵列创建界面,而后在接收到基于所述阵列创建界面中的创建选项触发的RAID创建指令时,基于所述第一RAID信息并通过对应的RAID10接口创建RAID10,能够根据用户需求通过对应的RAID10接口创建RAID10,能够通过Android系统的终端实现RAID10管理,提高了RAID10管理的便捷性。
附图说明
图1是本发明实施例方案涉及的硬件运行环境的中RAID管理装置所属终端的结构示意图;
图2为本发明RAID管理方法第一实施例的流程示意图;
图3为RAID10的存储结构示意图;
图4为RAID10的架构示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
如图1所示,图1是本发明实施例方案涉及的硬件运行环境的中RAID管理装置所属终端的结构示意图。
本发明实施例终端可以是PC。如图1所示,该终端可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。
可选地,终端还可以包括摄像头、RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块等等。其中,传感器比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏的亮度,接近传感器可在移动终端移动到耳边时,关闭显示屏和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;当然,移动终端还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
本领域技术人员可以理解,图1中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及RAID管理程序。
在图1所示的终端中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的RAID管理程序,并执行本申请实施例提供的RAID管理方法。
本发明还提供一种RAID管理方法,参照图2,图2为本发明RAID管理方法第一实施例的流程示意图。
在本实施例中,该RAID管理方法应用于安装Android系统的终端,该安装Android系统的终端可以为手机、IPAD、智能可穿戴设备等移动终端。
该所述RAID管理方法包括以下步骤:
步骤S110,在接收用户基于当前显示的配置界面输入的磁盘阵列RAID10的配置信息时,基于所述配置信息生成对应的第一RAID信息,其中,第一RAID信息包括RAID10等级以及磁盘信息;
RAID技术是存储磁盘阵列的核心处理技术,其目的是提高数据处理的效率和容错能力。存储系统在实现上一般都会采用必要手段来保证系统的性能,通常的办法是设置缓存系统。缓存系统是一个虚拟化的系统,其原理是通过高效的处理I/O请求来提高性能。
参照图3,图3为RAID10的存储结构示意图。RAID10技术融合了RAID1和RAID0,常被称之为RAID0+1。RAID10同时拥有高效的RAID0和高可用性的RAID1,其特点是CPU的占用率较高,并且磁盘的利用率较低。唯一值得肯定的是数据的高读写性和良好的数据保护恢复能力。这使得RAID10的性价比抬高,但存储容量却只有总容量的一半不到。RAID10的结构式这样的:多个独立的RAID1形成RAID0,因不存在代码设计,故称之为逻辑RAID,当系统进行数据写请求处理时,数据按顺序存储在各RAID1上。图3中sda和sdb组成一个RAID1,sdc和sdd、sde和sdf分别组成另外2个RAID1。RAID1又形成了RAID0。如写在sda上的数据D0、D3、D6、D9,写在sdb中则为数据D0、D3、D6、D9,sdc和sdd中的数据为D1、D4、D7、D10,同样sde和sdf中数据为D2、D5、D8、D11。因此数据在各成员盘上进行存储,而数据片分别存在于RAID1或者RAID0,并具有各RAID的特性。RAID10在存储容量上虽然不足总容量的一半,但是它的高速的数据处理能力和双重备份的数据可靠性使得其备受瞩目。上图中如果成员盘中出现两块故障盘,但整个阵列的盘阵仍然能够工作。但是是有一种情况是两块盘出现故障时,系统会直接crash掉。这是因为如果故障盘出现在同一个RAID0的两个成员盘中,如sda和sdb出现,就会导致数据丢失而无法挽回。如果出现在非同一个RAID1中,如sda和sdc,那么就不会发生数据泄露,或者说是数据丢失。不同RAID1间出现两块故障盘,RAID状态会显示为严重,一旦同一RAID1中的两块盘出现故障,那么数据恢复是很困难的。原因有两个,其一,该结构的RAID并不存在数据的校验,故没有校验数据位,不能在数据缺失时进行数据校验或者数据反校验;其二,该结构设计是基于RAID1和RAID0的原理,并没有进行详细的源码设计,从根本上说需要符合RAID1和RAID0的特点,才能操作,否则不能数据恢复操作。
在本实施例中,安装Android系统的终端安装有RAID管理应用程序APP,该终端的持有者(用户)拥有该APP的登录账号对应的登录密码,在该用户登录后,可在终端的显示界面显示该APP对应的RAID10管理主界面,该RAID10管理主界面包括阵列创建信息、当前登录的用户信息、当前的磁盘阵列信息、各个磁盘阵列对应的磁盘的容量信息、空闲的磁盘信息、配置界面、操作界面等二级界面的导航信息等。用户可通过该RAID10管理主界面中的配置界面对应的导航信息进入配置界面,进而在该配置界面设置需要创建的磁盘阵列的等级、需要用到的磁盘、热备盘,或者生成和导入配置文件等,在设置完成时,可通过当前界面的选项(按钮)进行提交,以实现RAID10的配置信息的输入。
在本实施例中,用户在配置界面设置完成时,可通过当前界面的选项(按钮)等方式提交RAID10的配置信息,在接收到用户基于当前显示的配置界面输入的RAID10的配置信息时,基于所述配置信息生成对应的第一RAID信息,即将所有的配置信息按照预设的格式进行打包生成第一RAID信息。
其中,配置信息包括RAID10等级信息、磁盘信息和/或热备盘信息等。
步骤S120,在所述磁盘信息对应的磁盘数量为2N、且N大于或等于2时,显示包括所述第一RAID信息以及所述第一RAID信息对应的创建选项的阵列创建界面;
在本实施例中,在生成该第一RAID信息、且所述磁盘信息对应的磁盘数量为2N、且N大于或等于2时,在终端的显示屏弹出或切换至阵列创建界面,该阵列创建界面用于显示第一RAID信息、以及第一RAID信息对应的创建选项,用户可通过显示的第一RAID信息再次确认待创建RAID对应的相关配置是否正确,并在相关配置正确时,可在通过当前阵列创建界面显示的创建选项(按钮)等触发RAID10创建指令。
其中,该第一RAID信息包括RAID10等级信息、待创建RAID10所需要的磁盘信息和/或热备盘信息、RAID10接口信息等。
步骤S130,在接收到基于所述阵列创建界面中的创建选项触发的RAID10创建指令时,基于所述第一RAID信息并通过对应的RAID10接口创建RAID10。
在本实施例中,在用户通过点击(选择)阵列创建界面中的创建选时,触发RAID10创建指令,在接收到基于所述阵列创建界面中的创建选项触发的RAID10创建指令时,该终端通过第一RAID信息对应的RAID10接口、基于第一RAID信息创建RAID10。
进一步地,在一实施例中,步骤S130包括:通过所述第一RAID信息并通过对应的RAID10接口,基于所述磁盘信息对应的RAID10格式磁盘及所述热备盘信息对应的RAID10格式热备盘创建所述RAID10。
参照图4,图4为RAID10的架构示意图。
在创建RAID10时,磁盘设备需求为2N、且N大于或等于2,即需要MCU硬件层中RAID10硬盘数量为2N、且N大于或等于2。
Linux内核层:主要修改内核驱动程序,而目前Linux内核版本很需要2.6把版本以上支持RAID设备,本文测试的环境是Linux3.4.39只需要把MD设备中RAID设备的功能打开即可,具体配置过程如下:a.、进入Device Driver;b、选择Mutiple devices driver support(RAID and LVM);c、选择RAID-10相关的两个选项。
Android系统层:主要把RAID工具部署到系统。比如移植mdadm,Btrfs,raidtools等工具到系统进程目录/system/bin。以下以mdadm为例,具体步骤如下:A、mdadm移植,通过交叉编译工具,输出mdadm目标文件,并把目标文件放到/system/bin;B、权限配置,打开mdadm所有需要的权限,以便上层app能执行此脚本;C、重新编译打包系统。
Android APP层:用户可通过在app中,通过Android Rumtime执行对应的程序。比如创建阵列磁盘,mdadm--create--verbose/dev/md0–level=10--raid-devices=4 xxx xxx xxx等,通过out输出对应信息来管理RAID10阵列。
在本实施例中,可在该Android系统的终端中设置配置模块、阵列创建模块等模块,该配置模块接收用户输入的磁盘阵列配置信息,并生产对应的磁盘阵列信息,该阵列创建模块根据配置模块生成的磁盘阵列信息创建对应的RAID10接口。
本实施例提出的RAID管理方法,通过在接收用户基于当前显示的配置界面输入的磁盘阵列RAID10的配置信息时,基于所述配置信息生成对应的第一RAID信息,接着在所述磁盘信息对应的磁盘数量为2N、且N大于或等于2时,显示包括所述第一RAID信息以及所述第一RAID信息对应的创建选项的阵列创建界面,而后在接收到基于所述阵列创建界面中的创建选项触发的RAID10创建指令时,基于所述第一RAID信息并通过对应的RAID10接口创建RAID10,能够根据用户需求通过对应的RAID10接口创建RAID10,能够通过Android系统的终端实现RAID10管理,提高了RAID10管理的便捷性。
基于第一实施例,提出本发明方法的第二实施例,在本实施例中,该RAID管理方法还包括:
步骤S140,在监测到当前存在失效的磁盘时,获取失效的磁盘对应的第二RAID信息;
在本实施例中,该安装Android系统的终端可实时监测当前存在的各个磁盘的状态以获得对应的状态信息,并在根据该状态信息确定当前存在失效的磁盘时,获取失效的磁盘对应的第二RAID信息,即确定该失效的磁盘所归属的RAID10,该第二RAID信息可以为RAID10的编号、名称等信息。
步骤S150,通过所述第二RAID信息对应的RAID10接口在所述第二RAID信息对应的RAID10中删除失效的磁盘;
在本实施例中,在获取到第二RAID信息,在该第二RAID信息对应的RAID10中删除该失效的磁盘,具体地,可通过或调用该第二RAID信息对应的RAID10接口在该第二RAID信息对应的RAID10中删除该失效的磁盘,具体地,若RAID10中的磁盘已配对,则同时删除该失效的磁盘以及与该失效的磁盘配对的磁盘,否则,同时删除该失效的磁盘及RAID10中的任一其他磁盘,当然,还可以根据磁盘的信息存储数据选择失效的磁盘对应的磁盘,例如将磁盘的存储率最高的磁盘作为失效的磁盘对应的磁盘。
步骤S160,基于当前处于空闲状态的RAID10格式磁盘,通过所述第二RAID信息对应的RAID10接口对删除失效的磁盘后的RAID10进行重建。
在本实施例中,为避免删除所述磁盘后的RAID10挂起,首先获取当前处于空闲状态的RAID10格式磁盘,其中,空闲状态的RAID10格式磁盘是指当前不属于任何RAID10的RAID10格式磁盘,该空闲状态的RAID10格式磁盘的数量与已删除失效的磁盘的数量一致,而后基于获取到的RAID10格式磁盘通过所述第二RAID信息对应的RAID10接口删除失效的磁盘后的RAID10进行重建,即重建后的RAID10包括删除失效的磁盘后的RAID10中剩余的磁盘及热备盘、空闲状态的RAID10格式磁盘。其中,若在删除上述失效的磁盘时,同时删除该失效的磁盘对应的磁盘,则该空闲状态的RAID10格式磁盘的数量与该RAID10中已删除的磁盘的数量一致。
在其他实施例中,在删除失效的磁盘后的RAID10满足该RAID10的等级对应的要求、即删除待删除RAID10格式磁盘后的RAID10的磁盘数量为2N、且N大于或等于2时,可直接对RAID10进行重建。
本实施例提出的RAID管理方法,通过在监测到当前存在失效的磁盘时,获取失效的磁盘对应的第二RAID信息,接着在所述第二RAID信息对应的RAID10中删除失效的磁盘,而后基于当前处于空闲状态的RAID10格式磁盘,通过所述第二RAID信息对应的RAID1接口对删除失效的磁盘后的RAID10进行重建,进而能够通过Android系统的终端实现RAID10中失效磁盘的删除并对该RAID10进行重建,进一步提高了RAID10管理的便捷性。
基于第一实施例,提出本发明方法的第三实施例,在本实施例中,该RAID管理方法还包括:
步骤S160,在监测到RAID10中存在异常RAID10时,获取所述异常RAID10对应的异常信息以及第三RAID信息;
在本实施例中,该安装Android系统的终端可实时监测所有RAID10的状态,并根基监测结果确定当前是否存在异常RAID10,其中,该异常RAID10包括该RAID10突然断电或RAID10中的磁盘突然断电、该RAID10正在进行重构、该RAID10的磁盘顺序混乱、该RAID10被误删除、误格式化或误分区、该RAID10的磁盘出现坏道或损坏、该RAID10的磁盘被拔出等情形。在监测到RAID中存在异常RAID10时,终端获取所述异常RAID10对应的异常信息以及第三RAID信息,该第三RAID信息可以为RAID10的编号、名称等信息。
步骤S170,显示包括所述异常信息以及第三RAID信息的提示信息。
在本实施例中,在获取到异常RAID10对应的异常信息以及第三RAID信息时,在终端的显示屏显示获取到的异常信息以及第三RAID信息,以便于用户及时知晓当前存在异常RAID10,当然,在显示异常RAID10对应的异常信息以及第三RAID信息的同时,还可以输出语音报警信息等。
本实施例提出的RAID管理方法,通过在监测到RAID10中存在异常RAID10时,获取所述异常RAID对应的异常信息以及第三RAID信息,接着显示包括所述异常信息以及第三RAID信息的提示信息,能够在检查到异常RAID10时,显示异常信息,进而便于用户及时知晓当前存在异常RAID10,进一步提高了RAID10管理的便捷性。
基于第上述实施例,提出本发明方法的第四实施例,在本实施例中,在步骤S110之前,该RAID管理方法还包括:
步骤S180,在接收用户基于登录界面触发的登录请求时,获取所述登录请求对应的登录账号及登录密码;
在本实施例中,安装Android系统的终端安装有RAID管理应用程序APP,该终端的持有者(用户)拥有该APP的登录账号对应的登录密码。在用户启动该APP时,显示该APP对应的登录界面,以供用户基于该登录界面输入对应的登录账号及登录密码,并通过点击登录选项等触发登录请求。在接收用户基于登录界面触发的登录请求时,该终端获取所述登录请求对应的登录账号及登录密码。
步骤S190,在所述登录账号及登录密码验证通过时,显示RAID10管理主界面;
在本实施例中,在获取到登录账号及登录密码时,对该登录账号及登录密码进行验证操作,并在验证通过时,在终端的显示屏显示RAID10管理主界面。其中,该RAID10管理主界面包括阵列创建信息、当前登录的用户信息、当前的磁盘阵列信息、各个磁盘阵列对应的磁盘的容量信息、空闲的磁盘信息、配置界面、操作界面等二级界面的导航信息等。
步骤S200,在接收基于RAID10管理主界面触发的配置界面显示请求时,显示所述配置界面显示请求对应的配置界面。
在本实施例中,用户可通过该RAID10管理主界面中的配置界面对应的导航信息进入配置界面,具体地,在接收基于RAID10管理主界面触发的配置界面显示请求时,显示所述配置界面显示请求对应的配置界面,进而用户可在该配置界面设置需要创建的磁盘阵列的等级、需要用到的磁盘、热备盘,或者生成和导入配置文件等,在设置完成时,可通过当前界面的选项(按钮)进行提交,以实现RAID10的配置信息的输入。
所述显示RAID10管理主界面的步骤之后,所述RAID管理方法还包括:
在接收到基于所述操作界面触发的扩容指令时,基于所述扩容指令对应的待添加RAID10格式磁盘,通过所述扩容指令对应的RAID10接口对所述扩容指令对应的RAID10进行扩容操作;或者,
在接收到基于所述操作界面触发的磁盘删除指令时,通过所述磁盘删除指令对应的RAID10接口,在所述磁盘删除指令对应的RAID10中删除所述磁盘删除指令对应的RAID10格式磁盘,并对删除磁盘后的RAID10进行重建;又或者,
在接收到基于所述操作界面触发的热备盘的添加/删除指令时,通过所述添加/删除指令对应的RAID10接口,在所述添加/删除指令对应的RAID10中添加/删除所述添加/删除指令对应的RAID10格式热备盘。
在本实施例中,可通过操作界面对RAID10进行扩容即在RAID10中添加磁盘、在RAID10中删除磁盘、在RAID10中添加/删除热备盘等操作。
具体地,在接收到基于所述操作界面触发的扩容指令时,获取该扩容指令对应的RAID10及待添加RAID10格式磁盘,通过该扩容指令对应的RAID10接口将该待添加RAID10格式磁盘添加至该RAID10中,以实现RAID10的扩容,优选地,在得到待添加RAID10格式磁盘,根据该待添加RAID10格式磁盘的数量确定扩容后的RAID10是否满足该RAID1的等级对应的要求、即扩容后的RAID01的磁盘数量为2N、且N大于或等于2,在满足要求时进行扩容操作,否则输出错误提示信息。
在接收到基于所述操作界面触发的磁盘删除指令时,确定磁盘删除指令对应的待删除RAID10格式磁盘,通过所述磁盘删除指令对应的RAID10接口,在所述磁盘删除指令对应的RAID10中删除该待删除RAID10格式磁盘,在删除该待删除RAID10格式磁盘后,对删除磁盘后的RAID10进行重建。优选地,在删除磁盘后的RAID10满足该RAID10的等级对应的要求、即删除待删除RAID10格式磁盘后的RAID10的磁盘数量为2N、且N大于或等于2时,可直接进行重建,也可选择与待删除RAID10格式磁盘的数量相同的其他RAID10格式磁盘对该删除磁盘后的RAID10进行重建,以保证该删除磁盘后的RAID10的容量不变;在删除磁盘后的RAID10不满足该RAID10的等级对应的要求时,选择与待删除RAID10格式磁盘的数量相同的其他RAID10格式磁盘对该删除磁盘后的RAID10进行重建。
在接收到基于所述操作界面触发的热备盘的添加/删除指令时,确定添加/删除指令对应的热备盘,通过所述添加/删除指令对应的RAID10接口,在所述添加/删除指令对应的RAID10中删除该热备盘。
本实施例提出的RAID管理方法,通过在接收用户基于登录界面触发的登录请求时,获取所述登录请求对应的登录账号及登录密码;接着在所述登录账号及登录密码验证通过时,显示RAID10管理主界面;而后在接收基于RAID10管理主界面触发的配置界面显示请求时,显示所述配置界面显示请求对应的配置界面,通过在Android终端显示RAID10管理主界面,便于用户根据该RAID10管理主界面显示的内容管理RAID10,进一步提高了RAID10管理的便捷性。
基于第四实施例,提出本发明方法的第五实施例,在本实施例中,在步骤S190之后,该RAID管理方法还包括:
步骤S210,在接收到基于RAID10管理主界面触发的操作界面显示请求时,显示所述操作界面显示请求对应的操作界面;
在本实施例中,用户可通过该RAID10管理主界面中的配置界面对应的导航信息进入操作界面,具体地,在接收基于RAID10管理主界面触发的操作界面显示请求时,显示所述配置界面显示请求对应的操作界面,该操作界面包括启动/停止、格式化等RAID10操作选项。
步骤S220,在接收到基于所述操作界面触发的启动/停止指令时,获取所述启动/停止指令对应的第四RAID信息;
在本实施例中,用户可点击操作界面的启动/停止选项等方式触发启动/停止指令,在接收到基于所述操作界面触发的启动/停止指令时,该终端获取所述启动/停止指令对应的第四RAID信息,该第四RAID信息可以为RAID10的编号、名称等信息。
步骤S230,通过所述第四RAID信息对应的RAID10接口启动/停止获取到的所述第四RAID信息对应的RAID10。
在本实施例中,在获取到第四RAID信息时,终端通过所述第四RAID信息对应的RAID10接口启动/停止获取到的所述第四RAID信息对应的RAID10。
本实施例提出的RAID管理方法,通过在接收到基于RAID管理主界面触发的操作界面显示请求时,显示所述操作界面显示请求对应的操作界面,接着在接收到基于所述操作界面触发的启动/停止指令时,获取所述启动/停止指令对应的第四RAID信息,而后通过所述第四RAID信息对应的RAID10接口启动/停止获取到的所述第四RAID信息对应的RAID10,能够通过Android终端实现RAID10的启动/停止控制,进一步提高了RAID10管理的便捷性。
基于第四实施例,提出本发明方法的第六实施例,在本实施例中,该RAID管理方法还包括:
步骤S240,在接收到基于所述操作界面触发的格式化指令时,获取所述格式化指令对应的第五RAID信息;
在本实施例中,用户可点击操作界面的格式化选项等方式触发格式化指令,在接收到基于所述操作界面触发的格式化指令时,该终端获取所述格式化指令对应的第五RAID信息,该第五RAID信息可以为RAID10的编号、名称等信息。
步骤S250,通过所述第五RAID信息对应的RAID10接口格式化所述第五RAID信息对应的RAID10。
在本实施例中,在获取到该第五RAID信息时,该终端通过所述第五RAID信息对应的RAID10接口格式化所述第五RAID信息对应的RAID10,具体的,可先确定待格式化的磁盘,而后删除确定的磁盘的分区,最后将该第五RAID信息对应RAID10中的各个磁盘格式化为RAID10格式磁盘。
本实施例提出的RAID管理方法,通过在接收到基于所述操作界面触发的格式化指令时,获取所述格式化指令对应的第五RAID信息,接着通过所述第五RAID信息对应的RAID10接口格式化所述第五RAID信息对应的RAID10,进而能够采用Android终端实现RAID10的格式化,进一步提高了RAID10管理的便捷性。
基于第六实施例,提出本发明方法的第七实施例,在本实施例中,步骤S250包括:
步骤S251,获取所述第五RAID信息对应RAID10中各个磁盘的分区信息;
在本实施例中,在获取到该第五RAID信息时,该终端获取所述第五RAID信息对应RAID10中各个磁盘的分区信息。
步骤S252,通过所述第五RAID信息对应的RAID10接口,基于所述分区信息依次删除各个所述磁盘对应的分区;
在本实施例中,在获取到分区信息时,该终端通过所述第五RAID信息对应的RAID10接口,基于所述分区信息依次删除各个所述磁盘对应的分区,以便于格式化各个磁盘。
步骤S253,通过所述第五RAID信息对应的RAID10接口将删除分区后的各个磁盘格式化为RAID10格式磁盘。
在本实施例中,在删除各个磁盘对应的分区后,该终端通过所述第五RAID信息对应的RAID10接口将删除分区后的各个磁盘格式化为RAID10格式磁盘,进而实现该RAID10的格式化。
本实施例提出的RAID管理方法,通过获取所述第五RAID信息对应RAID10中各个磁盘的分区信息,接着通过所述第五RAID信息对应的RAID10接口,基于所述分区信息依次删除各个所述磁盘对应的分区,而后通过所述第五RAID信息对应的RAID10接口将删除分区后的各个磁盘格式化为RAID10格式磁盘,进而能够通过Android终端删除RAID10的各个磁盘的分区,而后进行RAID10的格式化,进一步提高了RAID10管理的便捷性。
此外,本发明实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有RAID管理程序,所述RAID管理程序被处理器执行时实现上述RAID管理方法的步骤。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (20)

  1. 一种RAID管理方法,应用于安装Android系统的终端,其特征在于,所述RAID管理方法包括以下步骤:
    在接收用户基于当前显示的配置界面输入的磁盘阵列RAID10的配置信息时,基于所述配置信息生成对应的第一RAID信息,其中,第一RAID信息包括RAID10等级以及磁盘信息;
    在所述磁盘信息对应的磁盘数量为2N、且N大于或等于2时,显示包括所述第一RAID信息以及所述第一RAID信息对应的创建选项的阵列创建界面;
    在接收到基于所述阵列创建界面中的创建选项触发的RAID10创建指令时,基于所述第一RAID信息并通过对应的RAID10接口创建RAID10。
  2. 如权利要求1所述的RAID管理方法,其特征在于,所述在接收用户基于当前显示的配置界面输入的磁盘阵列RAID10的配置信息时,基于所述配置信息生成对应的第一RAID信息的步骤之前,所述RAID管理方法还包括:
    在接收用户基于登录界面触发的登录请求时,获取所述登录请求对应的登录账号及登录密码;
    在所述登录账号及登录密码验证通过时,显示RAID10管理主界面;
    在接收基于RAID10管理主界面触发的配置界面显示请求时,显示所述配置界面显示请求对应的配置界面。
  3. 如权利要求2所述的RAID管理方法,其特征在于,所述显示RAID10管理主界面的步骤之后,所述RAID管理方法还包括:
    在接收到基于RAID10管理主界面触发的操作界面显示请求时,显示所述操作界面显示请求对应的操作界面;
    在接收到基于所述操作界面触发的启动/停止指令时,获取所述启动/停止指令对应的第四RAID信息;
    通过所述第四RAID信息对应的RAID10接口启动/停止获取到的所述第四RAID信息对应的RAID10。
  4. 如权利要求2所述的RAID管理方法,其特征在于,所述显示RAID10管理主界面的步骤之后,所述RAID管理方法还包括:
    在接收到基于所述操作界面触发的格式化指令时,获取所述格式化指令对应的第五RAID信息;
    通过所述第五RAID信息对应的RAID10接口格式化所述第五RAID信息对应的RAID10。
  5. 如权利要求4所述的RAID管理方法,其特征在于,所述通过所述第五RAID信息对应的RAID10接口格式化所述第五RAID信息对应的RAID10的步骤包括:
    获取所述第五RAID信息对应RAID10中各个磁盘的分区信息;
    通过所述第五RAID信息对应的RAID10接口,基于所述分区信息依次删除各个所述磁盘对应的分区;
    通过所述第五RAID信息对应的RAID10接口将删除分区后的各个磁盘格式化为RAID10格式磁盘。
  6. 如权利要求2所述的RAID管理方法,其特征在于,所述显示RAID10管理主界面的步骤之后,所述RAID管理方法还包括:
    在接收到基于所述操作界面触发的扩容指令时,基于所述扩容指令对应的待添加RAID10格式磁盘,通过所述扩容指令对应的RAID10接口对所述扩容指令对应的RAID10进行扩容操作;或者,
    在接收到基于所述操作界面触发的磁盘删除指令时,通过所述磁盘删除指令对应的RAID10接口,在所述磁盘删除指令对应的RAID10中删除所述磁盘删除指令对应的RAID10格式磁盘,并对删除磁盘后的RAID10进行重建;又或者,
    在接收到基于所述操作界面触发的热备盘的添加/删除指令时,通过所述添加/删除指令对应的RAID10接口,在所述添加/删除指令对应的RAID10中添加/删除所述添加/删除指令对应的RAID10格式热备盘。
  7. 如权利要求1所述的RAID管理方法,其特征在于,所述RAID管理方法还包括:
    在监测到当前存在失效的磁盘时,获取失效的磁盘对应的第二RAID信息;
    通过所述第二RAID信息对应的RAID10接口在所述第二RAID信息对应的RAID10中删除失效的磁盘;
    基于当前处于空闲状态的RAID10格式磁盘,通过所述第二RAID信息对应的RAID10接口对删除失效的磁盘后的RAID10进行重建。
  8. 如权利要求7所述的RAID管理方法,其特征在于,所述在接收用户基于当前显示的配置界面输入的磁盘阵列RAID10的配置信息时,基于所述配置信息生成对应的第一RAID信息的步骤之前,所述RAID管理方法还包括:
    在接收用户基于登录界面触发的登录请求时,获取所述登录请求对应的登录账号及登录密码;
    在所述登录账号及登录密码验证通过时,显示RAID10管理主界面;
    在接收基于RAID10管理主界面触发的配置界面显示请求时,显示所述配置界面显示请求对应的配置界面。
  9. 如权利要求8所述的RAID管理方法,其特征在于,所述显示RAID10管理主界面的步骤之后,所述RAID管理方法还包括:
    在接收到基于RAID10管理主界面触发的操作界面显示请求时,显示所述操作界面显示请求对应的操作界面;
    在接收到基于所述操作界面触发的启动/停止指令时,获取所述启动/停止指令对应的第四RAID信息;
    通过所述第四RAID信息对应的RAID10接口启动/停止获取到的所述第四RAID信息对应的RAID10。
  10. 如权利要求8所述的RAID管理方法,其特征在于,所述显示RAID10管理主界面的步骤之后,所述RAID管理方法还包括:
    在接收到基于所述操作界面触发的格式化指令时,获取所述格式化指令对应的第五RAID信息;
    通过所述第五RAID信息对应的RAID10接口格式化所述第五RAID信息对应的RAID10。
  11. 如权利要求10所述的RAID管理方法,其特征在于,所述通过所述第五RAID信息对应的RAID10接口格式化所述第五RAID信息对应的RAID10的步骤包括:
    获取所述第五RAID信息对应RAID10中各个磁盘的分区信息;
    通过所述第五RAID信息对应的RAID10接口,基于所述分区信息依次删除各个所述磁盘对应的分区;
    通过所述第五RAID信息对应的RAID10接口将删除分区后的各个磁盘格式化为RAID10格式磁盘。
  12. 如权利要求8所述的RAID管理方法,其特征在于,所述显示RAID10管理主界面的步骤之后,所述RAID管理方法还包括:
    在接收到基于所述操作界面触发的扩容指令时,基于所述扩容指令对应的待添加RAID10格式磁盘,通过所述扩容指令对应的RAID10接口对所述扩容指令对应的RAID10进行扩容操作;或者,
    在接收到基于所述操作界面触发的磁盘删除指令时,通过所述磁盘删除指令对应的RAID10接口,在所述磁盘删除指令对应的RAID10中删除所述磁盘删除指令对应的RAID10格式磁盘,并对删除磁盘后的RAID10进行重建;又或者,
    在接收到基于所述操作界面触发的热备盘的添加/删除指令时,通过所述添加/删除指令对应的RAID10接口,在所述添加/删除指令对应的RAID10中添加/删除所述添加/删除指令对应的RAID10格式热备盘。
  13. 如权利要求1所述的RAID管理方法,其特征在于,所述RAID管理方法还包括:
    在监测到RAID10中存在异常RAID10时,获取所述异常RAID10对应的异常信息以及第三RAID信息;
    显示包括所述异常信息以及第三RAID信息的提示信息。
  14. 如权利要求13所述的RAID管理方法,其特征在于,所述在接收用户基于当前显示的配置界面输入的磁盘阵列RAID10的配置信息时,基于所述配置信息生成对应的第一RAID信息的步骤之前,所述RAID管理方法还包括:
    在接收用户基于登录界面触发的登录请求时,获取所述登录请求对应的登录账号及登录密码;
    在所述登录账号及登录密码验证通过时,显示RAID10管理主界面;
    在接收基于RAID10管理主界面触发的配置界面显示请求时,显示所述配置界面显示请求对应的配置界面。
  15. 如权利要求14所述的RAID管理方法,其特征在于,所述显示RAID10管理主界面的步骤之后,所述RAID管理方法还包括:
    在接收到基于RAID10管理主界面触发的操作界面显示请求时,显示所述操作界面显示请求对应的操作界面;
    在接收到基于所述操作界面触发的启动/停止指令时,获取所述启动/停止指令对应的第四RAID信息;
    通过所述第四RAID信息对应的RAID10接口启动/停止获取到的所述第四RAID信息对应的RAID10。
  16. 如权利要求14所述的RAID管理方法,其特征在于,所述显示RAID10管理主界面的步骤之后,所述RAID管理方法还包括:
    在接收到基于所述操作界面触发的格式化指令时,获取所述格式化指令对应的第五RAID信息;
    通过所述第五RAID信息对应的RAID10接口格式化所述第五RAID信息对应的RAID10。
  17. 如权利要求16所述的RAID管理方法,其特征在于,所述通过所述第五RAID信息对应的RAID10接口格式化所述第五RAID信息对应的RAID10的步骤包括:
    获取所述第五RAID信息对应RAID10中各个磁盘的分区信息;
    通过所述第五RAID信息对应的RAID10接口,基于所述分区信息依次删除各个所述磁盘对应的分区;
    通过所述第五RAID信息对应的RAID10接口将删除分区后的各个磁盘格式化为RAID10格式磁盘。
  18. 如权利要求14所述的RAID管理方法,其特征在于,所述显示RAID10管理主界面的步骤之后,所述RAID管理方法还包括:
    在接收到基于所述操作界面触发的扩容指令时,基于所述扩容指令对应的待添加RAID10格式磁盘,通过所述扩容指令对应的RAID10接口对所述扩容指令对应的RAID10进行扩容操作;或者,
    在接收到基于所述操作界面触发的磁盘删除指令时,通过所述磁盘删除指令对应的RAID10接口,在所述磁盘删除指令对应的RAID10中删除所述磁盘删除指令对应的RAID10格式磁盘,并对删除磁盘后的RAID10进行重建;又或者,
    在接收到基于所述操作界面触发的热备盘的添加/删除指令时,通过所述添加/删除指令对应的RAID10接口,在所述添加/删除指令对应的RAID10中添加/删除所述添加/删除指令对应的RAID10格式热备盘。
  19. 一种RAID管理装置,应用于安装Android系统的终端,其特征在于,所述RAID管理装置包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的RAID管理程序,所述RAID管理程序被所述处理器执行时实现如权利要求1所述的RAID管理方法的步骤。
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有RAID管理程序,所述RAID管理程序被处理器执行时实现如权利要求1所述的RAID管理方法的步骤。
PCT/CN2018/084091 2017-09-30 2018-04-23 Raid管理方法、装置及计算机可读存储介质 WO2019062093A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710927667.XA CN107608637A (zh) 2017-09-30 2017-09-30 Raid管理方法、装置及计算机可读存储介质
CN201710927667.X 2017-09-30

Publications (1)

Publication Number Publication Date
WO2019062093A1 true WO2019062093A1 (zh) 2019-04-04

Family

ID=61068150

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/084091 WO2019062093A1 (zh) 2017-09-30 2018-04-23 Raid管理方法、装置及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN107608637A (zh)
WO (1) WO2019062093A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608637A (zh) * 2017-09-30 2018-01-19 深圳市华德安科技有限公司 Raid管理方法、装置及计算机可读存储介质
CN109144581A (zh) * 2018-07-23 2019-01-04 郑州云海信息技术有限公司 一种在服务器系统中配置raid的方法及系统
CN109032525A (zh) * 2018-07-26 2018-12-18 广东浪潮大数据研究有限公司 一种自动定位坏盘的方法、装置、设备及存储介质
CN112558862A (zh) * 2020-11-19 2021-03-26 山东云海国创云计算装备产业创新中心有限公司 板载raid的控制方法、装置、系统、bmc和介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011107859A (ja) * 2009-11-16 2011-06-02 Hitachi Solutions Ltd ディスクアレイ装置
CN102521068A (zh) * 2011-11-08 2012-06-27 华中科技大学 一种固态盘阵列的重建方法
CN105989443A (zh) * 2015-02-15 2016-10-05 杜岸树 一种基于智能移动终端的通讯线路巡检系统
CN107111535A (zh) * 2014-12-12 2017-08-29 英特尔公司 存储系统中的加速数据恢复
CN107608637A (zh) * 2017-09-30 2018-01-19 深圳市华德安科技有限公司 Raid管理方法、装置及计算机可读存储介质

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101984399B (zh) * 2010-10-29 2014-11-05 中兴通讯股份有限公司 一种软独立冗余磁盘阵列的管理方法和系统
CN106325760B (zh) * 2015-06-24 2019-05-07 伊姆西公司 管理存储阵列配置的方法和设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011107859A (ja) * 2009-11-16 2011-06-02 Hitachi Solutions Ltd ディスクアレイ装置
CN102521068A (zh) * 2011-11-08 2012-06-27 华中科技大学 一种固态盘阵列的重建方法
CN107111535A (zh) * 2014-12-12 2017-08-29 英特尔公司 存储系统中的加速数据恢复
CN105989443A (zh) * 2015-02-15 2016-10-05 杜岸树 一种基于智能移动终端的通讯线路巡检系统
CN107608637A (zh) * 2017-09-30 2018-01-19 深圳市华德安科技有限公司 Raid管理方法、装置及计算机可读存储介质

Also Published As

Publication number Publication date
CN107608637A (zh) 2018-01-19

Similar Documents

Publication Publication Date Title
WO2019062093A1 (zh) Raid管理方法、装置及计算机可读存储介质
WO2019062102A1 (zh) 磁盘阵列的挂载方法、Android设备和存储介质
WO2014000635A1 (zh) 阅读器提供服务的方法、阅读器、终端及计算机存储介质
WO2019062109A1 (zh) 磁盘阵列的挂载方法、Android设备和存储介质
WO2019165691A1 (zh) 自动生成测试案例的方法、装置、设备及可读存储介质
US8738883B2 (en) Snapshot creation from block lists
WO2013185570A1 (zh) 软件更新方法、软件更新系统及计算机存储介质
WO2018155893A1 (en) Interface providing method for multitasking and electronic device implementing the same
WO2017018722A1 (en) Screen operating method and electronic device supporting the same
WO2019059671A1 (en) ELECTRONIC DEVICE AND ITS CONTROL METHOD
WO2020027413A1 (ko) 팩토리 데이터 리셋 기능에 의해 제거된 어플리케이션을 복원하는 장치 및 방법
CN110825419B (zh) 一种固件刷新方法、装置及电子设备和存储介质
WO2020171571A1 (en) Electronic device and method for managing database
WO2017190450A1 (zh) 进程关闭方法及装置
WO2018014567A1 (zh) 一种提高虚拟机性能的方法、终端、设备及计算机可读存储介质
WO2018120680A1 (zh) 虚拟磁盘备份系统、方法、装置、服务主机和存储介质
WO2019062106A1 (zh) 磁盘阵列的挂载方法、Android设备和存储介质
WO2019062104A1 (zh) 磁盘阵列的挂载方法、Android设备和存储介质
WO2019062099A1 (zh) 磁盘阵列的挂载方法、Android设备和存储介质
WO2019205272A1 (zh) 虚拟机服务提供方法、装置、设备及计算机可读存储介质
WO2019100589A1 (zh) 虚拟机快速扩容方法、装置、设备以及存储介质
WO2019062105A1 (zh) Raid管理方法、装置及计算机可读存储介质
WO2018076842A1 (zh) 一种数据备份方法、装置、系统、存储介质及电子设备
WO2019062103A1 (zh) 磁盘阵列的挂载方法、Android设备和存储介质
WO2019080401A1 (zh) 脚本语句转换方法、装置及计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18861412

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18861412

Country of ref document: EP

Kind code of ref document: A1