[go: up one dir, main page]

WO2019062105A1 - Raid management method and device, and computer-readable storage medium - Google Patents

Raid management method and device, and computer-readable storage medium Download PDF

Info

Publication number
WO2019062105A1
WO2019062105A1 PCT/CN2018/084530 CN2018084530W WO2019062105A1 WO 2019062105 A1 WO2019062105 A1 WO 2019062105A1 CN 2018084530 W CN2018084530 W CN 2018084530W WO 2019062105 A1 WO2019062105 A1 WO 2019062105A1
Authority
WO
WIPO (PCT)
Prior art keywords
raid
information
raid1
interface
disk
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.)
Ceased
Application number
PCT/CN2018/084530
Other languages
French (fr)
Chinese (zh)
Inventor
杜伟
周伟明
张少龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huadean Technology Co Ltd
Original Assignee
Shenzhen Huadean Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Huadean Technology Co Ltd filed Critical Shenzhen Huadean Technology Co Ltd
Publication of WO2019062105A1 publication Critical patent/WO2019062105A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
  • the main system is based on windows system and linux system, such as a large server to achieve RAID1 management, but not in the Android system terminal for RAID1 management.
  • 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 RAID1 management cannot be implemented in a terminal of an 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:
  • an array creation interface including the first RAID information and a creation option corresponding to the first RAID information is displayed;
  • RAID 1 Upon receiving a RAID 1 creation instruction triggered based on a creation option in the array creation interface, RAID 1 is created based on the first RAID information and through a corresponding RAID 1 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 an integer multiple of 2. And displaying an array creation interface including the first RAID information and a creation option corresponding to the first RAID information, and then receiving a RAID creation instruction triggered based on a creation option in the array creation interface, based on the The first RAID information is used to create RAID1 through the corresponding RAID1 interface.
  • RAID1 can be created through the corresponding RAID1 interface according to user requirements.
  • RAID1 management can be implemented through the terminal of the Android system, which improves the convenience of RAID1 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 the architecture of RAID1.
  • 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 RAID1 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 RAID1 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.
  • RAID1 uses mirror mode as shown.
  • RAID 1 uses redundancy to enable data to store peer-to-peer data on the corresponding disk. The same piece of data can be stored on two disks. When the data in a disk is frequently operated, the system can read the same piece of data directly from another disk. Therefore, RAID1 allows but block disk failure and system performance is not directly affected. This mode requires two disks, preferably at the same speed.
  • RAID1 is a member disk composed of different capacity disks. The total capacity will depend on the disk with the smallest capacity. The remaining disk space of the remaining block can no longer read and write data. As a result, disk capacity utilization is low and the overall RAID capacity is reduced by almost 50%. Therefore, in the case of a large number of writes to RAID 1, the performance of writing may become very poor.
  • 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 RAID1 management main interface corresponding to the APP.
  • the RAID1 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 enter the configuration page through the navigation information corresponding to the configuration interface in the RAID1 management main interface, and then set the level of the disk array to be created, the disk to be used, the hot spare disk, or generate and import the configuration file. Etc., when the setting is completed, it can be submitted through the option (button) of the current interface to input the configuration information of RAID1.
  • the user when the configuration interface setting is completed, the user can submit the configuration information of the RAID 1 by using the option (button) of the current interface, and when receiving the configuration information of the RAID 1 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 RAID1 level information, disk information, and/or hot spare disk information.
  • step S120 when the number of disks corresponding to the disk information is an integer multiple of 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 an array creation interface, and the array creation interface is used for displaying
  • the first RAID information and the creation option corresponding to the first RAID information 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 when the relevant configuration is correct, the interface can be created through the current array.
  • the created creation options (buttons), etc. trigger the RAID1 creation instruction.
  • the first RAID information includes the RAID 1 level information, the disk information and/or the hot spare disk information, and the RAID 1 interface information required for the RAID 1 to be created.
  • the integer multiple refers to a positive integer multiple.
  • Step S130 upon receiving the RAID1 creation instruction triggered by the creation option in the array creation interface, create RAID1 based on the first RAID information and through the corresponding RAID1 interface.
  • the terminal when the user clicks (selects) the creation selection time in the array creation interface, the RAID1 creation instruction is triggered, and when receiving the RAID1 creation instruction triggered based on the creation option in the array creation interface, the terminal passes the The RAID 1 interface corresponding to the first RAID information creates RAID 1 based on the first RAID information.
  • step S130 includes: through the first RAID information and through the corresponding RAID1 interface, based on the RAID1 format disk corresponding to the disk information and the RAID1 format hot standby corresponding to the hot spare disk information.
  • the disk creates the RAID 1.
  • FIG. 3 is a schematic diagram of the architecture of RAID1.
  • the disk device When creating RAID1, the disk device requires an integer multiple of 2 disks, that is, the number of RAID1 disks in the MCU hardware layer is an integer multiple of 2, or the hard disks exist in pairs.
  • 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 RAID-1.
  • 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 the corresponding RAID1 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 RAID1 input by the user based on the currently displayed configuration interface.
  • the number of disks is an integral multiple of 2
  • an array creation interface including the first RAID information and a creation option corresponding to the first RAID information is displayed, and then a RAID 1 triggered based on a creation option in the array creation interface is received.
  • RAID1 is created based on the first RAID information and the corresponding RAID1 interface, and RAID1 can be created through the corresponding RAID1 interface according to the user's requirements.
  • RAID1 management can be implemented through the terminal of the Android system, and the convenience of RAID1 management is improved.
  • 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 1 to which the failed disk belongs.
  • the second RAID information may be the number, name, and the like of the RAID 1.
  • step S150 the failed disk is deleted in the RAID1 corresponding to the second RAID information by using the RAID1 interface corresponding to the second RAID information.
  • the second RAID information is obtained, and the failed disk is deleted in the RAID 1 corresponding to the second RAID information.
  • the RAID1 interface corresponding to the second RAID information may be used or invoked in the second Delete the failed disk in RAID1 corresponding to the RAID information.
  • the disk in RAID1 is paired, delete the failed disk and the disk paired with the failed disk. Otherwise, delete the failed disk and RAID1.
  • Any other disk in the disk 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 Rebuild the RAID 1 after the failed disk is deleted by using the RAID 1 interface corresponding to the second RAID information based on the RAID 1 format disk that is currently in the idle state.
  • the RAID 1 format disk that is currently in an idle state is obtained, wherein the RAID 1 format disk in the idle state refers to a RAID 1 format disk that does not currently belong to any RAID 1 .
  • the number of disks in the idle state is the same as the number of disks that have been deleted.
  • the disk is deleted by deleting the failed disk through the RAID1 interface corresponding to the second RAID information, that is, after the reconstruction.
  • the RAID 1 includes the remaining disks and hot spare disks in the RAID 1 after the failed disks are deleted, and the RAID 1 format disks in the idle state. If the disk corresponding to the failed disk is deleted at the same time, the number of disks in the idle state is the same as the number of disks deleted in the RAID1.
  • the RAID 1 after the failed disk is deleted meets the requirement of the RAID 1 level, that is, when the number of disks of the RAID 1 after deleting the RAID 1 format disk is an integer multiple of 2, the RAID 1 can be directly reconstructed.
  • 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 RAID1 corresponding to the second RAID information, and then The RAID 1 format disk that is currently in the idle state is rebuilt by the RAID 1 interface corresponding to the second RAID information, and the RAID 1 after the failed disk is deleted, and the deleted disk in the RAID 1 is deleted by the terminal of the Android system, and the RAID 1 is deleted. Reconstruction further improves the convenience of RAID1 management.
  • the RAID management method further includes:
  • Step S170 when abnormal RAID1 is detected in the RAID1, the abnormal information corresponding to the abnormal RAID1 and the third RAID information are acquired;
  • the terminal that installs the Android system can monitor the status of all the RAID1s in real time, and determine whether there is abnormal RAID1 currently in the root monitoring result, wherein the abnormal RAID1 includes the sudden power failure of the RAID1 or the sudden power failure of the disk in the RAID1.
  • the RAID 1 is undergoing reconfiguration, the disk order of the RAID 1 is disordered, the RAID 1 is accidentally deleted, misformatted or mispartitioned, the disk of the RAID 1 is bad or damaged, and the disk of the RAID 1 is pulled out.
  • the terminal acquires the abnormal information corresponding to the abnormal RAID 1 and the third RAID information, and the third RAID information may be the number, name, and the like of the RAID 1.
  • Step S180 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 RAID1 is present in time.
  • the voice alarm information and the like can also 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 RAID1 is detected in the RAID1, 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 the current abnormal RAID1 in time, and further improve the convenience of the RAID1 management.
  • the RAID management method before the step S110, the RAID management method further includes:
  • Step S190 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 S200 displaying a RAID1 management main interface when the login account and the login password are verified;
  • the RAID1 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 RAID1 management main interface is displayed on the display screen of the terminal.
  • the RAID1 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 S210 Display a configuration interface corresponding to the configuration interface display request when receiving a configuration interface display request triggered by the RAID1 management main interface.
  • the user can enter the configuration interface by using the navigation information corresponding to the configuration interface in the RAID1 management main interface. Specifically, when the configuration interface display request triggered by the RAID1 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 RAID1.
  • the RAID management method further includes:
  • the RAID 1 corresponding to the expansion command is used to expand the RAID 1 corresponding to the expansion command by using the RAID 1 interface corresponding to the expansion command;
  • the add/delete in the RAID1 corresponding to the add/delete command is added/deleted by the RAID1 interface corresponding to the add/delete command. Delete the RAID1 format hot spare disk corresponding to the command.
  • the RAID1 can be expanded through the operation interface, that is, the disk is added in the RAID1, the disk is deleted in the RAID1, and the hot spare disk is added/deleted in the RAID1.
  • the RAID 1 and the RAID 1 format disk corresponding to the expansion command are acquired, and the RAID 1 format disk to be added is added to the RAID 1 by using the RAID 1 interface corresponding to the expansion command.
  • the RAID 1 format disk corresponding to the disk deletion instruction is determined, and the RAID 1 interface corresponding to the disk deletion instruction is deleted in the RAID 1 corresponding to the disk deletion instruction.
  • the RAID 1 after the disk is deleted is rebuilt.
  • the RAID 1 after the disk is deleted meets the requirement of the RAID 1 level, that is, when the number of disks of the RAID 1 after deleting the RAID 1 format disk is an integer multiple of 2, the reconstruction may be directly performed, or the RAID 1 to be deleted may be selected.
  • the other RAID1 format disks with the same number of format disks are rebuilt to protect the RAID1 after the disk is deleted, so as to ensure that the capacity of the RAID1 after the disk is deleted is unchanged; if the RAID1 after the disk is deleted does not meet the requirements of the RAID1 level, Select another RAID1 format disk with the same number of disks as the RAID1 format to be deleted to rebuild RAID1 after the disk is deleted.
  • 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 RAID1 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 RAID1 management main interface is received, the configuration interface corresponding to the configuration display request is displayed, and the main interface of the RAID1 management is displayed on the Android terminal, so that the user can manage the main interface according to the RAID1.
  • the displayed content management RAID1 further improves the convenience of RAID1 management.
  • the RAID management method further includes:
  • Step S220 when receiving an operation interface display request triggered by the RAID1 management main interface, displaying an operation interface corresponding to the operation interface display request;
  • the user can enter the operation interface through the navigation information corresponding to the configuration interface in the RAID1 management main interface.
  • the configuration interface is displayed.
  • the corresponding operation interface is requested, and the operation interface includes RAID1 operation options such as start/stop, format, and the like.
  • Step S230 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 1.
  • Step S240 Start/stop the acquired RAID1 corresponding to the fourth RAID information by using the RAID1 interface corresponding to the fourth RAID information.
  • the terminal when acquiring the fourth RAID information, starts/stops the acquired RAID 1 corresponding to the fourth RAID information by using the RAID 1 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 RAID1 corresponding to the fourth RAID information by using the RAID1 interface corresponding to the fourth RAID information, and being able to pass Android
  • the terminal implements the start/stop control of RAID1, which further improves the convenience of RAID1 management.
  • the RAID management method further includes:
  • Step S250 Acquire a fifth RAID information corresponding to the formatting instruction when receiving a formatting instruction triggered by the operation interface;
  • 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 1.
  • Step S260 Format the RAID1 corresponding to the fifth RAID information by using the RAID1 interface corresponding to the fifth RAID information.
  • the terminal when the fifth RAID information is obtained, formats the RAID1 corresponding to the fifth RAID information by using the RAID1 interface corresponding to the fifth RAID information. Specifically, the terminal may first determine that the RAID information is to be formatted. Disk, and then delete the partition of the determined disk, and finally format the fifth RAID information corresponding to each disk in RAID1 as a RAID1 format disk.
  • the RAID management method of the present embodiment obtains the fifth RAID information corresponding to the formatting instruction, and then passes the RAID1 interface corresponding to the fifth RAID information, when receiving the formatting instruction triggered by the operation interface.
  • the RAID 1 corresponding to the fifth RAID information is formatted, and the RAID 1 format can be implemented by using the Android terminal, thereby further improving the convenience of the RAID 1 management.
  • step S260 includes:
  • Step S261 acquiring partition information of each disk in the RAID1 corresponding to the fifth RAID information
  • the terminal acquires the partition information of each disk in the RAID 1 corresponding to the fifth RAID information.
  • step S262 the partition corresponding to each of the disks is sequentially deleted based on the partition information by using the RAID1 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 RAID1 interface corresponding to the fifth RAID information, so as to format the disks.
  • each disk after the partition is deleted is formatted into a RAID1 format disk by using the RAID1 interface corresponding to the fifth RAID information.
  • the terminal formats the disk after the partition is deleted into a RAID 1 format disk through the RAID 1 interface corresponding to the fifth RAID information, thereby implementing formatting of the RAID 1.
  • the RAID management method in this embodiment obtains the partition information of each disk in the RAID 1 corresponding to the fifth RAID information, and then sequentially deletes each of the disks based on the partition information by using the RAID 1 interface corresponding to the fifth RAID information. Corresponding partitions are then formatted by the RAID1 interface corresponding to the fifth RAID information to format the disks after the partitions are deleted into RAID1 format disks, thereby deleting the partitions of the RAID1 disks through the Android terminal, and then formatting the RAID1. Further improved the convenience of RAID1 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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Disclosed in the present invention is a RAID management method. The method comprises: upon receiving configuration information of a RAID 1 disk array input by a user on the basis of a configuration interface currently displayed, generating corresponding first RAID information on the basis of the configuration information; if the number of disks corresponding to the disk information is an integral multiple of 2, displaying an array creation interface comprising the first RAID information and a creation option corresponding to the first RAID information; upon receiving a RAID 1 creation instruction triggered on the basis of the creation option in the array creation interface, creating a RAID 1 configuration on the basis of the first RAID information and by means of a corresponding RAID 1 interface. Also disclosed in the present invention are a RAID management device and a computer-readable storage medium. The present invention can create a RAID 1 configuration by means of a corresponding RAID 1 interface according to user requirements, enabling RAID 1 management by means of a terminal of an Android system and increasing convenience of RAID 1 management.

