CN117435402A - Method and device for scheduling tape drives with backup strategy - Google Patents
Method and device for scheduling tape drives with backup strategy Download PDFInfo
- Publication number
- CN117435402A CN117435402A CN202311616124.8A CN202311616124A CN117435402A CN 117435402 A CN117435402 A CN 117435402A CN 202311616124 A CN202311616124 A CN 202311616124A CN 117435402 A CN117435402 A CN 117435402A
- Authority
- CN
- China
- Prior art keywords
- backup
- policy
- scheduling
- tape drive
- strategy
- 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
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000004590 computer program Methods 0.000 claims description 23
- 230000002159 abnormal effect Effects 0.000 claims description 7
- 238000004891 communication Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 15
- 230000006870 function Effects 0.000 description 13
- 230000005856 abnormality Effects 0.000 description 4
- 239000000872 buffer Substances 0.000 description 4
- 241001522296 Erithacus rubecula Species 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2282—Tablespace storage structures; Management thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Quality & Reliability (AREA)
- Software Systems (AREA)
- Computational Linguistics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the application provides a tape drive scheduling method and device with a backup strategy, which relate to the field of data backup and can also be used in the financial field, and the method comprises the following steps: receiving a required backup strategy, and determining a corresponding backup media server and a backup strategy logic tape library according to the required backup strategy; generating a corresponding scheduling policy table according to the backup media server and the backup policy logic tape library; starting or disabling the state of the tape drive on the media server according to the scheduling policy table and the backup software command line interface; the method and the device can provide special tape drive resources for special strategies under the condition of resource contention.
Description
Technical Field
The application relates to the field of data backup and also can be used in the financial field, in particular to a backup strategy tape drive scheduling method and a device.
Background
Currently, nbu (backup system) is mainly adopted as centralized backup software in the prior art, and tape library media are adopted to store backup data. According to the environment architecture of nbu, backups are divided into three layers, namely a main control server, a medium server and a client. The main control server is mainly responsible for backup strategy and backup task scheduling, the client is data to be backed up, the medium server is a main backup server, and the tape drive is configured on the medium server, so that the data can be written into the tape drive from the client to the backup medium server. Tape drives are typically distributed to backup media servers in logical tape library units, because nbu centralizes the SSO of the tape provided by the backup software, i.e., tape sharing functionality, meaning that a set of logical tape libraries (a set of tape drives with similar functionality) can be distributed to multiple media servers by a colleague. And the backup strategy can be backed up by using the logic tape library downloaded by the media server after being distributed to the media server. It also means that a single tape drive can back up policies for multiple media servers for invocation.
The inventors have found that conventionally, this approach can make maximum use of tape drive resources. But the production backup tasks are huge, and the magnetic tape drive contention can occur. In particular, when the tape drive is used for a special purpose, the tape drive cannot be called for the special purpose because the tape drive is allocated to the medium server.
Disclosure of Invention
Aiming at the problems in the prior art, the application provides a tape drive scheduling method and device with a backup strategy, which can provide special tape drive resources for special strategies under the condition of resource contention.
In order to solve at least one of the above problems, the present application provides the following technical solutions:
in a first aspect, the present application provides a backup policy tape drive scheduling method, including:
receiving a required backup strategy, and determining a corresponding backup media server and a backup strategy logic tape library according to the required backup strategy;
generating a corresponding scheduling policy table according to the backup media server and the backup policy logic tape library;
and starting or disabling the state of the tape drive on the media server according to the scheduling policy table and the backup software command line interface.
Further, the determining the corresponding backup media server and the backup policy logical tape library according to the required backup policy includes:
performing policy query on the backup system according to the required backup policy and a backup system command line interface;
and determining a corresponding backup media server and a backup strategy logic band library according to the strategy query result. Further, the method comprises the steps of,
further, the policy query on the backup system according to the required backup policy and the backup system command line interface includes:
according to the demand backup strategy and the backup system command line interface query, server query is carried out to obtain a corresponding backup media server;
and carrying out logic tape library inquiry on the tape drive corresponding to the required backup strategy, and determining a corresponding backup strategy logic tape library.
Further, the generating a corresponding scheduling policy table according to the backup media server and the backup policy logic band library includes:
initializing a preset scheduling policy table;
and writing the backup media server and the backup strategy logic band library into the preset scheduling strategy table to obtain a corresponding scheduling strategy table.
Further, the writing the backup media server and the backup policy logic band library into the preset scheduling policy table to obtain a corresponding scheduling policy table, including:
judging whether a logic tape library of the tape drive is in a backup media server of the required backup strategy;
and obtaining a corresponding scheduling policy table according to the judging result.
Further, the obtaining a corresponding scheduling policy table according to the result of the judging includes:
if not, writing the tape drive and the corresponding backup media server into a scheduling policy table and setting a scheduling action to be forbidden;
if so, writing the tape drive requiring the backup strategy and the corresponding backup media server into a scheduling strategy table and setting scheduling action as starting.
Further, after the writing the backup media server and the backup policy logic band library into the preset scheduling policy table to obtain the corresponding scheduling policy table, the method further includes:
performing duplicate checking processing on the starting and disabling states of the tape drive and the backup media server;
and if the condition that the start disabled state is repeated exists, sending a demand backup strategy abnormal signal to the corresponding manager side.
In a second aspect, the present application provides a backup policy tape drive scheduling apparatus, including:
the backup strategy processing module is used for receiving a required backup strategy and determining a corresponding backup media server and a backup strategy logic tape library according to the required backup strategy;
the scheduling policy determining module is used for generating a corresponding scheduling policy table according to the backup media server and the backup policy logic band library;
and the strategy scheduling execution module is used for starting or disabling the state of the tape drive on the medium server according to the scheduling strategy table and the backup software command line interface.
Further, the backup policy processing module includes:
the strategy query unit is used for carrying out strategy query on the backup system according to the required backup strategy and the backup system command line interface;
and the query result unit is used for determining a corresponding backup media server and a backup strategy logic tape library according to the strategy query result.
Further, the policy query unit includes:
the server inquiry subunit is used for carrying out server inquiry according to the required backup strategy and the backup system command line interface inquiry to obtain a corresponding backup media server;
and the logic tape library inquiry subunit is used for carrying out logic tape library inquiry according to the tape drive corresponding to the required backup strategy and determining the corresponding backup strategy logic tape library.
Further, the scheduling policy determining module includes:
an initialization unit, configured to initialize a preset scheduling policy table;
and the policy table determining unit is used for writing the backup media server and the backup policy logic zone library into the preset scheduling policy table to obtain a corresponding scheduling policy table.
Further, the policy table determining unit includes:
the judging subunit is used for judging whether the logic tape library of the tape drive is in the backup media server of the required backup strategy;
and the judging result subunit is used for obtaining a corresponding scheduling policy table according to the judging result.
Further, the judging result subunit includes:
a disabling subunit, configured to write the tape drive and the corresponding backup media server into a scheduling policy table and set the scheduling action to disable if the tape drive and the corresponding backup media server do not exist;
and the promoter unit is used for writing the tape drive requiring the backup strategy and the corresponding backup media server into a scheduling strategy table and setting scheduling action as starting if the tape drive requiring the backup strategy exists.
Further, the policy table determining unit further includes:
the duplicate checking subunit is used for performing duplicate checking processing on the starting and disabling states of the tape drive and the backup media server;
and the abnormal alarm subunit is used for sending a demand backup strategy abnormal signal to the corresponding manager side if the condition that the start-up disabled state is repeated exists.
In a third aspect, the present application provides an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the backup policy tape drive scheduling method when executing the program.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the backup policy tape drive scheduling method.
In a fifth aspect, the present application provides a computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the backup policy tape drive scheduling method.
According to the technical scheme, the application provides a tape drive scheduling method and device of a backup strategy, and the method and device determine a corresponding backup media server and backup strategy logic tape library according to a required backup strategy by receiving the required backup strategy; generating a corresponding scheduling policy table according to the backup media server and the backup policy logic tape library; and starting or disabling the state of the tape drive on the media server according to the scheduling policy table and the backup software command line interface, so that special tape drive resources can be provided for special policies under the condition of resource contention.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a backup policy tape drive scheduling method according to an embodiment of the present application;
FIG. 2 is a second flowchart of a backup policy tape drive scheduling method according to an embodiment of the present application;
FIG. 3 is a third flow chart of a backup policy tape drive scheduling method according to an embodiment of the present application;
FIG. 4 is a flowchart of a backup policy tape drive scheduling method according to an embodiment of the present application;
FIG. 5 is a flowchart of a backup policy tape drive scheduling method according to an embodiment of the present application;
FIG. 6 is a flowchart of a backup policy tape drive scheduling method according to an embodiment of the present application;
FIG. 7 is a flowchart of a backup policy tape drive scheduling method according to an embodiment of the present application;
FIG. 8 is one of the block diagrams of a backup policy tape drive scheduler in an embodiment of the present application;
FIG. 9 is a second block diagram of a backup policy tape drive scheduler in an embodiment of the present application;
FIG. 10 is a third block diagram of a backup policy tape drive scheduler in an embodiment of the present application;
FIG. 11 is a fourth block diagram of a backup policy tape drive scheduler in an embodiment of the present application;
FIG. 12 is a fifth block diagram of a backup policy tape drive scheduler in an embodiment of the present application;
FIG. 13 is a sixth block diagram of a backup policy tape drive scheduler in an embodiment of the present application;
FIG. 14 is a seventh block diagram of a backup policy tape drive scheduler in an embodiment of the present application;
fig. 15 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, 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 apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The data acquisition, storage, use, processing and the like in the technical scheme meet the relevant regulations of national laws and regulations.
Considering the huge production backup tasks in the prior art, tape drive contention can occur. Particularly, when the media server is used for special purposes, the tape drive is allocated to the media server, and can not be called according to the special purposes; generating a corresponding scheduling policy table according to the backup media server and the backup policy logic tape library; and starting or disabling the state of the tape drive on the media server according to the scheduling policy table and the backup software command line interface, so that special tape drive resources can be provided for special policies under the condition of resource contention.
In order to provide special tape drive resources for a special policy in the case of resource contention, the present application provides an embodiment of a backup policy tape drive scheduling method, referring to fig. 1, where the backup policy tape drive scheduling method specifically includes the following contents:
step S101: receiving a required backup strategy, and determining a corresponding backup media server and a backup strategy logic tape library according to the required backup strategy;
optionally, the application may set a requirement module to receive a requirement backup policy, where the requirement module may set a requirement table, and the fields of the requirement table are: demand category, demand object, tape object category, object name.
The demand categories may include: backup policies or backup media servers.
The tape object categories include: logical tape libraries and tape drives. The relevant requirements may be entered by an administrator or automatically by an automated program.
Notably, tape objects generally do not suggest selecting tape drives because other policies on the backup media server may require the use of all tape drives, which is easily counter-productive. Is used when no special requirement exists.
Alternatively, the present application may begin reading the contents of the demand module on a regular daily basis. The demand modules are processed one by one, and the nbu system is queried through the nbu command line interface. And checking the backup media server according to the required backup strategy. If the backup strategy is not involved, this step is skipped. And acquiring a corresponding logic tape library according to the required tape drive, and skipping the step if the tape drive is not involved. All backup media servers with them are obtained from tape drives or logical tape libraries. If the obtained corresponding relation is zero, or the obtained backup media server does not contain the backup media server in the demand, reporting an error and notifying an administrator to process. The required logical tape library is ensured to be online through the tape drive logical tape library and nbu command line interface. No abnormality.
Step S102: generating a corresponding scheduling policy table according to the backup media server and the backup policy logic tape library;
optionally, the present application may initialize a scheduling policy table before starting the round robin, where the fields are tape drive, backup media server, scheduling actions. The scheduling policy table is written to the tape drive and the backup media server for which the demand is desired. The scheduling action is enabled. A backup media server for which the logical tape library is not in the demand table writes the tape drive and the related backup media server record pair to the scheduling policy table with the scheduling actions disabled. And after the completion, comparing the record of the round with the record before, if the record of the round does not accord with the record of the round, for example, the record of the round is deleted, the round is skipped, and the manager is informed of the related requirement of the round, wherein the record of the round is written in the record of the round if the record of the round does not accord with the record of the round, for example, the record of the round is started or forbidden for a tape drive and a backup media server. And (3) recording and analyzing all written scheduling policy tables, counting the related backup media servers, and confirming that all standby conditions exist below the backup media servers. If the backup media server is completely shut down, the description is abnormal. The record written in the round is deleted, the round is skipped, and the administrator is informed of the need related to the round.
Step S103: and starting or disabling the state of the tape drive on the media server according to the scheduling policy table and the backup software command line interface.
Optionally, the present application may use nbu command line interfaces to enable or disable the tape drive's status on the media server according to the completed scheduling policy table, thereby satisfying the situation that the tape drive or logical tape library is only available to a particular backup media server. Realizing special backup requirement.
As can be seen from the above description, the backup policy tape drive scheduling method provided in the embodiments of the present application can determine, by receiving a required backup policy, a corresponding backup media server and a backup policy logical tape library according to the required backup policy; generating a corresponding scheduling policy table according to the backup media server and the backup policy logic tape library; and starting or disabling the state of the tape drive on the media server according to the scheduling policy table and the backup software command line interface, so that special tape drive resources can be provided for special policies under the condition of resource contention.
In an embodiment of the backup policy tape drive scheduling method of the present application, referring to fig. 2, the following may be further specifically included:
step S201: performing policy query on the backup system according to the required backup policy and a backup system command line interface;
step S202: and determining a corresponding backup media server and a backup strategy logic band library according to the strategy query result.
Alternatively, the present application may begin reading the contents of the demand module on a regular daily basis. The demand modules are processed one by one, and the nbu system is queried through the nbu command line interface. And checking the backup media server according to the required backup strategy. If the backup strategy is not involved, this step is skipped. And acquiring a corresponding logic tape library according to the required tape drive, and skipping the step if the tape drive is not involved. All backup media servers with them are obtained from tape drives or logical tape libraries. If the obtained corresponding relation is zero, or the obtained backup media server does not contain the backup media server in the demand, reporting an error and notifying an administrator to process. The required logical tape library is ensured to be online through the tape drive logical tape library and nbu command line interface. No abnormality.
In an embodiment of the backup policy tape drive scheduling method of the present application, referring to fig. 3, the following may be further specifically included:
step S301: according to the demand backup strategy and the backup system command line interface query, server query is carried out to obtain a corresponding backup media server;
step S302: and carrying out logic tape library inquiry on the tape drive corresponding to the required backup strategy, and determining a corresponding backup strategy logic tape library.
Optionally, the present application may initialize a scheduling policy table before starting the round robin, where the fields are tape drive, backup media server, scheduling actions. The scheduling policy table is written to the tape drive and the backup media server for which the demand is desired. The scheduling action is enabled. A backup media server for which the logical tape library is not in the demand table writes the tape drive and the related backup media server record pair to the scheduling policy table with the scheduling actions disabled.
In an embodiment of the backup policy tape drive scheduling method of the present application, referring to fig. 4, the following may be further specifically included:
step S401: initializing a preset scheduling policy table;
step S402: and writing the backup media server and the backup strategy logic band library into the preset scheduling strategy table to obtain a corresponding scheduling strategy table.
Alternatively, the application may obtain the backup media server related to the policy and the corresponding backup policy logical tape library through an interface with the nbu command line. And the corresponding relation between the logic tape library and the tape drive comprises the state of the tape drive, so as to generate a corresponding scheduling policy table.
In an embodiment of the backup policy tape drive scheduling method of the present application, referring to fig. 5, the following may be further specifically included:
step S501: judging whether a logic tape library of the tape drive is in a backup media server of the required backup strategy;
step S502: and obtaining a corresponding scheduling policy table according to the judging result.
In an embodiment of the backup policy tape drive scheduling method of the present application, referring to fig. 6, the following may be further specifically included:
step S601: if not, writing the tape drive and the corresponding backup media server into a scheduling policy table and setting a scheduling action to be forbidden;
step S602: if so, writing the tape drive requiring the backup strategy and the corresponding backup media server into a scheduling strategy table and setting scheduling action as starting.
Optionally, the present application may initialize a scheduling policy table before starting the round robin, where the fields are tape drive, backup media server, scheduling actions. The scheduling policy table is written to the tape drive and the backup media server for which the demand is desired. The scheduling action is enabled. A backup media server for which the logical tape library is not in the demand table writes the tape drive and the related backup media server record pair to the scheduling policy table with the scheduling actions disabled.
In an embodiment of the backup policy tape drive scheduling method of the present application, referring to fig. 7, the following may be further specifically included:
step S701: performing duplicate checking processing on the starting and disabling states of the tape drive and the backup media server;
step S702: and if the condition that the start disabled state is repeated exists, sending a demand backup strategy abnormal signal to the corresponding manager side.
Optionally, the present application may compare the current round of recording with the previous round of recording, if there are non-conforming conditions, such as a case where the tape drive and the backup media server are both enabled and disabled, delete the record written in the current round, skip the current round, and notify the administrator of the need for the current round. And (3) recording and analyzing all written scheduling policy tables, counting the related backup media servers, and confirming that all standby conditions exist below the backup media servers. If the backup media server is completely shut down, the description is abnormal. The record written in the round is deleted, the round is skipped, and the administrator is informed of the need related to the round.
With the above matters, the present application can at least achieve the following technical effects:
1. the backup strategy and the logic tape library are set, so that the situation of contention and mixed use of the tape drive which is irradiated during the sharing of the tape drive is eliminated from the bottom layer, and the method is important for the strategy or the backup medium server to yield effective resources.
2. By setting the backup strategy and the logic tape library, the backup strategy type borne on the backup media server can be reasonably planned, so that the use of the tape machine resources is reasonable.
In order to provide special tape drive resources for a special policy in the case of resource contention, the present application provides an embodiment of a backup policy tape drive scheduling apparatus for implementing all or part of the content of the backup policy tape drive scheduling method, referring to fig. 8, where the backup policy tape drive scheduling apparatus specifically includes the following contents:
the backup strategy processing module 10 is used for receiving a required backup strategy and determining a corresponding backup media server and a backup strategy logic tape library according to the required backup strategy;
the scheduling policy determining module 20 is configured to generate a corresponding scheduling policy table according to the backup media server and the backup policy logic tape library;
and the policy scheduling execution module 30 is used for starting or disabling the state of the tape drive on the media server according to the scheduling policy table and the backup software command line interface.
As can be seen from the above description, the backup policy tape drive scheduling device provided in the embodiments of the present application can determine, by receiving a required backup policy, a corresponding backup media server and a backup policy logical tape library according to the required backup policy; generating a corresponding scheduling policy table according to the backup media server and the backup policy logic tape library; and starting or disabling the state of the tape drive on the media server according to the scheduling policy table and the backup software command line interface, so that special tape drive resources can be provided for special policies under the condition of resource contention.
In an embodiment of the backup policy tape drive scheduling apparatus of the present application, referring to fig. 9, the backup policy processing module 10 includes:
the policy query unit 11 is configured to perform policy query on the backup system according to the required backup policy and a backup system command line interface;
and the query result unit 12 is used for determining a corresponding backup media server and a backup policy logic tape library according to the result of the policy query.
In an embodiment of the backup policy tape drive scheduling apparatus of the present application, referring to fig. 10, the policy query unit 11 includes:
a server query subunit 111, configured to perform a server query according to the required backup policy and the backup system command line interface query, to obtain a corresponding backup media server;
and the logical tape library query subunit 112 is configured to query the logical tape library according to the tape drive corresponding to the required backup policy, and determine a corresponding backup policy logical tape library.
In an embodiment of the backup policy tape drive scheduling apparatus of the present application, referring to fig. 11, the scheduling policy determining module 20 includes:
an initializing unit 21 for initializing a preset scheduling policy table;
and a policy table determining unit 22, configured to write the backup media server and the backup policy logic zone library into the preset scheduling policy table to obtain a corresponding scheduling policy table.
In an embodiment of the backup policy tape drive scheduling apparatus of the present application, referring to fig. 12, the policy table determining unit 22 includes:
a judging subunit 221, configured to judge whether a logical tape library of the tape drive is in the backup media server of the required backup policy;
and the judging result subunit 222 is configured to obtain a corresponding scheduling policy table according to the judging result.
In an embodiment of the backup policy tape drive scheduling apparatus of the present application, referring to fig. 13, the determining result subunit 222 includes:
a disabling subunit 2221, configured to write the tape drive and the corresponding backup media server into the scheduling policy table and set the scheduling action to disable if the tape drive and the corresponding backup media server do not exist;
and the promoter unit 2222 is configured to write the tape drive and the corresponding backup media server of the required backup policy into a scheduling policy table and set a scheduling action as a start if the required backup policy exists.
In an embodiment of the backup policy tape drive scheduling apparatus of the present application, referring to fig. 14, the policy table determining unit 22 further includes:
a duplication checking subunit 223, configured to perform duplication checking on the startup disabled states of the tape drive and the backup media server;
the abnormality alert subunit 224 is configured to send a demand backup policy abnormality signal to the corresponding administrator if there is a situation that the startup disabled state is repeated.
In order to provide special tape drive resources for special policies in case of resource contention from a hardware level, the application provides an embodiment of an electronic device for implementing all or part of the content in the tape drive scheduling method of the backup policy, where the electronic device specifically includes the following contents:
a processor (processor), a memory (memory), a communication interface (Communications Interface), and a bus; the processor, the memory and the communication interface complete communication with each other through the bus; the communication interface is used for realizing information transmission between the backup strategy tape drive scheduling device and related equipment such as a core service system, a user terminal, a related database and the like; the logic controller may be a desktop computer, a tablet computer, a mobile terminal, etc., and the embodiment is not limited thereto. In this embodiment, the logic controller may refer to an embodiment of the backup policy tape drive scheduling method and an embodiment of the backup policy tape drive scheduling apparatus in the embodiments, and the contents thereof are incorporated herein, and are not repeated here.
It is understood that the user terminal may include a smart phone, a tablet electronic device, a network set top box, a portable computer, a desktop computer, a Personal Digital Assistant (PDA), a vehicle-mounted device, a smart wearable device, etc. Wherein, intelligent wearing equipment can include intelligent glasses, intelligent wrist-watch, intelligent bracelet etc..
In practical application, part of the backup policy tape drive scheduling method may be executed on the electronic device side as described above, or all operations may be completed in the client device. Specifically, the selection may be made according to the processing capability of the client device, and restrictions of the use scenario of the user. The present application is not limited in this regard. If all operations are performed in the client device, the client device may further include a processor.
The client device may have a communication module (i.e. a communication unit) and may be connected to a remote server in a communication manner, so as to implement data transmission with the server. The server may include a server on the side of the task scheduling center, and in other implementations may include a server of an intermediate platform, such as a server of a third party server platform having a communication link with the task scheduling center server. The server may include a single computer device, a server cluster formed by a plurality of servers, or a server structure of a distributed device.
Fig. 15 is a schematic block diagram of a system configuration of the electronic device 9600 of the embodiment of the present application. As shown in fig. 15, the electronic device 9600 may include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. Notably, this fig. 15 is exemplary; other types of structures may also be used in addition to or in place of the structures to implement telecommunications functions or other functions.
In one embodiment, the backup policy tape drive scheduling method functionality may be integrated into the central processor 9100. The central processor 9100 may be configured to perform the following control:
step S101: receiving a required backup strategy, and determining a corresponding backup media server and a backup strategy logic tape library according to the required backup strategy;
step S102: generating a corresponding scheduling policy table according to the backup media server and the backup policy logic tape library;
step S103: and starting or disabling the state of the tape drive on the media server according to the scheduling policy table and the backup software command line interface.
As can be seen from the above description, the electronic device provided in the embodiment of the present application receives a required backup policy, and determines a corresponding backup media server and a backup policy logical tape library according to the required backup policy; generating a corresponding scheduling policy table according to the backup media server and the backup policy logic tape library; and starting or disabling the state of the tape drive on the media server according to the scheduling policy table and the backup software command line interface, so that special tape drive resources can be provided for special policies under the condition of resource contention.
In another embodiment, the backup policy cartridge scheduler may be configured separately from the central processor 9100, for example, the backup policy cartridge scheduler may be configured as a chip connected to the central processor 9100, and the backup policy cartridge scheduling method function is implemented under the control of the central processor.
As shown in fig. 15, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is noted that the electronic device 9600 need not include all of the components shown in fig. 15; in addition, the electronic device 9600 may further include components not shown in fig. 15, and reference may be made to the related art.
As shown in fig. 15, the central processor 9100, sometimes referred to as a controller or operational control, may include a microprocessor or other processor device and/or logic device, which central processor 9100 receives inputs and controls the operation of the various components of the electronic device 9600.
The memory 9140 may be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information about failure may be stored, and a program for executing the information may be stored. And the central processor 9100 can execute the program stored in the memory 9140 to realize information storage or processing, and the like.
The input unit 9120 provides input to the central processor 9100. The input unit 9120 is, for example, a key or a touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used for displaying display objects such as images and characters. The display may be, for example, but not limited to, an LCD display.
The memory 9140 may be a solid state memory such as Read Only Memory (ROM), random Access Memory (RAM), SIM card, etc. But also a memory which holds information even when powered down, can be selectively erased and provided with further data, an example of which is sometimes referred to as EPROM or the like. The memory 9140 may also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application/function storage portion 9142, the application/function storage portion 9142 storing application programs and function programs or a flow for executing operations of the electronic device 9600 by the central processor 9100.
The memory 9140 may also include a data store 9143, the data store 9143 for storing data, such as contacts, digital data, pictures, sounds, and/or any other data used by an electronic device. The driver storage portion 9144 of the memory 9140 may include various drivers of the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, address book applications, etc.).
The communication module 9110 is a transmitter/receiver 9110 that transmits and receives signals via an antenna 9111. A communication module (transmitter/receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, as in the case of conventional mobile communication terminals.
Based on different communication technologies, a plurality of communication modules 9110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, etc., may be provided in the same electronic device. The communication module (transmitter/receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and to receive audio input from the microphone 9132 to implement usual telecommunications functions. The audio processor 9130 can include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 9130 is also coupled to the central processor 9100 so that sound can be recorded locally through the microphone 9132 and sound stored locally can be played through the speaker 9131.
The embodiments of the present application further provide a computer readable storage medium capable of implementing all the steps in the backup policy tape drive scheduling method in which the execution subject in the above embodiment is a server or a client, where the computer readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements all the steps in the backup policy tape drive scheduling method in which the execution subject in the above embodiment is a server or a client, for example, the processor implements the following steps when executing the computer program:
step S101: receiving a required backup strategy, and determining a corresponding backup media server and a backup strategy logic tape library according to the required backup strategy;
step S102: generating a corresponding scheduling policy table according to the backup media server and the backup policy logic tape library;
step S103: and starting or disabling the state of the tape drive on the media server according to the scheduling policy table and the backup software command line interface.
As can be seen from the above description, the computer readable storage medium provided in the embodiments of the present application determines, by receiving a required backup policy, a corresponding backup media server and a backup policy logical tape library according to the required backup policy; generating a corresponding scheduling policy table according to the backup media server and the backup policy logic tape library; and starting or disabling the state of the tape drive on the media server according to the scheduling policy table and the backup software command line interface, so that special tape drive resources can be provided for special policies under the condition of resource contention.
The embodiments of the present application further provide a computer program product capable of implementing all the steps in the backup policy tape drive scheduling method in which the execution subject in the above embodiments is a server or a client, where the computer program/instructions implement the steps of the backup policy tape drive scheduling method when executed by a processor, for example, the computer program/instructions implement the steps of:
step S101: receiving a required backup strategy, and determining a corresponding backup media server and a backup strategy logic tape library according to the required backup strategy;
step S102: generating a corresponding scheduling policy table according to the backup media server and the backup policy logic tape library;
step S103: and starting or disabling the state of the tape drive on the media server according to the scheduling policy table and the backup software command line interface.
As can be seen from the above description, the computer program product provided in the embodiments of the present application determines, by receiving a required backup policy, a corresponding backup media server and a backup policy logical tape library according to the required backup policy; generating a corresponding scheduling policy table according to the backup media server and the backup policy logic tape library; and starting or disabling the state of the tape drive on the media server according to the scheduling policy table and the backup software command line interface, so that special tape drive resources can be provided for special policies under the condition of resource contention.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principles and embodiments of the present invention have been described in detail with reference to specific examples, which are provided to facilitate understanding of the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.
Claims (11)
1. A backup policy tape drive scheduling method, the method comprising:
receiving a required backup strategy, and determining a corresponding backup media server and a backup strategy logic tape library according to the required backup strategy;
generating a corresponding scheduling policy table according to the backup media server and the backup policy logic tape library;
and starting or disabling the state of the tape drive on the media server according to the scheduling policy table and the backup software command line interface.
2. The backup policy tape drive scheduling method of claim 1, wherein said determining a corresponding backup media server and backup policy logical tape library according to the required backup policy comprises:
performing policy query on the backup system according to the required backup policy and a backup system command line interface;
and determining a corresponding backup media server and a backup strategy logic band library according to the strategy query result.
3. The backup policy tape drive scheduling method of claim 2, wherein said performing policy query on the backup system according to the required backup policy and a backup system command line interface comprises:
according to the demand backup strategy and the backup system command line interface query, server query is carried out to obtain a corresponding backup media server;
and carrying out logic tape library inquiry on the tape drive corresponding to the required backup strategy, and determining a corresponding backup strategy logic tape library.
4. The backup policy tape drive scheduling method of claim 1, wherein said generating a corresponding scheduling policy table from said backup media server and said backup policy logical tape library comprises:
initializing a preset scheduling policy table;
and writing the backup media server and the backup strategy logic band library into the preset scheduling strategy table to obtain a corresponding scheduling strategy table.
5. The backup policy tape drive scheduling method of claim 4, wherein writing the backup media server and the backup policy logical tape library into the preset scheduling policy table to obtain a corresponding scheduling policy table comprises:
judging whether a logic tape library of the tape drive is in a backup media server of the required backup strategy;
and obtaining a corresponding scheduling policy table according to the judging result.
6. The backup policy tape drive scheduling method of claim 5, wherein said obtaining a corresponding scheduling policy table according to the result of said determining comprises:
if not, writing the tape drive and the corresponding backup media server into a scheduling policy table and setting a scheduling action to be forbidden;
if so, writing the tape drive requiring the backup strategy and the corresponding backup media server into a scheduling strategy table and setting scheduling action as starting.
7. The backup policy tape drive scheduling method of claim 4, further comprising, after said writing said backup media server and said backup policy logical tape library into said preset scheduling policy table to obtain a corresponding scheduling policy table:
performing duplicate checking processing on the starting and disabling states of the tape drive and the backup media server;
and if the condition that the start disabled state is repeated exists, sending a demand backup strategy abnormal signal to the corresponding manager side.
8. A backup policy tape drive scheduling apparatus, comprising:
the backup strategy processing module is used for receiving a required backup strategy and determining a corresponding backup media server and a backup strategy logic tape library according to the required backup strategy;
the scheduling policy determining module is used for generating a corresponding scheduling policy table according to the backup media server and the backup policy logic band library;
and the strategy scheduling execution module is used for starting or disabling the state of the tape drive on the medium server according to the scheduling strategy table and the backup software command line interface.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor performs the steps of the backup policy tape drive scheduling method of any one of claims 1 to 7 when the program is executed.
10. A computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the backup policy tape drive scheduling method of any one of claims 1 to 7.
11. A computer program product comprising computer programs/instructions which when executed by a processor implement the steps of the backup policy tape drive scheduling method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311616124.8A CN117435402A (en) | 2023-11-29 | 2023-11-29 | Method and device for scheduling tape drives with backup strategy |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311616124.8A CN117435402A (en) | 2023-11-29 | 2023-11-29 | Method and device for scheduling tape drives with backup strategy |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117435402A true CN117435402A (en) | 2024-01-23 |
Family
ID=89546174
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311616124.8A Pending CN117435402A (en) | 2023-11-29 | 2023-11-29 | Method and device for scheduling tape drives with backup strategy |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117435402A (en) |
-
2023
- 2023-11-29 CN CN202311616124.8A patent/CN117435402A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112463535B (en) | Multi-cluster exception handling method and device | |
CN111736772A (en) | Storage space data processing method and device of distributed file system | |
CN112286904A (en) | Cluster migration method and device and storage medium | |
CN100465961C (en) | Information-processing apparatus, recording medium and information-processing method | |
CN111445331A (en) | Transaction matching method and device | |
CN113760611B (en) | System site switching method and device, electronic equipment and storage medium | |
CN111367561B (en) | Remote development method and device for software program | |
CN112766827A (en) | Automatic processing method and device for asset inventory data | |
CN111930624A (en) | Test link message data processing method and device | |
CN117435402A (en) | Method and device for scheduling tape drives with backup strategy | |
CN116150029A (en) | Automatic overdue batch testing method and device for loan system | |
CN114285657B (en) | Firewall security policy change verification method and device | |
CN115495519A (en) | Report data processing method and device | |
CN111930690B (en) | File generation method and device | |
CN112445574B (en) | Application container multi-cluster migration method and device | |
CN113918436A (en) | Log processing method and device | |
CN112965952B (en) | Data asset processing method and device | |
CN117076207A (en) | Database backup multi-activity control method and device | |
CN113434423B (en) | Interface testing method and device | |
CN113050974B (en) | Online upgrading method and device for cloud computing infrastructure | |
CN117251312A (en) | Method and device for balancing load of tape drive set | |
CN115081424A (en) | Server permission comparison and correction method and device | |
CN116048776A (en) | Multi-process service processing method and device based on service requirements | |
CN114637587A (en) | Task batch processing method and device under cluster architecture deployment | |
CN114860832A (en) | Credit card integral data processing method and device |
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 |