CN113741790A - Multi-video-recording-plan storage method and device for video data and storage medium - Google Patents

Multi-video-recording-plan storage method and device for video data and storage medium Download PDF

Info

Publication number
CN113741790A
CN113741790A CN202010474005.3A CN202010474005A CN113741790A CN 113741790 A CN113741790 A CN 113741790A CN 202010474005 A CN202010474005 A CN 202010474005A CN 113741790 A CN113741790 A CN 113741790A
Authority
CN
China
Prior art keywords
disk
storage
space
data
mode
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
Application number
CN202010474005.3A
Other languages
Chinese (zh)
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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN202010474005.3A priority Critical patent/CN113741790A/en
Publication of CN113741790A publication Critical patent/CN113741790A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0607Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0643Management of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • G06F3/0676Magnetic disk device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of storage devices
    • G06F3/0689Disk arrays, e.g. RAID, JBOD

Abstract

The invention provides a method, a device and a storage medium for storing multiple video plans of video data, wherein the method comprises the following steps: receiving a plurality of video plans with different storage configurations and/or management configurations of a target storage space of a video source; recording the video source according to the recording time of each video plan in the plurality of video plans, and storing the recording result into the target storage space of the video plan; the target storage space is a disk space composed of one disk or a group of disks of the storage device, and the disk space has been subjected to storage configuration and management configuration in advance according to a data storage mode of the disk space for selecting a disk form in which data is distributed and a data management mode for determining a read-write mode on the storage space, which are included in configuration information for the storage space of the storage device. The invention can realize flexible management and control of video data.

Description