Description

RAID管理方法、装置及计算机可读存储介质  RAID management method, device and computer readable storage medium

技术领域Technical field

本发明涉及磁盘阵列技术领域,尤其涉及一种RAID管理方法、装置及计算机可读存储介质。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.

背景技术Background technique

随着互联网技术的不断发展,互联网应用的用户不断增加,全球范围内每天产生的信息数据越来越多,数据增加速度越来越快。在这种环境下,各种存储技术以及存储方案应运而生。其中,RAID(Redundant Array of Independent Disks,独立磁盘冗余阵列简称磁盘阵列)技术凭借其高可靠性、大数据容量、适应强以及高带宽等优点,广泛的应用于大型服务器中的数据读取。With the continuous development of Internet technology, the number of users of Internet applications is increasing. More and more information data is generated every day on a global scale, and data is increasing faster and faster. In this environment, various storage technologies and storage solutions have emerged. Among them, RAID (Redundant Array of Independent Disks, Redundant Array of Independent Disks (RAID) technology is widely used for data reading in large servers due to its high reliability, large data capacity, strong adaptability and high bandwidth.

目前,在大型服务器的数据读取过程中,经常同时应用多个RAID1,因此,需要对多个RAID1进行合理有效的管理,以提高RAID1的效率。但是,目前主要是基于windows系统和linux系统的大型服务器等终端实现RAID1管理,而不能在Android系统的终端进行RAID1管理。At present, in the data reading process of a large server, multiple RAID1s are often applied at the same time. Therefore, multiple RAID1s need to be managed reasonably and effectively to improve the efficiency of RAID1. However, at present, the main system is based on windows system and linux system, such as a large server to achieve RAID1 management, but not in the Android system terminal for RAID1 management.

上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solutions of the present invention, and does not constitute an admission that the above is prior art.

发明内容Summary of the invention

本发明的主要目的在于提供一种RAID管理方法、装置及计算机可读存储介质,旨在解决目前无法在Android系统的终端实现RAID1管理的技术问题。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 RAID1 management cannot be implemented in a terminal of an Android system.

为实现上述目的,本发明提供一种RAID管理方法,应用于安装Android系统的终端,所述RAID管理方法包括以下步骤:To achieve the above objective, 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:

在接收用户基于当前显示的配置界面输入的磁盘阵列RAID1的配置信息时,基于所述配置信息生成对应的第一RAID信息,其中,第一RAID信息包括RAID1等级以及磁盘信息;And generating, according to the configuration information, corresponding first RAID information, where the first RAID information includes a RAID 1 level and disk information, when the configuration information of the disk array RAID1 that is input by the user based on the currently displayed configuration interface is received;

在所述磁盘信息对应的磁盘数量为2的整数倍时,显示包括所述第一RAID信息以及所述第一RAID信息对应的创建选项的阵列创建界面;When the number of disks corresponding to the disk information is an integer multiple of 2, an array creation interface including the first RAID information and a creation option corresponding to the first RAID information is displayed;

在接收到基于所述阵列创建界面中的创建选项触发的RAID1创建指令时,基于所述第一RAID信息并通过对应的RAID1接口创建RAID1。Upon receiving a RAID 1 creation instruction triggered based on a creation option in the array creation interface, RAID 1 is created based on the first RAID information and through a corresponding RAID 1 interface.

此外,为实现上述目的,本发明还提供一种RAID管理装置,应用于安装Android系统的终端,所述RAID管理装置包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的RAID管理程序,所述RAID管理程序被所述处理器执行时实现上述任一项所述的RAID管理方法的步骤。In addition, in order to achieve the above object, 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.

此外,为实现上述目的,本发明还提供一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有RAID管理程序,所述RAID管理程序被处理器执行时实现上述任一项所述的RAID管理方法的步骤。In addition, in order to achieve the above object, 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.

本发明通过在接收用户基于当前显示的配置界面输入的磁盘阵列RAID1的配置信息时,基于所述配置信息生成对应的第一RAID信息,接着在所述磁盘信息对应的磁盘数量为2的整数倍时,显示包括所述第一RAID信息以及所述第一RAID信息对应的创建选项的阵列创建界面,而后在接收到基于所述阵列创建界面中的创建选项触发的RAID创建指令时,基于所述第一RAID信息并通过对应的RAID1接口创建RAID1,能够根据用户需求通过对应的RAID1接口创建RAID1,能够通过Android系统的终端实现RAID1管理,提高了RAID1管理的便捷性。When the configuration information of the disk array RAID1 input by the user based on the currently displayed configuration interface is received, the first RAID information is generated based on the configuration information, and then the number of disks corresponding to the disk information is an integer multiple of 2. And displaying an array creation interface including the first RAID information and a creation option corresponding to the first RAID information, and then receiving a RAID creation instruction triggered based on a creation option in the array creation interface, based on the The first RAID information is used to create RAID1 through the corresponding RAID1 interface. RAID1 can be created through the corresponding RAID1 interface according to user requirements. RAID1 management can be implemented through the terminal of the Android system, which improves the convenience of RAID1 management.

附图说明DRAWINGS

图1是本发明实施例方案涉及的硬件运行环境的中RAID管理装置所属终端的结构示意图;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;

图2为本发明RAID管理方法第一实施例的流程示意图;2 is a schematic flowchart of a first embodiment of a RAID management method according to the present invention;

图3为RAID1的架构示意图。Figure 3 is a schematic diagram of the architecture of RAID1.

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

如图1所示,图1是本发明实施例方案涉及的硬件运行环境的中RAID管理装置所属终端的结构示意图。As shown in FIG. 1 , 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.

本发明实施例终端可以是PC。如图1所示,该终端可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。The terminal of the embodiment of the present invention may be a PC. As shown in FIG. 1, 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. Among them, 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.

可选地,终端还可以包括摄像头、RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块等等。其中,传感器比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏的亮度,接近传感器可在移动终端移动到耳边时,关闭显示屏和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;当然,移动终端还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。Optionally, the terminal may further include a camera, RF (Radio) Frequency, RF) circuits, sensors, audio circuits, WiFi modules, and more. Among them, sensors such as light sensors, motion sensors, and other sensors. Specifically, 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. As a kind of motion sensor, 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.

