CN111125032B - Method for realizing coexistence of stream storage and file storage - Google Patents
Method for realizing coexistence of stream storage and file storage Download PDFInfo
- Publication number
- CN111125032B CN111125032B CN201911351467.XA CN201911351467A CN111125032B CN 111125032 B CN111125032 B CN 111125032B CN 201911351467 A CN201911351467 A CN 201911351467A CN 111125032 B CN111125032 B CN 111125032B
- Authority
- CN
- China
- Prior art keywords
- storage
- file
- streaming
- file storage
- server
- 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.)
- Active
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/17—Details of further file system functions
- G06F16/172—Caching, prefetching or hoarding of files
-
- 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
- G06F16/1824—Distributed file systems implemented using Network-attached Storage [NAS] architecture
- G06F16/183—Provision of network file services by network file servers, e.g. by using NFS, CIFS
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 invention provides a method for realizing coexistence of stream storage and file storage, which comprises the following steps: s1, configuring stream storage and file storage for raid management software on a server, installing the raid management software, and inputting HTTP on IE: creating an array by using a// ip port, selecting storage modes in the array, S2, creating partitions by using the storage modes respectively, mounting a catalog, automatically distributing the created partitions by using stream storage selection, and manually distributing the created partitions by using file storage selection; and finishing the configuration of the storage partition and the mounting of the catalogue. S3, installing platform management software and logging in, and inputting HTTP on IE: a// ip port; configuring flow storage and configuration file storage on a port; s4, adding active connection for the platform, downloading configuration for the platform, and completing configuration. S5, the coexistence of stream storage and file storage is realized. The streaming storage and the file storage are realized on the same server and coexist, so that the stability and high performance of the file storage and the audio and video data storage are ensured.
Description
Technical Field
The invention belongs to the technical field of video monitoring, and particularly relates to a method for realizing coexistence of stream storage and file storage.
Background
The streaming storage and the file storage are two ways of storing audio and video streaming and picture files in the video monitoring field respectively. The file storage is a storage mode for managing and operating data according to files through a file system, and has obvious advantages under the conditions of small file volume and frequent access. The streaming storage breaks through the limitation of the read-write performance of a file system, the disk is divided into management and data partitions, the data partitions are divided into data segments with equal sizes, each data segment is also divided into an index part and a video file part, and the index part records the information of the video file in the data segment.
The popularity of video structuring makes it impossible to store pictures and video streams on one server at the same time, and the single storage mode has not satisfied the demands of users. The RAID technology can be utilized to uniformly manage the disks, so that the deployment and the operation are convenient, and different arrays are created to set different storage modes by reasonably dividing disk groups on one server. The space occupied by the picture storage is smaller, the number of the corresponding array deployment disks can be smaller, the number of the video storage can be larger, and a user can configure according to actual conditions.
Disclosure of Invention
In view of this, the present invention aims to provide a method for implementing coexistence of streaming storage and file storage, so as to solve the problem that file storage and streaming storage cannot be deployed on the same server at the same time, and the file storage and streaming storage cannot be switched.
In order to achieve the above purpose, the technical scheme of the invention is realized as follows:
a method for realizing coexistence of stream storage and file storage comprises the following steps:
s1, configuring stream storage and file storage for raid management software on a server, installing the raid management software, and inputting HTTP on IE: creating an array by using the input/output port, and selecting a storage mode in the array;
s2, creating partitions in each storage mode, mounting the catalogs, automatically distributing the created partitions through stream storage selection, and manually distributing the created partitions through file storage selection; completing configuration of a storage partition and mounting of a catalog;
s3, installing platform management software and logging in, and inputting HTTP on IE: a// ip port; configuring flow storage and configuration file storage on a port;
s4, adding active connection for the platform, downloading configuration for the platform, and completing configuration.
Further, the process of creating the array in the step S1 is as follows: using RAID5 mode, taking a 24-bit server as an example: creating 3 arrays, wherein the array 1 selects 3 hard disks, the storage mode selects file storage, and the hot standby mode is switched to the local hot standby mode; the arrays 2 and 3, 9 hard disks of each array are stored in a storage mode, and the hot standby mode is switched into a local hot standby mode; each array is assigned a local hot spare disk.
Further, in the step S2, the process of automatically allocating and creating the partitions by stream storage selection divides the array into a plurality of partitions by means of partitioning, partition names are automatically generated, links are created under the specified storage directory to point to the partitions, and finally the partitions are formed into a plurality of data segments with equal sizes.
Further, in the step S3, the streaming storage process is to add a streaming storage server, and corresponding software needs to be installed before adding the streaming storage server, and the ID is configured as a unique identifier.
Further, in the step S3, the configuration file storage process is to add a file memory and a file adapter, and corresponding software needs to be installed before adding the file memory and the file adapter, and the configuration ID is used as a unique identifier.
Further, in the step S4, the platform adds active connection to add ID, IP and port of the streaming storage server and the file adapter.
Further, in the step S4, the platform download configuration process downloads the route information and the server and device information added by the platform to the storage server.
Further, the storage procedure of the streaming storage in the step S1 is as follows: the front-end equipment acquires a video stream through a streaming media module; the streaming media module and the storage module carry out video streaming transmission through a tcp protocol; the storage module judges whether the data segment written into the subarea is full after receiving the video stream data, and if the data segment is full, the storage module switches the recorded subarea and redistributes the data segment; recording index information of the video file; and (5) data is dropped.
Further, the storing process of the file in the step S1 is as follows: the front-end equipment acquires pictures through a file adapter; the file adapter and the file storage server transmit pictures through grpc service; the file storage server judges whether the space written in the partition is full after receiving the picture data, and if so, the partition is switched; recording picture information; and (5) data is dropped.
Compared with the prior art, the method for realizing coexistence of stream storage and file storage has the following advantages:
(1) The streaming storage and the file storage of the invention are realized and stored on the same server, and all the advantages are achieved, so that the stability and the high performance of the file storage of audio and video data are ensured.
(2) The streaming memory is used for audio and video data, the file storage is used for storing the picture files, the management and the operation of the picture files are facilitated, the streaming memory and the file memory are used simultaneously, and the problem of the common storage of audio and pictures is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention. In the drawings:
FIG. 1 is a flow chart of a raid management software configuration and platform configuration stream storage and file storage according to an embodiment of the present invention;
FIG. 2 is a flow chart of a streaming storage according to an embodiment of the present invention;
fig. 3 is a storage flow chart of file storage according to an embodiment of the present invention.
Detailed Description
It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other.
In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, are merely for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first", "a second", etc. may explicitly or implicitly include one or more such feature. In the description of the present invention, unless otherwise indicated, the meaning of "a plurality" is two or more.
In the description of the present invention, it should be noted that, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art in a specific case.
The invention will be described in detail below with reference to the drawings in connection with embodiments.
As shown in fig. 1, a method for implementing coexistence of streaming storage and file storage includes the following steps: s1, configuring stream storage and file storage for raid management software on a server, installing the raid management software, and inputting HTTP on IE: creating an array by using the input/output port, and selecting a storage mode in the array;
s2, creating partitions in each storage mode, mounting the catalogs, automatically distributing the created partitions through stream storage selection, and manually distributing the created partitions through file storage selection; completing configuration of a storage partition and mounting of a catalog;
s3, installing platform management software and logging in, and inputting HTTP on IE: a// ip port; configuring flow storage and configuration file storage on a port;
s4, adding active connection for the platform, downloading configuration for the platform, and completing configuration.
The process of creating the array in the step S1 is as follows: using RAID5 mode, taking a 24-bit server as an example: creating 3 arrays, wherein the array 1 selects 3 hard disks, the storage mode selects file storage, and the hot standby mode is switched to the local hot standby mode; the arrays 2 and 3, 9 hard disks of each array are stored in a storage mode, and the hot standby mode is switched into a local hot standby mode; each array is assigned a local hot spare disk.
In the step S2, the process of automatically distributing and creating the partitions by stream storage selection divides the array into a plurality of partitions by means of partitioning, partition names are automatically generated, links are created under the specified storage directory to point to the partitions, and finally the partitions are formed into a plurality of data segments with equal sizes.
In the step S3, the streaming storage process is to add a streaming storage server, and corresponding software needs to be installed before adding the streaming storage server, and the ID is configured as a unique identifier.
In the step S3, the configuration file storage process is to add a file memory and a file adapter, and corresponding software needs to be installed before adding the file memory and the file adapter, and the configuration ID is used as a unique identifier.
And in the step S4, the platform adds active connection to add the ID, IP and port of the streaming storage server and the file adapter.
The platform download configuration process in step S4 is to download the route information and the server and device information added by the platform to the storage server.
As shown in fig. 2, the storage procedure of the streaming storage in the step S1 is as follows: the front-end equipment acquires a video stream through a streaming media module; the streaming media module and the storage module carry out video streaming transmission through a tcp protocol; the storage module judges whether the data segment written into the subarea is full after receiving the video stream data, and if the data segment is full, the storage module switches the recorded subarea and redistributes the data segment; recording index information of the video file; and (5) data is dropped.
As shown in fig. 3, the storing procedure of the file storage in the step S1 is as follows: the front-end equipment acquires pictures through a file adapter; the file adapter and the file storage server transmit pictures through grpc service; the file storage server judges whether the space written in the partition is full after receiving the picture data, and if so, the partition is switched; recording picture information; and (5) data is dropped.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, alternatives, and improvements that fall within the spirit and scope of the invention.
Claims (7)
1. A method for realizing coexistence of stream storage and file storage is characterized in that: the method comprises the following steps:
s1, configuring stream storage and file storage for raid management software on a server, installing the raid management software, inputting HTTP (hyper text transport protocol)/ip ports on IE (Internet access) to create an array, and selecting a storage mode in the array;
s2, creating partitions in each storage mode, mounting the catalogs, automatically distributing the created partitions through stream storage selection, and manually distributing the created partitions through file storage selection; completing configuration of a storage partition and mounting of a catalog;
s3, installing platform management software and logging in, and inputting HTTP:// ip ports on IE; configuring flow storage and configuration file storage on a port;
s4, adding active connection for the platform, downloading configuration for the platform, and completing configuration;
the process of creating the array in the step S1 is as follows: using RAID5 mode, taking a 24-bit server as an example: creating 3 arrays, wherein the array 1 selects 3 hard disks, the storage mode selects file storage, and the hot standby mode is switched to the local hot standby mode; the arrays 2 and 3, 9 hard disks of each array are stored in a storage mode, and the hot standby mode is switched into a local hot standby mode; each array is respectively allocated with a local hot standby disk;
in the step S2, the process of automatically distributing and creating the partitions by stream storage selection divides the array into a plurality of partitions by means of partitioning, partition names are automatically generated, links are created under the specified storage directory to point to the partitions, and finally the partitions are formed into a plurality of data segments with equal sizes.
2. The method for implementing coexistence of streaming storage and file storage according to claim 1, wherein: in the step S3, the streaming storage process is to add a streaming storage server, and corresponding software needs to be installed before adding the streaming storage server, and the ID is configured as a unique identifier.
3. The method for implementing coexistence of streaming storage and file storage according to claim 1, wherein: in the step S3, the configuration file storage process is to add a file memory and a file adapter, and corresponding software needs to be installed before adding the file memory and the file adapter, and the configuration ID is used as a unique identifier.
4. The method for implementing coexistence of streaming storage and file storage according to claim 1, wherein: and in the step S4, the platform adds active connection to add the ID, IP and port of the streaming storage server and the file adapter.
5. The method for implementing coexistence of streaming storage and file storage according to claim 1, wherein: the platform download configuration process in step S4 is to download the route information and the server and device information added by the platform to the storage server.
6. The method for implementing coexistence of streaming storage and file storage according to claim 1, wherein: the storage process of the streaming storage in the step S1 is as follows: the front-end equipment acquires a video stream through a streaming media module; the streaming media module and the storage module carry out video streaming transmission through a tcp protocol; the storage module judges whether the data segment written into the subarea is full after receiving the video stream data, and if the data segment is full, the storage module switches the recorded subarea and redistributes the data segment; recording index information of the video file; and (5) data is dropped.
7. The method for implementing coexistence of streaming storage and file storage according to claim 1, wherein: the storing process of the file storage in the step S1 is as follows: the front-end equipment acquires pictures through a file adapter; the file adapter and the file storage server transmit pictures through grpc service; the file storage server judges whether the space written in the partition is full after receiving the picture data, and if so, the partition is switched; recording picture information; and (5) data is dropped.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911351467.XA CN111125032B (en) | 2019-12-24 | 2019-12-24 | Method for realizing coexistence of stream storage and file storage |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911351467.XA CN111125032B (en) | 2019-12-24 | 2019-12-24 | Method for realizing coexistence of stream storage and file storage |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111125032A CN111125032A (en) | 2020-05-08 |
CN111125032B true CN111125032B (en) | 2023-09-19 |
Family
ID=70502156
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911351467.XA Active CN111125032B (en) | 2019-12-24 | 2019-12-24 | Method for realizing coexistence of stream storage and file storage |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111125032B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1376993A (en) * | 2002-05-09 | 2002-10-30 | 邓祖道 | Digitalized audio-video information resource system for remote education and its implementing method |
CN103761268A (en) * | 2014-01-06 | 2014-04-30 | 无锡城市云计算中心有限公司 | Data storage and layout method for distributed file system |
CN105488108A (en) * | 2015-11-19 | 2016-04-13 | 广州日滨科技发展有限公司 | High-speed parallel storage method and apparatus for multiple video files |
CN105989121A (en) * | 2015-02-12 | 2016-10-05 | 广东欧珀移动通信有限公司 | Downloading method and device of favorites data |
CN109218677A (en) * | 2018-09-30 | 2019-01-15 | 天津天地伟业电子工业制造有限公司 | A kind of multistage inquiry and method for down loading of recording a video |
CN109491618A (en) * | 2018-11-20 | 2019-03-19 | 上海科技大学 | Data management system, method, terminal and medium based on mixing storage |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090265747A1 (en) * | 2008-03-17 | 2009-10-22 | Canada Anv Systems Inc. | Systems and methods for providing web based self serviced video monitoring and security features for systems comprising ip video terminals and servers |
-
2019
- 2019-12-24 CN CN201911351467.XA patent/CN111125032B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1376993A (en) * | 2002-05-09 | 2002-10-30 | 邓祖道 | Digitalized audio-video information resource system for remote education and its implementing method |
CN103761268A (en) * | 2014-01-06 | 2014-04-30 | 无锡城市云计算中心有限公司 | Data storage and layout method for distributed file system |
CN105989121A (en) * | 2015-02-12 | 2016-10-05 | 广东欧珀移动通信有限公司 | Downloading method and device of favorites data |
CN105488108A (en) * | 2015-11-19 | 2016-04-13 | 广州日滨科技发展有限公司 | High-speed parallel storage method and apparatus for multiple video files |
CN109218677A (en) * | 2018-09-30 | 2019-01-15 | 天津天地伟业电子工业制造有限公司 | A kind of multistage inquiry and method for down loading of recording a video |
CN109491618A (en) * | 2018-11-20 | 2019-03-19 | 上海科技大学 | Data management system, method, terminal and medium based on mixing storage |
Non-Patent Citations (1)
Title |
---|
分布式站点间的跨域文件***;徐琪等;计算机工程与应用;第第55卷卷(第第8期期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN111125032A (en) | 2020-05-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8856195B1 (en) | Method and system for wireless device access to external storage | |
US6163795A (en) | Server for notifying items of interest and delivering locally accessed video in a WAN to client stations on demand | |
CN1738398B (en) | Data storage system and method that supports personal video recorder functionality | |
US5515510A (en) | Communications internetwork system connecting a client node array to a resource array | |
US20030023665A1 (en) | Storage system having a plurality of controllers | |
CN102546616A (en) | Achieving method for media sharing and interaction and digital household media server | |
US20040111560A1 (en) | Disk array controller | |
CN105187523B (en) | A kind of directory access method and device | |
US20070079096A1 (en) | Data storage unit access authorization table automatic rebuilding method and system | |
US20020198958A1 (en) | System and method for the delivery of information | |
CN111125032B (en) | Method for realizing coexistence of stream storage and file storage | |
JP2005056200A (en) | Data management method, disk storage device and disk storage system | |
CN111274191A (en) | Method for managing ceph cluster and cloud local storage coordinator | |
CN101902464A (en) | Content processing apparatus and content processing method | |
US7853709B2 (en) | Multimedia data sharing system and method for MOST network | |
CN102118315A (en) | Method for fluidizing, recording and reading data and system adopting same | |
CN110321077B (en) | Method and device for managing centrally stored files | |
US7266820B2 (en) | Trunked customized connectivity process for installing software onto an information handling system | |
KR101847844B1 (en) | Cloud service providing apparatus and method | |
CN111722783B (en) | Data storage method and device | |
CN101873463A (en) | Video playback method, monitoring client and digital hard disk video recorder | |
US7925724B2 (en) | Volume mapping by blade slot | |
CN103095754A (en) | Distributed document system and back-up position decision method thereof | |
CN102572795B (en) | Number information synchronization, Apparatus and system | |
CN101197966B (en) | Indication method and system of channel broadcast interface of digital television receiver |
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 |