CN104778016A - Automatic storage control method for multi-storage equipment environments - Google Patents

Automatic storage control method for multi-storage equipment environments Download PDF

Info

Publication number
CN104778016A
CN104778016A CN201510195455.8A CN201510195455A CN104778016A CN 104778016 A CN104778016 A CN 104778016A CN 201510195455 A CN201510195455 A CN 201510195455A CN 104778016 A CN104778016 A CN 104778016A
Authority
CN
China
Prior art keywords
memory device
storage
file
memory
control method
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.)
Granted
Application number
CN201510195455.8A
Other languages
Chinese (zh)
Other versions
CN104778016B (en
Inventor
陈东海
王会
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Meibeike Technology Co Ltd
Original Assignee
Shenzhen Meibeike Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Meibeike Technology Co Ltd filed Critical Shenzhen Meibeike Technology Co Ltd
Priority to CN201510195455.8A priority Critical patent/CN104778016B/en
Publication of CN104778016A publication Critical patent/CN104778016A/en
Application granted granted Critical
Publication of CN104778016B publication Critical patent/CN104778016B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to an automatic storage control method for multi-storage equipment environments. A plurality of storage equipment can be combined into a main storage device, so as to uniformly manage the multiple storage equipment. The automatic storage control method comprises the following steps of scanning the storage equipment, and dynamically managing the configuration information of each storage equipment, wherein the configuration information comprises a storage ID (identification) of each storage equipment; according to a storage path, extracting a file from the storage equipment; obtaining the data size of the storage file, and storing the file into the storage equipment; when the storage equipment is specified, storing the file into the specified storage equipment; when the storage equipment is not specified, finding and storing the file into one storage equipment with enough remained storage capacity. The automatic storage control method has the advantages that all storage equipment can be automatically stored, so a user does not need to manually manage the multiple storage equipment, and the experience feel of using only one storage equipment is realized; the property of the storage system of the electronic equipment is effectively improved.

Description

Autostore control method under a kind of multiple storage devices environment
Technical field
The invention belongs to field of data storage, specifically refer to the autostore control method under a kind of multiple storage devices environment.
Background technology
Under the trend nowadays developed, the capacity of memory device is increasing, but also there will be because inconsiderate or cause a memory device can not meet memory requirement because of demand shift problem.Although electronic equipment is equipped with multiple memory device at present, but for the user, user not only needs the space service condition paying close attention to each memory device, also require that user is fully aware of at the concrete deposit position of multiple memory device to file, therefore multiple memory device uses electronic equipment to create certain obstacle to user, and pole is unfavorable for management, experience sense is poor.
Summary of the invention
Under multiple memory device environment, be not easy to the technical matters of management, experience sense difference for existing electronic equipment, the object of the present invention is to provide the autostore control method under a kind of multiple storage devices environment, it adopts following technical scheme:
Autostore control method under a kind of multiple storage devices environment, multiple memory device can be merged into a total memory, thus unified management is carried out to multiple memory device, comprise: scanning memory device, the configuration information of each memory device of dynamic management, described configuration information comprises the storage ID of each memory device and stores the distribution time of ID; According to store path, from memory device extraction document; Obtain the size of data of storage file, file is stored in memory device: when designated store equipment, file is stored in the memory device of specifying; When non-designated store equipment, search and file is stored in and have in a memory device of enough residue memory capacity.
More preferably, during scanning memory device, also undertaken searching by order from small to large according to the storage ID of each memory device and mark the memory device with residue memory capacity, and there is residue memory capacity and store the memory device that the minimum memory device of ID is set to current storage.
More preferably, when searching the memory device with enough memory capacity, have at mark in the memory device of residue memory capacity and search by order from small to large according to the storage ID of each storer.
More preferably, during scanning memory device, if the storage ID of two or more memory devices repeats, then the storage ID of the memory device that the retention time is nearest is constant, and all the other memory devices for repeated storage ID are redistributed and stored ID.
More preferably, during scanning memory device, when scanning the memory device not having configuration file, be this memory device memory allocated ID, and preserve configuration file in this storer.
More preferably, when file is stored in memory device, also produces and preserve the store path corresponding with described file.
More preferably, when designated store equipment carrys out storage file, this memory device does not have enough residue memory capacity, and when non-designated store equipment carrys out storage file, all memory devices all do not have enough residue memory capacity for storing this file, equal reporting errors: do not have enough residue memory capacity.
More preferably, when designated store equipment is with storage file, if there is not this storer, then reporting errors: can not find the storer of specifying.
More preferably, when from memory device extraction document, if not this file, then reporting errors under store path: can not find this file.
Compared with prior art, beneficial effect of the present invention is: have the environment of multiple memory device in electronic configurations under, the present invention manages all memory devices automatically, can be manually not only file designated store equipment, can also according to the size of data of file to be stored, automatic selection has the memory device of enough residual memory spaces to carry out storing documents, and produce store path, therefore the multiple memory device of user's labor management is not needed, there is the experience sense only having a memory device, avoid user to worry memory space inadequate and forget the problem of storage positions of files, improve the performance of storage system of electronic equipment.
Accompanying drawing explanation
Fig. 1 is scanning process process flow diagram of the present invention;
Fig. 2 is access procedure process flow diagram of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Under the environment of multiple storage devices, the problem inconvenient, the sense of user's experience is poor, performance of storage system is low is managed based on existing electronic equipment, the embodiment of the present invention provides the autostore control method under a kind of multiple storage devices environment, multiple memory device can be merged into a total memory, thus unified management is carried out to multiple memory device, meanwhile, file can also be stored in the memory device of specifying by user.
The inventive method comprises: scanning memory device, the configuration information of each memory device of dynamic management, and described configuration information comprises the storage ID of each memory device and stores the distribution time of ID; According to store path, from memory device extraction document; Obtain the size of data of storage file, file is stored in memory device: when designated store equipment, file is stored in the memory device of specifying; When non-designated store equipment, search and file is stored in and have in a memory device of enough residue memory capacity.When user uses the method management to have the electronic equipment of multiple memory device, concrete memory device not only can oneself be specified to store, multiple memory device can also be considered as a total memory simultaneously, thus unified management is carried out to multiple memory device, automatically according to the size of data of file to be stored, select there is the memory device of enough residual memory spaces to carry out storing documents, therefore the multiple memory device of user's labor management is not needed, there is the experience sense only having a memory device, avoid user to worry memory space inadequate and forget the problem of storage positions of files,
When said method scanning memory device, further, undertaken searching and mark the memory device with residue memory capacity by order from small to large according to the storage ID of each memory device, and there is residue memory capacity and store the memory device that the minimum memory device of ID is set to current storage.Thus, in storage file process, when searching the memory device with enough memory capacity, namely have at mark in the memory device of residue memory capacity and search by order from small to large according to the storage ID of each storer, the speed of searching available storage device can be improved, improve the performance of storage system.
When said method scanning memory device, further, if the storage ID of two or more memory devices repeats, then the storage ID of the memory device that the retention time is nearest is constant, and all the other memory devices for repeated storage ID are redistributed and stored ID.In addition, when scanning the memory device not having configuration file, be this memory device memory allocated ID, and preserve configuration file in this storer.This process is memory device memory allocated ID effectively, preserves configuration file, for follow-up file pick up and store process provides orderly list of devices, improves effect and the performance of storage system of storage file.
After find the memory device having and enough remain memory capacity for file to be stored, should file be stored in memory device, produce simultaneously and preserve and the store path corresponding to this storage file.So namely, can be this file of subsequent extracted and provide convenient, save the trouble opening opened memory device locating file, improve the effect of extraction document and the performance of storage system.
Under two kinds of storage modes of the present invention, i.e. designated store equipment and system autostore, may occur that corresponding memory device does not have enough memory capacity.Namely, when designated store equipment carrys out storage file, this memory device does not have enough residue memory capacity; Or when non-designated store equipment carrys out storage file, all memory devices all do not have enough residue memory capacity for storing this file.Now storage system of the present invention can further reporting errors: do not have enough residue memory capacity.Be convenient to user like this according to error reporting, find additive method and preserve file, therefore can improve the experience sense of this storage system.
When designated store equipment is with storage file, may occur the situation that there is not this storer, therefore the present invention can provide reporting errors further: can not find the storer of specifying.Be convenient to user like this according to error reporting, reduce the scope searched problem, improve the experience sense of storage system further.
When from memory device extraction document, do not have this corresponding file under may there is store path, therefore the present invention also provides reporting errors further: can not find this file.Be convenient to user like this according to error reporting, reduce the scope searched problem, improve the experience sense of storage system further.
Particularly, the present invention includes two processes: scanning process and access procedure.
Wherein, as shown in Figure 1, the flow process of scanning process is:
S1: N=0 is set;
S2: if the memory device do not scanned in addition, arrange N=N+1, starts the configuration file scanning N number of memory device, if the memory device do not scanned, performs step S5;
S3: if find the configuration file of memory device, then identify and find configuration file, and resolve and preserve configuration file; Otherwise mark does not find configuration file;
S4: return step S2;
S5: if the storage ID with two or more memory device repeats, then read in configuration file the storage ID distributing time nearest memory device constant, all the other memory devices for repeated storage ID are redistributed and are stored ID;
S6: if scan the memory device not having configuration file is then this memory device memory allocated ID, and preserves configuration file in this memory device;
S7: the storage space scanning all memory devices, and there is by sequential search from small to large according to the storage ID of memory device the memory device of remaining memory capacity, and the minimum storage ID had in the memory device of residue memory capacity is set to current storage ID;
S8: terminate scanning.
In addition, as shown in Figure 2, the flow process of access procedure is:
S1: judgement stores or extraction document; If extraction action, perform step S10;
S2: if user's designated store equipment, then perform step S5;
S3: judge whether the current memory device corresponding to storage ID has enough memory capacity to store file to be deposited, if there are enough storage spaces, then performs step S7;
S4: the residue memory capacity obtaining the memory device larger than current storage ID, and according to storing ID, there is by sequential search from small to large the memory device enough remaining memory capacity; If found, perform step S7, and the minimum storage ID with residue memory capacity is set to current storage ID, if can not find, perform step S8;
S5: search and whether there is this storer, if existed, performs step S6, otherwise performs step S9;
S6: judge whether this storer has enough residual memory spaces to store this file, if had, performs step S7, otherwise performs step S8;
S7: store this file, and report stores successfully, preserves store path;
S8: reporting errors: memory space inadequate, and perform step S12;
S9: reporting errors: can not find this memory device, and perform step S12;
S10: the store path obtaining file to be got;
S11: judge whether there is this file to be got in the memory device of specifying, if existed, return file to be got, if there is no then reporting errors: can not find this file;
S12: access terminates.
The above; be only the present invention's preferably embodiment, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (9)

1. the autostore control method under multiple storage devices environment, is characterized in that, comprising:
Scanning memory device, the configuration information of each memory device of dynamic management, described configuration information comprises the storage ID of each memory device and stores the distribution time of ID;
According to store path, from memory device extraction document;
Obtain the size of data of storage file, file is stored in memory device: when designated store equipment, file is stored in the memory device of specifying; When non-designated store equipment, search and file is stored in and have in a memory device of enough residue memory capacity.
2. the autostore control method under a kind of multiple storage devices environment according to claim 1, it is characterized in that: during scanning memory device, also undertaken searching and mark the memory device with residue memory capacity by order from small to large according to the storage ID of each memory device, and there is residue memory capacity and store the memory device that the minimum memory device of ID is set to current storage.
3. the autostore control method under a kind of multiple storage devices environment according to claim 2, it is characterized in that: when searching the memory device with enough memory capacity having at mark in the memory device of residue memory capacity and search by order from small to large according to the storage ID of each storer.
4. the autostore control method under a kind of multiple storage devices environment according to claim 1, it is characterized in that: during scanning memory device, if the storage ID of two or more memory devices repeats, the storage ID of the memory device then keeping the distribution time nearest is constant, and all the other memory devices for repeated storage ID are redistributed and stored ID.
5. the autostore control method under a kind of multiple storage devices environment according to claim 1, it is characterized in that: during scanning memory device, when scanning the memory device not having configuration file, be this memory device memory allocated ID, and preserve configuration file in this storer.
6. the autostore control method under a kind of multiple storage devices environment according to claim 1, is characterized in that: when file is stored in memory device, also produces and preserve the store path corresponding with described file.
7. the autostore control method under a kind of multiple storage devices environment according to claim 1, it is characterized in that: when designated store equipment carrys out storage file, this memory device does not have enough residue memory capacity, and when non-designated store equipment carrys out storage file, all memory devices all do not have enough residue memory capacity for storing this file, equal reporting errors: do not have enough residue memory capacity.
8. the autostore control method under a kind of multiple storage devices environment according to claim 1, is characterized in that: when designated store equipment is with storage file, if there is not this storer, then and reporting errors: can not find the storer of specifying.
9. the autostore control method under a kind of multiple storage devices environment according to claim 1, is characterized in that: when from memory device extraction document, if not this file, then reporting errors under store path: can not find this file.
CN201510195455.8A 2015-04-23 2015-04-23 A kind of automatic storage controlling method under multiple storage devices environment Expired - Fee Related CN104778016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510195455.8A CN104778016B (en) 2015-04-23 2015-04-23 A kind of automatic storage controlling method under multiple storage devices environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510195455.8A CN104778016B (en) 2015-04-23 2015-04-23 A kind of automatic storage controlling method under multiple storage devices environment

Publications (2)

Publication Number Publication Date
CN104778016A true CN104778016A (en) 2015-07-15
CN104778016B CN104778016B (en) 2018-06-22

Family

ID=53619509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510195455.8A Expired - Fee Related CN104778016B (en) 2015-04-23 2015-04-23 A kind of automatic storage controlling method under multiple storage devices environment

Country Status (1)

Country Link
CN (1) CN104778016B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273147A (en) * 2016-04-08 2017-10-20 ***通信有限公司研究院 A kind of many SE management method and device
CN108959463A (en) * 2018-06-19 2018-12-07 广东美的厨房电器制造有限公司 Information sharing method and household appliance and information sharing system and storage medium
CN110321070A (en) * 2018-03-28 2019-10-11 爱思开海力士有限公司 Memory Controller and its operating method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064639A (en) * 2012-12-28 2013-04-24 华为技术有限公司 Method and device for storing data
CN103678143A (en) * 2012-09-25 2014-03-26 联想(北京)有限公司 File storage method and device and electronic equipment
US8738621B2 (en) * 2009-01-27 2014-05-27 EchoStar Technologies, L.L.C. Systems and methods for managing files on a storage device
CN104202428A (en) * 2014-09-25 2014-12-10 北京网秦天下科技有限公司 Distributed file storage system and method
CN104537076A (en) * 2014-12-31 2015-04-22 北京奇艺世纪科技有限公司 File reading and writing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8738621B2 (en) * 2009-01-27 2014-05-27 EchoStar Technologies, L.L.C. Systems and methods for managing files on a storage device
CN103678143A (en) * 2012-09-25 2014-03-26 联想(北京)有限公司 File storage method and device and electronic equipment
CN103064639A (en) * 2012-12-28 2013-04-24 华为技术有限公司 Method and device for storing data
CN104202428A (en) * 2014-09-25 2014-12-10 北京网秦天下科技有限公司 Distributed file storage system and method
CN104537076A (en) * 2014-12-31 2015-04-22 北京奇艺世纪科技有限公司 File reading and writing method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273147A (en) * 2016-04-08 2017-10-20 ***通信有限公司研究院 A kind of many SE management method and device
CN110321070A (en) * 2018-03-28 2019-10-11 爱思开海力士有限公司 Memory Controller and its operating method
CN110321070B (en) * 2018-03-28 2023-11-03 爱思开海力士有限公司 Memory controller and method of operating the same
CN108959463A (en) * 2018-06-19 2018-12-07 广东美的厨房电器制造有限公司 Information sharing method and household appliance and information sharing system and storage medium

Also Published As

Publication number Publication date
CN104778016B (en) 2018-06-22

Similar Documents

Publication Publication Date Title
CN102043686B (en) Disaster tolerance method, backup server and system of memory database
EP2511826B1 (en) Level-to-level management method and system of storage resources
CN102298633B (en) Method and system for investigating repeated data in distributed mass data
CN109918234B (en) Metadata recovery method, device, equipment and medium based on SSD
CN103425435B (en) Disk storage method and disk storage system
CN101826107A (en) Hash data processing method and device
CN104035925A (en) Data storage method and device and storage system
CN103473343A (en) File management method, device and terminal
CN104778016A (en) Automatic storage control method for multi-storage equipment environments
CN105787012A (en) Method for improving small file processing capability of storage system and storage system
CN108446308A (en) The system and method for scalable distributed database
CN108153495A (en) Date storage method, device and data-storage system
CN103778120A (en) Global file identification generation method, generation device and corresponding distributed file system
CN102724301B (en) Cloud database system and method and equipment for reading and writing cloud data
CN102799583B (en) Object-oriented access method and system
CN110688065A (en) Storage space management method, system, electronic equipment and storage medium
US11687489B2 (en) Method and system for identifying garbage data, electronic device, and storage medium
CN103490923A (en) Log file reading and writing method, device and system
CN102915324B (en) Data storage and retrieval device and data storage and retrieval method
CN103984651A (en) Mass optic disc offline storage system and method for automatic and quick positioning of optic disc data
CN106970964A (en) Gps data information query method and system based on shared drive
CN109032762A (en) Virtual machine retrogressive method and relevant device
CN105488047A (en) Metadata read-write method and device
CN101478652B (en) Searching method, system and digital television receiving terminal for memory data
CN108021647B (en) File migration method, system, medium and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180622