本领域技术人员可以理解,图1中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It will be understood by those skilled in the art that the 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.

如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及RAID管理程序。As shown in FIG. 1, an operating system, a network communication module, a user interface module, and a RAID management program may be included in the memory 1005 as a computer storage medium.

在图1所示的终端中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的RAID管理程序,并执行本申请实施例提供的RAID管理方法。In the terminal shown in FIG. 1, 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.

本发明还提供一种RAID管理方法,参照图2,图2为本发明RAID管理方法第一实施例的流程示意图。The present invention also provides a RAID management method. Referring to FIG. 2, FIG. 2 is a schematic flowchart diagram of a first embodiment of a RAID management method according to the present invention.

在本实施例中,该RAID管理方法应用于安装Android系统的终端,该安装Android系统的终端可以为手机、IPAD、智能可穿戴设备等移动终端。In this embodiment, the RAID management method is applied to a terminal for installing an Android system, and the terminal for installing the Android system may be a mobile terminal, such as a mobile phone, an IPAD, or a smart wearable device.

该所述RAID管理方法包括以下步骤:The RAID management method includes the following steps:

步骤S110,在接收用户基于当前显示的配置界面输入的磁盘阵列RAID1的配置信息时,基于所述配置信息生成对应的第一RAID信息,其中,第一RAID信息包括RAID1等级以及磁盘信息;Step S110, when receiving configuration information of the disk array RAID1 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 RAID1 level and disk information;

RAID技术是存储磁盘阵列的核心处理技术,其目的是提高数据处理的效率和容错能力。存储系统在实现上一般都会采用必要手段来保证系统的性能,通常的办法是设置缓存系统。缓存系统是一个虚拟化的系统,其原理是通过高效的处理I/O请求来提高性能。RAID1采用镜像模式,如图所示。RAID1采用冗余技术使数据在对应磁盘上存储对等的数据,同一片数据能够分别存储在两块磁盘上。当一块磁盘中的数据操作频繁时,系统可以直接从另一块磁盘中进行读取同一片数据。所以,RAID1允许但块磁盘故障,系统性能不受直接影响。这种模式需要两块磁盘,最好容量转速一样。另外RAID1对不同容量磁盘的组成的成员盘,总体容量会依据容量最小的那个磁盘而定,剩下那块的剩余磁盘空间也不再能够读写数据。因此,磁盘容量利用率低,整体RAID的容量几乎减少了50%。因此在大量写入RAID1的情况下,写的性能可能会变得非常差。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. RAID1 uses mirror mode as shown. RAID 1 uses redundancy to enable data to store peer-to-peer data on the corresponding disk. The same piece of data can be stored on two disks. When the data in a disk is frequently operated, the system can read the same piece of data directly from another disk. Therefore, RAID1 allows but block disk failure and system performance is not directly affected. This mode requires two disks, preferably at the same speed. In addition, RAID1 is a member disk composed of different capacity disks. The total capacity will depend on the disk with the smallest capacity. The remaining disk space of the remaining block can no longer read and write data. As a result, disk capacity utilization is low and the overall RAID capacity is reduced by almost 50%. Therefore, in the case of a large number of writes to RAID 1, the performance of writing may become very poor.

在本实施例中,安装Android系统的终端安装有RAID管理应用程序APP,该终端的持有者(用户)拥有该APP的登录账号对应的登录密码,在该用户登录后,可在终端的显示界面显示该APP对应的RAID1管理主界面,该RAID1管理主界面包括阵列创建信息、当前登录的用户信息、当前的磁盘阵列信息、各个磁盘阵列对应的磁盘的容量信息、空闲的磁盘信息、配置界面、操作界面等二级界面的导航信息等。用户可通过该RAID1管理主界面中的配置界面对应的导航信息进入配置界面,进而在该配置界面设置需要创建的磁盘阵列的等级、需要用到的磁盘、热备盘,或者生成和导入配置文件等,在设置完成时,可通过当前界面的选项(按钮)进行提交,以实现RAID1的配置信息的输入。In this embodiment, 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 RAID1 management main interface corresponding to the APP. The RAID1 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 enter the configuration page through the navigation information corresponding to the configuration interface in the RAID1 management main interface, and then set the level of the disk array to be created, the disk to be used, the hot spare disk, or generate and import the configuration file. Etc., when the setting is completed, it can be submitted through the option (button) of the current interface to input the configuration information of RAID1.

在本实施例中,用户在配置界面设置完成时,可通过当前界面的选项(按钮)等方式提交RAID1的配置信息,在接收到用户基于当前显示的配置界面输入的RAID1的配置信息时,基于所述配置信息生成对应的第一RAID信息,即将所有的配置信息按照预设的格式进行打包生成第一RAID信息。In this embodiment, when the configuration interface setting is completed, the user can submit the configuration information of the RAID 1 by using the option (button) of the current interface, and when receiving the configuration information of the RAID 1 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.

其中,配置信息包括RAID1等级信息、磁盘信息和/或热备盘信息等。The configuration information includes RAID1 level information, disk information, and/or hot spare disk information.

步骤S120,在所述磁盘信息对应的磁盘数量为2的整数倍时,显示包括所述第一RAID信息以及所述第一RAID信息对应的创建选项的阵列创建界面;In step S120, when the number of disks corresponding to the disk information is an integer multiple of 2, an array creation interface including the first RAID information and the creation option corresponding to the first RAID information is displayed;

在本实施例中,在生成该第一RAID信息、且所述磁盘信息对应的磁盘数量为2的整数倍时,在终端的显示屏弹出或切换至阵列创建界面,该阵列创建界面用于显示第一RAID信息、以及第一RAID信息对应的创建选项,用户可通过显示的第一RAID信息再次确认待创建RAID对应的相关配置是否正确,并在相关配置正确时,可在通过当前阵列创建界面显示的创建选项(按钮)等触发RAID1创建指令。In this embodiment, when the first RAID information is generated and the number of disks corresponding to the disk information is an integer multiple of 2, the display screen of the terminal is popped up or switched to an array creation interface, and the array creation interface is used for displaying The first RAID information and the creation option corresponding to the first RAID information, 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 when the relevant configuration is correct, the interface can be created through the current array. The created creation options (buttons), etc. trigger the RAID1 creation instruction.

其中,该第一RAID信息包括RAID1等级信息、待创建RAID1所需要的磁盘信息和/或热备盘信息、RAID1接口信息等,该整数倍具体是指正整数倍。The first RAID information includes the RAID 1 level information, the disk information and/or the hot spare disk information, and the RAID 1 interface information required for the RAID 1 to be created. The integer multiple refers to a positive integer multiple.

步骤S130,在接收到基于所述阵列创建界面中的创建选项触发的RAID1创建指令时,基于所述第一RAID信息并通过对应的RAID1接口创建RAID1。Step S130, upon receiving the RAID1 creation instruction triggered by the creation option in the array creation interface, create RAID1 based on the first RAID information and through the corresponding RAID1 interface.

在本实施例中,在用户通过点击(选择)阵列创建界面中的创建选时,触发RAID1创建指令,在接收到基于所述阵列创建界面中的创建选项触发的RAID1创建指令时,该终端通过第一RAID信息对应的RAID1接口、基于第一RAID信息创建RAID1。In this embodiment, when the user clicks (selects) the creation selection time in the array creation interface, the RAID1 creation instruction is triggered, and when receiving the RAID1 creation instruction triggered based on the creation option in the array creation interface, the terminal passes the The RAID 1 interface corresponding to the first RAID information creates RAID 1 based on the first RAID information.

进一步地,在一实施例中,步骤S130包括:通过所述第一RAID信息并通过对应的RAID1接口,基于所述磁盘信息对应的RAID1格式磁盘及所述热备盘信息对应的RAID1格式热备盘创建所述RAID1。Further, in an embodiment, step S130 includes: through the first RAID information and through the corresponding RAID1 interface, based on the RAID1 format disk corresponding to the disk information and the RAID1 format hot standby corresponding to the hot spare disk information. The disk creates the RAID 1.

参照图3,图3为RAID1的架构示意图。Referring to FIG. 3, FIG. 3 is a schematic diagram of the architecture of RAID1.

在创建RAID1时,磁盘设备需求为2的整数倍个磁盘,即需要MCU硬件层中RAID1硬盘数量为2的整数倍个,或者硬盘成对存在。When creating RAID1, the disk device requires an integer multiple of 2 disks, that is, the number of RAID1 disks in the MCU hardware layer is an integer multiple of 2, or the hard disks exist in pairs.

Linux内核层:主要修改内核驱动程序,而目前Linux内核版本很需要2.6把版本以上支持RAID设备,本文测试的环境是Linux3.4.39只需要把MD设备中RAID设备的功能打开即可,具体配置过程如下:a.、进入Device Driver;b、选择Mutiple devices driver support(RAID and LVM);c、选择RAID-1。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 RAID-1.

Android系统层:主要把RAID工具部署到系统。比如移植mdadm,Btrfs,raidtools等工具到系统进程目录/system/bin。以下以mdadm为例,具体步骤如下:A、mdadm移植,通过交叉编译工具,输出mdadm目标文件,并把目标文件放到/system/bin;B、权限配置,打开mdadm所有需要的权限,以便上层app能执行此脚本;C、重新编译打包系统。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. The following takes mdadm as an example. The specific steps are as follows: A, mdadm porting, output the mdadm target file through the cross-compilation tool, and put the target file into /system/bin; B, permission configuration, open all required permissions of mdadm, so that the upper layer The app can execute this script; C, recompile the package system.

Android APP层:用户可通过在app中,通过Android Rumtime执行对应的程序。比如创建阵列磁盘,mdadm--create--verbose/dev/md0–level=1--raid-devices=2xxxxxx等,通过out输出对应信息来管理RAID1阵列。Android APP layer: Users can go through the app, through Android Rumtime executes the corresponding program. For example, create an array disk, mdadm--create--verbose/dev/md0–level=1--raid-devices=2xxxxxx, etc., and manage the RAID1 array by out corresponding information.

在本实施例中,可在该Android系统的终端中设置配置模块、阵列创建模块等模块,该配置模块接收用户输入的磁盘阵列配置信息,并生产对应的磁盘阵列信息,该阵列创建模块根据配置模块生成的磁盘阵列信息创建对应的RAID1接口。In this embodiment, 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 the corresponding RAID1 interface.

