CN107273550A - A kind of information query method and device - Google Patents
A kind of information query method and device Download PDFInfo
- Publication number
- CN107273550A CN107273550A CN201710615103.2A CN201710615103A CN107273550A CN 107273550 A CN107273550 A CN 107273550A CN 201710615103 A CN201710615103 A CN 201710615103A CN 107273550 A CN107273550 A CN 107273550A
- Authority
- CN
- China
- Prior art keywords
- storage pool
- storage
- type
- information
- configuration file
- 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
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/13—File access structures, e.g. distributed indices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/182—Distributed file systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention provides a kind of information query method and device, and the above method comprises the following steps:According to storage pool identification access storage pool configuration file, storage pool type is obtained;According to the storage pool type, corresponding querying command is called, storage pool information is obtained.Above-mentioned technical proposal, obtains storage pool information by accessing storage pool configuration file, realizes and go to judge storage pool type in the case where not inquiring about database, and inquire about storage pool information.
Description
Technical field
The invention belongs to information inquiry field, more particularly to a kind of information query method and device.
Background technology
In virtualization field, different types of storage pool can be managed, pond, NFS (Network File is locally stored
System;NFS) storage pool, OCFS (Oracle Cluster File System;Cluster file system) storage
The storage pools such as pond, distributed storage pond.
, it is necessary to inquire about data-base recording during establishment virtual machine etc. needs to use storage pool, the class of storage pool is judged
Type, then goes the information of the querying node correspondence storage pool of carry storage pool.
But, in the case of no database, just can not go to judge the type of storage pool by inquiring about database, also without
Method obtains the information of storage pool.
Therefore, above-mentioned technical problem is solved in the urgent need to providing a kind of information inquiry scheme.
The content of the invention
The present invention provides a kind of information query method and device, to solve the above problems.
The embodiment of the present invention provides a kind of information query method, comprises the following steps:Stored according to storage pool identification access
Pond configuration file, obtains storage pool type;According to the storage pool type, corresponding querying command is called, storage pool letter is obtained
Breath.
The embodiment of the present invention also provides a kind of information query device, including processor, is adapted for carrying out each instruction;Storage is set
Standby, suitable for storing a plurality of instruction, the instruction is suitable to be loaded and performed by the processor;
According to storage pool identification access storage pool configuration file, storage pool type is obtained;
According to the storage pool type, corresponding querying command is called, storage pool information is obtained.
Technical scheme provided in an embodiment of the present invention:According to storage pool identification access storage pool configuration file, storage is obtained
Pond type;According to the storage pool type, corresponding querying command is called, storage pool information is obtained.
Above-mentioned technical proposal, obtains storage pool information by accessing storage pool configuration file, realizes and do not inquiring about data
Go to judge storage pool type in the case of storehouse, and inquire about storage pool information.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 show the information query method flow chart of the embodiment of the present invention 1;
Fig. 2 show the information query device structure chart of the embodiment of the present invention 2.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that not conflicting
In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
The Core-technology point of the embodiment of the present invention is:Using the querying method of JAVA high level languages, use
Java interfaces are called, during using the interface, are transferred only into the storage pool i.e. uuid of a mark (Universally Unique
Identifier, general unique identifier) be used as parameter, you can inquire correspondence storage pool information and without knowing storage pool
Type.
After each storage pool is created, a storage pool configuration file can be stored on each server, and the storage pool is matched somebody with somebody
File meeting record storage pond type, uuid and access path are put, whenever deleting storage pool, corresponding storage pool configuration file also can
Go to delete corresponding record information.
In the realization of java interfaces, storage pool configuration file on inquiry server is removed first, storage pool type, root is judged
Go to inquire about storage pool information again according to corresponding type.
Fig. 1 show the information query method flow chart of the embodiment of the present invention 1, comprises the following steps:
Step 101:According to storage pool identification access storage pool configuration file, storage pool type is obtained;
Further, the storage pool configuration file includes at least one of:Storage pool mark, storage pool type, deposit
Reservoir access path.
Wherein, storage pool configuration file is deposited to the corresponding catalogue of server, for example:Server /etc/ catalogues
One storage pool configuration file of lower storage.
Step 102:According to the storage pool type, corresponding querying command is called, storage pool information is obtained.
Further, the storage pool type includes at least one of:NFS storage pool, group document system
System storage pool, distributed storage pond.
Further, if storage pool is deleted, it will be deleted in the storage pool configuration file and the storage pool
Corresponding record information, wherein, the record information includes at least one of:Storage pool mark, storage pool type, storage pool
Access path.
Fig. 2 show the information query device structure chart of the embodiment of the present invention 2, including processor, is adapted for carrying out each instruction;
Storage device, suitable for storing a plurality of instruction, the instruction is suitable to be loaded and performed by the processor;
According to storage pool identification access storage pool configuration file, storage pool type is obtained;
According to the storage pool type, corresponding querying command is called, storage pool information is obtained.
Further, the storage pool configuration file includes at least one of:Storage pool mark, storage pool type, deposit
Reservoir access path.
Further, the storage pool type includes at least one of:NFS storage pool, group document system
System storage pool, distributed storage pond.
Further, if storage pool is deleted, it will be deleted in the storage pool configuration file and the storage pool
Corresponding record information, wherein, the record information includes at least one of:Storage pool mark, storage pool type, storage pool
Access path.
Technical scheme provided in an embodiment of the present invention:According to storage pool identification access storage pool configuration file, storage is obtained
Pond type;According to the storage pool type, corresponding querying command is called, storage pool information is obtained.
Above-mentioned technical proposal, obtains storage pool information by accessing storage pool configuration file, realizes and do not inquiring about data
Go to judge storage pool type in the case of storehouse, and inquire about storage pool information.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (8)
1. a kind of information query method, it is characterised in that comprise the following steps:
According to storage pool identification access storage pool configuration file, storage pool type is obtained;
According to the storage pool type, corresponding querying command is called, storage pool information is obtained.
2. according to the method described in claim 1, it is characterised in that the storage pool configuration file includes at least one of:
Storage pool mark, storage pool type, storage pool access path.
3. according to the method described in claim 1, it is characterised in that the storage pool type includes at least one of:Network
File system storage pool, cluster file system storage pool, distributed storage pond.
4. method according to claim 3, it is characterised in that if storage pool is deleted, will match somebody with somebody in the storage pool
Put and record information corresponding with the storage pool is deleted in file, wherein, the record information includes at least one of:Storage
Pond mark, storage pool type, storage pool access path.
5. a kind of information query device, it is characterised in that including processor, is adapted for carrying out each instruction;Storage device, suitable for storage
A plurality of instruction, the instruction is suitable to be loaded and performed by the processor;
According to storage pool identification access storage pool configuration file, storage pool type is obtained;
According to the storage pool type, corresponding querying command is called, storage pool information is obtained.
6. device according to claim 5, it is characterised in that the storage pool configuration file includes at least one of:
Storage pool mark, storage pool type, storage pool access path.
7. device according to claim 5, it is characterised in that the storage pool type includes at least one of:Network
File system storage pool, cluster file system storage pool, distributed storage pond.
8. device according to claim 7, it is characterised in that if storage pool is deleted, will match somebody with somebody in the storage pool
Put and record information corresponding with the storage pool is deleted in file, wherein, the record information includes at least one of:Storage
Pond mark, storage pool type, storage pool access path.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710615103.2A CN107273550A (en) | 2017-07-25 | 2017-07-25 | A kind of information query method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710615103.2A CN107273550A (en) | 2017-07-25 | 2017-07-25 | A kind of information query method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107273550A true CN107273550A (en) | 2017-10-20 |
Family
ID=60079585
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710615103.2A Pending CN107273550A (en) | 2017-07-25 | 2017-07-25 | A kind of information query method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107273550A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1901477A (en) * | 2006-07-12 | 2007-01-24 | 华为技术有限公司 | Searching method and its system for equipment traffic data |
CN103577420A (en) * | 2012-07-23 | 2014-02-12 | 中国移动通信集团上海有限公司 | Method and device for inquiring user information dynamically |
CN104391803A (en) * | 2014-11-29 | 2015-03-04 | 中国航空工业集团公司第六三一研究所 | Storage management method for partition operating system |
CN105095103A (en) * | 2015-08-25 | 2015-11-25 | 曙光云计算技术有限公司 | Storage device management method and device used for cloud environment |
-
2017
- 2017-07-25 CN CN201710615103.2A patent/CN107273550A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1901477A (en) * | 2006-07-12 | 2007-01-24 | 华为技术有限公司 | Searching method and its system for equipment traffic data |
CN103577420A (en) * | 2012-07-23 | 2014-02-12 | 中国移动通信集团上海有限公司 | Method and device for inquiring user information dynamically |
CN104391803A (en) * | 2014-11-29 | 2015-03-04 | 中国航空工业集团公司第六三一研究所 | Storage management method for partition operating system |
CN105095103A (en) * | 2015-08-25 | 2015-11-25 | 曙光云计算技术有限公司 | Storage device management method and device used for cloud environment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11468103B2 (en) | Relational modeler and renderer for non-relational data | |
US7765189B2 (en) | Data migration apparatus, method, and program for data stored in a distributed manner | |
US10545981B2 (en) | Virtual repository management | |
CN105808633B (en) | Data archiving method and system | |
CN103198090B (en) | For optimizing the method and system of the storage distribution in virtual desktop environment | |
CN110799960A (en) | System and method for database tenant migration | |
US7593951B2 (en) | Application programming interface for centralized storage of principal data | |
CN104516974B (en) | A kind of management method and device of file system directories item | |
US20090248714A1 (en) | Selective mapping of integrated data | |
WO2018036324A1 (en) | Smart city information sharing method and device | |
CN103577483B (en) | The method and system of date storage method and system and data access | |
CN107103011B (en) | Method and device for realizing terminal data search | |
CN103886104A (en) | Distributed real-time database management system and implementation method applicable to electric system | |
CN106484820A (en) | A kind of renaming method, access method and device | |
US8161075B1 (en) | Systems and methods for managing integrated and customizable data | |
CN108319645A (en) | Multi version file view management method and device under a kind of isomery storage environment | |
US20110208781A1 (en) | Data structure versioning for data management systems and methods | |
CN107408239B (en) | Architecture for managing mass data in communication application through multiple mailboxes | |
CN106790027B (en) | Multi-tenant network disk authority management method and system of HDFS file system | |
US8214410B2 (en) | Conflict management in a versioned file system | |
CN112785248A (en) | Human resource data cross-organization interaction method, device, equipment and storage medium | |
CN107273550A (en) | A kind of information query method and device | |
CN115686497A (en) | Business development data management method, development engine, electronic device, and storage medium | |
CN107357836A (en) | A kind of VNF bags and its image file delet method quoted and equipment | |
CN106649520A (en) | Remote sensing urban spatio-temporal information service platform |
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: 20171020 |