CN107728945A - Hanging method, Android device and the storage medium of disk array - Google Patents
Hanging method, Android device and the storage medium of disk array Download PDFInfo
- Publication number
- CN107728945A CN107728945A CN201710932875.9A CN201710932875A CN107728945A CN 107728945 A CN107728945 A CN 107728945A CN 201710932875 A CN201710932875 A CN 201710932875A CN 107728945 A CN107728945 A CN 107728945A
- Authority
- CN
- China
- Prior art keywords
- disk array
- disk
- raid1
- hanging method
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0683—Plurality of storage devices
- G06F3/0689—Disk arrays, e.g. RAID, JBOD
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
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)
- Stored Programmes (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of hanging method of disk array, the hanging method of the disk array is applied to android system, including:The disk array RAID1 configuration informations of user's input, disk array information corresponding to generation are received, and obtains the information of disk in the android system;When number of disks corresponding to the disc information is more than or equal to 2, the disk array interface according to corresponding to creating the disk array information;Disk Array file corresponding to according to the disk array information disk collection is mapped as by the disk array Interface Controller driver by the way of the system calling, and according to the Disk Array file by disk carry in the android system to the android system.The invention also discloses a kind of Android device and storage medium.The present invention can realize RAID1 support and carry in android system.
Description
Technical field
The present invention relates to android system technical field, more particularly to a kind of hanging method of disk array, Android
Equipment and storage medium.
Background technology
With the continuous development of Internet technology, the user of the Internet, applications is continuously increased, and is produced daily in global range
Information data it is more and more, data gather way more and more faster.In such a case, various memory technologies and storage scheme
Arise at the historic moment.Wherein RAID (Redundant Array of Independent Disks) redundant array technology can by its height
By property, large data capacity, the advantages that strong and high bandwidth is adapted to, is widely used in large server.Wherein RIAD
Technology possesses a variety of hierarchical manners, facilitates system to customize the storage scheme of suitable demand according to demand.Although however, RAID skills
Art is used widely in the large server based on windows and Linux system and some higher data safety occasions, but
It is being substantially blank based on support of the android system to RAID and the design of carry software.
The above is only used for auxiliary and understands technical scheme, does not represent and recognizes that the above is existing skill
Art.
The content of the invention
It is a primary object of the present invention to provide a kind of hanging method of disk array, Android device and storage medium,
It is directed at support and carry that android system realizes RAID1.
To achieve the above object, the present invention provides a kind of hanging method of disk array, the carry side of the disk array
Method is applied to android system, and the hanging method of the disk array comprises the following steps:
The disk array RAID1 configuration informations of reception user's input, disk array information corresponding to generation, and described in acquisition
The information of disk in android system;
When number of disks corresponding to the disc information is more than or equal to 2, according to disk array information establishment pair
The disk array interface answered;
Believed by the way of system calling by the disk array Interface Controller driver according to the disk array
Disk collection is mapped as corresponding Disk Array file by breath, and according to the Disk Array file by described in
Disk carry is to the android system in android system.
Wherein, the hanging method also includes:
Receive the read write command that application program is sent;
Operation is written and read to the Disk Array file by the driver according to the read write command.
Wherein, the hanging method also includes:
The state of disk array is detected, obtains disk array RAID1 status information;
When detecting default status information, the android system is reported to.
Wherein, the hanging method also includes:
Send android system broadcast message, wherein the broadcast message include disk array RAID1 error messages,
Increase the broadcast message of disk array RAID1 and disk array RAID1 carries, to cause the application program receiving disk
During the broadcast message of array RAID1 errors, increase disk array RAID1 or disk array RAID1 carry information, corresponding to progress
Processing.
Wherein, the hanging method also includes:
In detecting disk array RAID1 disk occur it is abnormal when, rebuild automatically corresponding to disk array interface;
When being unsatisfactory for disk array RAID1 reconstruction conditions, the broadcast message of additional error data is sent, it is described to cause
Application program processing according to corresponding to being carried out the broadcast message.
Wherein, the hanging method also includes:
Receive the query statement of user's input;
The current status information of disk array is inquired about according to the query statement, and shown.
Wherein, the hanging method also includes:
When receiving the dilatation instruction that user is inputted by application program, determined based on dilatation instruction to be added
RAID1 format discs, dilatation operation is carried out in corresponding RAID1 interfaces by dilatation instruction;Or
When receiving the disk deletion instruction that user is inputted by application program, delete what instruction determined by the disk
RAID1 interfaces, deleted to instruct according to the disk and RAID1 corresponding to the disk deletion instruction is deleted in corresponding RAID1
Format disc, and the RAID1 after deletion disk is rebuild;Or
When receiving the addition/deletion instruction for the HotSpare disk that user is inputted by application program, pass through the addition/deletion
The RAID1 interfaces determined are instructed, instruct the addition in corresponding RAID1/deletion is described to be added/to delete according to the addition/deletion
Except RAID1 forms HotSpare disk corresponding to instruction.
Wherein, the step according to the Disk Array file by disk array carry to the Android systems
Suddenly include:
According to the Disk Array file by vold mechanism in android system by the Android systems
Disk carry is to the android system.
In addition, to achieve the above object, the present invention also provides a kind of Android device, and the Android equipment includes:
Memory, processor and the carry program for being stored in the disk array that can be run on the memory and on the processor,
The step of method as described above being realized when the carry program of the disk array is by the computing device.
In addition, to achieve the above object, the present invention also provides a kind of storage medium, on the computer-readable recording medium
The carry program of disk array is stored with, the carry program of the disk array realizes magnetic as described above when being executed by processor
The step of hanging method of disk array.
The disk array RAID1 configuration informations that the present invention is inputted by receiving user, disk array information corresponding to generation,
And obtain the information of disk in the android system;When number of disks corresponding to the disc information is more than or equal to 2,
The disk array interface according to corresponding to creating the disk array information;Pass through the disk array by the way of system calling
Interface Controller driver disk collection is mapped as according to the disk array information corresponding to Disk Array file, and root
According to the Disk Array file by disk carry in the android system to the android system.Pass through above-mentioned side
Formula, the information of the invention that the disk array RAID1 for needing carry is inputted according to user, disk array information corresponding to generation, and
And the information of disk in the android system is obtained, when number of disks corresponding to the disc information is more than or equal to 2,
The array interface according to corresponding to creating the disk array information, then connect by the way of system calling using the array of establishment
It by disk array information is Disk Array file by Disk Mapping that mouth, which controls driver, is existed in android system, from
And android system can be according to Disk Array file mount disk array RAID1, after carry disk array RAID1, then
It can realize that application software operates disk array as operation USB flash disk equipment in android system in android system
RAID1。
Brief description of the drawings
Fig. 1 is the apparatus structure schematic diagram for the hardware running environment that scheme of the embodiment of the present invention is related to;
Fig. 2 is the schematic flow sheet that the hanging method first of inventive disk array is implemented;
Fig. 3 is the module diagram in android system in the embodiment of the present invention;
Fig. 4 is the schematic flow sheet that the hanging method second of inventive disk array is implemented;
Fig. 5 is the schematic flow sheet that the hanging method the 3rd of inventive disk array is implemented;
Fig. 6 is the schematic flow sheet that the hanging method the 4th of inventive disk array is implemented;
Fig. 7 is the schematic flow sheet that the hanging method the 5th of inventive disk array is implemented;
The object of the invention is realized, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are:
Because prior art based on support of the android system to RAID and the design of carry software is substantially blank.
In order to solve the above-mentioned technical problem, the present invention provide a kind of hanging method of disk array, Android equipment and
Storage medium, the disk array RAID1 configuration informations inputted by receiving user, disk array information corresponding to generation, and obtain
Obtain the information of disk in the android system;When number of disks corresponding to the disc information is more than or equal to 2, according to
Disk array interface corresponding to the disk array information establishment;Pass through the disk array interface by the way of system calling
Disk Array file corresponding to controlling driver to be mapped as disk collection according to the disk array information, and according to institute
Disk Array file is stated by disk carry in the android system to the android system.By the above-mentioned means,
The present invention needs the disk array RAID1 of carry information, disk array information corresponding to generation according to user's input, and and obtains
The information of disk in the android system is obtained, when number of disks corresponding to the disc information is more than or equal to 2, according to
Array interface corresponding to the disk array information establishment, then uses the array interface control created by the way of system calling
Disk Mapping is Disk Array file by driver processed by disk array information, is existed in android system, so as to
Android system after carry disk array RAID1, then can may be used according to Disk Array file mount disk array RAID1
To be realized in android system, application software operates disk array RAID1 as operation USB flash disk equipment in android system.
As shown in figure 1, Fig. 1 is the apparatus structure schematic diagram for the hardware running environment that scheme of the embodiment of the present invention is related to.
Terminal of the embodiment of the present invention can be PC or smart mobile phone, tablet personal computer, E-book reader, MP3
(Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio aspect 3)
Player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard sound
Frequency aspect 4) player, pocket computer etc. have the packaged type terminal device of display function.
As shown in figure 1, the terminal can include:Processor 1001, such as CPU, communication bus 1002, user interface
1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is used to realize the connection communication between these components.
User interface 1003 can include display screen (Display), input block such as keyboard (Keyboard), optional user interface
1003 can also include wireline interface, the wave point of standard.Network interface 1004 can optionally connect including the wired of standard
Mouth, wave point (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory or stable memory
(non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor
1001 storage device.
Alternatively, terminal can also include camera, RF (Radio Frequency, radio frequency) circuit, sensor, audio
Circuit, WiFi module etc..Wherein, sensor ratio such as optical sensor, motion sensor and other sensors.Specifically, light
Sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can according to the light and shade of ambient light come
The brightness of display screen is adjusted, proximity transducer can close display screen and/or backlight when mobile terminal is moved in one's ear.As
One kind of motion sensor, gravity accelerometer can detect in all directions the size of (generally three axles) acceleration, quiet
Size and the direction of gravity are can detect that when only, the application available for identification mobile terminal posture is (such as horizontal/vertical screen switching, related
Game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Certainly, mobile terminal can also match somebody with somebody
The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared ray sensor are put, will not be repeated here.
It will be understood by those skilled in the art that the restriction of the terminal structure shown in Fig. 1 not structure paired terminal, can be wrapped
Include than illustrating more or less parts, either combine some parts or different parts arrangement.
As shown in figure 1, it can lead to as in a kind of memory 1005 of computer-readable storage medium including operating system, network
Believe module, Subscriber Interface Module SIM and network operation control application program.
In the terminal shown in Fig. 1, network interface 1004 is mainly used in connecting background server, is carried out with background server
Data communicate;User interface 1003 is mainly used in connecting client (user terminal), enters row data communication with client;And processor
1001 can be used for calling the carry program of disk array stored in memory 1005, and perform following operate:
The disk array RAID1 configuration informations of reception user's input, disk array information corresponding to generation, and described in acquisition
The information of disk in android system;
When number of disks corresponding to the disc information is more than or equal to 2, according to disk array information establishment pair
The disk array interface answered;
Believed by the way of system calling by the disk array Interface Controller driver according to the disk array
Disk collection is mapped as corresponding Disk Array file by breath, and according to the Disk Array file by described in
Disk carry is to the android system in android system.
Further, processor 1001 can call the carry program of the disk array stored in memory 1005, also hold
Row is following to be operated:
Receive the read write command that application program is sent;
Operation is written and read to the Disk Array file by the driver according to the read write command.
Further, processor 1001 can call the carry program of the disk array stored in memory 1005, also hold
Row is following to be operated:
Disk array RAID1 state is detected, obtains disk array RAID1 status information;
When detecting default status information, the android system is reported to.
Further, processor 1001 can call the carry program of the disk array stored in memory 1005, also hold
Row is following to be operated:
Send android system broadcast message, wherein the broadcast message include disk array RAID1 error messages,
Increase the broadcast message of disk array RAID1 and disk array RAID1 carries, to cause the application program receiving disk
During the broadcast message of array RAID1 errors, increase disk array RAID1 or disk array RAID1 carry information, corresponding to progress
Processing.
Further, processor 1001 can call the carry program of the disk array stored in memory 1005, also hold
Row is following to be operated:
In detecting disk array RAID1 disk occur it is abnormal when, rebuild automatically corresponding to disk array interface;
When being unsatisfactory for disk array RAID1 reconstruction conditions, the broadcast message of additional error data is sent, it is described to cause
Application program processing according to corresponding to being carried out the broadcast message.
Further, processor 1001 can call the carry program of the disk array stored in memory 1005, also hold
Row is following to be operated:
Receive the query statement of user's input;
The current status informations of disk array RAID1 are inquired about according to the query statement, and shown.
Further, processor 1001 can call the carry program of the disk array stored in memory 1005, also hold
Row is following to be operated:
When receiving the dilatation instruction that user is inputted by application program, determined based on dilatation instruction to be added
RAID1 format discs, dilatation operation is carried out in corresponding RAID1 interfaces by dilatation instruction;Or
When receiving the disk deletion instruction that user is inputted by application program, delete what instruction determined by the disk
RAID1 interfaces, deleted to instruct according to the disk and RAID1 corresponding to the disk deletion instruction is deleted in corresponding RAID1
Format disc, and the RAID1 after deletion disk is rebuild;Or
When receiving the addition/deletion instruction for the HotSpare disk that user is inputted by application program, pass through the addition/deletion
The RAID1 interfaces determined are instructed, instruct the addition in corresponding RAID1/deletion is described to be added/to delete according to the addition/deletion
Except RAID1 forms HotSpare disk corresponding to instruction.
Further, processor 1001 can call the carry program of the disk array stored in memory 1005, also hold
Row is following to be operated:
According to the Disk Array file by vold mechanism in android system by the Android systems
Disk carry is to the android system.
The specific embodiment of application software security breaches detection device of the present invention detects with following application software security breaches
Each embodiment of method is essentially identical, and therefore not to repeat here.
Reference picture 2, the schematic flow sheet of the implementation of hanging method first of inventive disk array, the extension of the disk array
Support method method includes:
Step S10, the disk array RAID1 configuration informations of reception user's input, disk array information corresponding to generation, and
Obtain the information of disk in the android system;
Step S20, when number of disks corresponding to the disc information is more than or equal to 2, believed according to the disk array
Disk array interface corresponding to breath establishment;
Step S30, by the disk array Interface Controller driver according to the magnetic by the way of system calling
Disk array information by disk collection be mapped as corresponding to Disk Array file, and according to the Disk Array file by institute
Disk carry is stated in android system to the android system.
Specifically, the present invention be applied to android system in, in the present embodiment android system can with as shown in figure 3,
Android system can include configuration module, Creating module and RAID controller etc., and above steps can be by each module
Realize.RAID technique is the core processing technology of storage disk array, and the purpose is to the efficiency for improving data processing and fault-tolerant energy
Power.The general performance that can all ensure system using necessary means, common method are to set caching to storage system in realization
System.Caching system is the system of a virtualization, and its principle is to improve performance by efficiently handling I/O requests.RAID1
Using mirror image pattern.RAID1 makes data store reciprocity data on corresponding disk using redundancy, can with piece of data
It is respectively stored on two pieces of disks.When the data manipulation in one piece of disk is frequent, system can be directly from another piece of disk
It is read out same piece of data.So RAID1 allows but block disk failure, systematic function are not directly affected.This pattern needs
Want two pieces of disks, best capacity rotating speed is the same.Other RAID1 is to the member disk of the composition of different capabilities disk, population size meeting
Depending on that disk minimum according to capacity, the remaining disk space for being left that block is also no longer able to read and write data.Therefore, disk
Capacity utilization is low, and overall RAID capacity has been decreased by almost 50%.Therefore in the case of largely write-in RAID1, the property write
It can may become excessively poor.Specifically, configuration module is used for the configuration information for receiving the disk array RAID1 of user's input,
Wherein disk array RAID1 configuration information includes array level configuration, disk configuration etc., and wherein user is in input disk array
During RAID1 configuration information, Device Driver in android system can be introduced into, into submenu, in submenu
Mutiple devices driver support (RAID and LVM) are selected to enter RAID level selection menu, in RAID
Hierarchical selection menu chooses RAID-1, so as to complete the disk array RAID1 of input configuration information.
Then the disk array information according to corresponding to the generation of the configuration information of disk array, and import disk configuration file extremely
Creating module in android system;The disk array information that Creating module then generates according to configuration module exists
Corresponding RAID1 interface is created in android system, then controller then calls the interface created in android system to adopt
The mode called with system controls bsp driver to perform carry and operated, and specifically, driver is believed according to RAID1 grade
Breath, is Disk Array file by the Disk Mapping being connected in android system, then according to Disk Array file
Disk in Android systems is hung over and carried in android system.Further, according to the Disk Array file by magnetic
Disk array carry to the step of android system, includes:
According to the Disk Array file by vold mechanism in android system by the Android systems
Disk carry is to the android system.
Vold full name is volume daemon.CDROM, USB massive store of actually responsible completion system,
The finger daemon that the carry task of the extension storages such as mmc card is automatically performed.What it was provided is mainly characterized by supporting that these storages are outer
If hot plug.It is roughly divided into 3 steps:1st, link is created:In vold as a finger daemon, on the one hand receive the letter driven
Breath, and information is transmitted to application layer;On the other hand receive the order on upper strata and complete corresponding.So link one here shares two
Bar:(1)vold socket:It is responsible for the information transmission of vold and application layer;(2) udev socket is accessed:Be responsible for vold with
The information transmission of bottom;The two links are all to complete what is created at the beginning in process.2. guiding:Here mainly in vold
During startup, the processing to existing peripheral hardware storage device.First, to load and parse vold.conf, and check mount point whether
Through by carry;Secondly, mmc card carry is performed;Finally, USB massive stores are handled.3. event handling:Here by two
The monitoring of link, the processing to dynamic event, and the response to upper layer application operation are completed, will by aforesaid way
Disk carry is to the android system in android system.
The disk array RAID1 configuration informations that the present invention is inputted by receiving user, disk array information corresponding to generation,
And obtain the information of disk in the android system;When number of disks corresponding to the disc information is more than or equal to 2,
The disk array interface according to corresponding to creating the disk array information;Pass through the disk array by the way of system calling
Interface Controller driver disk collection is mapped as according to the disk array information corresponding to Disk Array file, and root
According to the Disk Array file by disk carry in the android system to the android system.Pass through above-mentioned side
Formula, the information of the invention that the disk array RAID1 for needing carry is inputted according to user, disk array information corresponding to generation, and
And the information of disk in the android system is obtained, when number of disks corresponding to the disc information is more than or equal to 2,
The array interface according to corresponding to creating the disk array information, then connect by the way of system calling using the array of establishment
It by disk array information is Disk Array file by Disk Mapping that mouth, which controls driver, is existed in android system, from
And android system can be according to Disk Array file mount disk array RAID1, after carry disk array RAID1, then
It can realize that application software operates disk array as operation USB flash disk equipment in android system in android system
RAID1。
Further, reference picture 4, the schematic flow sheet that Fig. 4 is implemented for the hanging method second of inventive disk array, base
In the embodiment shown in above-mentioned Fig. 2, the carry side of the disk array includes in the present embodiment:
Step S40, receive the read write command that application program is sent;
Step S50, the Disk Array file is read by the driver according to the read write command
Write operation.
After step S30 realizes carry, each disk in android system, then corresponding reflect can be formed with disk array
Relation is penetrated, so that application program when being written and read operation, is written and read as read-write USB flash disk to disk array file,
Specifically, user can be operated by application program or application program generates read write command in itself, then pass through driving
Program is written and read operation to Disk Array file, and then realizes and operation is written and read to disk.
Further, reference picture 5, the schematic flow sheet that Fig. 5 is implemented for the hanging method the 3rd of inventive disk array, base
In the embodiment shown in above-mentioned Fig. 2, the hanging method also includes:
Step S60, detection disk array RAID1 state, disk array RAID1 status information corresponding to acquisition;
Step S70, when detecting default status information, report to the android system.
Specifically, for convenience of using, the present embodiment in actual use, is provided with monitoring in android system
Module is used to perform step in the present embodiment, and the monitoring module can in real time or regularly detect disk array RAID1 state,
When detecting disk array RAID1 state, the state of disk array is reported to android system.Wherein to Android systems
System reports the mode of the state of disk array to be carried out by the way of information is reported in android system, in the present embodiment
Do not do to be more than and repeat.
Further, the schematic flow sheet implemented refering to Fig. 6, Fig. 6 for the hanging method the 4th of inventive disk array, institute
Stating hanging method also includes:
Step S80, the broadcast message of android system is sent, wherein the broadcast message goes out including disk array RAID1
The broadcast message of wrong information, increase disk array RAID1 and disk array RAID1 carries, to cause the application program connecing
When receiving the broadcast message of disk array RAID1 errors, increase disk array RAID1 or disk array RAID1 carry information,
Handled corresponding to carrying out;
Step S90, when disk in detecting disk array RAID1 occurs abnormal, carry out rebuilding corresponding disk automatically
Array interface.
Step S100, when being unsatisfactory for disk array RAID1 reconstruction conditions, the broadcast message of additional error data is sent,
To cause application program processing according to corresponding to being carried out the broadcast message.
, can be to each disk in disk array RAID1 when android system receives the status information of disk array
State judged that determine whether each disk situations such as error, abnormal occurs, Android systems can in real time or timing is wide
Each disk array RAID1 status information is broadcast, if application program receives the broadcast such as disk array RAID1 errors or increase
During information, corresponding processing is carried out, if specifically, the broadcast message of disk array RAID1 errors is received, according to current
The disk array RAID1 used grade, corresponding processing is carried out, specifically:If current disk array RAID grade is
RAID1, and the broadcast message that a disk malfunctions in disk array is received, now because there is other disks to continue to use, because
This can show corresponding prompt message, remind the user that replacing disk;If receiving the broadcast of increase disk array, weigh
Newly synchronize, the content of disk synchronization normal use disk will be increased newly;If receive the wide of disk array RAID1 carries
Broadcast, then carry information corresponding to display.Further, if receiving whole disks in disk array RAID1 exception occurs
Broadcast, then the reconstruction of disk array RAID1 interfaces is carried out, when being rebuild, if being currently unsatisfactory for disk array RAID1
Reconstruction, then the broadcast message of additional error is sent, corresponding to make it that application program carries out when receiving the broadcast message
Processing, for example prompt message corresponding to display is to prompt user.
Further, the schematic flow sheet implemented refering to Fig. 7, Fig. 7 for the hanging method the 5th of inventive disk array, base
In the embodiment shown in above-mentioned Fig. 2, the hanging method also includes:
Step S110, receive the query statement of user's input;
Step S120, the current status informations of disk array RAID1 are inquired about according to the query statement, and shown.
The data of disk array are checked for the convenience of the user, control the situation of disk in time, disk is also provided in the present embodiment
The look facility of array, specifically, user can carry out inquiry operation in operation interface, and Android device operates according to user
Query statement corresponding to generation, the query statement then triggered according to user, inquiry disk array RAID1 current state letter
Breath, and shown in Android device, so as to realize query function.
Further, based on above-mentioned Fig. 2 shown in embodiment, the hanging method also includes:
Step S130, when receiving the dilatation instruction that user is inputted by application program, instructed and determined based on the dilatation
RAID1 format discs to be added, by the dilatation instruction corresponding RAID1 interfaces carry out dilatation operation;Or
Step S140, when receiving the disk deletion instruction that user is inputted by application program, deleted by the disk
The RAID1 interfaces determined are instructed, instruction is deleted according to the disk disk deletion instruction is deleted in corresponding RAID1
Corresponding RAID1 format discs, and the RAID1 after deletion disk is rebuild;Or
Step S150, when receiving the addition/deletion instruction for the HotSpare disk that user is inputted by application program, by described
The RAID1 interfaces that addition/deletion instruction determines, according to the addition/deletion instruction addition/deletion institute in corresponding RAID1
State addition/RAID1 form HotSpare disk corresponding to deletion instruction.
In order to avoid some disk usage times are long, disk aging, or the situation of disk storage space deficiency,
Management function is also provided with actual use in the present embodiment, specifically, is receiving the expansion based on operation interface triggering
When holding instruction, RAID1 and RAID1 format discs to be added corresponding to dilatation instruction are obtained, by corresponding to dilatation instruction
The RAID1 format discs to be added are added in the RAID1 by RAID1 interfaces, to realize RAID1 dilatation, it is preferable that
To RAID1 format discs to be added, whether the RAID1 after dilatation is determined according to the quantity of the RAID1 format discs to be added
Meet to require corresponding to the grade of the RAID1, carry out dilatation operation when meeting to require, otherwise output error prompt message.
When receiving the disk deletion instruction based on operation interface triggering, determine that disk is deleted and treated corresponding to instruction
RAID1 format discs are deleted, RAID1 interfaces corresponding to instruction are deleted by the disk, it is corresponding to delete instruction in the disk
RAID1 in delete the RAID1 format discs to be deleted, after the RAID1 format discs to be deleted are deleted, to delete disk after
RAID1 rebuild.Preferably, can be straight when the RAID1 after deleting disk meets to require corresponding to the grade of the RAID1
Capable reconstruction is tapped into, also may be selected with the quantity identical of RAID1 format discs to be deleted other RAID1 format discs to the deletion
RAID1 after disk is rebuild, to ensure that the capacity of the RAID1 after the deletion disk is constant;RAID1 after disk is deleted
When being unsatisfactory for requiring corresponding to the grade of the RAID1, selection and the quantity identicals of RAID1 format discs to be deleted other
RAID1 format discs are rebuild to the RAID1 after the deletion disk.
When receiving addition/deletion instruction of the HotSpare disk based on operation interface triggering, it is determined that addition/deletion
HotSpare disk corresponding to instruction, it is corresponding in the addition/deletion instruction by the addition/RAID1 interfaces corresponding to deletion instruction
RAID1 in delete the HotSpare disk.
According to foregoing description, the present invention by increasing corresponding function, including state information report, reconstruction magnetic in systems
The functions such as disk array, inquiry and management, it is achieved thereby that the carry of disk array and management.
In addition, the embodiment of the present invention also proposes a kind of Android device, the Android device includes:Memory, place
Reason device and the carry program for being stored in the disk array that can be run on the memory and on the processor, the disk battle array
The carry program of row is realized the step of method described in example is performed as described above during the computing device.
The basic phase of each embodiment of hanging method of the specific embodiment of Android device of the present invention and above-mentioned disk array
Together, therefore not to repeat here.
In addition, the embodiment of the present invention also proposes a kind of computer-readable recording medium, the computer-readable recording medium
On be stored with the carry program of disk array, realized when the carry program of the disk array is executed by processor and example be performed as described above
The step of hanging method of described disk array.
Each embodiment of hanging method of the specific embodiment of computer-readable recording medium of the present invention and above-mentioned disk array
Essentially identical, therefore not to repeat here.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or system including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or system institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone,
Computer, server, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of hanging method of disk array, it is characterised in that the hanging method of the disk array is applied to Android systems
System, the hanging method of the disk array comprise the following steps:
The disk array RAID1 configuration informations of reception user's input, disk array information corresponding to generation, and described in acquisition
The information of disk in android system;
When number of disks corresponding to the disc information is 2 integral multiple, according to corresponding to creating the disk array information
Disk array interface;
Will according to the disk array information by the disk array Interface Controller driver by the way of system calling
Disk collection be mapped as corresponding to Disk Array file, and according to the Disk Array file by the Android systems
Disk carry is to the android system in system.
2. the hanging method of disk array as claimed in claim 1, it is characterised in that the hanging method also includes:
Receive the read write command that application program is sent;
Operation is written and read to the Disk Array file by the driver according to the read write command.
3. the hanging method of disk array as claimed in claim 1, it is characterised in that the hanging method also includes:
Disk array RAID1 state is detected, obtains disk array RAID1 status information;
When detecting default status information, the android system is reported to.
4. the hanging method of disk array as claimed in claim 3, it is characterised in that the hanging method also includes:
The broadcast message of android system is sent, wherein the broadcast message includes disk array RAID1 error messages, increase
Disk array RAID1 and disk array RAID1 carries broadcast message, to cause the application program receiving disk array
During the broadcast message of RAID1 errors, increase disk array RAID1 or disk array RAID1 carry information, corresponding locate is carried out
Reason.
5. the hanging method of disk array as claimed in claim 3, it is characterised in that the hanging method also includes:
In detecting disk array RAID1 disk occur it is abnormal when, rebuild automatically corresponding to disk array interface;
When being unsatisfactory for disk array RAID1 reconstruction conditions, the broadcast message of additional error data is sent, to cause the application
Program processing according to corresponding to being carried out the broadcast message.
6. the hanging method of disk array as claimed in claim 1, it is characterised in that the hanging method also includes:
Receive the query statement of user's input;
The current status informations of disk array RAID1 are inquired about according to the query statement, and shown.
7. the hanging method of disk array as claimed in claim 1, it is characterised in that the hanging method also includes:
When receiving the dilatation instruction that user is inputted by application program, the RAID1 to be added based on dilatation instruction determination
Format disc, dilatation operation is carried out in corresponding RAID1 interfaces by dilatation instruction;Or
When receiving the disk deletion instruction that user is inputted by application program, delete what instruction determined by the disk
RAID1 interfaces, deleted to instruct according to the disk and RAID1 corresponding to the disk deletion instruction is deleted in corresponding RAID1
Format disc, and the RAID1 after deletion disk is rebuild;Or
When receiving the addition/deletion instruction for the HotSpare disk that user is inputted by application program, instructed by the addition/deletion
The RAID1 interfaces of determination, referred to according to the addition/deletion instruction addition/deletion addition/deletion in corresponding RAID1
RAID1 forms HotSpare disk corresponding to order.
8. the hanging method of the disk array as any one of claim 1-7, it is characterised in that described according to the magnetic
Disk array apparatus file includes disk array carry to the step of android system:
According to the Disk Array file by vold mechanism in android system by disk in the android system
Carry is to the android system.
9. a kind of Android device, it is characterised in that the Android device includes:Memory, processor and it is stored in institute
State the carry program for the disk array that can be run on memory and on the processor, the carry program quilt of the disk array
The step of method as any one of claim 1 to 8 is realized during the computing device.
10. a kind of computer-readable recording medium, it is characterised in that disk battle array is stored with the computer-readable recording medium
The carry program of row, realized when the carry program of the disk array is executed by processor such as any one of claim 1 to 8 institute
The step of hanging method for the disk array stated.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710932875.9A CN107728945A (en) | 2017-09-30 | 2017-09-30 | Hanging method, Android device and the storage medium of disk array |
PCT/CN2018/084528 WO2019062104A1 (en) | 2017-09-30 | 2018-04-26 | Method of mounting disk array, android device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710932875.9A CN107728945A (en) | 2017-09-30 | 2017-09-30 | Hanging method, Android device and the storage medium of disk array |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107728945A true CN107728945A (en) | 2018-02-23 |
Family
ID=61208674
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710932875.9A Pending CN107728945A (en) | 2017-09-30 | 2017-09-30 | Hanging method, Android device and the storage medium of disk array |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107728945A (en) |
WO (1) | WO2019062104A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019062109A1 (en) * | 2017-09-30 | 2019-04-04 | 深圳市华德安科技有限公司 | Method of mounting disk array, android device and storage medium |
WO2019062103A1 (en) * | 2017-09-30 | 2019-04-04 | 深圳市华德安科技有限公司 | Method of mounting disk array, android device and storage medium |
WO2019062104A1 (en) * | 2017-09-30 | 2019-04-04 | 深圳市华德安科技有限公司 | Method of mounting disk array, android device and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101984399A (en) * | 2010-10-29 | 2011-03-09 | 中兴通讯股份有限公司 | Management method and system of soft redundant array of independent disk |
CN103530186A (en) * | 2013-05-30 | 2014-01-22 | Tcl集团股份有限公司 | Method and system for achieving multi-position storage supported by camera application |
CN107111535A (en) * | 2014-12-12 | 2017-08-29 | 英特尔公司 | Acceleration data recovery in storage system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101174196A (en) * | 2006-10-31 | 2008-05-07 | 英业达股份有限公司 | Method for magnetic disk array grade in changing operation |
CN102103468B (en) * | 2010-12-31 | 2013-03-20 | 中国电子科技集团公司第十五研究所 | Multi-disk-cabin hard disk array system consisting of double-layer controller |
US10013359B2 (en) * | 2014-12-24 | 2018-07-03 | University Of New Hampshire | Redundant disk array storage system and method using heterogeneous disks and a lookup table |
CN106325760B (en) * | 2015-06-24 | 2019-05-07 | 伊姆西公司 | The method and apparatus for managing storage array configuration |
CN107728945A (en) * | 2017-09-30 | 2018-02-23 | 深圳市华德安科技有限公司 | Hanging method, Android device and the storage medium of disk array |
-
2017
- 2017-09-30 CN CN201710932875.9A patent/CN107728945A/en active Pending
-
2018
- 2018-04-26 WO PCT/CN2018/084528 patent/WO2019062104A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101984399A (en) * | 2010-10-29 | 2011-03-09 | 中兴通讯股份有限公司 | Management method and system of soft redundant array of independent disk |
CN103530186A (en) * | 2013-05-30 | 2014-01-22 | Tcl集团股份有限公司 | Method and system for achieving multi-position storage supported by camera application |
CN107111535A (en) * | 2014-12-12 | 2017-08-29 | 英特尔公司 | Acceleration data recovery in storage system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019062109A1 (en) * | 2017-09-30 | 2019-04-04 | 深圳市华德安科技有限公司 | Method of mounting disk array, android device and storage medium |
WO2019062103A1 (en) * | 2017-09-30 | 2019-04-04 | 深圳市华德安科技有限公司 | Method of mounting disk array, android device and storage medium |
WO2019062104A1 (en) * | 2017-09-30 | 2019-04-04 | 深圳市华德安科技有限公司 | Method of mounting disk array, android device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2019062104A1 (en) | 2019-04-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107817949A (en) | Hanging method, Android device and the storage medium of disk array | |
CN107678693A (en) | Hanging method, Android device and the storage medium of disk array | |
EP3101509A1 (en) | Electronic device and method for controlling execution of application in electronic device | |
US10304409B2 (en) | Electronic device and method for reducing burn-in | |
US20160055082A1 (en) | Memory allocating method and electronic device supporting the same | |
EP3329355B1 (en) | Screen operating method and electronic device supporting the same | |
KR20180080629A (en) | Electronic device and method for displaying history of executed application thereof | |
US20200278822A1 (en) | Method and electronic device for displaying content based on virtual display | |
CN107728945A (en) | Hanging method, Android device and the storage medium of disk array | |
KR102586628B1 (en) | Electronic Device AND Memory Management Method Thereof | |
KR20180012438A (en) | Electronic device and method for operating electronic device | |
CN107506309A (en) | Terminal and data write-in method for flash memory and computer-readable recording medium | |
CN107728942A (en) | Hanging method, Android device and the storage medium of disk array | |
CN107741830A (en) | Hanging method, Android device and the storage medium of disk array | |
CN110008062A (en) | A kind of data managing method and mobile terminal | |
KR20180086078A (en) | Electronic apparatus and method for displaying screen thereof | |
CN107728946A (en) | Hanging method, Android device and the storage medium of disk array | |
CN107608637A (en) | RAID management methods, device and computer-readable recording medium | |
KR20180019907A (en) | Electronic device and method for operating thereof | |
KR20160057822A (en) | Method for controlling display and electronic device thereof | |
CN107748651A (en) | Hanging method, Android device and the storage medium of disk array | |
KR20170098093A (en) | Electronic apparatus and operating method thereof | |
KR20170054072A (en) | Electronic Apparatus and Operation Method for Detecting of Accessory Device Thereof | |
KR102471739B1 (en) | Apparatus and method for managing of history information in a electronic device | |
KR20170086806A (en) | Electronic device and method for recognizing touch input using the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180223 |
|
RJ01 | Rejection of invention patent application after publication |