本实施例提出的RAID管理方法,通过在接收用户基于当前显示的配置界面输入的磁盘阵列RAID1的配置信息时,基于所述配置信息生成对应的第一RAID信息,接着在所述磁盘信息对应的磁盘数量为2的整数倍时,显示包括所述第一RAID信息以及所述第一RAID信息对应的创建选项的阵列创建界面,而后在接收到基于所述阵列创建界面中的创建选项触发的RAID1创建指令时,基于所述第一RAID信息并通过对应的RAID1接口创建RAID1,能够根据用户需求通过对应的RAID1接口创建RAID1,能够通过Android系统的终端实现RAID1管理,提高了RAID1管理的便捷性。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 RAID1 input by the user based on the currently displayed configuration interface. When the number of disks is an integral multiple of 2, an array creation interface including the first RAID information and a creation option corresponding to the first RAID information is displayed, and then a RAID 1 triggered based on a creation option in the array creation interface is received. When the command is created, RAID1 is created based on the first RAID information and the corresponding RAID1 interface, and RAID1 can be created through the corresponding RAID1 interface according to the user's requirements. RAID1 management can be implemented through the terminal of the Android system, and the convenience of RAID1 management is improved.

基于第一实施例,提出本发明方法的第二实施例,在本实施例中,该RAID管理方法还包括:Based on the first embodiment, a second embodiment of the method of the present invention is proposed. In this embodiment, the RAID management method further includes:

步骤S140,在监测到当前存在失效的磁盘时,获取失效的磁盘对应的第二RAID信息;In step S140, when the disk that is currently in failure is detected, the second RAID information corresponding to the failed disk is obtained;

在本实施例中,该安装Android系统的终端可实时监测当前存在的各个磁盘的状态以获得对应的状态信息,并在根据该状态信息确定当前存在失效的磁盘时,获取失效的磁盘对应的第二RAID信息,即确定该失效的磁盘所归属的RAID1,该第二RAID信息可以为RAID1的编号、名称等信息。In this embodiment, 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 1 to which the failed disk belongs. The second RAID information may be the number, name, and the like of the RAID 1.

步骤S150,通过所述第二RAID信息对应的RAID1接口在所述第二RAID信息对应的RAID1中删除失效的磁盘;In step S150, the failed disk is deleted in the RAID1 corresponding to the second RAID information by using the RAID1 interface corresponding to the second RAID information.

在本实施例中,在获取到第二RAID信息,在该第二RAID信息对应的RAID1中删除该失效的磁盘,具体地,可通过或调用该第二RAID信息对应的RAID1接口在该第二RAID信息对应的RAID1中删除该失效的磁盘,具体地,若RAID1中的磁盘已配对,则同时删除该失效的磁盘以及与该失效的磁盘配对的磁盘,否则,同时删除该失效的磁盘及RAID1中的任一其他磁盘,当然,还可以根据磁盘的信息存储数据选择失效的磁盘对应的磁盘,例如将磁盘的存储率最高的磁盘作为失效的磁盘对应的磁盘。In this embodiment, the second RAID information is obtained, and the failed disk is deleted in the RAID 1 corresponding to the second RAID information. Specifically, the RAID1 interface corresponding to the second RAID information may be used or invoked in the second Delete the failed disk in RAID1 corresponding to the RAID information. Specifically, if the disk in RAID1 is paired, delete the failed disk and the disk paired with the failed disk. Otherwise, delete the failed disk and RAID1. 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.

步骤S160,基于当前处于空闲状态的RAID1格式磁盘,通过所述第二RAID信息对应的RAID1接口对删除失效的磁盘后的RAID1进行重建。Step S160: Rebuild the RAID 1 after the failed disk is deleted by using the RAID 1 interface corresponding to the second RAID information based on the RAID 1 format disk that is currently in the idle state.

在本实施例中,为避免删除所述磁盘后的RAID1挂起,首先获取当前处于空闲状态的RAID1格式磁盘,其中,空闲状态的RAID1格式磁盘是指当前不属于任何RAID1的RAID1格式磁盘,该空闲状态的RAID1格式磁盘的数量与已删除失效的磁盘的数量一致,而后基于获取到的RAID1格式磁盘通过所述第二RAID信息对应的RAID1接口删除失效的磁盘后的RAID1进行重建,即重建后的RAID1包括删除失效的磁盘后的RAID1中剩余的磁盘及热备盘、空闲状态的RAID1格式磁盘。其中,若在删除上述失效的磁盘时,同时删除该失效的磁盘对应的磁盘,则该空闲状态的RAID1格式磁盘的数量与该RAID1中已删除的磁盘的数量一致。In this embodiment, in order to avoid the RAID 1 hang after the disk is deleted, the RAID 1 format disk that is currently in an idle state is obtained, wherein the RAID 1 format disk in the idle state refers to a RAID 1 format disk that does not currently belong to any RAID 1 . The number of disks in the idle state is the same as the number of disks that have been deleted. Then, based on the obtained RAID1 format, the disk is deleted by deleting the failed disk through the RAID1 interface corresponding to the second RAID information, that is, after the reconstruction. The RAID 1 includes the remaining disks and hot spare disks in the RAID 1 after the failed disks are deleted, and the RAID 1 format disks in the idle state. If the disk corresponding to the failed disk is deleted at the same time, the number of disks in the idle state is the same as the number of disks deleted in the RAID1.

在其他实施例中,在删除失效的磁盘后的RAID1满足该RAID1的等级对应的要求、即删除待删除RAID1格式磁盘后的RAID1的磁盘数量为2的整数倍时,可直接对RAID1进行重建。In other embodiments, the RAID 1 after the failed disk is deleted meets the requirement of the RAID 1 level, that is, when the number of disks of the RAID 1 after deleting the RAID 1 format disk is an integer multiple of 2, the RAID 1 can be directly reconstructed.

本实施例提出的RAID管理方法,通过在监测到当前存在失效的磁盘时,获取失效的磁盘对应的第二RAID信息,接着在所述第二RAID信息对应的RAID1中删除失效的磁盘,而后基于当前处于空闲状态的RAID1格式磁盘,通过所述第二RAID信息对应的RAID1接口对删除失效的磁盘后的RAID1进行重建,进而能够通过Android系统的终端实现RAID1中失效磁盘的删除并对该RAID1进行重建,进一步提高了RAID1管理的便捷性。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 RAID1 corresponding to the second RAID information, and then The RAID 1 format disk that is currently in the idle state is rebuilt by the RAID 1 interface corresponding to the second RAID information, and the RAID 1 after the failed disk is deleted, and the deleted disk in the RAID 1 is deleted by the terminal of the Android system, and the RAID 1 is deleted. Reconstruction further improves the convenience of RAID1 management.

基于第一实施例,提出本发明方法的第三实施例,在本实施例中,该RAID管理方法还包括:Based on the first embodiment, a third embodiment of the method of the present invention is proposed. In this embodiment, the RAID management method further includes:

步骤S170,在监测到RAID1中存在异常RAID1时,获取所述异常RAID1对应的异常信息以及第三RAID信息;Step S170, when abnormal RAID1 is detected in the RAID1, the abnormal information corresponding to the abnormal RAID1 and the third RAID information are acquired;

在本实施例中,该安装Android系统的终端可实时监测所有RAID1的状态,并根基监测结果确定当前是否存在异常RAID1,其中,该异常RAID1包括该RAID1突然断电或RAID1中的磁盘突然断电、该RAID1正在进行重构、该RAID1的磁盘顺序混乱、该RAID1被误删除、误格式化或误分区、该RAID1的磁盘出现坏道或损坏、该RAID1的磁盘被拔出等情形。在监测到RAID中存在异常RAID1时,终端获取所述异常RAID1对应的异常信息以及第三RAID信息,该第三RAID信息可以为RAID1的编号、名称等信息。In this embodiment, the terminal that installs the Android system can monitor the status of all the RAID1s in real time, and determine whether there is abnormal RAID1 currently in the root monitoring result, wherein the abnormal RAID1 includes the sudden power failure of the RAID1 or the sudden power failure of the disk in the RAID1. The RAID 1 is undergoing reconfiguration, the disk order of the RAID 1 is disordered, the RAID 1 is accidentally deleted, misformatted or mispartitioned, the disk of the RAID 1 is bad or damaged, and the disk of the RAID 1 is pulled out. When abnormal RAID 1 is detected in the RAID, the terminal acquires the abnormal information corresponding to the abnormal RAID 1 and the third RAID information, and the third RAID information may be the number, name, and the like of the RAID 1.

步骤S180,显示包括所述异常信息以及第三RAID信息的提示信息。Step S180, displaying prompt information including the abnormality information and the third RAID information.

在本实施例中,在获取到异常RAID1对应的异常信息以及第三RAID信息时,在终端的显示屏显示获取到的异常信息以及第三RAID信息,以便于用户及时知晓当前存在异常RAID1,当然,在显示异常RAID1对应的异常信息以及第三RAID信息的同时,还可以输出语音报警信息等。In this embodiment, when the abnormality information corresponding to the abnormal RAID1 and the third RAID information are acquired, 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 RAID1 is present in time. When the abnormality information corresponding to the abnormal RAID1 and the third RAID information are displayed, the voice alarm information and the like can also be output.

本实施例提出的RAID管理方法,通过在监测到RAID1中存在异常RAID1时,获取所述异常RAID对应的异常信息以及第三RAID信息,接着显示包括所述异常信息以及第三RAID信息的提示信息,能够在检查到异常RAID1时,显示异常信息,进而便于用户及时知晓当前存在异常RAID1,进一步提高了RAID1管理的便捷性。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 RAID1 is detected in the RAID1, and then displays the prompt information including the abnormality information and the third RAID information. When the abnormal RAID1 is detected, the abnormal information is displayed, so that the user can know the current abnormal RAID1 in time, and further improve the convenience of the RAID1 management.

基于上述实施例,提出本发明方法的第四实施例,在本实施例中,在步骤S110之前,该RAID管理方法还包括:Based on the foregoing embodiment, a fourth embodiment of the method of the present invention is proposed. In this embodiment, before the step S110, the RAID management method further includes:

步骤S190,在接收用户基于登录界面触发的登录请求时,获取所述登录请求对应的登录账号及登录密码;Step S190: Acquire a login account and a login password corresponding to the login request when receiving a login request triggered by the login interface.