Multi-video-recording-plan storage method and device for video data and storage medium
Technical Field
The present invention relates to the field of data storage technologies, and in particular, to a method, an apparatus, and a storage medium for storing multiple video schedules of video data.
Background
In the existing implementation, a storage device only configures a data storage and management mode for a storage space of the storage device, and only configures a video recording plan for a video source, and configuring a video recording plan for a video source in a single data storage and management mode has a disadvantage that video data cannot be flexibly controlled; when the data storage mode of the storage device is a disk array mode, the associated data can be dispersed in a plurality of disks, and the data is extremely difficult to read after an individual disk is separated from a storage server, and the disk hot plug is not supported; when the data management mode of the storage device is streaming storage, the video data can not be accessed out of the storage device; when the data management mode of the storage device is file storage, the video data is poor in stability and easy to damage.
Disclosure of Invention
In view of this, an object of the present invention is to provide a method, an apparatus and a storage medium for storing multiple video schedules of video data, which can achieve flexible management and control of video data.
In order to achieve the purpose, the invention provides the following technical scheme:
a multi-video-recording-plan storage method of video data comprises the following steps:
receiving a plurality of video plans with different storage configurations and/or management configurations of a target storage space of a video source;
recording the video source according to the recording time of each video plan in the plurality of video plans, and storing the recording result into the target storage space of the video plan;
the target storage space is a disk space composed of one disk or a group of disks of the storage device, the disk space is subjected to storage configuration in advance according to a data storage mode, included in configuration information of the storage space of the storage device, of the disk space for selecting a disk form in which data are distributed, and the disk space is subjected to management configuration according to a data management mode, included in the configuration information, of the disk space for determining a read-write mode on the storage space.
A multi-video schedule storage apparatus for video data, comprising: a processor, and a non-transitory computer readable storage medium connected to the processor by a bus;
the non-transitory computer readable storage medium storing one or more computer programs executable by the processor; the processor, when executing the one or more computer programs, implements the steps of:
receiving a plurality of video plans with different storage configurations and/or management configurations of a target storage space of a video source;
recording the video source according to the recording time of each video plan in the plurality of video plans, and storing the recording result into the target storage space of the video plan;
the target storage space is a disk space composed of one disk or a group of disks of the storage device, the disk space is subjected to storage configuration in advance according to a data storage mode, included in configuration information of the storage space of the storage device, of the disk space for selecting a disk form in which data are distributed, and the disk space is subjected to management configuration according to a data management mode, included in the configuration information, of the disk space for determining a read-write mode on the storage space.
A non-transitory computer readable storage medium storing instructions which, when executed by a processor, cause the processor to perform the steps in the multi-video schedule storage method of video data as described above.
According to the above technical solution, in the present invention, the storage configuration and the management configuration are respectively performed on the disk space in advance according to the data storage mode for selecting the disk form in which the data is distributed and the data management mode for determining the read-write mode on the storage space, which are included in the configuration information for the storage space of the storage device, so that different disk spaces in the storage device have different storage characteristics due to different data storage modes and/or data management modes.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a flow chart of a method for partitioning and configuring disk space of a storage device according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for partitioning and configuring a disk space of a storage space of two pairs of storage devices according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for partitioning and configuring disk space of a storage device according to a third embodiment of the present invention;
FIG. 4 is a flowchart of a method for partitioning and configuring a disk space of a storage device according to a fourth embodiment of the present invention;
FIG. 5 is a flowchart of a method for storing multiple video schedules of video data according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a multi-video-schedule storage apparatus for video data according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the existing implementation, since the storage space (including at least one disk) of the same storage device has only one data storage and management manner, that is, all disks in the storage space of the same storage device are configured for storage and management based on the same data storage manner and data management manner, all disks of the storage device have the same storage characteristics.
In the embodiment of the invention, the storage space of the storage device is divided into the disk spaces (each of the disk spaces obtained by dividing is composed of one or more disks of the storage device), different disk spaces obtained by dividing are subjected to storage configuration and management configuration by adopting different data storage modes and data management modes, so that the storage device is provided with a plurality of storage spaces with different storage characteristics, a user can configure a plurality of video plans with different storage configurations and/or management configurations of a target storage space according to the video data storage requirements of a video source, and flexible management and control of the video data of the video source are realized by executing the video plans.
The method for storing the multiple video schedules of the video data provided by the embodiment of the invention is described in two parts as follows:
firstly, dividing and configuring the disk space of the storage device.
Referring to fig. 1, fig. 1 is a flowchart of a method for partitioning and configuring a disk space of a storage device according to an embodiment of the present invention, and as shown in fig. 1, the method mainly includes the following steps:
step 101, obtaining configuration information of a storage space aiming at a storage device;
in this embodiment, the configuration information for the storage space of the storage device includes a plurality of disk spaces, and a data storage mode for selecting a disk form in which data is distributed and a data management mode for determining a read/write mode on the storage space in each disk space.
In this embodiment, each disk space included in the configuration information for the storage space of the storage device is composed of one or more disks of the storage device. The data storage modes and/or data management modes of at least two disk spaces in the plurality of disk spaces are different from each other.
And 102, performing storage configuration on the disk space according to a data storage mode, which is used for selecting a disk form in which data are distributed, of each disk space contained in the configuration information of the storage space of the storage device.
Step 103, managing and configuring the disk space according to the data management mode for determining the read-write mode on the storage space of each disk space contained in the configuration information of the storage space of the storage device.
In this embodiment, after the storage configuration and the management configuration are respectively performed on the disk according to the data storage mode and the data management mode of each disk space, the disk spaces with different data storage modes and/or data management modes have different storage characteristics, and different storage requirements can be met.
In this embodiment, step 102 and step 103 may be executed in parallel, and the execution sequence is not sequential.
As can be seen from the method shown in fig. 1, in this embodiment, the configuration information for the storage space of the storage device is used to divide the storage space of the storage device into disk spaces, and the data storage manner and the data management manner of each divided disk space are set in the configuration information, so that the storage configuration and the management configuration can be performed on each disk space according to the configuration information, so that different disk spaces of the storage device have different storage characteristics after being configured for storage and management. Further, as the storage device has disk spaces with different storage characteristics, a user can configure and select a plurality of disk spaces of the storage device as target storage spaces of a plurality of video plans for a certain video source according to storage requirements, so as to realize flexible management and control of video data of the video source.
Referring to fig. 2, fig. 2 is a flowchart of a method for partitioning and configuring a disk space of a storage space of two pairs of storage devices according to an embodiment of the present invention, as shown in fig. 2, the method mainly includes the following steps:
step 201, receiving a disk configuration instruction, and extracting configuration information aiming at a storage space of the storage device, which is carried in the disk configuration instruction; or reading the configuration information of the storage space of the storage device from a preset configuration file.
In this embodiment, the disk configuration instruction may be submitted by a user through the front-end device, for example, the configuration information of the disk for the storage device is input in a configuration window provided by the front-end device and is submitted, so as to trigger the disk configuration instruction.
The above step 201 is a detailed refinement of step 101 shown in fig. 1.
Step 202, performing storage configuration on the disk space according to a data storage mode for selecting a disk form in which data is distributed, for each disk space included in the configuration information of the storage space of the storage device.
Step 203, managing and configuring the disk space according to the data management mode for determining the read-write mode on the storage space of each disk space contained in the configuration information of the storage space of the storage device.
As can be seen from the method shown in fig. 2, in the present embodiment, two methods for obtaining configuration information of a storage space of a storage device are provided, and the implementation is simple. After configuration information for the storage space of the storage device is acquired by one of the two methods, storage configuration and management configuration can be performed on each disk space of the storage device according to the configuration information, so that different disk spaces of the storage device have different storage characteristics after storage configuration and management configuration. Further, as the storage device has disk spaces with different storage characteristics, a user can configure and select a plurality of disk spaces of the storage device as target storage spaces of a plurality of video plans for a certain video source according to storage requirements, so as to realize flexible management and control of video data of the video source.
Referring to fig. 3, fig. 3 is a flowchart of a method for partitioning and configuring a disk space of a storage device according to three embodiments of the present invention, as shown in fig. 3, the method mainly includes the following steps:
301, obtaining configuration information of a storage space of a storage device;
in this embodiment, the configuration information for the storage space of the storage device includes a plurality of disk spaces, and a data storage mode for selecting a disk form in which data is distributed and a data management mode for determining a read/write mode on the storage space in each disk space. Wherein each disk space included in the configuration information for the storage space of the storage device is composed of one or more disks of the storage device.
In this embodiment, the data storage method for selecting a disk form in which data is distributed includes: single disk mode and disk array mode.
Step 3021, determining a data storage manner of each disk space in the plurality of disk spaces for selecting a disk format in which data is distributed, and if the data storage manner is a single disk mode, executing step 3022, and if the data storage manner is a disk array mode, executing step 3023.
Step 3022, configuring the disks in the disk space into a single disk;
step 3023, configuring the disks in the disk space into a disk array.
The above steps 3021 to 3023 are a detailed refinement of step 102 shown in fig. 1. Through the steps 3021 to 3023, storage configurations for different disk spaces in the storage device may be implemented, so that a part of the disk space in the storage device adopts a single disk mode, and a part of the disk space adopts a disk array mode.
Step 303, managing and configuring the disk space according to the data management mode for determining the read-write mode on the storage space of each disk space included in the configuration information of the storage space of the storage device.
As can be seen from the method shown in fig. 3, in this embodiment, the disk is configured to store by using the data storage manner of each disk space included in the configuration information for the storage space of the storage device, so that a part of the disk space of the storage device is configured in the single-disk mode, and a part of the disk space is configured in the disk array mode, so that when a video source is configured with a video recording plan, a subsequent user can configure a video recording plan meeting the mobility requirement and a video recording plan meeting the security requirement by using the mobility of a single disk and the security of a disk array, thereby ensuring the mobility and the security of video data.
Referring to fig. 4, fig. 4 is a flowchart of a method for partitioning and configuring a disk space of a storage device according to four embodiments of the present invention, as shown in fig. 4, the method mainly includes the following steps:
step 401, obtaining configuration information of a storage space for a storage device;
in this embodiment, the configuration information for the storage space of the storage device includes a plurality of disk spaces, and a data storage mode for selecting a disk form in which data is distributed and a data management mode for determining a read/write mode on the storage space in each disk space. Wherein each disk space included in the configuration information for the storage space of the storage device is composed of one or more disks of the storage device.
In this embodiment, the data management mode for determining a read-write mode in a storage space includes streaming storage and file storage, and includes: streaming storage and file storage.
Step 402, performing storage configuration on the disk space according to the data storage mode for selecting the disk form in which the data is distributed, for each disk space included in the configuration information of the storage space of the storage device.
Step 4031, determine the data management mode used for determining the read-write mode on the storage space of each disk space in the multiple disk spaces, if it is streaming storage, execute step 4032, if it is file storage, execute step 4033.
Step 4032, data block division is performed on the disk in the disk space, and a preset data block management mode is configured for the divided data blocks.
In this embodiment, the preset data block management manner may be chain management, for example, a B + tree may be used to implement storage management on the data block.
4033, performing disk formatting based on a preset file system on the disk in the disk space, and mounting the disk space to the preset file system.
In this embodiment, the preset file system may be an NTFS file system or a FAT file system.
The above steps 4041 to 4043 are specific refinements of step 103 shown in fig. 1. Through steps 4041 to 4043, management configuration of different disk spaces in the storage device can be implemented, so that part of the disk spaces in the storage device are stored in a streaming manner, and part of the disk spaces are stored in files.
As can be seen from the method shown in fig. 4, in this embodiment, the data management manner of each disk space included in the configuration information for the storage space of the storage device is used to manage and configure the disk space, so that part of the disk space of the storage device is configured as streaming storage, and part of the disk space is configured as file storage, and thus when configuring a video recording plan for a video source, a user can configure a video recording plan that meets different storage requirements by using the characteristic that a disk using streaming storage does not affect the use of the disk due to damage of a file system and the characteristic that the disk using file storage supports hot plug-in.
And secondly, configuring a plurality of video plans for the video source.
After the storage space of the storage device is divided and configured by using the method shown in fig. 1, fig. 2, fig. 3, or fig. 3, the storage device has a plurality of disk spaces with different storage, and these disk spaces can be selected as target storage spaces of different video recording plans for a certain video source, so as to meet the storage requirement of a user for video data of the video source.
Referring to fig. 5, fig. 5 is a flowchart of a method for storing multiple video schedules of video data according to an embodiment of the present invention, and as shown in fig. 5, the method includes the following steps:
step 501, receiving a plurality of video recording plans with different storage configurations and/or management configurations of a target storage space for a video source.
In this embodiment, the target storage space is a disk space formed by one disk or a group of disks of the storage device, and the disk space has been previously subjected to storage configuration according to a data storage mode, included in configuration information for the storage space of the storage device, of the disk space for selecting a disk format in which data is distributed, and the disk space has been subjected to management configuration according to a data management mode, included in the configuration information, of the disk space for determining a read-write mode on the storage space.
Step 502, recording the video source according to the recording time of each video plan in the plurality of video plans, and storing the recording result in the target storage space of the video plan.
In practical applications, the video recording plan includes information such as video source, video recording time, and target storage space. When the video recording plan is executed, the video source of the video recording plan may be recorded according to the video recording time of the video recording plan, and the video recording result may be stored in the target storage space of the video recording plan.
As can be seen from the method shown in fig. 5, in this embodiment, since the storage configuration and the management configuration have been performed on the multiple disk spaces of the storage device in advance according to the configuration information for the storage space of the storage device, different disk spaces of the storage device have different storage characteristics. Therefore, when a user configures a video recording plan for a certain video source, the disk space with different storage characteristics in the storage device can be selected as the target storage space of different video recording plans, so that video recording plans meeting different storage requirements can be configured for the same video source.
The above-mentioned detailed description is provided for the principle of multi-video-schedule storage of video data according to the embodiment of the present invention, and the following further explains the multi-video-schedule storage of video data with reference to specific examples.
Assuming that there are 10 disks with numbers of 0 to 9 in the storage device, it is assumed that the storage configuration information and the management configuration information for the disks of the storage device are specifically summarized as follows:
1) the disk 0 is divided into a disk space, the data storage mode of the disk space is a single disk mode, and the data management mode is streaming storage.
Accordingly, according to the data storage manner and the data management manner of the disk space composed of the disk 0, the storage configuration and the management configuration may be performed on the disk 0 in the disk space, so that the disk 0 is configured to be single-disk streaming storage (the data storage manner is a single-disk mode, and the data management manner is streaming storage).
2) The disk 1 is divided into a disk space, the data storage mode of the disk space is a single disk mode, and the data management mode is file storage.
Accordingly, according to the data storage manner and the data management manner of the disk space composed of the disks 1, the storage configuration and the management configuration may be performed on the disks 1 in the disk space, so that the disks 1 are configured to be single-disk file storage (the data storage manner is a single-disk mode, and the data management manner is file storage).
3) The disks 2 to 5 are divided into a disk space, and the data storage mode of the disk space is a disk array mode, and the data management mode is streaming storage.
Accordingly, according to the data storage manner and the data management manner of the disk space composed of the disks 2 to 5, the storage configuration and the management configuration may be performed on the disks 2 to 5 in the disk space, so that the disk space composed of the disks 2 to 5 is configured as an array streaming storage (the data storage manner is a disk array mode, and the data management manner is a streaming storage).
4) The disks 6 and 9 are divided into a disk space, and the data storage mode of the disk space is a disk array mode, and the data management mode is file storage.
Accordingly, according to the data storage manner and the data management manner of the disk space composed of the disks 6 to 9, the disks 6 to 9 in the disk space may be configured for storage configuration and management configuration, so that the disk space composed of the disks 6 to 9 is configured for array file storage (the data storage manner is a disk array mode, and the data management manner is file storage).
Thus, when a video schedule needs to be configured for a certain video source that has been accessed to the storage device, according to storage requirements, for example, both the security of video data and the mobility of video data need to be ensured, 2 video schedules may be configured for the video source, where a target storage space of a first video schedule may be a disk space formed by disks 2 to 5, a target storage space of a second video schedule may be a disk space formed by disks 2, the first video schedule may ensure the security and stability of video data, and the second video schedule may ensure the mobility of video data, because the data storage mode of the disks 2 is a single disk mode, hot plug may be supported.
In addition, the recording time of the first recording schedule and the second recording schedule may be the same or different, for example, the recording time of both the first recording schedule and the second recording schedule may be monday to friday, or only the recording time of the first recording schedule may be monday to friday, and the recording time of the second recording schedule may be 2:00 to 5:00 in the afternoon of the tuesday. The recording time of the recording plan can be determined according to the requirement.
The embodiment of the present invention further provides a device for storing multiple video schedules of video data, which is described in detail below with reference to fig. 6:
referring to fig. 6, fig. 6 is a schematic structural diagram of a multi-recording-plan storage apparatus for video data according to an embodiment of the present invention, and as shown in fig. 6, the apparatus includes: a processor 601, and a non-transitory computer readable storage medium 602 connected to the processor 601 through a bus;
the non-transitory computer readable storage medium 602 storing one or more computer programs executable by the processor 601; the processor 601, when executing the one or more computer programs, implements the steps of:
receiving a plurality of video plans with different storage configurations and/or management configurations of a target storage space of a video source;
recording the video source according to the recording time of each video plan in the plurality of video plans, and storing the recording result into the target storage space of the video plan;
the target storage space is a disk space composed of one disk or a group of disks of the storage device, the disk space is subjected to storage configuration in advance according to a data storage mode, included in configuration information of the storage space of the storage device, of the disk space for selecting a disk form in which data are distributed, and the disk space is subjected to management configuration according to a data management mode, included in the configuration information, of the disk space for determining a read-write mode on the storage space.
In the device shown in figure 6 of the drawings,
before the processor 601 performs storage configuration on the disk space according to the data storage mode, included in the configuration information for the storage space of the storage device, of the disk space for selecting the disk format in which data is distributed, and performs management configuration on the disk space according to the data management mode, included in the configuration information, of the disk space for determining a read-write mode on the storage space, the processor further includes:
receiving a disk configuration instruction, and extracting configuration information aiming at the storage space of the storage equipment, which is carried in the disk configuration instruction; or reading the configuration information of the storage space of the storage device from a preset configuration file.
In the device shown in figure 6 of the drawings,
the data storage mode comprises a disk array mode and a single disk mode;
the processor 601, performing storage configuration on the disk space according to the data storage mode, included in the configuration information for the storage space of the storage device, of the disk space for selecting the disk format in which data is distributed, includes:
if the data storage mode of the disk space for selecting the disk form in which the data is distributed is a single disk mode, configuring the disks in the disk space into a single disk;
if the data storage mode of the disk space for selecting the disk form in which the data is distributed is a disk array mode, the disks in the disk space are configured into a disk array.
In the device shown in figure 6 of the drawings,
the data management mode comprises streaming storage and file storage;
the processor 601, performing management configuration on the disk space according to the data management mode for determining the read-write mode on the storage space of the disk space, which is included in the configuration information for the storage space of the storage device, includes:
if the data management mode for selecting the disk form in which the data are distributed in the configuration information of the disk space is streaming storage, dividing data blocks of the disk in the disk space, and configuring a preset data block management mode for the divided data blocks;
and if the data management mode for selecting the disk form in which the data are distributed in the configuration information of the disk space is file storage, performing disk formatting based on a preset file system on the disk in the disk space, and mounting the disk space to the preset file system.
In the device shown in figure 6 of the drawings,
the preset data block management mode is chain management;
the preset file system is an NTFS file system or an FAT file system.
Embodiments of the present invention also provide a non-transitory computer readable storage medium storing instructions that, when executed by a processor, cause the processor to perform the steps in the method for partitioning and configuring disk space of a storage device as shown in fig. 1-4 and/or the steps in the method for multi-video-plan storage of video data as shown in fig. 5.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (11)

