CN109725856A - A kind of shared node management method, device, electronic equipment and storage medium - Google Patents

A kind of shared node management method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109725856A
CN109725856A CN201811640332.0A CN201811640332A CN109725856A CN 109725856 A CN109725856 A CN 109725856A CN 201811640332 A CN201811640332 A CN 201811640332A CN 109725856 A CN109725856 A CN 109725856A
Authority
CN
China
Prior art keywords
target
storage space
block
shared node
space block
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
CN201811640332.0A
Other languages
Chinese (zh)
Other versions
CN109725856B (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 Onething Technology Co Ltd
Original Assignee
Shenzhen Onething 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 Onething Technology Co Ltd filed Critical Shenzhen Onething Technology Co Ltd
Priority to CN201811640332.0A priority Critical patent/CN109725856B/en
Publication of CN109725856A publication Critical patent/CN109725856A/en
Application granted granted Critical
Publication of CN109725856B publication Critical patent/CN109725856B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

This application discloses a kind of shared node management methods, first passing through LVM technology is divided into multiple storage space blocks for total disk space of shared node in advance, and each storage space block must can be detected by specifically identifying, also need later by its carry be target application block device after can just be written and read, when user does not identify and knows subsequent processing mode specifically, the data being stored in target shared node are hiding for a user, it is sightless, therefore it can effectively prevent and be stored in shared node data and spied upon and stolen privately by user.The application further simultaneously discloses a kind of shared node managing device, electronic equipment and computer readable storage medium, has above-mentioned beneficial effect.

Description

A kind of shared node management method, device, electronic equipment and storage medium
Technical field
This application involves technical field of distributed memory, in particular to a kind of shared node management method, device, electronics are set Standby and computer readable storage medium.
Background technique
With the development of distributed storage technology, storage performance is weaker but quantity can easily reach 100,000 or even million It is relatively strong but negligible amounts that miniaturization memory node (will be collectively referred to as shared node hereinafter) will gradually substitute original storage performance Large-scale memory node, such shared node is since small volume can be arbitrarily distributed in the family of each user, in control centre With the help of realize better distributed storage effect.
Due to the only unified management by control centre of each shared node, come from all over the world not wherein may store With the data file of user, therefore in order to need to guarantee that the data being stored in shared node can not easily be accessed by user It arrives, the kept secure of Lai Shixian data.
Due to can effectively manage the method for being stored in data in shared node there is no one now, how to mention Above-mentioned purpose is realized for a kind of safe shared node management method, is those skilled in the art's urgent problem to be solved.
Summary of the invention
The purpose of the application is to provide a kind of shared node management method, device, electronic equipment and computer-readable deposits Storage media, it is intended to which enabling to be stored in data in shared node prevents from being spied upon by user, prevents from being stolen privately by user.
To achieve the above object, this application provides a kind of shared node management methods, this method comprises:
It detects and whether there is target storage space block corresponding with target identification in target shared node;Wherein, the mesh The memory space of mark shared node first passes through LVM technology in advance and is divided into multiple storage space blocks, each storage space block quilt Respectively it is attached with corresponding mark;
It is the block device of target application by the target storage space block carry;
The target storage space block that carry is the block device is carried out according to the read write command of the target application corresponding Read-write operation.
Optionally, detecting whether there is target storage space block corresponding with target identification in target shared node, comprising:
When the capability identification for being identified as corresponding different rights grade that each memory space is attached, target is determined The corresponding Permission Levels upper limit of capability identification;
The storage space block for being no more than the Permission Levels upper limit in the shared node with the presence or absence of Permission Levels is detected, And the storage space block that all permissions grade is no more than the Permission Levels upper limit is labeled as the target storage space block.
Optionally, the shared node management method further include:
When the quantity of the target storage space block is greater than 1, each target storage space block is integrated into using LVM Unique storage space block;
It is corresponding, it is the block device of target application by the target storage space block carry, comprising:
It is the block device of the target application by unique storage space block carry.
Optionally, the shared node management method further include:
According to the target storage space for the block device that the space allocation order adjustment carry received is the target application The number of block.
Optionally, the shared node management method further include:
The quantity of documents for being stored in the target storage space block is obtained by df-h order.
Optionally, the shared node management method further include:
It collects by the work state information for the target storage space block that carry is the block device, and according to the work shape State information generates corresponding journal file;Wherein, the work state information include used memory space, residual memory space, At least one of in data file update and deletion record.
Optionally, the memory space of the target shared node includes that be built in the target shared node built-in is deposited The internal storage space and be situated between by the external storage that external inserting mode is connected to the target shared node that storage media provides The external memory space that matter provides.
To achieve the above object, present invention also provides a kind of shared node managing device, which includes:
Target storage space block detection unit, for detecting in target shared node with the presence or absence of corresponding with target identification Target storage space block;Wherein, the memory space of the target shared node first passes through LVM technology in advance and is divided into multiple storages Space block, each storage space block are respectively attached with corresponding mark;
Block device carry unit, for being the block device of target application by the target storage space block carry;
Read-write operation carries out unit, is the mesh of the block device to carry for the read write command according to the target application It marks storage space block and carries out corresponding read-write operation.
Optionally, the target storage space block detection unit includes:
The Permission Levels upper limit determines subelement, for being identified as corresponding different power when what each memory space was attached When limiting the capability identification of grade, the corresponding Permission Levels upper limit of target capability identification is determined;
Subelement is determined based on the target storage space block of Permission Levels, whether there is for detecting in the shared node Permission Levels are no more than the storage space block of the Permission Levels upper limit, and all permissions grade is no more than the Permission Levels The storage space block of the upper limit is labeled as the target storage space block.
Optionally, the shared node managing device further include:
Multiple target storage space block integral unit, for utilizing when the quantity of the target storage space block is greater than 1 Each target storage space block is integrated into unique storage space block by LVM;
Corresponding, the block device carry unit includes:
Unique storage space block carry subelement, for being the target application by unique storage space block carry Block device.
Optionally, the shared node managing device further include:
Capacity adjustment unit, for being set according to the block that the space allocation order adjustment carry received is the target application The number of standby target storage space block.
Optionally, the shared node managing device further include:
Quantity of documents quick obtaining unit, for obtaining the text for being stored in the target storage space block by df-h order Number of packages amount.
Optionally, the shared node managing device further include:
Work state information is collected and log generation unit, empty by the target storage that carry is the block device for collecting Between block work state information, and corresponding journal file is generated according to the work state information;Wherein, the working condition Information includes at least one used in memory space, residual memory space, data file update and deletion record.
To achieve the above object, the application still further provides a kind of electronic equipment, and the electronic equipment includes storage Device, processor and bus are stored with the shared node management program that can be run on the processor, institute on the memory Shared node management program is stated by the bus transfer to the processor, and is realized when being executed by the processor as above-mentioned Shared node management method described in content.
To achieve the above object, the application still further provides a kind of computer readable storage medium, the computer Shared node management program is stored on readable storage medium storing program for executing, the shared node management program can be handled by one or more Device executes, to realize the shared node management method as described in above content.
Obviously, shared node management method provided by the present application first passes through LVM technology total disk of shared node is empty in advance Between be divided into multiple storage space blocks, and each storage space block must can be detected by specifically identifying, later It also needs that its carry is not specifically identified and known in user to be just written and read after the block device of target application When subsequent processing mode, the data being stored in target shared node are hiding for a user, are sightless, therefore can It is spied upon and stolen privately by user effectively to prevent from being stored in shared node data.
The application additionally provides a kind of shared node managing device, electronic equipment and computer readable storage medium simultaneously, With above-mentioned beneficial effect, details are not described herein.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of shared node management method provided by the embodiments of the present application;
Fig. 2 is the flow chart of another shared node management method provided by the embodiments of the present application;
Fig. 3 is a kind of structural block diagram of shared node managing device provided by the embodiments of the present application;
Fig. 4 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein Or the sequence other than the content of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that Cover it is non-exclusive include, for example, containing the process, method, system, product or equipment of a series of steps or units need not limit In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce The other step or units of product or equipment inherently.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot It is interpreted as its relative importance of indication or suggestion or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment Art scheme can be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when technical solution Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims Protection scope within.
Embodiment one
Referring to Figure 1, Fig. 1 is a kind of flow chart of shared node management method provided by the embodiments of the present application comprising Following steps:
S101: it whether there is target storage space block corresponding with target identification in detection target shared node;
This step is intended to detect in target shared node whether store target corresponding with the mark using target identification Storage space block, i.e. target identification will be used as discovery target storage space block, make the visible unique hand of target storage space block Section.
Before this, the memory space of target shared node first passed through in advance LVM (Logical Volume Manager, Logical volume management) technology is divided into multiple storage space blocks, and each marking off the storage space block come also can be according to default Mark ancillary rules be attached with corresponding mark, the mark will as find storage space block unique information use.Therefore, Be stored in a certain storage space block in target shared node data can only be held the mark of the storage space block in the case where It is found by target application, is then hiding for the application or user of not holding respective identification.Correspondingly, not holding tagged Other storage space blocks are also to hide for the target application, therefore mode, so that it may by simply assigning corresponding mark The mode of knowledge carrys out flexible and safe control and is stored in the data in shared node.
Wherein, being used LVM technology to be divided into the memory spaces of multiple storage space blocks in target shared node can be by mesh Mark is shared itself included built-in storage medium and is provided separately, can also be in the case where not including built-in storage medium by outer The mode of portion's grafting is provided separately by exterior storage medium, can also be mentioned simultaneously by built-in storage medium and exterior storage medium For can select suitable mode in conjunction with practical application scene according to the size of required capacity, and be not specifically limited herein.
Wherein, which is the management application for being managed collectively the control centre of each shared node and providing, the target mark Knowing is also the management using what is issued when being managed collectively via control centre, can not be intercepted easily by user;The mark can be based on Different principles or agreement generate and realize it is additional, such as the capability identification based on Permission Levels, identity-based identity, The application of device identification based on connectable device etc. mark, various mark seeks to fill that the hiding need under different application scene Ask, can flexible choice according to the actual situation, be not specifically limited herein.
S102: being the block device of target application by target storage space block carry;
On the basis of S101, the target storage space block carry that this step is intended to will be seen that by carry technology is target The block device of application, the target application can be to management local memory device one after carry is the block device of the target application Sample is written and read the target storage space block.In other words, the target storage space block after completing carry step is to the management Using being visible.
It should be noted that the quantity for the target identification that target application can be held can have multiple, each target identification point Not Dui Ying a target storage space block, or under the mark generated based on particular form, a target identification can be corresponded to Multiple target storage space blocks, in this case, it is also necessary to multiple target storage space blocks first be integrated, stored Space is unique storage space block of the sum of multiple respective memory spaces of target storage space block, then by unique memory space Block carry is the block device of target application.
Further, variation according to actual needs, carry are the quantity of the storage space block of the block device of target application It may be adjusted, specifically include the dilatation demand for needing to increase storage space block and reduce the volume reduction demand of storage space block (corresponding to increase or withdraw the mark issued), difference according to the actual situation may need first to cancel current during the adjustment Carry, the then carry again again after the quantity of adjustment storage space block.
S103: the target storage space block that carry is block device is read accordingly according to the read write command of target application Write operation.
On the basis of S102, the read write command that this step is intended to be sent according to target application is the mesh of block device to carry It marks storage space block and carries out corresponding read-write operation.Specifically, it is directed to read command, it will be by being sought in target storage space block Target data corresponding with the read command returns to target application;For write order, will can be sent together with write order to be written Enter data and be written in the target storage space block to complete the write order.
Further, it when the shared node is detached from the connection with the target application for holding a certain target identification, has hung Carry be block device target storage space block will because disconnect basis due to cancel carry automatically, until again with the target application It establishes before connection, will realize the concealment effect to ordinary user in state can be loseed, and ensure that the safety of data will be deposited Storage.
Further, it can also collect by the work state information for the target storage space block that carry is block device, and Generate corresponding journal file according to work state information, to the content recorded by journal file come carry out later period retrospect or Person carries out abnormality warnings, can also be adjusted flexibly when occurring abnormal (such as when constituting a certain of unique storage space block When storage space block occurs abnormal, this storage space block is masked, and be replaced by spare storage space block, it is spare Storage space block can be used as redundancy section and be prepared in advance).Wherein, work state information includes having used memory space, residue At least one of in memory space, data file update and deletion record, naturally it is also possible to difference according to the actual situation increases Other information that can also characterize working condition.
Further, when by carry be target application block device by multiple target storage space blocks form when, Multiple target storage space blocks that are distributed in of the uniform amount of write-in can also be prevented certain to realize the load balancing of capacity The too little or too much situation of one storage space block residual memory space occurs.
Meanwhile it being based on LVM technology, target storage space block can also be stored in quickly to obtain by df-h order The quantity information of quantity of documents can only be by du-s order to the progress time of each file compared to without using before LVM technology It can just show that the mode of quantity information, efficiency have obtained great increase after going through, and reduce the consumption to computing resource.
Based on the above-mentioned technical proposal, the application first pass through in advance LVM technology total disk space of shared node is divided into it is more A storage space block, and each storage space block must can be detected by specifically identifying, and also be needed later by it Carry does not identify and knows subsequent processing side specifically in user to be just written and read after the block device of target application When formula, the data being stored in target shared node are hiding for a user, are sightless, therefore can effectively be prevented Data in shared node are only stored in be spied upon and stolen privately by user.
Embodiment two
Fig. 2 is referred to, Fig. 2 is the flow chart of another shared node management method provided by the embodiments of the present application, in reality On the basis of applying example one, the present embodiment is established is adding correspondence corresponding authority grade for the storage space block that each marks off respectively Capability identification scene under, to be determined for compliance with the storage space block of requirement by way of based on Permission Levels, including such as Lower step:
S201: the corresponding Permission Levels upper limit of target capability identification is determined;
The target capability identification that this step is intended to be held according to target application determines the corresponding Permission Levels upper limit.This scene Under, Permission Levels can successively be divided into 5 grades of permissions, 4 grades of permissions, 3 grades of permissions, 2 grades of permissions and 1 grade of permission according to permission size, Wherein, the permission of 5 grades of permissions is maximum, and the permission of 1 grade of permission is minimum, and high-grade permission may include inferior grade permission, so that only It is possible to determine multiple target storage space blocks based on a capability identification.
S202: it is no more than the storage space block of the Permission Levels upper limit in detection shared node with the presence or absence of Permission Levels;
S203: the storage space block that all permissions grade is no more than the Permission Levels upper limit is labeled as target storage space Block;
Based on above-mentioned scene, determine that the mode of target storage space block will become detecting in shared node with the presence or absence of permission Grade is no more than the storage space block of the Permission Levels upper limit, and the storage that all permissions grade is no more than the Permission Levels upper limit is empty Between block be labeled as target storage space block.
It is assumed that being 3 grades of permissions according to the Permission Levels upper limit that target capability identification is determined, then all permissions are identified as 1 The storage space block of grade permission, 2 grades of permissions and 3 grades of permissions will all be used as target storage space block.Further, in such machine Under system, different memory space sum numbers can also be set according to the storage space block of the different meeting different rights grades of Permission Levels Amount, so that the memory space of unique storage space block based on the composition under Permission Levels mechanism adapts to actual demand.
S204: when target storage space number of blocks is 1, directly unique target storage space block carry is answered for target Block device;
S205: when the quantity of target storage space block is greater than 1, each target storage space block is integrated into only using LVM One storage space block;
S206: being the block device of target application by unique storage space block carry;
On the basis of S205, unique storage space block carry that quantity after integration is 1 is target application by this step Block device.
It, can also be without integration, i.e., using each target storage space block as a block device under some scenes On carry to target application, but for the mode of integration, operation is more troublesome and complicated, and due to block device quantity It is more, it is easy error.
S207: corresponding read-write behaviour is carried out to the storage space block that carry is block device according to the read write command of target application Make.
Because situation is complicated, it can not enumerate and be illustrated, those skilled in the art should be able to recognize according to the application The basic skills principle combination actual conditions of offer may exist many examples, in the case where not paying enough creative works, It should within the scope of protection of this application.
Embodiment three
Fig. 3 is referred to, Fig. 3 is a kind of structural block diagram of shared node managing device provided by the embodiments of the present application, the dress It sets and may include:
Target storage space block detection unit 100 whether there is and target identification pair for detecting in target shared node The target storage space block answered;Wherein, the memory space of target shared node first passes through LVM technology in advance and is divided into multiple storages Space block, each storage space block are respectively attached with corresponding mark;
Block device carry unit 200, for being the block device of target application by target storage space block carry;
Read-write operation carries out unit 300, for being deposited according to the read write command of target application to the target that carry is block device It stores up space block and carries out corresponding read-write operation.
Wherein, which may include:
The Permission Levels upper limit determines subelement, for being identified as corresponding different rights etc. when what each memory space was attached When the capability identification of grade, the corresponding Permission Levels upper limit of target capability identification is determined;
Subelement is determined based on the target storage space block of Permission Levels, for detecting in shared node with the presence or absence of permission Grade is no more than the storage space block of the Permission Levels upper limit, and the storage that all permissions grade is no more than the Permission Levels upper limit is empty Between block be labeled as target storage space block.
Further, which can also include:
Multiple target storage space block integral unit, for being incited somebody to action using LVM when the quantity of target storage space block is greater than 1 Each target storage space block is integrated into unique storage space block;
Corresponding, which may include:
Unique storage space block carry subelement, for being the block device of target application by unique storage space block carry.
Further, which can also include:
Capacity adjustment unit, for being the block device of target application according to the space allocation order adjustment carry received The number of target storage space block.
Further, which can also include:
Quantity of documents quick obtaining unit, for obtaining the number of files for being stored in target storage space block by df-h order Amount.
Further, which can also include:
Work state information is collected and log generation unit, for collecting the target storage space block by carry for block device Work state information, and corresponding journal file is generated according to work state information;Wherein, work state information includes having used At least one of in memory space, residual memory space, data file update and deletion record.
The present embodiment exists as system embodiment corresponding with embodiment of the method, has with identical with embodiment of the method Beneficial effect, no longer repeats one by one herein.
Example IV
Hereinbefore by some embodiments to how realizing that safer guarantee is stored in the number in shared node According to being described in detail, the application also provides a kind of entity hardware device corresponding with this method, this partial content principle Corresponding with scheme section, details are not described herein again for the part of realization principle, will form below to the hardware of the entity hardware device It is described, refers to Fig. 4, Fig. 4 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application:
The electronic equipment 400 includes memory 410, processor 420 and bus 430, and being stored on memory 410 can be The shared node management program run on processor 420, the shared node management program are transferred to processor by bus 430 420, and each step in the shared node management method as described in above-described embodiment can be realized when being executed by processor 420 Suddenly.
Wherein, memory 410 includes at least a type of readable storage medium storing program for executing, and readable storage medium storing program for executing includes flash memory, hard Disk, multimedia card, card-type memory (for example, SD or DX memory etc.), magnetic storage, disk, CD etc..Memory 410 It can be the internal storage unit of the electronic equipment 400, such as the hard disk of electronic equipment 400 in some embodiments.Memory 410 are also possible to be equipped on the External memory equipment of the electronic equipment 400, such as electronic equipment 400 in further embodiments Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, Flash card (Flash Card) etc..Further, memory 410 can also be simultaneously by internal storage unit and External memory equipment It forms simultaneously.Further, memory 410 can be not only used for the various application software that storage is installed in electronic equipment 400 And Various types of data, it can be also used for temporarily storing the data that has exported or will export.
Processor 420 can be in some embodiments central processing unit (Central Processing Unit, CPU), Controller, microcontroller, microprocessor or other data processing chips, the program code for being stored in run memory 410 Or processing data, such as the program etc. of management shared node.
Bus 430 can be Peripheral Component Interconnect standard (peripheral component interconnect, abbreviation PCI) bus or expanding the industrial standard structure (extended industry standard architecture, abbreviation EISA) Bus etc..The bus can be divided into address bus, data/address bus, control bus etc..For convenient for indicating, only with one pair in Fig. 4 It is indicated to hollow index line, it is not intended that an only bus or a type of bus.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.In several embodiments provided herein, it should be understood that disclosed system, device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit It connects, can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
It, can if integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product To be stored in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products Out, which is stored in a storage medium, including some instructions are used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes the method gone out given in each embodiment of the application All or part of the steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
It should be noted that the serial number of the above embodiments of the invention is only for description, do not represent the advantages or disadvantages of the embodiments.And The terms "include", "comprise" herein or any other variant thereof is intended to cover non-exclusive inclusion, so that packet Process, device, article or the method for including a series of elements not only include those elements, but also including being not explicitly listed Other element, or further include for this process, device, article or the intrinsic element of method.Do not limiting more In the case where, the element that is limited by sentence "including a ...", it is not excluded that including process, device, the article of the element Or there is also other identical elements in method.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of shared node management method characterized by comprising
It detects and whether there is target storage space block corresponding with target identification in target shared node;Wherein, the target is total The memory space for enjoying node first passes through LVM technology in advance and is divided into multiple storage space blocks, and each storage space block is respectively It is attached with corresponding mark;
It is the block device of target application by the target storage space block carry;
The target storage space block that carry is the block device is read accordingly according to the read write command of the target application Write operation.
2. shared node management method according to claim 1, which is characterized in that whether deposited in detection target shared node In target storage space block corresponding with target identification, comprising:
When the capability identification for being identified as corresponding different rights grade that each memory space is attached, target permission is determined Identify the corresponding Permission Levels upper limit;
The storage space block for being no more than the Permission Levels upper limit in the shared node with the presence or absence of Permission Levels is detected, and will The storage space block that all permissions grade is no more than the Permission Levels upper limit is labeled as the target storage space block.
3. shared node management method according to claim 1, which is characterized in that further include:
When the quantity of the target storage space block is greater than 1, each target storage space block is integrated into uniquely using LVM Storage space block;
It is corresponding, it is the block device of target application by the target storage space block carry, comprising:
It is the block device of the target application by unique storage space block carry.
4. shared node management method according to claim 3, which is characterized in that further include:
According to the target storage space block for the block device that the space allocation order adjustment carry received is the target application Number.
5. shared node management method according to claim 1, which is characterized in that further include:
The quantity of documents for being stored in the target storage space block is obtained by df-h order.
6. shared node management method according to any one of claims 1 to 5, which is characterized in that further include:
It collects by the work state information for the target storage space block that carry is the block device, and believed according to the working condition Breath generates corresponding journal file;Wherein, the work state information includes having used memory space, residual memory space, data File updates and at least one in deletion record.
7. shared node management method according to claim 6, feature are being, the storage of the target shared node Space includes the internal storage space and/or pass through external that the built-in storage medium being built in the target shared node provides Inserting mode is connected to the external memory space that the exterior storage medium of the target shared node provides.
8. a kind of shared node managing device characterized by comprising
Target storage space block detection unit, for detecting in target shared node with the presence or absence of target corresponding with target identification Storage space block;Wherein, the memory space of the target shared node first passes through LVM technology in advance and is divided into multiple memory spaces Block, each storage space block are respectively attached with corresponding mark;
Block device carry unit, for being the block device of target application by the target storage space block carry;
Read-write operation carries out unit, for being deposited according to the read write command of the target application to the target that carry is the block device It stores up space block and carries out corresponding read-write operation.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes memory, processor and bus, the storage Be stored with the disk management program that can be run on the processor on device, the disk management program by the bus transfer extremely The processor, and can realize when being executed by the processor such as shared node management as claimed in any one of claims 1 to 6 Method.
10. a kind of computer readable storage medium, which is characterized in that be stored with disk pipe on the computer readable storage medium Program is managed, the disk management program can be executed by one or more processor, to realize as any in claim 1 to 6 Shared node management method described in.
CN201811640332.0A 2018-12-29 2018-12-29 Shared node management method and device, electronic equipment and storage medium Active CN109725856B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811640332.0A CN109725856B (en) 2018-12-29 2018-12-29 Shared node management method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811640332.0A CN109725856B (en) 2018-12-29 2018-12-29 Shared node management method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109725856A true CN109725856A (en) 2019-05-07
CN109725856B CN109725856B (en) 2022-04-29

Family

ID=66298362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811640332.0A Active CN109725856B (en) 2018-12-29 2018-12-29 Shared node management method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109725856B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117455750A (en) * 2023-12-26 2024-01-26 芯瞳半导体技术(山东)有限公司 Video memory management method, device, system, medium and equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104463033A (en) * 2014-12-29 2015-03-25 宇龙计算机通信科技(深圳)有限公司 Storage region setting method, storage region setting device and terminal
CN107172061A (en) * 2017-06-07 2017-09-15 郑州云海信息技术有限公司 It is a kind of to realize shared method and system
CN107888689A (en) * 2017-11-16 2018-04-06 无锡地铁集团有限公司 Locking resource allocation method based on shared storage
CN108028033A (en) * 2015-09-23 2018-05-11 追踪有限公司 Drive circuit with shared node
US20180173887A1 (en) * 2015-09-11 2018-06-21 International Business Machines Corporation Enabling secure big data analytics in the cloud
CN108876370A (en) * 2018-06-12 2018-11-23 北京航空航天大学 The architectural framework of the shared open data of transregional piece of chain under a kind of isomery multichain framework
CN108885604A (en) * 2015-12-08 2018-11-23 乌尔特拉塔有限责任公司 Memory construction software implement scheme
CN108984639A (en) * 2018-06-22 2018-12-11 联想(北京)有限公司 The data processing method and device of server cluster
CN109067509A (en) * 2018-08-22 2018-12-21 深圳市网心科技有限公司 Distributed node signal transmission method and system, shared calculate node and signaling gateway

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104463033A (en) * 2014-12-29 2015-03-25 宇龙计算机通信科技(深圳)有限公司 Storage region setting method, storage region setting device and terminal
US20180173887A1 (en) * 2015-09-11 2018-06-21 International Business Machines Corporation Enabling secure big data analytics in the cloud
CN108028033A (en) * 2015-09-23 2018-05-11 追踪有限公司 Drive circuit with shared node
CN108885604A (en) * 2015-12-08 2018-11-23 乌尔特拉塔有限责任公司 Memory construction software implement scheme
CN107172061A (en) * 2017-06-07 2017-09-15 郑州云海信息技术有限公司 It is a kind of to realize shared method and system
CN107888689A (en) * 2017-11-16 2018-04-06 无锡地铁集团有限公司 Locking resource allocation method based on shared storage
CN108876370A (en) * 2018-06-12 2018-11-23 北京航空航天大学 The architectural framework of the shared open data of transregional piece of chain under a kind of isomery multichain framework
CN108984639A (en) * 2018-06-22 2018-12-11 联想(北京)有限公司 The data processing method and device of server cluster
CN109067509A (en) * 2018-08-22 2018-12-21 深圳市网心科技有限公司 Distributed node signal transmission method and system, shared calculate node and signaling gateway

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117455750A (en) * 2023-12-26 2024-01-26 芯瞳半导体技术(山东)有限公司 Video memory management method, device, system, medium and equipment
CN117455750B (en) * 2023-12-26 2024-04-02 芯瞳半导体技术(山东)有限公司 Video memory management method, device, system, medium and equipment

Also Published As

Publication number Publication date
CN109725856B (en) 2022-04-29

Similar Documents

Publication Publication Date Title
CN108287669B (en) Date storage method, device and storage medium
TW463088B (en) Method and apparatus for reducing space allocation failures in storage management systems
CN106201659B (en) A kind of method and host of live migration of virtual machine
CN105630418A (en) Data storage method and device
CN104699423B (en) The method and apparatus that drive is bound in linux system
CN104572656B (en) A kind of method and device of disk mirroring space reclamation
CN105159800B (en) Data reconstruction method, data back up method and relevant device, system
CN104239438B (en) File information storage method and fileinfo reading/writing method based on separation storage
CN103455379A (en) Resource allocation method and system
CN103412822A (en) Operation method of non-volatile RAM, data operation method and relevant device
CN109710317A (en) System start method, device, electronic equipment and storage medium
CN103473076A (en) Issuing method and issuing system for code version
CN109634873A (en) Solid-state disk host system log information method, apparatus, equipment and medium
CN107506266A (en) A kind of data reconstruction method and system
CN106959907A (en) A kind of cloud platform fragmentation data backup and reduction system
CN103023704B (en) Virtual network service equipment access method and system
CN109725856A (en) A kind of shared node management method, device, electronic equipment and storage medium
CN110457321A (en) Date storage method and Related product based on block chain
CN104424316A (en) Data storage method, data searching method, related device and system
CN103136487A (en) Method, device and system for managing data in hard disc hidden area
CN107148612A (en) A kind of method and apparatus of extending user subregion
CN109240798A (en) The method and apparatus for managing the external equipment of virtual machine
CN104252429B (en) Storage control device and method for calling its address
CN108200038A (en) A kind of secure virtual machine means of defence, device, readable medium and storage control
CN108170838A (en) The visualization that topic develops shows method, application server and computer readable storage medium

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
GR01 Patent grant
GR01 Patent grant