在本实施例中,安装Android系统的终端安装有RAID管理应用程序APP,该终端的持有者(用户)拥有该APP的登录账号对应的登录密码。在用户启动该APP时,显示该APP对应的登录界面,以供用户基于该登录界面输入对应的登录账号及登录密码,并通过点击登录选项等触发登录请求。在接收用户基于登录界面触发的登录请求时,该终端获取所述登录请求对应的登录账号及登录密码。In this embodiment, 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. When the user starts 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. When receiving a login request triggered by the user based on the login interface, the terminal acquires the login account and the login password corresponding to the login request.

步骤S200,在所述登录账号及登录密码验证通过时,显示RAID1管理主界面;Step S200, displaying a RAID1 management main interface when the login account and the login password are verified;

在本实施例中,在获取到登录账号及登录密码时,对该登录账号及登录密码进行验证操作,并在验证通过时,在终端的显示屏显示RAID1管理主界面。其中,该RAID1管理主界面包括阵列创建信息、当前登录的用户信息、当前的磁盘阵列信息、各个磁盘阵列对应的磁盘的容量信息、空闲的磁盘信息、配置界面、操作界面等二级界面的导航信息等。In this embodiment, 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 RAID1 management main interface is displayed on the display screen of the terminal. The RAID1 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.

步骤S210,在接收基于RAID1管理主界面触发的配置界面显示请求时,显示所述配置界面显示请求对应的配置界面。Step S210: Display a configuration interface corresponding to the configuration interface display request when receiving a configuration interface display request triggered by the RAID1 management main interface.

在本实施例中,用户可通过该RAID1管理主界面中的配置界面对应的导航信息进入配置界面,具体地,在接收基于RAID1管理主界面触发的配置界面显示请求时,显示所述配置界面显示请求对应的配置界面,进而用户可在该配置界面设置需要创建的磁盘阵列的等级、需要用到的磁盘、热备盘,或者生成和导入配置文件等,在设置完成时,可通过当前界面的选项(按钮)进行提交,以实现RAID1的配置信息的输入。In this embodiment, the user can enter the configuration interface by using the navigation information corresponding to the configuration interface in the RAID1 management main interface. Specifically, when the configuration interface display request triggered by the RAID1 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 RAID1.

进一步地,在一实施例中,在步骤S200之后,所述显示RAID1管理主界面的步骤之后,所述RAID管理方法还包括:Further, in an embodiment, after the step of displaying the RAID1 management main interface after the step S200, the RAID management method further includes:

在接收到基于所述操作界面触发的扩容指令时,基于所述扩容指令对应的待添加RAID1格式磁盘,通过所述扩容指令对应的RAID1接口对所述扩容指令对应的RAID1进行扩容操作;或者,And the RAID 1 corresponding to the expansion command is used to expand the RAID 1 corresponding to the expansion command by using the RAID 1 interface corresponding to the expansion command; or

在接收到基于所述操作界面触发的磁盘删除指令时,通过所述磁盘删除指令对应的RAID1接口,在所述磁盘删除指令对应的RAID1中删除所述磁盘删除指令对应的RAID1格式磁盘,并对删除磁盘后的RAID1进行重建;又或者,When receiving the disk deletion command triggered by the operation interface, deleting the RAID1 format disk corresponding to the disk deletion instruction in the RAID1 corresponding to the disk deletion instruction by using the RAID1 interface corresponding to the disk deletion instruction, and Relocate RAID1 after deleting the disk; or,

在接收到基于所述操作界面触发的热备盘的添加/删除指令时,通过所述添加/删除指令对应的RAID1接口,在所述添加/删除指令对应的RAID1中添加/删除所述添加/删除指令对应的RAID1格式热备盘。When the add/delete command of the hot spare disk triggered by the operation interface is received, the add/delete in the RAID1 corresponding to the add/delete command is added/deleted by the RAID1 interface corresponding to the add/delete command. Delete the RAID1 format hot spare disk corresponding to the command.

在本实施例中,可通过操作界面对RAID1进行扩容即在RAID1中添加磁盘、在RAID1中删除磁盘、在RAID1中添加/删除热备盘等操作。In this embodiment, the RAID1 can be expanded through the operation interface, that is, the disk is added in the RAID1, the disk is deleted in the RAID1, and the hot spare disk is added/deleted in the RAID1.

具体地,在接收到基于所述操作界面触发的扩容指令时,获取该扩容指令对应的RAID1及待添加RAID1格式磁盘,通过该扩容指令对应的RAID1接口将该待添加RAID1格式磁盘添加至该RAID1中,以实现RAID1的扩容,优选地,在得到待添加RAID1格式磁盘,根据该待添加RAID1格式磁盘的数量确定扩容后的RAID1是否满足该RAID1的等级对应的要求、即扩容后的RAID1的磁盘数量为2的整数倍,在满足要求时进行扩容操作,否则输出错误提示信息。Specifically, the RAID 1 and the RAID 1 format disk corresponding to the expansion command are acquired, and the RAID 1 format disk to be added is added to the RAID 1 by using the RAID 1 interface corresponding to the expansion command. In order to achieve the expansion of the RAID 1, it is preferable to obtain the RAID 1 format disk, and determine whether the expanded RAID 1 meets the requirement of the RAID 1 level, that is, the expanded RAID 1 disk according to the number of the RAID 1 format disks to be added. The number is an integer multiple of 2, and the capacity expansion operation is performed when the requirements are met. Otherwise, an error message is output.

在接收到基于所述操作界面触发的磁盘删除指令时,确定磁盘删除指令对应的待删除RAID1格式磁盘,通过所述磁盘删除指令对应的RAID1接口,在所述磁盘删除指令对应的RAID1中删除该待删除RAID1格式磁盘,在删除该待删除RAID1格式磁盘后,对删除磁盘后的RAID1进行重建。优选地,在删除磁盘后的RAID1满足该RAID1的等级对应的要求、即删除待删除RAID1格式磁盘后的RAID1的磁盘数量为2的整数倍时,可直接进行重建,也可选择与待删除RAID1格式磁盘的数量相同的其他RAID1格式磁盘对该删除磁盘后的RAID1进行重建,以保证该删除磁盘后的RAID1的容量不变;在删除磁盘后的RAID1不满足该RAID1的等级对应的要求时,选择与待删除RAID1格式磁盘的数量相同的其他RAID1格式磁盘对该删除磁盘后的RAID1进行重建。When the disk deletion instruction triggered by the operation interface is received, the RAID 1 format disk corresponding to the disk deletion instruction is determined, and the RAID 1 interface corresponding to the disk deletion instruction is deleted in the RAID 1 corresponding to the disk deletion instruction. After the RAID 1 format disk is deleted, the RAID 1 after the disk is deleted is rebuilt. Preferably, the RAID 1 after the disk is deleted meets the requirement of the RAID 1 level, that is, when the number of disks of the RAID 1 after deleting the RAID 1 format disk is an integer multiple of 2, the reconstruction may be directly performed, or the RAID 1 to be deleted may be selected. The other RAID1 format disks with the same number of format disks are rebuilt to protect the RAID1 after the disk is deleted, so as to ensure that the capacity of the RAID1 after the disk is deleted is unchanged; if the RAID1 after the disk is deleted does not meet the requirements of the RAID1 level, Select another RAID1 format disk with the same number of disks as the RAID1 format to be deleted to rebuild RAID1 after the disk is deleted.

在接收到基于所述操作界面触发的热备盘的添加/删除指令时,确定添加/删除指令对应的热备盘,通过所述添加/删除指令对应的RAID1接口,在所述添加/删除指令对应的RAID1中删除该热备盘。When receiving an add/delete command of the hot spare disk triggered by the operation interface, determining a hot spare disk corresponding to the add/delete command, by using the RAID1 interface corresponding to the add/delete command, in the add/delete command Delete the hot spare disk in the corresponding RAID1.

本实施例提出的RAID管理方法,通过在接收用户基于登录界面触发的登录请求时,获取所述登录请求对应的登录账号及登录密码;接着在所述登录账号及登录密码验证通过时,显示RAID1管理主界面;而后在接收基于RAID1管理主界面触发的配置界面显示请求时,显示所述配置界面显示请求对应的配置界面,通过在Android终端显示RAID1管理主界面,便于用户根据该RAID1管理主界面显示的内容管理RAID1,进一步提高了RAID1管理的便捷性。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 RAID1 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 RAID1 management main interface is received, the configuration interface corresponding to the configuration display request is displayed, and the main interface of the RAID1 management is displayed on the Android terminal, so that the user can manage the main interface according to the RAID1. The displayed content management RAID1 further improves the convenience of RAID1 management.

基于第四实施例,提出本发明方法的第五实施例,在本实施例中,在步骤S200之后,该RAID管理方法还包括:Based on the fourth embodiment, a fifth embodiment of the method of the present invention is proposed. In this embodiment, after the step S200, the RAID management method further includes:

步骤S220,在接收到基于RAID1管理主界面触发的操作界面显示请求时,显示所述操作界面显示请求对应的操作界面;Step S220, when receiving an operation interface display request triggered by the RAID1 management main interface, displaying an operation interface corresponding to the operation interface display request;

在本实施例中,用户可通过该RAID1管理主界面中的配置界面对应的导航信息进入操作界面,具体地,在接收基于RAID1管理主界面触发的操作界面显示请求时,显示所述配置界面显示请求对应的操作界面,该操作界面包括启动/停止、格式化等RAID1操作选项。In this embodiment, the user can enter the operation interface through the navigation information corresponding to the configuration interface in the RAID1 management main interface. Specifically, when the operation interface display request triggered by the RAID1 management main interface is received, the configuration interface is displayed. The corresponding operation interface is requested, and the operation interface includes RAID1 operation options such as start/stop, format, and the like.

步骤S230,在接收到基于所述操作界面触发的启动/停止指令时,获取所述启动/停止指令对应的第四RAID信息;Step S230: Acquire, according to the start/stop command triggered by the operation interface, acquiring fourth RAID information corresponding to the start/stop command;

在本实施例中,用户可点击操作界面的启动/停止选项等方式触发启动/停止指令,在接收到基于所述操作界面触发的启动/停止指令时,该终端获取所述启动/停止指令对应的第四RAID信息,该第四RAID信息可以为RAID1的编号、名称等信息。In this embodiment, 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 1.

步骤S240,通过所述第四RAID信息对应的RAID1接口启动/停止获取到的所述第四RAID信息对应的RAID1。Step S240: Start/stop the acquired RAID1 corresponding to the fourth RAID information by using the RAID1 interface corresponding to the fourth RAID information.