1. A method for storing multiple video schedules of video data, the method comprising:
receiving a plurality of video plans with different storage configurations and/or management configurations of a target storage space of a video source;
recording the video source according to the recording time of each video plan in the plurality of video plans, and storing the recording result into the target storage space of the video plan;
the target storage space is a disk space composed of one disk or a group of disks of the storage device, the disk space is subjected to storage configuration in advance according to a data storage mode, included in configuration information of the storage space of the storage device, of the disk space for selecting a disk form in which data are distributed, and the disk space is subjected to management configuration according to a data management mode, included in the configuration information, of the disk space for determining a read-write mode on the storage space.
2. The method of claim 1,
before performing storage configuration on the disk space according to a data storage mode, included in configuration information for the storage space of the storage device, of the disk space for selecting a disk form in which data is distributed, and performing management configuration on the disk space according to a data management mode, included in the configuration information, of the disk space for determining a read-write mode on the storage space, the method further includes:
receiving a disk configuration instruction, and extracting configuration information aiming at the storage space of the storage equipment, which is carried in the disk configuration instruction; or reading the configuration information of the storage space of the storage device from a preset configuration file.
3. The method of claim 1,
the data storage mode comprises a disk array mode and a single disk mode;
the method for carrying out storage configuration on the disk space according to the data storage mode of the disk space for selecting the disk form in which the data are distributed, which is contained in the configuration information of the storage space of the storage device, comprises the following steps:
if the data storage mode of the disk space for selecting the disk form in which the data is distributed is a single disk mode, configuring the disks in the disk space into a single disk;
if the data storage mode of the disk space for selecting the disk form in which the data is distributed is a disk array mode, the disks in the disk space are configured into a disk array.
4. The method of claim 1,
the data management mode comprises streaming storage and file storage;
the method for managing and configuring the disk space according to the data management mode, which is used for determining the read-write mode on the storage space, of the disk space, and is included in the configuration information of the storage space of the storage device, includes the following steps:
if the data management mode of the disk space for selecting the disk form in which the data are distributed is stream storage, dividing data blocks of the disk in the disk space, and configuring a preset data block management mode for the divided data blocks;
and if the data management mode of the disk space for selecting the disk form in which the data are distributed is file storage, performing disk formatting based on a preset file system on the disk in the disk space, and mounting the disk space to the preset file system.
5. The method of claim 4,
the preset data block management mode is chain management;
the preset file system is an NTFS file system or an FAT file system.
6. An apparatus for storing multiple video schedules of video data, the apparatus comprising: a processor, and a non-transitory computer readable storage medium connected to the processor by a bus;
the non-transitory computer readable storage medium storing one or more computer programs executable by the processor; the processor, when executing the one or more computer programs, implements the steps of:
receiving a plurality of video plans with different storage configurations and/or management configurations of a target storage space of a video source;
recording the video source according to the recording time of each video plan in the plurality of video plans, and storing the recording result into the target storage space of the video plan;
the target storage space is a disk space composed of one disk or a group of disks of the storage device, the disk space is subjected to storage configuration in advance according to a data storage mode, included in configuration information of the storage space of the storage device, of the disk space for selecting a disk form in which data are distributed, and the disk space is subjected to management configuration according to a data management mode, included in the configuration information, of the disk space for determining a read-write mode on the storage space.
7. The apparatus of claim 6,
the processor, before performing storage configuration on the disk space according to a data storage mode, included in configuration information for the storage space of the storage device, of the disk space for selecting a disk form in which data is distributed, and performing management configuration on the disk space according to a data management mode, included in the configuration information, of the disk space for determining a read-write mode on the storage space, is further configured to:
receiving a disk configuration instruction, and extracting configuration information aiming at the storage space of the storage equipment, which is carried in the disk configuration instruction; or reading the configuration information of the storage space of the storage device from a preset configuration file.
8. The apparatus of claim 6,
the data storage mode comprises a disk array mode and a single disk mode;
the processor performs storage configuration on the disk space according to a data storage mode, included in configuration information for the storage space of the storage device, of the disk space for selecting a disk form in which data is distributed, and includes:
if the data storage mode of the disk space for selecting the disk form in which the data is distributed is a single disk mode, configuring the disks in the disk space into a single disk;
if the data storage mode of the disk space for selecting the disk form in which the data is distributed is a disk array mode, the disks in the disk space are configured into a disk array.
9. The apparatus of claim 6,
the data management mode comprises streaming storage and file storage;
the processor manages and configures the disk space according to a data management mode, which is used for determining a read-write mode on the storage space, of the disk space, included in configuration information for the storage space of the storage device, and includes:
if the data management mode for selecting the disk form in which the data are distributed in the configuration information of the disk space is streaming storage, dividing data blocks of the disk in the disk space, and configuring a preset data block management mode for the divided data blocks;
and if the data management mode for selecting the disk form in which the data are distributed in the configuration information of the disk space is file storage, performing disk formatting based on a preset file system on the disk in the disk space, and mounting the disk space to the preset file system.
10. The apparatus of claim 9,
the preset data block management mode is chain management;
the preset file system is an NTFS file system or an FAT file system.
11. A non-transitory computer readable storage medium storing instructions which, when executed by a processor, cause the processor to perform the steps in the method of multi-video schedule storage of video data according to any of claims 1 to 5.
CN202010474005.3A 2020-05-29 2020-05-29 Multi-video-recording-plan storage method and device for video data and storage medium Pending CN113741790A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010474005.3A CN113741790A (en) 2020-05-29 2020-05-29 Multi-video-recording-plan storage method and device for video data and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010474005.3A CN113741790A (en) 2020-05-29 2020-05-29 Multi-video-recording-plan storage method and device for video data and storage medium

