Automated tape drive sharing in a heterogeneous server and application environment
First Claim
1. A first computer system comprising:
- a central processing unit (CPU);
a memory coupled to the CPU;
a computer-readable, tangible storage device coupled to the CPU, the storage device containing instructions that when carried out by the CPU via the memory implement a method of automatically sharing a tape drive in a heterogeneous computing environment, the method comprising the steps of;
the first computer system receiving a first message that includes an identifier of a tape drive shared among a plurality of computer systems in the heterogeneous computing environment, an identifier of a source port of a second computer system, and an indication of a first change in a reservation status of the tape drive, wherein the first computer system and the second computer system are included in the plurality of computer systems;
the first computer system determining the tape drive is connected to the first computer system based on the identifier of the tape drive;
the first computer system extracting the identifier of the source port from the received first message;
the first computer system determining the extracted identifier of the source port does not identify any host bus adapter installed in the first computer system;
based on the step of determining the extracted identifier of the source port does not identify any host bus adapter installed in the first computer system, the first computer system determining the indication of the first change indicates a first command from the second computer system that reserves the tape drive for the second computer system; and
responsive to the step of determining the indication of the first change indicates the first command, the first computer system setting the tape drive offline in a first application executing in the first computer system,wherein the step of receiving the first message includes receiving a World Wide Port Name (WWPN) as the identifier of the source port included in the first message, wherein the WWPN identifies a port of the second computer system, wherein the step of determining the identifier of the source port does not identify any host bus adapter installed in the first computer system includes determining the WWPN does not match any WWPN that identifies any host bus adapter installed in the first computer system, and wherein the step of determining the indication of the first change indicates the first command from the second computer system that reserves the tape drive for the second computer system is further based on the step of determining the WWPN does not match any WWPN that identifies any host bus adapter installed in the first computer system.
1 Assignment
0 Petitions
Accused Products
Abstract
An approach for automatically sharing a tape drive in a heterogeneous computing environment that includes a first computer and second computer is presented. The first computer receives a message that includes a shared tape drive identifier, a source port identifier of the second computer, and a reservation status change for the tape drive. Based on the tape drive identifier, the first computer determines that the tape drive is connected to the first computer. The source port identifier is determined to not identify any host bus adapter installed in the first computer. In response to the first computer determining that the reservation status change indicates a reservation or a release of the tape drive for the second computer, the first computer sets the tape drive offline or online, respectively, in an application executing in the first computer.
-
Citations
14 Claims
-
1. A first computer system comprising:
-
a central processing unit (CPU); a memory coupled to the CPU; a computer-readable, tangible storage device coupled to the CPU, the storage device containing instructions that when carried out by the CPU via the memory implement a method of automatically sharing a tape drive in a heterogeneous computing environment, the method comprising the steps of; the first computer system receiving a first message that includes an identifier of a tape drive shared among a plurality of computer systems in the heterogeneous computing environment, an identifier of a source port of a second computer system, and an indication of a first change in a reservation status of the tape drive, wherein the first computer system and the second computer system are included in the plurality of computer systems; the first computer system determining the tape drive is connected to the first computer system based on the identifier of the tape drive; the first computer system extracting the identifier of the source port from the received first message; the first computer system determining the extracted identifier of the source port does not identify any host bus adapter installed in the first computer system; based on the step of determining the extracted identifier of the source port does not identify any host bus adapter installed in the first computer system, the first computer system determining the indication of the first change indicates a first command from the second computer system that reserves the tape drive for the second computer system; and responsive to the step of determining the indication of the first change indicates the first command, the first computer system setting the tape drive offline in a first application executing in the first computer system, wherein the step of receiving the first message includes receiving a World Wide Port Name (WWPN) as the identifier of the source port included in the first message, wherein the WWPN identifies a port of the second computer system, wherein the step of determining the identifier of the source port does not identify any host bus adapter installed in the first computer system includes determining the WWPN does not match any WWPN that identifies any host bus adapter installed in the first computer system, and wherein the step of determining the indication of the first change indicates the first command from the second computer system that reserves the tape drive for the second computer system is further based on the step of determining the WWPN does not match any WWPN that identifies any host bus adapter installed in the first computer system. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computing system comprising:
-
a central processing unit (CPU); a memory coupled to the CPU; a computer-readable, tangible storage device coupled to the CPU, the storage device containing instructions of a library reservation agent that when executed by the CPU via the memory implement a method of automatically sharing a tape drive in a heterogeneous computing environment, the method comprising the steps of; by executing the library reservation agent, the computing system receiving a first message from the tape drive based on a command received by the tape drive from a first computer system to reserve the tape drive for the first computer system, wherein the library reservation agent is a software agent executing in a tape library controller coupled via a network to a plurality of computer systems in the heterogeneous environment, wherein the first computer system is included in the plurality of computer systems, and wherein each computer system of the plurality of computer systems executes a respective drive-sharing agent included in a plurality of drive-sharing agents; the computing system determining an identifier of the tape drive from the received first message; the computing system determining the tape drive is shared among the plurality of computer systems, wherein the step of determining the tape drive is shared is based on the identifier of the tape drive; the computing system determining an identifier of a source port of the first computer system of the plurality of computer systems from the received first message; the computing system sending a plurality of messages to respective drive-sharing agents of the plurality of drive-sharing agents executing in the plurality of computer systems, wherein each message includes the identifier of the tape drive, the identifier of the source port, and an indication of reserving the tape drive for the first computer system; and the computing system receiving a plurality of confirmations from the plurality of drive-sharing agents, the confirmations confirming receipt of the plurality of messages by the plurality of drive-sharing agents, wherein a first result of the step of sending the plurality of messages and the step of receiving the plurality of confirmations is an offline state of the tape drive being set in applications and by drive-sharing agents of the plurality of drive-sharing agents executing in computer systems of the plurality of computer systems that do not include the first computer system, wherein the step of sending the plurality of messages includes the step of sending a World Wide Port Name (WWPN) as the identifier of the source port included in a second message included in the plurality of messages, wherein a second result of the step of sending the plurality of messages includes a first determination that the tape drive is connected to a second computer system included in the plurality of computer systems based on the identifier of the tape drive, wherein a third result of the step of sending the plurality of messages includes an extraction of the identifier of the source port from the second message, wherein a fourth result of the step of sending the plurality of messages includes a second determination by the second computer system that the WWPN does not match any WWPN that identifies any host bus adapter installed in the second computer system, and wherein a fifth result of the step of sending the plurality of messages includes a third determination that the indication of reserving the tape drive for the first computer system indicates the command received by the tape drive from the first computer system to reserve the tape drive for the first computer system is based on the second determination that the WWPN does not match any WWPN that identifies any host bus adapter installed in the second computer system. - View Dependent Claims (8, 9)
-
-
10. A computer program product, comprising:
-
a computer-readable, tangible storage device; and a computer-readable program code stored on the computer-readable, tangible storage device, the computer-readable program code containing instructions of a library reservation agent configured to be executed by a processor of a computing system to implement a method of automatically sharing a tape drive in a heterogeneous computing environment, the method comprising the steps of; by executing the library reservation agent, the computing system receiving a first message from the tape drive based on a command received by the tape drive from a first computer system to reserve the tape drive for the first computer system, wherein the library reservation agent is a software agent executing in a tape library controller coupled via a network to a plurality of computer systems in the heterogeneous environment, wherein the first computer system is included in the plurality of computer systems, and wherein each computer system of the plurality of computer systems executes a respective drive-sharing agent included in a plurality of drive-sharing agents; the computing system determining an identifier of the tape drive from the received first message; the computing system determining the tape drive is shared among the plurality of computer systems, wherein the step of determining the tape drive is shared is based on the identifier of the tape drive; the computing system determining an identifier of a source port of the first computer system of the plurality of computer systems from the received first message; the computing system sending a plurality of messages to respective drive-sharing agents of the plurality of drive-sharing agents executing in the plurality of computer systems, wherein each message includes the identifier of the tape drive, the identifier of the source port, and an indication of reserving the tape drive for the first computer system; and the computing system receiving a plurality of confirmations from the plurality of drive-sharing agents, the confirmations confirming receipt of the plurality of messages by the plurality of drive-sharing agents, wherein a first result of the step of sending the plurality of messages and the step of receiving the plurality of confirmations is an offline state of the tape drive being set in applications and by drive-sharing agents of the plurality of drive-sharing agents executing in computer systems of the plurality of computer systems that do not include the first computer system, wherein the step of sending the plurality of messages includes the step of sending a World Wide Port Name (WWPN) as the identifier of the source port included in a second message included in the plurality of messages, wherein a second result of the step of sending the plurality of messages includes a first determination that the tape drive is connected to a second computer system included in the plurality of computer systems based on the identifier of the tape drive, wherein a third result of the step of sending the plurality of messages includes an extraction of the identifier of the source port from the second message, wherein a fourth result of the step of sending the plurality of messages includes a second determination by the second computer system that the WWPN does not match any WWPN that identifies any host bus adapter installed in the second computer system, and wherein a fifth result of the step of sending the plurality of messages includes a third determination that the indication of reserving the tape drive for the first computer system indicates the command received by the tape drive from the first computer system to reserve the tape drive for the first computer system is based on the second determination that the WWPN does not match any WWPN that identifies any host bus adapter installed in the second computer system. - View Dependent Claims (11, 12)
-
-
13. A computing system comprising:
-
a central processing unit (CPU); a memory coupled to the CPU; a computer-readable, tangible storage device coupled to the CPU, the storage device containing instructions of a reservation-sharing agent that when executed by the CPU via the memory implement a method of automatically sharing a tape drive in a heterogeneous computing environment, the method comprising the steps of; by executing the reservation-sharing agent, the computing system determining a change in a reservation status of a tape drive based on a command received by the tape drive, wherein the reservation-sharing agent is a software agent executing in a tape library controller coupled via a network to a plurality of computer systems in the heterogeneous environment; the computing system determining an identifier of the tape drive; the computing system determining the tape drive is shared among the plurality of computer systems, wherein the step of determining the tape drive is shared is based on the identifier of the tape drive; the computing system determining an identifier of a source port of a first computer system of the plurality of computer systems, wherein the command is received by the tape drive from the first computer system; the computing system determining the tape drive is connected to a second computer system of the plurality of computer systems based on the identifier of the tape drive; the computing system determining the identifier of the source port does not identify any host bus adapter installed in the second computer system; based on the step of determining the identifier of the source port does not identify any host bus adapter installed in the second computer system, the computing system determining the change in the reservation status includes a reservation of the tape drive for the first computer system by the command; and responsive to the step of determining the change in the reservation status includes the reservation of the tape drive, the computing system setting the tape drive offline in an application executing in the second computer system, wherein the step of determining the identifier of the source port of the first computer system includes the step of determining a World Wide Port Name (WWPN) as the identifier of the source port, wherein the step of determining the identifier of the source port does not identify any host bus adapter installed in the second computer system includes the step of determining the WWPN does not match any WWPN that identifies any host bus adapter installed in the second computer system, and wherein the step of determining the change in the reservation status includes the reservation of the tape drive for the first computer system by the command is based on the step of determining the WWPN does not match any WWPN that identifies any host bus adapter installed in the second computer system.
-
-
14. A computer program product, comprising:
-
a computer-readable, tangible storage device; and a computer-readable program code stored on the computer-readable, tangible storage device, the computer-readable program code containing instructions of a reservation-sharing agent configured to be executed by a processor of a computing system to implement a method of automatically sharing a tape drive in a heterogeneous computing environment, the method comprising the steps of; by executing the reservation-sharing agent, the computing system determining a change in a reservation status of a tape drive based on a command received by the tape drive, wherein the reservation-sharing agent is a software agent executing in a tape library controller coupled via a network to a plurality of computer systems in the heterogeneous environment; the computing system determining an identifier of the tape drive; the computing system determining the tape drive is shared among the plurality of computer systems, wherein the step of determining the tape drive is shared is based on the identifier of the tape drive; the computing system determining an identifier of a source port of a first computer system of the plurality of computer systems, wherein the command is received by the tape drive from the first computer system; the computing system determining the tape drive is connected to a second computer system of the plurality of computer systems based on the identifier of the tape drive; the computing system determining the identifier of the source port does not identify any host bus adapter installed in the second computer system; based on the step of determining the identifier of the source port does not identify any host bus adapter installed in the second computer system, the computing system determining the change in the reservation status includes a reservation of the tape drive for the first computer system by the command; and responsive to the step of determining the change in the reservation status includes the reservation of the tape drive, the computing system setting the tape drive offline in an application executing in the second computer system, wherein the step of determining the identifier of the source port of the first computer system includes the step of determining a World Wide Port Name (WWPN) as the identifier of the source port, wherein the step of determining the identifier of the source port does not identify any host bus adapter installed in the second computer system includes the step of determining the WWPN does not match any WWPN that identifies any host bus adapter installed in the second computer system, and wherein the step of determining the change in the reservation status includes the reservation of the tape drive for the first computer system by the command is based on the step of determining the WWPN does not match any WWPN that identifies any host bus adapter installed in the second computer system.
-
Specification