在本实施例中,在获取到第四RAID信息时,终端通过所述第四RAID信息对应的RAID1接口启动/停止获取到的所述第四RAID信息对应的RAID1。In this embodiment, when acquiring the fourth RAID information, the terminal starts/stops the acquired RAID 1 corresponding to the fourth RAID information by using the RAID 1 interface corresponding to the fourth RAID information.

本实施例提出的RAID管理方法,通过在接收到基于RAID管理主界面触发的操作界面显示请求时,显示所述操作界面显示请求对应的操作界面,接着在接收到基于所述操作界面触发的启动/停止指令时,获取所述启动/停止指令对应的第四RAID信息,而后通过所述第四RAID信息对应的RAID1接口启动/停止获取到的所述第四RAID信息对应的RAID1,能够通过Android终端实现RAID1的启动/停止控制,进一步提高了RAID1管理的便捷性。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 RAID1 corresponding to the fourth RAID information by using the RAID1 interface corresponding to the fourth RAID information, and being able to pass Android The terminal implements the start/stop control of RAID1, which further improves the convenience of RAID1 management.

基于第四实施例,提出本发明方法的第六实施例,在本实施例中,在步骤S220之后,该RAID管理方法还包括:Based on the fourth embodiment, a sixth embodiment of the method of the present invention is provided. In this embodiment, after the step S220, the RAID management method further includes:

步骤S250,在接收到基于所述操作界面触发的格式化指令时,获取所述格式化指令对应的第五RAID信息;Step S250: Acquire a fifth RAID information corresponding to the formatting instruction when receiving a formatting instruction triggered by the operation interface;

在本实施例中,用户可点击操作界面的格式化选项等方式触发格式化指令,在接收到基于所述操作界面触发的格式化指令时,该终端获取所述格式化指令对应的第五RAID信息,该第五RAID信息可以为RAID1的编号、名称等信息。In this embodiment, the user can click the format option of the operation interface to trigger the formatting instruction. When receiving the formatting instruction triggered by the operation interface, the terminal acquires the fifth RAID corresponding to the formatting instruction. Information, the fifth RAID information may be information such as the number and name of the RAID 1.

步骤S260,通过所述第五RAID信息对应的RAID1接口格式化所述第五RAID信息对应的RAID1。Step S260: Format the RAID1 corresponding to the fifth RAID information by using the RAID1 interface corresponding to the fifth RAID information.

在本实施例中,在获取到该第五RAID信息时,该终端通过所述第五RAID信息对应的RAID1接口格式化所述第五RAID信息对应的RAID1,具体的,可先确定待格式化的磁盘,而后删除确定的磁盘的分区,最后将该第五RAID信息对应RAID1中的各个磁盘格式化为RAID1格式磁盘。In this embodiment, when the fifth RAID information is obtained, the terminal formats the RAID1 corresponding to the fifth RAID information by using the RAID1 interface corresponding to the fifth RAID information. Specifically, the terminal may first determine that the RAID information is to be formatted. Disk, and then delete the partition of the determined disk, and finally format the fifth RAID information corresponding to each disk in RAID1 as a RAID1 format disk.

本实施例提出的RAID管理方法,通过在接收到基于所述操作界面触发的格式化指令时,获取所述格式化指令对应的第五RAID信息,接着通过所述第五RAID信息对应的RAID1接口格式化所述第五RAID信息对应的RAID1,进而能够采用Android终端实现RAID1的格式化,进一步提高了RAID1管理的便捷性。The RAID management method of the present embodiment obtains the fifth RAID information corresponding to the formatting instruction, and then passes the RAID1 interface corresponding to the fifth RAID information, when receiving the formatting instruction triggered by the operation interface. The RAID 1 corresponding to the fifth RAID information is formatted, and the RAID 1 format can be implemented by using the Android terminal, thereby further improving the convenience of the RAID 1 management.

基于第六实施例,提出本发明方法的第七实施例,在本实施例中,步骤S260包括:Based on the sixth embodiment, a seventh embodiment of the method of the present invention is proposed. In this embodiment, step S260 includes:

步骤S261,获取所述第五RAID信息对应RAID1中各个磁盘的分区信息;Step S261, acquiring partition information of each disk in the RAID1 corresponding to the fifth RAID information;

在本实施例中,在获取到该第五RAID信息时,该终端获取所述第五RAID信息对应RAID1中各个磁盘的分区信息。In this embodiment, when the fifth RAID information is obtained, the terminal acquires the partition information of each disk in the RAID 1 corresponding to the fifth RAID information.

步骤S262,通过所述第五RAID信息对应的RAID1接口,基于所述分区信息依次删除各个所述磁盘对应的分区;In step S262, the partition corresponding to each of the disks is sequentially deleted based on the partition information by using the RAID1 interface corresponding to the fifth RAID information.

在本实施例中,在获取到分区信息时,该终端通过所述第五RAID信息对应的RAID1接口,基于所述分区信息依次删除各个所述磁盘对应的分区,以便于格式化各个磁盘。In this embodiment, when acquiring the partition information, the terminal sequentially deletes the partitions corresponding to the disks according to the partition information by using the RAID1 interface corresponding to the fifth RAID information, so as to format the disks.

步骤S263,通过所述第五RAID信息对应的RAID1接口将删除分区后的各个磁盘格式化为RAID1格式磁盘。In step S263, each disk after the partition is deleted is formatted into a RAID1 format disk by using the RAID1 interface corresponding to the fifth RAID information.

在本实施例中,在删除各个磁盘对应的分区后,该终端通过所述第五RAID信息对应的RAID1接口将删除分区后的各个磁盘格式化为RAID1格式磁盘,进而实现该RAID1的格式化。In this embodiment, after the partition corresponding to each disk is deleted, the terminal formats the disk after the partition is deleted into a RAID 1 format disk through the RAID 1 interface corresponding to the fifth RAID information, thereby implementing formatting of the RAID 1.

本实施例提出的RAID管理方法,通过获取所述第五RAID信息对应RAID1中各个磁盘的分区信息,接着通过所述第五RAID信息对应的RAID1接口,基于所述分区信息依次删除各个所述磁盘对应的分区,而后通过所述第五RAID信息对应的RAID1接口将删除分区后的各个磁盘格式化为RAID1格式磁盘,进而能够通过Android终端删除RAID1的各个磁盘的分区,而后进行RAID1的格式化,进一步提高了RAID1管理的便捷性。The RAID management method in this embodiment obtains the partition information of each disk in the RAID 1 corresponding to the fifth RAID information, and then sequentially deletes each of the disks based on the partition information by using the RAID 1 interface corresponding to the fifth RAID information. Corresponding partitions are then formatted by the RAID1 interface corresponding to the fifth RAID information to format the disks after the partitions are deleted into RAID1 format disks, thereby deleting the partitions of the RAID1 disks through the Android terminal, and then formatting the RAID1. Further improved the convenience of RAID1 management.

此外,本发明实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有RAID管理程序,所述RAID管理程序被处理器执行时实现上述RAID管理方法的步骤。In addition, 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.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, item, or system. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in a process, method, article, or system that includes the element, without further limitation.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, 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.

以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (20)

