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

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

Info

Publication number
WO2019062100A1
WO2019062100A1 PCT/CN2018/084326 CN2018084326W WO2019062100A1 WO 2019062100 A1 WO2019062100 A1 WO 2019062100A1 CN 2018084326 W CN2018084326 W CN 2018084326W WO 2019062100 A1 WO2019062100 A1 WO 2019062100A1
Authority
WO
WIPO (PCT)
Prior art keywords
raid0
raid
interface
information
disk
Prior art date
Application number
PCT/CN2018/084326
Other languages
English (en)
French (fr)
Inventor
杜伟
周伟明
张少龙
Original Assignee
深圳市华德安科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市华德安科技有限公司 filed Critical 深圳市华德安科技有限公司
Publication of WO2019062100A1 publication Critical patent/WO2019062100A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of storage devices
    • G06F3/0689Disk arrays, e.g. RAID, JBOD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems

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 purpose of the present invention is to provide a RAID management method, apparatus, and computer readable storage medium, which are aimed at solving the technical problem that the RAID 0 management cannot be implemented in the terminal of the Android system.
  • the present invention provides a RAID management method, which is applied to a terminal for installing an Android system, and the RAID management method includes the following steps:
  • an array creation interface including the first RAID information and a creation option corresponding to the first RAID information is displayed;
  • RAID0 Upon receiving a RAID0 creation instruction triggered based on a creation option in the array creation interface, RAID0 is created based on the first RAID information and through a corresponding RAID0 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 greater than or equal to 2 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 A RAID information is created and RAID0 is created through the corresponding RAID0 interface.
  • RAID0 can be created through the corresponding RAID0 interface according to user requirements, and RAID0 management can be implemented through the terminal of the Android system, thereby improving the convenience of RAID0 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
  • Figure 3 is a schematic diagram of the architecture of RAID0.
  • 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 RAID0 input by the user based on the currently displayed configuration interface, generate corresponding first RAID information based on the configuration information, where the first RAID information includes a RAID0 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.
  • RAID0's stripe access technology distributes data blocks on each disk. Separate the physical disks first. When RAID0 is formed, the RAID of this mode will divide each disk into equal chunks. In addition, when data is to be written to RAID, the data will be divided into blocks and so on. The amount of size, and at the same time write to multiple disks, and then placed in each disk.
  • RAID0 distributes data to different disks. For example, there are 9 data block size (4K) data, and the same size of disk sda, sdb and sdc. When writing, these 9 pieces of data will be 0, 3, 6 Store on the sda disk, 1, 4, 7 to the sdb disk, 2, 5, 8 to the sdc disk. If the capacity of the three disks is different, each disk will use the capacity of the smallest disk size; when the capacity is small, the remaining space of the large capacity disk will be used. RAID0 performs data block operations on member disks simultaneously with its efficient read and write capabilities.
  • 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 RAID0 management main interface corresponding to the APP.
  • the RAID0 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 RAID0 management main interface. Then, you can 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 realize the input of the configuration information of RAID0.
  • the user when the configuration interface setting is completed, the user can submit the configuration information of the RAID0 through the option (button) of the current interface, and when receiving the configuration information of the RAID0 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 RAID0 level information, disk information, and/or hot spare disk information.
  • step S120 when the number of disks corresponding to the disk information is greater than or equal to 2, an array creation interface including the first RAID information and the creation option corresponding to the first RAID information is displayed;
  • the display screen of the terminal is popped up or switched to the array creation interface, and the array creation interface is used to display the first A RAID information and a creation option corresponding to the first RAID information
  • the user can re-confirm the related configuration of the RAID to be created by using the displayed first RAID information, and when the related configuration is correct, the interface can be displayed through the current array creation interface.
  • the creation option (button) triggers the RAID0 creation instruction.
  • the first RAID information includes RAID 0 level information, disk information and/or hot spare disk information, RAID 0 interface information, and the like required for the RAID 0 to be created.
  • Step S130 when receiving the RAID0 creation instruction triggered based on the creation option in the array creation interface, create RAID0 based on the first RAID information and through the corresponding RAID0 interface.
  • the terminal when the user clicks (selects) the creation selection time in the array creation interface, the RAID0 creation instruction is triggered, and when receiving the RAID0 creation instruction triggered based on the creation option in the array creation interface, the terminal passes The RAID0 interface corresponding to the first RAID information creates RAID0 based on the first RAID information.
  • the step S130 includes: through the first RAID information and through the corresponding RAID0 interface, based on the RAID0 format disk corresponding to the disk information and the RAID0 format hot standby corresponding to the hot spare disk information.
  • the disk creates the RAID0.
  • FIG. 3 is a schematic diagram of a RAID0 architecture.
  • the disk device When creating RAID0, the disk device requires two or more disks, that is, the number of RAID0 disks in the MCU hardware layer needs to be greater than or equal to two.
  • 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-0.
  • 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 RAID0 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 RAID0 input by the user based on the currently displayed configuration interface.
  • an array creation interface including the first RAID information and a creation option corresponding to the first RAID information is displayed, and then a RAID0 creation triggered based on a creation option in the array creation interface is received.
  • RAID0 can be created through the corresponding RAID0 interface according to user requirements, and RAID0 management can be implemented through the terminal of the Android system, thereby improving the convenience of RAID0 management.
  • 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 0 to which the failed disk belongs.
  • the second RAID information may be the number, name, and the like of the RAID 0.
  • step S150 the failed disk is deleted in the RAID0 corresponding to the second RAID information by using the RAID0 interface corresponding to the second RAID information.
  • the failed disk is deleted in the RAID0 corresponding to the second RAID information, and specifically, the RAID0 interface corresponding to the second RAID information may be used or invoked in the first The failed disk is deleted from RAID0 corresponding to the RAID information.
  • step S160 based on the RAID0 format disk that is currently in the idle state, the RAID0 interface corresponding to the second RAID information is used to reconstruct the RAID0 after the failed disk is deleted.
  • the RAID0 format disk that is currently in an idle state is obtained, wherein the RAID0 format disk in the idle state refers to a RAID0 format disk that does not currently belong to any RAID0.
  • the number of disks in the idle state is the same as the number of disks that have been deleted.
  • the disk is deleted after the failed disk is deleted through the RAID0 interface corresponding to the second RAID information.
  • the RAID0 includes the remaining disks and hot spare disks in the RAID0 after the failed disks are deleted, and the RAID0 format disks in the idle state.
  • the number of disks in the RAID 0 after the failed disk is deleted is greater than or equal to 2, and the RAID 0 can be directly reconstructed.
  • the disk is directly deleted.
  • the RAID management method of the present embodiment obtains the second RAID information corresponding to the failed disk when the disk that is currently in use is detected, and then deletes the failed disk in the RAID0 corresponding to the second RAID information, and then The RAID0 format disk that is currently in the idle state is rebuilt by the RAID0 interface corresponding to the second RAID information to delete the RAID0 after the failed disk is deleted, and the deleted disk in the RAID0 can be deleted by the terminal of the Android system and the RAID0 is performed on the RAID0. Reconstruction further improves the convenience of RAID0 management.
  • the RAID management method further includes:
  • Step S170 when abnormal RAID0 is detected in the RAID0, the abnormal information corresponding to the abnormal RAID0 and the third RAID information are acquired;
  • the terminal that installs the Android system can monitor the status of all RAID0 in real time, and determine whether there is abnormal RAID0 currently in the root monitoring result, wherein the abnormal RAID0 includes the sudden power failure of the RAID0 or the sudden power failure of the disk in the RAID0.
  • the RAID0 is undergoing reconfiguration, the disk order of the RAID0 is disordered, the RAID0 is accidentally deleted, misformatted or mispartitioned, the disk of the RAID0 is bad or damaged, and the disk of the RAID0 is pulled out.
  • the terminal acquires the abnormal information corresponding to the abnormal RAID0 and the third RAID information, where the third RAID information may be the number, name, and the like of the RAID0.
  • 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 RAID0 is present in time.
  • voice alarm information and the like may be output.
  • the RAID management method of the present embodiment obtains the abnormality information corresponding to the abnormal RAID and the third RAID information when the abnormal RAID0 is detected in the RAID0, and then displays the prompt information including the abnormality information and the third RAID information.
  • the abnormal information is displayed, so that the user can know in time that the abnormal RAID0 exists, and the convenience of the RAID0 management is further improved.
  • 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 RAID0 management main interface when the login account and the login password are verified;
  • the RAID0 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 RAID0 management main interface is displayed on the display screen of the terminal.
  • the RAID0 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 RAID0 management main interface.
  • the user can enter the configuration interface through the navigation information corresponding to the configuration interface in the RAID0 management main interface. Specifically, when the configuration interface display request triggered by the RAID0 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 RAID0.
  • the RAID management method further includes:
  • the RAID0 interface corresponding to the expansion instruction is used to expand the RAID0 corresponding to the expansion instruction by using the RAID0 interface corresponding to the expansion instruction;
  • the add/delete in the RAID0 corresponding to the add/delete command is added/deleted by the RAID0 interface corresponding to the add/delete command. Delete the RAID0 format hot spare disk corresponding to the instruction.
  • the RAID0 can be expanded through the operation interface, that is, the disk is added in the RAID0, the disk is deleted in the RAID0, and the hot spare disk is added/deleted in the RAID0.
  • the RAID0 format disk corresponding to the disk deletion instruction is determined, and the RAID0 interface corresponding to the disk deletion instruction is deleted in the RAID0 corresponding to the disk deletion instruction.
  • the RAID0 after the disk is deleted is rebuilt.
  • the RAID0 after the disk is deleted meets the requirement of the RAID0 level, that is, when the number of disks in the RAID0 after the disk to be deleted is deleted is greater than or equal to 2, the reconstruction may be directly performed, and the RAID0 to be deleted may also be selected.
  • the other RAID0 format disks with the same number of format disks are rebuilt to restore the RAID0 after the disk is deleted, so as to ensure that the capacity of the RAID0 after the disk is deleted is unchanged; when the RAID0 after the disk is deleted does not meet the requirements corresponding to the RAID level, Select another RAID0 format disk with the same number of disks as the RAID0 format to be deleted to rebuild the RAID0 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 RAID0 when the login account and the login password are verified.
  • the main interface is managed; and after receiving the configuration interface display request triggered by the RAID0 management main interface, the configuration interface corresponding to the configuration display request is displayed, and the main interface of the RAID0 management is displayed on the Android terminal, so that the user can manage the main interface according to the RAID0.
  • the displayed content management RAID0 further improves the convenience of RAID0 management.
  • the RAID management method further includes:
  • Step S220 when receiving an operation interface display request triggered by the RAID0 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 RAID0 management main interface.
  • the configuration interface is displayed.
  • the corresponding operation interface is requested, and the operation interface includes RAID0 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 information such as the number and name of the RAID0.
  • Step S240 Start/stop the acquired RAID0 corresponding to the fourth RAID information by using the RAID0 interface corresponding to the fourth RAID information.
  • the terminal when acquiring the fourth RAID information, the terminal starts/stops the acquired RAID 0 corresponding to the fourth RAID information by using the RAID0 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 a fourth RAID information corresponding to the start/stop command, and then starting/stopping the acquired RAID0 corresponding to the fourth RAID information by using the RAID0 interface corresponding to the fourth RAID information, and being able to pass Android
  • the terminal implements the start/stop control of RAID0, which further improves the convenience of RAID0 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 RAID0.
  • Step S260 Format the RAID0 corresponding to the fifth RAID information by using the RAID0 interface corresponding to the fifth RAID information.
  • the terminal when the fifth RAID information is obtained, formats the RAID0 corresponding to the fifth RAID information by using the RAID0 interface corresponding to the fifth RAID information. Specifically, the terminal may first determine that the RAID information is to be formatted. The disk, and then delete the partition of the determined disk, and finally format the disk in the RAID0 corresponding to the fifth RAID information into a RAID0 format disk.
  • the RAID management method of the present embodiment obtains the fifth RAID information corresponding to the formatting instruction, and then passes the RAID0 interface corresponding to the fifth RAID information, when receiving the formatting instruction triggered by the operation interface.
  • the RAID0 corresponding to the fifth RAID information is formatted, and the RAID0 format can be implemented by using the Android terminal, thereby further improving the convenience of the RAID0 management.
  • step S260 includes:
  • Step S261 acquiring partition information of each disk in the RAID0 corresponding to the fifth RAID information
  • the terminal acquires the partition information of each disk in the RAID0 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 RAID0 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 RAID0 interface corresponding to the fifth RAID information, so as to format each disk.
  • Step S263 Format each disk after the deletion of the partition into a RAID0 format disk by using RAID0 corresponding to the fifth RAID information.
  • the terminal formats the disk after the partition is deleted into a RAID0 format disk through the RAID0 interface corresponding to the fifth RAID information, thereby implementing formatting of the RAID0.
  • the RAID management method in this embodiment obtains the partition information of each disk in the RAID0 corresponding to the fifth RAID information, and then sequentially deletes each of the disks based on the partition information by using the RAID0 interface corresponding to the fifth RAID information.
  • Corresponding partitions, and then the RAID0 interfaces corresponding to the fifth RAID information are used to format the disks after the partitions are deleted into RAID0 format disks, thereby deleting the partitions of the RAID0 disks through the Android terminal, and then formatting the RAID0. Further improve the convenience of RAID0 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

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

