Automated tape drive sharing in a heterogeneous server and application environment
First Claim
1. A computer-implemented method of automatically sharing a tape drive in a heterogeneous computing environment, said method comprising executing program code by a processor of a first computer system, said program code stored in a computer-readable storage medium, wherein said executing program code includes:
- said first computer system receiving a first message that includes an identifier of a tape drive shared among a plurality of computer systems in said 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 said tape drive, wherein said first computer system and said second computer system are included in said plurality of computer systems;
said first computer system determining said tape drive is connected to said first computer system based on said identifier of said tape drive;
said first computer system extracting said identifier of said source port from said received first message;
said first computer system determining said extracted identifier of said source port does not identify any host bus adapter installed in said first computer system;
based on said determining said extracted identifier of said source port does not identify any host bus adapter installed in said first computer system, said first computer system determining said indication of said first change indicates a first command from said second computer system that reserves said tape drive for said second computer system; and
responsive to said determining said indication of said first change indicates said first command, said first computer system setting said tape drive offline in a first application executing in said first computer system,wherein said receiving said first message includes receiving a World Wide Port Name (WWPN) as the identifier of said source port included in said first message, wherein said WWPN identifies a port of said second computer system, wherein said determining said identifier of said source port does not identify any host bus adapter installed in said first computer system includes determining said WWPN does not match any WWPN that identifies any host bus adapter installed in said first computer system, and wherein said determining said indication of said first change indicates said first command from said second computer system that reserves said tape drive for said second computer system is further based on said determining said WWPN does not match any WWPN that identifies any host bus adapter installed in said first computer system.
2 Assignments
0 Petitions
Accused Products
Abstract
A method and system for automatically sharing a tape drive in a heterogeneous computing environment that includes a first computer and second computer. 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.
35 Citations
12 Claims
-
1. A computer-implemented method of automatically sharing a tape drive in a heterogeneous computing environment, said method comprising executing program code by a processor of a first computer system, said program code stored in a computer-readable storage medium, wherein said executing program code includes:
-
said first computer system receiving a first message that includes an identifier of a tape drive shared among a plurality of computer systems in said 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 said tape drive, wherein said first computer system and said second computer system are included in said plurality of computer systems; said first computer system determining said tape drive is connected to said first computer system based on said identifier of said tape drive; said first computer system extracting said identifier of said source port from said received first message; said first computer system determining said extracted identifier of said source port does not identify any host bus adapter installed in said first computer system; based on said determining said extracted identifier of said source port does not identify any host bus adapter installed in said first computer system, said first computer system determining said indication of said first change indicates a first command from said second computer system that reserves said tape drive for said second computer system; and responsive to said determining said indication of said first change indicates said first command, said first computer system setting said tape drive offline in a first application executing in said first computer system, wherein said receiving said first message includes receiving a World Wide Port Name (WWPN) as the identifier of said source port included in said first message, wherein said WWPN identifies a port of said second computer system, wherein said determining said identifier of said source port does not identify any host bus adapter installed in said first computer system includes determining said WWPN does not match any WWPN that identifies any host bus adapter installed in said first computer system, and wherein said determining said indication of said first change indicates said first command from said second computer system that reserves said tape drive for said second computer system is further based on said determining said WWPN does not match any WWPN that identifies any host bus adapter installed in said first computer system. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. 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, said computer-readable program code containing instructions configured to be executed by a processor of a first computer system to implement a method of automatically sharing a tape drive in a heterogeneous computing environment, said method comprising; said first computer system receiving a first message that includes an identifier of a tape drive shared among a plurality of computer systems in said 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 said tape drive, wherein said first computer system and said second computer system are included in said plurality of computer systems; said first computer system determining said tape drive is connected to said first computer system based on said identifier of said tape drive; said first computer system extracting said identifier of said source port from said received first message; said first computer system determining said extracted identifier of said source port does not identify any host bus adapter installed in said first computer system; based on said determining said extracted identifier of said source port does not identify any host bus adapter installed in said first computer system, said first computer system determining said indication of said first change indicates a first command from said second computer system that reserves said tape drive for said second computer system; and responsive to said determining said indication of said first change indicates said first command, said first computer system setting said tape drive offline in a first application executing in said first computer system, wherein said receiving said first message includes receiving a World Wide Port Name (WWPN) as the identifier of said source port included in said first message, wherein said WWPN identifies a port of said second computer system, wherein said determining said identifier of said source port does not identify any host bus adapter installed in said first computer system includes determining said WWPN does not match any WWPN that identifies any host bus adapter installed in said first computer system, and wherein said determining said indication of said first change indicates said first command from said second computer system that reserves said tape drive for said second computer system is further based on said determining said WWPN does not match any WWPN that identifies any host bus adapter installed in said first computer system. - View Dependent Claims (8)
-
-
9. A computer-implemented method of automatically sharing a tape drive in a heterogeneous computing environment, said method comprising executing program code of a library reservation agent by a processor of a computing unit, said program code stored in a computer-readable storage medium, wherein said executing program code includes:
-
said library reservation agent receiving a first message from said tape drive based on a command received by said tape drive from a first computer system to reserve said tape drive for said first computer system, wherein said library reservation agent is a software agent executing in a tape library controller coupled via a network to a plurality of computer systems in said heterogeneous environment, wherein said first computer system is included in said plurality of computer systems, and wherein each computer system of said plurality of computer systems executes a respective drive-sharing agent included in a plurality of drive-sharing agents; said library reservation agent determining an identifier of said tape drive from said received first message; said library reservation agent determining said tape drive is shared among said plurality of computer systems, wherein said determining said tape drive is shared is based on said identifier of said tape drive; said library reservation agent determining an identifier of a source port of said first computer system of said plurality of computer systems from said received first message; said library reservation agent sending a plurality of messages to respective drive-sharing agents of said plurality of drive-sharing agents executing in said plurality of computer systems, wherein each message includes said identifier of said tape drive, said identifier of said source port, and an indication of reserving said tape drive for said first computer system; and said library reservation agent receiving a plurality of confirmations from said plurality of drive-sharing agents, said confirmations confirming receipt of said plurality of messages by said plurality of drive-sharing agents, wherein a first result of said sending said plurality of messages and said receiving said plurality of confirmations is an offline state of said tape drive being set in applications and by drive-sharing agents of said plurality of drive-sharing agents executing in computer systems of said plurality of computer systems that do not include said first computer system, wherein said sending said plurality of messages includes sending a World Wide Port Name (WWPN) as said identifier of said source port included in a second message included in said plurality of messages, wherein a second result of said sending said plurality of messages includes a first determination that said tape drive is connected to a second computer system included in said plurality of computer systems based on said identifier of said tape drive, wherein a third result of said sending said plurality of messages includes an extraction of said identifier of said source port from said second message, wherein a fourth result of said sending said plurality of messages includes a second determination by said second computer system that said WWPN does not match any WWPN that identifies any host bus adapter installed in said second computer system, and wherein a fifth result of said sending said plurality of messages includes a third determination that said indication of reserving said tape drive for said first computer system indicates said command received by said tape drive from said first computer system to reserve said tape drive for said first computer system is based on said second determination that said WWPN does not match any WWPN that identifies any host bus adapter installed in said second computer system. - View Dependent Claims (10, 11)
-
-
12. A computer-implemented method of automatically sharing a tape drive in a heterogeneous computing environment, said method comprising executing program code of a reservation-sharing agent by a processor of a computing unit, said program code stored in a computer-readable storage medium, wherein said executing program code includes:
-
said reservation-sharing agent determining a change in a reservation status of a tape drive based on a command received by said tape drive, wherein said reservation-sharing agent is a software agent executing in a tape library controller coupled via a network to a plurality of computer systems in said heterogeneous environment; said reservation-sharing agent determining an identifier of said tape drive; said reservation-sharing agent determining said tape drive is shared among said plurality of computer systems, wherein said determining said tape drive is shared is based on said identifier of said tape drive; said reservation-sharing agent determining an identifier of a source port of a first computer system of said plurality of computer systems, wherein said command is received by said tape drive from said first computer system; said reservation-sharing agent determining said tape drive is connected to a second computer system of said plurality of computer systems based on said identifier of said tape drive; said reservation-sharing agent determining said identifier of said source port does not identify any host bus adapter installed in said second computer system; based on said determining said identifier of said source port does not identify any host bus adapter installed in said second computer system, said reservation-sharing agent determining said change in said reservation status includes a reservation of said tape drive for said first computer system by said command; and responsive to said determining said change in said reservation status includes said reservation of said tape drive, said reservation-sharing agent setting said tape drive offline in an application executing in said second computer system, wherein said determining said identifier of said source port of said first computer system includes determining a World Wide Port Name (WWPN) as said identifier of said source port, wherein said determining said identifier of said source port does not identify any host bus adapter installed in said second computer system includes determining said WWPN does not match any WWPN that identifies any host bus adapter installed in said second computer system, and wherein said determining said change in said reservation status includes said reservation of said tape drive for said first computer system by said command is based on said determining said WWPN does not match any WWPN that identifies any host bus adapter installed in said second computer system.
-
Specification