Publications (1)

Publication Number Publication Date
CN113741790A true CN113741790A (en) 2021-12-03

Family

ID=78724552

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010474005.3A Pending CN113741790A (en) 2020-05-29 2020-05-29 Multi-video-recording-plan storage method and device for video data and storage medium

Country Status (1)

Country Link
CN (1) CN113741790A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103797770A (en) * 2012-12-31 2014-05-14 华为技术有限公司 Method and system for sharing storage resources
CN105426125A (en) * 2015-11-09 2016-03-23 深圳市迪菲特科技股份有限公司 Data storage method and apparatus
CN106598502A (en) * 2016-12-23 2017-04-26 广州杰赛科技股份有限公司 Data storage method and system
US9792295B1 (en) * 2013-02-06 2017-10-17 Quantcast Corporation Distributing data of multiple logically independent file systems in distributed storage systems including physically partitioned disks
CN107515725A (en) * 2016-06-16 2017-12-26 中兴通讯股份有限公司 The method, apparatus and webmaster MANO systems of a kind of core net virtualization system shared disk
CN109614040A (en) * 2018-11-26 2019-04-12 武汉烽火信息集成技术有限公司 Storage method, storage medium, electronic equipment and system with more storage pools

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103797770A (en) * 2012-12-31 2014-05-14 华为技术有限公司 Method and system for sharing storage resources
US9792295B1 (en) * 2013-02-06 2017-10-17 Quantcast Corporation Distributing data of multiple logically independent file systems in distributed storage systems including physically partitioned disks
CN105426125A (en) * 2015-11-09 2016-03-23 深圳市迪菲特科技股份有限公司 Data storage method and apparatus
CN107515725A (en) * 2016-06-16 2017-12-26 中兴通讯股份有限公司 The method, apparatus and webmaster MANO systems of a kind of core net virtualization system shared disk
CN106598502A (en) * 2016-12-23 2017-04-26 广州杰赛科技股份有限公司 Data storage method and system
CN109614040A (en) * 2018-11-26 2019-04-12 武汉烽火信息集成技术有限公司 Storage method, storage medium, electronic equipment and system with more storage pools