Description

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

Claims (20)

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

Applications Claiming Priority (2)

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

Publications (1)

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

Family

ID=61208638

Family Applications (1)

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

Country Status (2)

Country Link
CN (1) CN107728944A (zh)
WO (1) WO2019062100A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107728944A (zh) * 2017-09-30 2018-02-23 深圳市华德安科技有限公司 Raid管理方法、装置及计算机可读存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174196A (zh) * 2006-10-31 2008-05-07 英业达股份有限公司 变更运作中的磁盘阵列的等级的方法
CN101984399A (zh) * 2010-10-29 2011-03-09 中兴通讯股份有限公司 一种软独立冗余磁盘阵列的管理方法和系统
CN102103468A (zh) * 2010-12-31 2011-06-22 中国电子科技集团公司第十五研究所 一种由双层控制器组成的多盘仓磁盘阵列系统
US20160188487A1 (en) * 2014-12-24 2016-06-30 University Of New Hampshire Redundant disk array using heterogeneous disks
CN106325760A (zh) * 2015-06-24 2017-01-11 伊姆西公司 管理存储阵列配置的方法和设备
CN107728944A (zh) * 2017-09-30 2018-02-23 深圳市华德安科技有限公司 Raid管理方法、装置及计算机可读存储介质

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 (zh) * 2006-10-31 2008-05-07 英业达股份有限公司 变更运作中的磁盘阵列的等级的方法
CN101984399A (zh) * 2010-10-29 2011-03-09 中兴通讯股份有限公司 一种软独立冗余磁盘阵列的管理方法和系统
CN102103468A (zh) * 2010-12-31 2011-06-22 中国电子科技集团公司第十五研究所 一种由双层控制器组成的多盘仓磁盘阵列系统
US20160188487A1 (en) * 2014-12-24 2016-06-30 University Of New Hampshire Redundant disk array using heterogeneous disks
CN106325760A (zh) * 2015-06-24 2017-01-11 伊姆西公司 管理存储阵列配置的方法和设备
CN107728944A (zh) * 2017-09-30 2018-02-23 深圳市华德安科技有限公司 Raid管理方法、装置及计算机可读存储介质