一种RAID管理方法,应用于安装Android系统的终端,其特征在于,所述RAID管理方法包括以下步骤: A RAID management method is applied to a terminal for installing an Android system, and the RAID management method includes the following steps: 在接收用户基于当前显示的配置界面输入的磁盘阵列RAID1的配置信息时,基于所述配置信息生成对应的第一RAID信息,其中,第一RAID信息包括RAID1等级以及磁盘信息;And generating, according to the configuration information, corresponding first RAID information, where the first RAID information includes a RAID 1 level and disk information, when the configuration information of the disk array RAID1 that is input by the user based on the currently displayed configuration interface is received; 在所述磁盘信息对应的磁盘数量为2的整数倍时,显示包括所述第一RAID信息以及所述第一RAID信息对应的创建选项的阵列创建界面;When the number of disks corresponding to the disk information is an integer multiple of 2, an array creation interface including the first RAID information and a creation option corresponding to the first RAID information is displayed; 在接收到基于所述阵列创建界面中的创建选项触发的RAID1创建指令时,基于所述第一RAID信息并通过对应的RAID1接口创建RAID1。Upon receiving a RAID 1 creation instruction triggered based on a creation option in the array creation interface, RAID 1 is created based on the first RAID information and through a corresponding RAID 1 interface. 如权利要求1所述的RAID管理方法,其特征在于,所述在接收用户基于当前显示的配置界面输入的磁盘阵列RAID1的配置信息时,基于所述配置信息生成对应的第一RAID信息的步骤之前,所述RAID管理方法还包括:The RAID management method according to claim 1, wherein the step of generating corresponding first RAID information based on the configuration information when receiving configuration information of the disk array RAID1 input by the user based on the currently displayed configuration interface Previously, the RAID management method further includes: 在接收用户基于登录界面触发的登录请求时,获取所述登录请求对应的登录账号及登录密码;Obtaining a login account and a login password corresponding to the login request when receiving a login request triggered by the login interface; 在所述登录账号及登录密码验证通过时,显示RAID1管理主界面;When the login account and the login password are verified, the RAID1 management main interface is displayed; 在接收基于RAID1管理主界面触发的配置界面显示请求时,显示所述配置界面显示请求对应的配置界面。When receiving the configuration interface display request triggered by the RAID1 management main interface, the configuration interface corresponding to the configuration display request is displayed. 如权利要求2所述的RAID管理方法,其特征在于,所述显示RAID1管理主界面的步骤之后,所述RAID管理方法还包括:The RAID management method according to claim 2, wherein after the step of displaying the RAID1 management main interface, the RAID management method further comprises: 在接收到基于RAID1管理主界面触发的操作界面显示请求时,显示所述操作界面显示请求对应的操作界面;After receiving the operation interface display request triggered by the RAID1 management main interface, displaying the operation interface corresponding to the operation interface display request; 在接收到基于所述操作界面触发的启动/停止指令时,获取所述启动/停止指令对应的第四RAID信息;Acquiring the fourth RAID information corresponding to the start/stop command when receiving the start/stop command triggered by the operation interface; 通过所述第四RAID信息对应的RAID1接口启动/停止获取到的所述第四RAID信息对应的RAID1。The RAID 1 corresponding to the acquired fourth RAID information is started/stopped by the RAID 1 interface corresponding to the fourth RAID information. 如权利要求2所述的RAID管理方法,其特征在于,所述显示RAID1管理主界面的步骤之后,所述RAID管理方法还包括:The RAID management method according to claim 2, wherein after the step of displaying the RAID1 management main interface, the RAID management method further comprises: 在接收到基于所述操作界面触发的格式化指令时,获取所述格式化指令对应的第五RAID信息;Acquiring the fifth RAID information corresponding to the formatting instruction when receiving the formatting instruction triggered by the operation interface; 通过所述第五RAID信息对应的RAID1接口格式化所述第五RAID信息对应的RAID1。Formatting the RAID 1 corresponding to the fifth RAID information by using the RAID 1 interface corresponding to the fifth RAID information. 如权利要求4所述的RAID管理方法,其特征在于,所述通过所述第五RAID信息对应的RAID1接口格式化所述第五RAID信息对应的RAID1的步骤包括:The RAID management method according to claim 4, wherein the step of formatting the RAID 1 corresponding to the fifth RAID information by using the RAID 1 interface corresponding to the fifth RAID information comprises: 获取所述第五RAID信息对应RAID1中各个磁盘的分区信息;Obtaining, by the fifth RAID information, partition information of each disk in the RAID1; 通过所述第五RAID信息对应的RAID1接口,基于所述分区信息依次删除各个所述磁盘对应的分区;And deleting, by using the RAID1 interface corresponding to the fifth RAID information, the partitions corresponding to the disks according to the partition information; 通过所述第五RAID信息对应的RAID1接口将删除分区后的各个磁盘格式化为RAID1格式磁盘。Each disk after the partition is deleted is formatted into a RAID1 format disk by using the RAID1 interface corresponding to the fifth RAID information. 如权利要求2所述的RAID管理方法,其特征在于,所述显示RAID1管理主界面的步骤之后,所述RAID管理方法还包括:The RAID management method according to claim 2, wherein after the step of displaying the RAID1 management main interface, the RAID management method further comprises: 在接收到基于所述操作界面触发的扩容指令时,基于所述扩容指令对应的待添加RAID1格式磁盘,通过所述扩容指令对应的RAID1接口对所述扩容指令对应的RAID1进行扩容操作;或者,And the RAID 1 corresponding to the expansion command is used to expand the RAID 1 corresponding to the expansion command by using the RAID 1 interface corresponding to the expansion command; or 在接收到基于所述操作界面触发的磁盘删除指令时,通过所述磁盘删除指令对应的RAID1接口,在所述磁盘删除指令对应的RAID1中删除所述磁盘删除指令对应的RAID1格式磁盘,并对删除磁盘后的RAID1进行重建;又或者,When receiving the disk deletion command triggered by the operation interface, deleting the RAID1 format disk corresponding to the disk deletion instruction in the RAID1 corresponding to the disk deletion instruction by using the RAID1 interface corresponding to the disk deletion instruction, and Relocate RAID1 after deleting the disk; or, 在接收到基于所述操作界面触发的热备盘的添加/删除指令时,通过所述添加/删除指令对应的RAID1接口,在所述添加/删除指令对应的RAID1中添加/删除所述添加/删除指令对应的RAID1格式热备盘。When the add/delete command of the hot spare disk triggered by the operation interface is received, the add/delete in the RAID1 corresponding to the add/delete command is added/deleted by the RAID1 interface corresponding to the add/delete command. Delete the RAID1 format hot spare disk corresponding to the command. 如权利要求1所述的RAID管理方法,其特征在于,所述RAID管理方法还包括:The RAID management method according to claim 1, wherein the RAID management method further comprises: 在监测到当前存在失效的磁盘时,获取失效的磁盘对应的第二RAID信息;Obtaining the second RAID information corresponding to the failed disk when the disk that is currently in failure is detected; 通过所述第二RAID信息对应的RAID1接口在所述第二RAID信息对应的RAID1中删除失效的磁盘;Deleting the failed disk in the RAID 1 corresponding to the second RAID information by using the RAID1 interface corresponding to the second RAID information; 基于当前处于空闲状态的RAID1格式磁盘,通过所述第二RAID信息对应的RAID1接口对删除失效的磁盘后的RAID1进行重建。Based on the RAID 1 format disk that is currently in the idle state, the RAID 1 interface corresponding to the second RAID information is used to reconstruct the RAID 1 after the failed disk is deleted. 如权利要求7所述的RAID管理方法,其特征在于,所述在接收用户基于当前显示的配置界面输入的磁盘阵列RAID1的配置信息时,基于所述配置信息生成对应的第一RAID信息的步骤之前,所述RAID管理方法还包括:The RAID management method according to claim 7, wherein the step of generating corresponding first RAID information based on the configuration information when receiving configuration information of the disk array RAID1 input by the user based on the currently displayed configuration interface Previously, the RAID management method further includes: 在接收用户基于登录界面触发的登录请求时,获取所述登录请求对应的登录账号及登录密码;Obtaining a login account and a login password corresponding to the login request when receiving a login request triggered by the login interface; 在所述登录账号及登录密码验证通过时,显示RAID1管理主界面;When the login account and the login password are verified, the RAID1 management main interface is displayed; 在接收基于RAID1管理主界面触发的配置界面显示请求时,显示所述配置界面显示请求对应的配置界面。When receiving the configuration interface display request triggered by the RAID1 management main interface, the configuration interface corresponding to the configuration display request is displayed. 如权利要求8所述的RAID管理方法,其特征在于,所述显示RAID1管理主界面的步骤之后,所述RAID管理方法还包括:The RAID management method according to claim 8, wherein after the step of displaying the primary interface of the RAID 1 management, the RAID management method further comprises: 在接收到基于RAID1管理主界面触发的操作界面显示请求时,显示所述操作界面显示请求对应的操作界面;After receiving the operation interface display request triggered by the RAID1 management main interface, displaying the operation interface corresponding to the operation interface display request; 在接收到基于所述操作界面触发的启动/停止指令时,获取所述启动/停止指令对应的第四RAID信息;Acquiring the fourth RAID information corresponding to the start/stop command when receiving the start/stop command triggered by the operation interface; 通过所述第四RAID信息对应的RAID1接口启动/停止获取到的所述第四RAID信息对应的RAID1。The RAID 1 corresponding to the acquired fourth RAID information is started/stopped by the RAID 1 interface corresponding to the fourth RAID information. 如权利要求8所述的RAID管理方法,其特征在于,所述显示RAID1管理主界面的步骤之后,所述RAID管理方法还包括:The RAID management method according to claim 8, wherein after the step of displaying the primary interface of the RAID 1 management, the RAID management method further comprises: 在接收到基于所述操作界面触发的格式化指令时,获取所述格式化指令对应的第五RAID信息;Acquiring the fifth RAID information corresponding to the formatting instruction when receiving the formatting instruction triggered by the operation interface; 通过所述第五RAID信息对应的RAID1接口格式化所述第五RAID信息对应的RAID1。Formatting the RAID 1 corresponding to the fifth RAID information by using the RAID 1 interface corresponding to the fifth RAID information. 如权利要求10所述的RAID管理方法,其特征在于,所述通过所述第五RAID信息对应的RAID1接口格式化所述第五RAID信息对应的RAID1的步骤包括:The RAID management method according to claim 10, wherein the step of formatting the RAID 1 corresponding to the fifth RAID information by using the RAID 1 interface corresponding to the fifth RAID information comprises: 获取所述第五RAID信息对应RAID1中各个磁盘的分区信息;Obtaining, by the fifth RAID information, partition information of each disk in the RAID1; 通过所述第五RAID信息对应的RAID1接口,基于所述分区信息依次删除各个所述磁盘对应的分区;And deleting, by using the RAID1 interface corresponding to the fifth RAID information, the partitions corresponding to the disks according to the partition information; 通过所述第五RAID信息对应的RAID1接口将删除分区后的各个磁盘格式化为RAID1格式磁盘。Each disk after the partition is deleted is formatted into a RAID1 format disk by using the RAID1 interface corresponding to the fifth RAID information. 如权利要求8所述的RAID管理方法,其特征在于,所述显示RAID1管理主界面的步骤之后,所述RAID管理方法还包括:The RAID management method according to claim 8, wherein after the step of displaying the primary interface of the RAID 1 management, the RAID management method further comprises: 在接收到基于所述操作界面触发的扩容指令时,基于所述扩容指令对应的待添加RAID1格式磁盘,通过所述扩容指令对应的RAID1接口对所述扩容指令对应的RAID1进行扩容操作;或者,And the RAID 1 corresponding to the expansion command is used to expand the RAID 1 corresponding to the expansion command by using the RAID 1 interface corresponding to the expansion command; or 在接收到基于所述操作界面触发的磁盘删除指令时,通过所述磁盘删除指令对应的RAID1接口,在所述磁盘删除指令对应的RAID1中删除所述磁盘删除指令对应的RAID1格式磁盘,并对删除磁盘后的RAID1进行重建;又或者,When receiving the disk deletion command triggered by the operation interface, deleting the RAID1 format disk corresponding to the disk deletion instruction in the RAID1 corresponding to the disk deletion instruction by using the RAID1 interface corresponding to the disk deletion instruction, and Relocate RAID1 after deleting the disk; or, 在接收到基于所述操作界面触发的热备盘的添加/删除指令时,通过所述添加/删除指令对应的RAID1接口,在所述添加/删除指令对应的RAID1中添加/删除所述添加/删除指令对应的RAID1格式热备盘。When the add/delete command of the hot spare disk triggered by the operation interface is received, the add/delete in the RAID1 corresponding to the add/delete command is added/deleted by the RAID1 interface corresponding to the add/delete command. Delete the RAID1 format hot spare disk corresponding to the command. 如权利要求1所述的RAID管理方法,其特征在于,所述RAID管理方法还包括:The RAID management method according to claim 1, wherein the RAID management method further comprises: 在监测到RAID1中存在异常RAID1时,获取所述异常RAID1对应的异常信息以及第三RAID信息;Obtaining the abnormality information corresponding to the abnormal RAID1 and the third RAID information when the abnormal RAID1 is detected in the RAID1; 显示包括所述异常信息以及第三RAID信息的提示信息。The prompt information including the abnormality information and the third RAID information is displayed. 如权利要求13所述的RAID管理方法,其特征在于,所述在接收用户基于当前显示的配置界面输入的磁盘阵列RAID1的配置信息时,基于所述配置信息生成对应的第一RAID信息的步骤之前,所述RAID管理方法还包括:The RAID management method according to claim 13, wherein the step of generating corresponding first RAID information based on the configuration information when receiving configuration information of the disk array RAID1 input by the user based on the currently displayed configuration interface Previously, the RAID management method further includes: 在接收用户基于登录界面触发的登录请求时,获取所述登录请求对应的登录账号及登录密码;Obtaining a login account and a login password corresponding to the login request when receiving a login request triggered by the login interface; 在所述登录账号及登录密码验证通过时,显示RAID1管理主界面;When the login account and the login password are verified, the RAID1 management main interface is displayed; 在接收基于RAID1管理主界面触发的配置界面显示请求时,显示所述配置界面显示请求对应的配置界面。When receiving the configuration interface display request triggered by the RAID1 management main interface, the configuration interface corresponding to the configuration display request is displayed. 如权利要求14所述的RAID管理方法,其特征在于,所述显示RAID1管理主界面的步骤之后,所述RAID管理方法还包括:The RAID management method according to claim 14, wherein after the step of displaying the RAID1 management main interface, the RAID management method further comprises: 在接收到基于RAID1管理主界面触发的操作界面显示请求时,显示所述操作界面显示请求对应的操作界面;After receiving the operation interface display request triggered by the RAID1 management main interface, displaying the operation interface corresponding to the operation interface display request; 在接收到基于所述操作界面触发的启动/停止指令时,获取所述启动/停止指令对应的第四RAID信息;Acquiring the fourth RAID information corresponding to the start/stop command when receiving the start/stop command triggered by the operation interface; 通过所述第四RAID信息对应的RAID1接口启动/停止获取到的所述第四RAID信息对应的RAID1。The RAID 1 corresponding to the acquired fourth RAID information is started/stopped by the RAID 1 interface corresponding to the fourth RAID information. 如权利要求14所述的RAID管理方法,其特征在于,所述显示RAID1管理主界面的步骤之后,所述RAID管理方法还包括:The RAID management method according to claim 14, wherein after the step of displaying the RAID1 management main interface, the RAID management method further comprises: 在接收到基于所述操作界面触发的格式化指令时,获取所述格式化指令对应的第五RAID信息;Acquiring the fifth RAID information corresponding to the formatting instruction when receiving the formatting instruction triggered by the operation interface; 通过所述第五RAID信息对应的RAID1接口格式化所述第五RAID信息对应的RAID1。Formatting the RAID 1 corresponding to the fifth RAID information by using the RAID 1 interface corresponding to the fifth RAID information. 如权利要求16所述的RAID管理方法,其特征在于,所述通过所述第五RAID信息对应的RAID1接口格式化所述第五RAID信息对应的RAID1的步骤包括:The RAID management method according to claim 16, wherein the step of formatting the RAID 1 corresponding to the fifth RAID information by using the RAID 1 interface corresponding to the fifth RAID information comprises: 获取所述第五RAID信息对应RAID1中各个磁盘的分区信息;Obtaining, by the fifth RAID information, partition information of each disk in the RAID1; 通过所述第五RAID信息对应的RAID1接口,基于所述分区信息依次删除各个所述磁盘对应的分区;And deleting, by using the RAID1 interface corresponding to the fifth RAID information, the partitions corresponding to the disks according to the partition information; 通过所述第五RAID信息对应的RAID1接口将删除分区后的各个磁盘格式化为RAID1格式磁盘。Each disk after the partition is deleted is formatted into a RAID1 format disk by using the RAID1 interface corresponding to the fifth RAID information. 如权利要求14所述的RAID管理方法,其特征在于,所述显示RAID1管理主界面的步骤之后,所述RAID管理方法还包括:The RAID management method according to claim 14, wherein after the step of displaying the RAID1 management main interface, the RAID management method further comprises: 在接收到基于所述操作界面触发的扩容指令时,基于所述扩容指令对应的待添加RAID1格式磁盘,通过所述扩容指令对应的RAID1接口对所述扩容指令对应的RAID1进行扩容操作;或者,And the RAID 1 corresponding to the expansion command is used to expand the RAID 1 corresponding to the expansion command by using the RAID 1 interface corresponding to the expansion command; or 在接收到基于所述操作界面触发的磁盘删除指令时,通过所述磁盘删除指令对应的RAID1接口,在所述磁盘删除指令对应的RAID1中删除所述磁盘删除指令对应的RAID1格式磁盘,并对删除磁盘后的RAID1进行重建;又或者,When receiving the disk deletion command triggered by the operation interface, deleting the RAID1 format disk corresponding to the disk deletion instruction in the RAID1 corresponding to the disk deletion instruction by using the RAID1 interface corresponding to the disk deletion instruction, and Relocate RAID1 after deleting the disk; or, 在接收到基于所述操作界面触发的热备盘的添加/删除指令时,通过所述添加/删除指令对应的RAID1接口,在所述添加/删除指令对应的RAID1中添加/删除所述添加/删除指令对应的RAID1格式热备盘。When the add/delete command of the hot spare disk triggered by the operation interface is received, the add/delete in the RAID1 corresponding to the add/delete command is added/deleted by the RAID1 interface corresponding to the add/delete command. Delete the RAID1 format hot spare disk corresponding to the command. 一种RAID管理装置,应用于安装Android系统的终端,其特征在于,所述RAID管理装置包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的RAID管理程序,所述RAID管理程序被所述处理器执行时实现如权利要求1所述的RAID管理方法的步骤。A RAID management device is applied to a terminal for installing an Android system, wherein the RAID management device includes: a memory, a processor, and a RAID management program stored on the memory and operable on the processor, The step of implementing the RAID management method of claim 1 when the RAID management program is executed by the processor. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有RAID管理程序,所述RAID管理程序被处理器执行时实现如权利要求1所述的RAID管理方法的步骤。 A computer readable storage medium, wherein the computer readable storage medium stores a RAID management program, and the RAID management program is executed by a processor to implement the steps of the RAID management method according to claim 1.
PCT/CN2018/084530 2017-09-30 2018-04-26 Raid management method and device, and computer-readable storage medium Ceased WO2019062105A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710928317.5 2017-09-30
CN201710928317.5A CN107765998A (en) 2017-09-30 2017-09-30 RAID management methods, device and computer-readable recording medium