Similar Documents

Publication Publication Date Title
US9128965B1 (en) Configurable-capacity time-series tables
CN105338297B (en) A kind of storage of video data and playback system, device and method
US8843704B2 (en) Stride based free space management on compressed volumes
CN106708443B (en) Data reading and writing method and device
US11057465B2 (en) Time-based data placement in a distributed storage system
US10223038B2 (en) File management in a file system
CN103514210A (en) Method and device for processing small files
CN110457305B (en) Data deduplication method, device, equipment and medium
US10891266B2 (en) File handling in a hierarchical storage system
CN104461384B (en) A kind of method for writing data and storage device
US9875046B2 (en) Tape backup and restore in a disk storage environment with intelligent data placement
CN108304142A (en) A kind of data managing method and device
CN103220587A (en) Method and device for obtaining time shifting contents
CN107436761B (en) UEFI (unified extensible firmware interface) system and traditional system coexistence management method based on UEFI mainboard
CN103164172A (en) Data flow storage method and device
CN113741790A (en) Multi-video-recording-plan storage method and device for video data and storage medium
CN105528344A (en) Method and apparatus for determining media information of read data in storage device
US20140310454A1 (en) Data set management
US8941936B1 (en) Hybrid surface format hard disk drive
US20160203153A1 (en) Computing device and cloud storage method of the computing device
US9830104B2 (en) Columnar data storage on tape partition
US10769125B2 (en) Ordering records for timed meta-data generation in a blocked record environment
CN113127438B (en) Method, apparatus, server and medium for storing data
CN106469174B (en) Method for reading data and device
US9778845B2 (en) File management system

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