Also Published As

Publication number Publication date
CN107728944A (zh) 2018-02-23

Similar Documents

Publication Publication Date Title
KR102236522B1 (ko) 정보를 처리하기 위한 방법 및 장치
US9021480B2 (en) Security management device and method
US10915411B2 (en) Advanced multiple backup recovery
US8433948B2 (en) Method and apparatus for realizing application high availability
CN111752759B (zh) Kafka集群故障恢复方法、装置、设备及介质
US20140317369A1 (en) Snapshot creation from block lists
WO2011105860A2 (en) Method and apparatus for generating minimum boot image
WO2017209508A1 (ko) 전자 장치 및 전자 장치의 파일 데이터 저널링 방법
WO2019062098A1 (zh) 磁盘阵列的挂载方法、Android设备和存储介质
WO2021072880A1 (zh) 虚拟机内部快照异步创建方法、装置、系统及存储介质
WO2017185954A1 (zh) 一种实现usb设备管理的方法、主机和系统
US20070271082A1 (en) User configurable device simulator with injection error capability
WO2019057089A1 (zh) 网卡镜像抓包方法、终端以及可读存储介质
CN111639061A (zh) Redis集群中数据管理方法、装置、介质及电子设备
GB2497167A (en) Repairing cross-allocated blocks in a mounted file system using snapshots
CN111818145B (zh) 一种文件传输方法、装置、系统、设备及存储介质
WO2019009510A1 (ko) 독립된 백업 및 복구 기능을 제공하는 보조기억장치 및 이를 적용한 기기
US10496493B1 (en) Method and system for restoring applications of particular point in time
US10552268B1 (en) Broken point continuous backup in virtual datacenter
WO2019062100A1 (zh) Raid管理方法、装置及计算机可读存储介质
WO2019194394A1 (ko) 전자 장치 및 그의 제어방법
US20060059188A1 (en) Operation environment associating data migration method
WO2021006574A1 (en) Method and apparatus for managing application
WO2019160323A1 (ko) 어플리케이션과 관련된 데이터를 관리하기 위한 방법 및 그 전자 장치
WO2023177024A1 (ko) 아키텍처 변경을 위한 소스 변환 솔루션 제공 장치 및 방법

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

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

Country of ref document: EP

Kind code of ref document: A1