CN107741830A - 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
- CN107741830A CN107741830A CN201710928310.3A CN201710928310A CN107741830A CN 107741830 A CN107741830 A CN 107741830A CN 201710928310 A CN201710928310 A CN 201710928310A CN 107741830 A CN107741830 A CN 107741830A
- Authority
- CN
- China
- Prior art keywords
- disk array
- disk
- raid4
- hanging method
- android system
- 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/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/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
- G06F3/0607—Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
-
- 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
-
- 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
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 RAID4 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 3, 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 RAID4 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 technique
It is used widely in the large server based on windows and Linux system and some higher data safety occasions, but
It is 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 RAID4.
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 RAID4 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 3, 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 RAID4 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 RAID4 error messages,
Increase the broadcast message of disk array RAID4 and disk array RAID4 carries, to cause the application program receiving disk
During the broadcast message of array RAID4 errors, increase disk array RAID4 or disk array RAID4 carry information, corresponding to progress
Processing.
Wherein, the hanging method also includes:
In detecting disk array RAID4 disk occur it is abnormal when, rebuild automatically corresponding to disk array interface;
When being unsatisfactory for disk array RAID4 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
RAID4 format discs, dilatation operation is carried out in corresponding RAID4 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
RAID4 interfaces, deleted to instruct according to the disk and RAID4 corresponding to the disk deletion instruction is deleted in corresponding RAID4
Format disc, and the RAID4 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 RAID4 interfaces determined are instructed, instruct the addition in corresponding RAID4/deletion is described to be added/to delete according to the addition/deletion
Except RAID4 forms HotSpare disk corresponding to instruction.
Wherein, the step according to the Disk Array file by disk array carry to the android system
Suddenly include:
According to the Disk Array file by vold mechanism in android system by the android system
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 device 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 RAID4 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 3,
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 RAID4 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 3,
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 RAID4, after carry disk array RAID4, then
It can realize that application software operates disk array as operation USB flash disk equipment in android system in android system
RAID4。
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 provides a kind of hanging method of disk array, Android device and deposited
Storage media, the disk array RAID4 configuration informations 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 3, according to institute
State disk array interface corresponding to disk array information establishment;Pass through the disk array interface control by the way of system calling
Driver processed disk collection is mapped as according to the disk array information corresponding to Disk Array file, and according to described
Disk Array file is by disk carry in the android system to the android system.By the above-mentioned means, this
Invention needs the disk array RAID4 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, when number of disks corresponding to the disc information is more than or equal to 3, according to institute
Array interface corresponding to disk array information establishment is stated, is then controlled by the way of system calling using the array interface created
Disk Mapping is Disk Array file by driver by disk array information, is existed in android system, so as to
Android system after carry disk array RAID4, then can may be used according to Disk Array file mount disk array RAID4
To be realized in android system, application software operates disk array RAID4 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 RAID4 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 3, 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 RAID4 state is detected, obtains disk array RAID4 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 RAID4 error messages,
Increase the broadcast message of disk array RAID4 and disk array RAID4 carries, to cause the application program receiving disk
During the broadcast message of array RAID4 errors, increase disk array RAID4 or disk array RAID4 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 RAID4 disk occur it is abnormal when, rebuild automatically corresponding to disk array interface;
When being unsatisfactory for disk array RAID4 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 RAID4 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
RAID4 format discs, dilatation operation is carried out in corresponding RAID4 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
RAID4 interfaces, deleted to instruct according to the disk and RAID4 corresponding to the disk deletion instruction is deleted in corresponding RAID4
Format disc, and the RAID4 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 RAID4 interfaces determined are instructed, instruct the addition in corresponding RAID4/deletion is described to be added/to delete according to the addition/deletion
Except RAID4 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 system
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 RAID4 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.RAID
4 be that data are divided into multiple " blocks ", according to certain tolerant fail algorithm, is stored on N+1 hard disk, and real data takes effective
Space is the spatial summation of N number of hard disk, and the data stored on the N+1 hard disk are verification fault tolerance informations, when this N+1 hard disk
In one of hard disk break down when, can also recover initial data from the data in other N number of hard disks, so, only make
It can also be worked in spite of wound (as gathered and playing back material) with this N number of hard disk, after a new hard disk is changed, system can weigh
It is new to recover complete verification fault tolerance information.Due in a hard disk array, more than one hard disk failure rate simultaneously it is several
Rate very little, so generally, using RAID4, security can be protected.RAID4 data are all to store successively
On multiple hard disks, parity check code is stored on independent parity disk, visits of the RAID4 to data in data segmentation
Ask it is to be carried out by data block for unit.
Specifically, configuration module is used for the configuration information for receiving the disk array RAID4 of user's input, wherein disk array
RAID4 configuration information includes array level configuration, disk configuration etc., wherein configuration of the user in input disk array RAID4
During information, Device Driver in android system can be introduced into, into submenu, Mutiple is selected in submenu
Devices driver support (RAID and LVM) enter RAID level selection menu, and menu handle is selected in RAID level
RAID-4 chooses, so as to complete the disk array RAID4 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 RAID4 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 RAID4 grade
Breath, is Disk Array file by the Disk Mapping being connected in android system, then according to Disk Array file
Disk in android system 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 system
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:It is responsible for vold and bottom
The information transmission of layer;The two links are all to complete what is created at the beginning in process.2. guiding:Here mainly opened in vold
When dynamic, the processing to existing peripheral hardware storage device.First, to load and parse vold.conf, and check mount point whether
By carry;Secondly, mmc card carry is performed;Finally, USB massive stores are handled.3. event handling:Here by two chains
The monitoring connect, completes the processing to dynamic event, and the response to upper layer application operation, by aforesaid way by Android
Disk carry is to the android system in system.
The disk array RAID4 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 3,
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 RAID4 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 3,
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 RAID4, after carry disk array RAID4, then
It can realize that application software operates disk array as operation USB flash disk equipment in android system in android system
RAID4。
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 RAID4 state, disk array RAID4 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 RAID4 state,
When detecting disk array RAID4 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 RAID4
The broadcast message of wrong information, increase disk array RAID4 and disk array RAID4 carries, to cause the application program connecing
When receiving the broadcast message of disk array RAID4 errors, increase disk array RAID4 or disk array RAID4 carry information, enter
Handled corresponding to row;
Step S90, when disk in detecting disk array RAID4 occurs abnormal, carry out rebuilding corresponding disk automatically
Array interface;
Step S100, when being unsatisfactory for disk array RAID4 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 RAID4 when android system receives the status information of disk array
State is judged, determines whether each disk situations such as error, abnormal occurs, and android system can real-time or fixed time broadcast
Each disk array RAID4 status information, if application program receives the broadcast letter such as disk array RAID4 errors or increase
During breath, corresponding processing is carried out, if specifically, receiving the broadcast message of disk array RAID4 errors, basis currently makes
Disk array RAID4 grade, corresponding processing is carried out, specifically:If current disk array RAID grade is
RAID4, 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 RAID4 carries
Broadcast, then carry information corresponding to display.Further, if receiving whole disks in disk array RAID4 exception occurs
Broadcast, then the reconstruction of disk array RAID4 interfaces is carried out, when being rebuild, if being currently unsatisfactory for disk array RAID4's
Rebuild, then send the broadcast message of additional error, to cause application program to locate corresponding to being carried out when receiving the broadcast message
Reason, 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 RAID4 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 RAID4 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
RAID4 format discs to be added, by the dilatation instruction corresponding RAID4 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 RAID4 interfaces determined are instructed, instruction is deleted according to the disk disk deletion instruction pair is deleted in corresponding RAID4
The RAID4 format discs answered, and the RAID4 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 RAID4 interfaces that addition/deletion instruction determines, according to the addition/deletion instruction addition/deletion institute in corresponding RAID4
State addition/RAID4 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, RAID4 and RAID4 format discs to be added corresponding to dilatation instruction are obtained, by corresponding to dilatation instruction
The RAID4 format discs to be added are added in the RAID4 by RAID4 interfaces, to realize RAID4 dilatation, it is preferable that
To RAID4 format discs to be added, determine whether the RAID4 after dilatation is full according to the quantity of the RAID4 format discs to be added
Required corresponding to foot RAID4 grade, 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
RAID4 format discs are deleted, RAID4 interfaces corresponding to instruction are deleted by the disk, it is corresponding to delete instruction in the disk
RAID4 in delete the RAID4 format discs to be deleted, after the RAID4 format discs to be deleted are deleted, to delete disk after
RAID4 rebuild.Preferably, can be straight when the RAID4 after deleting disk meets to require corresponding to the grade of the RAID4
Capable reconstruction is tapped into, also may be selected with the quantity identical of RAID4 format discs to be deleted other RAID4 format discs to the deletion
RAID4 after disk is rebuild, to ensure that the capacity of the RAID4 after the deletion disk is constant;RAID4 after disk is deleted
When being unsatisfactory for requiring corresponding to the grade of the RAID4, selection and the quantity identicals of RAID4 format discs to be deleted other
RAID4 format discs are rebuild to the RAID4 after the deletion disk.
When receiving addition/deletion instruction of the HotSpare disk based on operation interface triggering, it is determined that addition/deletion refers to
HotSpare disk corresponding to order, by the addition/RAID4 interfaces corresponding to deletion instruction, corresponding to the addition/deletion instruction
The HotSpare disk is deleted in RAID4.
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 RAID4 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 3, 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 RAID4 state is detected, obtains disk array RAID4 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 RAID4 error messages, increase
Disk array RAID4 and disk array RAID4 carries broadcast message, to cause the application program receiving disk array
During the broadcast message of RAID4 errors, increase disk array RAID4 or disk array RAID4 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 RAID4 disk occur it is abnormal when, rebuild automatically corresponding to disk array interface;
When being unsatisfactory for disk array RAID4 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 RAID4 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 RAID4 to be added based on dilatation instruction determination
Format disc, dilatation operation is carried out in corresponding RAID4 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
RAID4 interfaces, deleted to instruct according to the disk and RAID4 corresponding to the disk deletion instruction is deleted in corresponding RAID4
Format disc, and the RAID4 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 RAID4 interfaces of determination, referred to according to the addition/deletion instruction addition/deletion addition/deletion in corresponding RAID4
RAID4 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 |
---|---|---|---|
CN201710928310.3A CN107741830A (en) | 2017-09-30 | 2017-09-30 | Hanging method, Android device and the storage medium of disk array |
PCT/CN2018/084532 WO2019062106A1 (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 |
---|---|---|---|
CN201710928310.3A CN107741830A (en) | 2017-09-30 | 2017-09-30 | Hanging method, Android device and the storage medium of disk array |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107741830A true CN107741830A (en) | 2018-02-27 |
Family
ID=61236696
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710928310.3A Pending CN107741830A (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) | CN107741830A (en) |
WO (1) | WO2019062106A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019062106A1 (en) * | 2017-09-30 | 2019-04-04 | 深圳市华德安科技有限公司 | Method of mounting disk array, android device and storage medium |
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 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103530186A (en) * | 2013-05-30 | 2014-01-22 | Tcl集团股份有限公司 | Method and system for achieving multi-position storage supported by camera application |
CN101984399B (en) * | 2010-10-29 | 2014-11-05 | 中兴通讯股份有限公司 | Management method and system of soft redundant array of independent disk |
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 |
---|---|---|---|---|
US20120317356A1 (en) * | 2011-06-09 | 2012-12-13 | Advanced Micro Devices, Inc. | Systems and methods for sharing memory between a plurality of processors |
CN202512557U (en) * | 2012-03-28 | 2012-10-31 | 山东超越数控电子有限公司 | Linux system-based mount remote disk array |
CN104699564A (en) * | 2013-12-09 | 2015-06-10 | 中国移动通信集团公司 | Automatic recovery method and device with Raid0 magnetic disc server |
CN107741830A (en) * | 2017-09-30 | 2018-02-27 | 深圳市华德安科技有限公司 | Hanging method, Android device and the storage medium of disk array |
CN107817949A (en) * | 2017-09-30 | 2018-03-20 | 深圳市华德安科技有限公司 | Hanging method, Android device and the storage medium of disk array |
-
2017
- 2017-09-30 CN CN201710928310.3A patent/CN107741830A/en active Pending
-
2018
- 2018-04-26 WO PCT/CN2018/084532 patent/WO2019062106A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101984399B (en) * | 2010-10-29 | 2014-11-05 | 中兴通讯股份有限公司 | 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 |
---|---|---|---|---|
WO2019062106A1 (en) * | 2017-09-30 | 2019-04-04 | 深圳市华德安科技有限公司 | Method of mounting disk array, android device and storage medium |
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 |
Also Published As
Publication number | Publication date |
---|---|
WO2019062106A1 (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 | |
US11968482B2 (en) | Method for displaying dynamic image and terminal | |
US9697063B2 (en) | Allocating data based on hardware faults | |
KR102629141B1 (en) | Method for controlling chargering of battery and electronic device thereof | |
US20160188181A1 (en) | User interface system, method, and computer program product | |
US20160055082A1 (en) | Memory allocating method and electronic device supporting the same | |
CN107741830A (en) | Hanging method, Android device and the storage medium of disk array | |
CN107728942A (en) | Hanging method, Android device and the storage medium of disk array | |
CN107728945A (en) | Hanging method, Android device and the storage medium of disk array | |
CN110008062A (en) | A kind of data managing method and mobile terminal | |
CN107506309A (en) | Terminal and data write-in method for flash memory and computer-readable recording medium | |
KR20160072512A (en) | Video data compression considering a vision system | |
CN107608637A (en) | RAID management methods, device and computer-readable recording medium | |
CN107577472A (en) | Software installation method, device and computer-readable recording medium | |
KR102607564B1 (en) | Method for displying soft key and electronic device thereof | |
CN107728946A (en) | Hanging method, Android device and the storage medium of disk array | |
CN107748651A (en) | Hanging method, Android device and the storage medium of disk array | |
KR20180086078A (en) | Electronic apparatus and method for displaying screen thereof | |
KR20160057822A (en) | Method for controlling display and electronic device thereof | |
KR20160125783A (en) | Electronic apparatus and method for displaying contetns | |
KR20180019907A (en) | Electronic device and method for operating thereof | |
CN108475181A (en) | Electronic equipment and method of operating an electronic device | |
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 |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180227 |