Publications (1)

Publication Number Publication Date
WO2019062105A1 true WO2019062105A1 (en) 2019-04-04

Family

ID=61267419

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/084530 Ceased WO2019062105A1 (en) 2017-09-30 2018-04-26 Raid management method and device, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN107765998A (en)
WO (1) WO2019062105A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107765998A (en) * 2017-09-30 2018-03-06 深圳市华德安科技有限公司 RAID management methods, device and computer-readable recording medium
CN108897496B (en) * 2018-06-29 2020-11-03 平安科技(深圳)有限公司 Disk array configuration management method and device, computer equipment and storage medium
CN114995760B (en) * 2022-05-31 2025-07-22 济南浪潮数据技术有限公司 Backup recovery method, device and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174196A (en) * 2006-10-31 2008-05-07 英业达股份有限公司 Method for changing grade of disk array in operation
CN101984399A (en) * 2010-10-29 2011-03-09 中兴通讯股份有限公司 Management method and system of soft redundant array of independent disk
CN102103468A (en) * 2010-12-31 2011-06-22 中国电子科技集团公司第十五研究所 Multi-disk-cabin hard disk array system consisting of double-layer controller
US20160188487A1 (en) * 2014-12-24 2016-06-30 University Of New Hampshire Redundant disk array using heterogeneous disks
CN106325760A (en) * 2015-06-24 2017-01-11 伊姆西公司 Method and equipment for managing memory array configuration
CN107765998A (en) * 2017-09-30 2018-03-06 深圳市华德安科技有限公司 RAID management methods, device and computer-readable recording medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9575853B2 (en) * 2014-12-12 2017-02-21 Intel Corporation Accelerated data recovery in a storage system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174196A (en) * 2006-10-31 2008-05-07 英业达股份有限公司 Method for changing grade of disk array in operation
CN101984399A (en) * 2010-10-29 2011-03-09 中兴通讯股份有限公司 Management method and system of soft redundant array of independent disk
CN102103468A (en) * 2010-12-31 2011-06-22 中国电子科技集团公司第十五研究所 Multi-disk-cabin hard disk array system consisting of double-layer controller
US20160188487A1 (en) * 2014-12-24 2016-06-30 University Of New Hampshire Redundant disk array using heterogeneous disks
CN106325760A (en) * 2015-06-24 2017-01-11 伊姆西公司 Method and equipment for managing memory array configuration
CN107765998A (en) * 2017-09-30 2018-03-06 深圳市华德安科技有限公司 RAID management methods, device and computer-readable recording medium

Also Published As

Publication number Publication date
CN107765998A (en) 2018-03-06

Similar Documents

Publication Publication Date Title
WO2019165691A1 (en) Method, apparatus and device for automatically generating test case, and readable storage medium
WO2014000635A1 (en) Method for reader to provide service, reader, terminal and computer storage medium
WO2019062093A1 (en) Raid management method and device, and computer-readable storage medium
WO2019062109A1 (en) Method of mounting disk array, android device and storage medium
WO2019062102A1 (en) Method of mounting disk array, android device and storage medium
WO2019174375A1 (en) Interface test method, apparatus and device, and computer-readable storage medium
WO2019127837A1 (en) Method, apparatus, and device for generating table creation script, and computer readable storage medium
WO2013185570A1 (en) Software update method, software update system and computer storage medium
WO2014082500A1 (en) Page loading method and system therefor, and computer storage medium
WO2017088664A1 (en) Data processing method and apparatus for cluster file system
WO2018205545A1 (en) Data generation method, apparatus, terminal, and computer-readable storage medium
WO2019062105A1 (en) Raid management method and device, and computer-readable storage medium
WO2018233369A1 (en) Virtual disk writing method and device based on copy-on-write, storage medium
WO2019059671A1 (en) Electronic device and control method thereof
WO2019104876A1 (en) Insurance product pushing method and system, terminal, client terminal, and storage medium
WO2018120430A1 (en) Page construction method, terminal, computer-readable storage medium and page construction device
WO2017131469A1 (en) Electronic device for controlling application and operation method thereof
WO2015144052A1 (en) Method and apparatus for collecting statistics on network information
WO2018120680A1 (en) Virtual disk backup system, method, apparatus, service host and storage medium
EP3539046A1 (en) Electronic device and method for managing data in electronic device
JP2018190143A (en) Information processing device
WO2019205272A1 (en) Virtual machine service providing method, device and equipment and computer readable storage medium
WO2017036208A1 (en) Method and system for extracting information in display interface
WO2019062104A1 (en) Method of mounting disk array, android device and storage medium
WO2019062106A1 (en) Method of mounting disk array, android device and storage medium

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: 18863308

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: 18863308

Country of ref document: EP

Kind code of ref document: A1