Methods and systems to hot-swap a virtual machine
First Claim
1. A method comprising:
- monitoring, by executing an instruction with a processor, an operational status of a first virtual machine operating as a primary server and an operational status of a second virtual machine operating as a stand-by server, the first and second virtual machines being implemented on a same host processing system;
based on the monitored operational status of the first and second virtual machines, performing, by executing an instruction with the processor, a hot-swap to cause the second virtual machine to operate as the primary server and the first virtual machine to operate as the stand-by server, the hot-swap being performed by changing a file system access mode of the first virtual machine from a read/write access of a first file system to a read-only access of the first file system and changing a file system access mode of the second virtual machine from a read-only access of a second file system to a read/write access of the second file system, the first and second file systems having the same information, the secondary server being started prior to the hot-swap being initiated, and the hot-swap being performed without restarting the secondary server; and
restarting the first virtual machine.
2 Assignments
0 Petitions
Accused Products
Abstract
Methods and systems to limit the duration of a service interruption caused by a failed middleware application server are disclosed. One example method and system includes monitoring the operational status of a first virtual machine operating as a primary server and the operational status of a second virtual machine operating as a stand-by server and, based on the monitored operational status of the first and second virtual machines, performing a hot-swap to cause the second virtual machine to operate as the primary server and the first virtual machine to operate as the stand-by server. The first and second virtual machines are implemented on a same host processing system. After the hot-swap, the first virtual machine is restarted. In some examples, the first virtual machine and the second virtual machine are implemented on a same host processing system. Performing the hot-swap can include causing the first virtual machine to be uncoupled from a network and causing the second virtual machine to be coupled to the network. In some examples, the method also includes causing copy of a first file system used by the primary server to be stored as a second file system for use by the stand-by server.
-
Citations
19 Claims
-
1. A method comprising:
-
monitoring, by executing an instruction with a processor, an operational status of a first virtual machine operating as a primary server and an operational status of a second virtual machine operating as a stand-by server, the first and second virtual machines being implemented on a same host processing system; based on the monitored operational status of the first and second virtual machines, performing, by executing an instruction with the processor, a hot-swap to cause the second virtual machine to operate as the primary server and the first virtual machine to operate as the stand-by server, the hot-swap being performed by changing a file system access mode of the first virtual machine from a read/write access of a first file system to a read-only access of the first file system and changing a file system access mode of the second virtual machine from a read-only access of a second file system to a read/write access of the second file system, the first and second file systems having the same information, the secondary server being started prior to the hot-swap being initiated, and the hot-swap being performed without restarting the secondary server; and restarting the first virtual machine. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A hot-swap tool comprising:
-
a monitor, implemented by a hardware processor, to generate a notification when a first virtual machine acting as a primary server is not operational; a configuration tool, implemented by the hardware processor, to respond to the notification by performing a hot-swap operation to cause a second virtual machine to operate as the primary server and the first virtual machine to operate as a stand-by server, the first and second virtual machines being implemented on a same host processing system, the hot-swap being performed by changing a file system access mode of the primary server when implemented by the first virtual machine from a read/write access of a first file system to a read-only access of the first file system and changing a file system access mode of the stand-by server when implemented by the second virtual machine from a read-only access of a second file system to a read/write access of the second file system, the first and second file systems having the same information, the stand-by server being started prior to the hot-swap operation being initiated, and the hot-swap operation being performed without restarting the stand-by server; and a restart tool to cause the first virtual machine to be restarted after the hot-swap operation. - View Dependent Claims (7, 8, 9)
-
-
10. A hot-swap tool comprising:
-
a monitor, implemented by a hardware processor, to generate a notification when a first virtual machine acting as a primary server is not operational; a configuration tool, implemented by the hardware processor, to respond to the notification by performing a hot-swap operation to cause a second virtual machine to operate as the primary server and the first virtual machine to operate as a stand-by server, the first and second virtual machines being implemented on a same host processing system, the hot-swap being performed by changing a file system access mode of the primary server when implemented by the first virtual machine from a read/write access of a first file system to a read-only access of the first file system and changing a file system access mode of the stand-by server when implemented by the second virtual machine from a read-only access of a second file system to a read/write access of the second file system, the first and second file systems having the same information, the stand-by server being started prior to the hot-swap operation being initiated, and the hot-swap operation being performed without restarting the stand-by server; a restart tool to cause the first virtual machine to be restarted after the hot-swap operation; and a snapshot generator to generate a snapshot of the first file system associated with the primary server, the snapshot to be used to construct an up-to-date version of the first file system, and the up-to-date version of the first file system to be stored as the second file system in a virtual machine disk used by the stand-by server.
-
-
11. A method comprising:
-
monitoring, by executing an instruction with a processor, an operational status of a first virtual machine operating as a primary server and an operational status of a second virtual machine operating as a stand-by server, the first and second virtual machines being implemented on a same host processing system; generating a snapshot of a first file system associated with the primary server, the snapshot to be used to construct an up-to-date version of the first file system, and the up-to-date version of the first file system to be stored as the second file system in a virtual machine disk used by the stand-by server; based on the monitored operational status of the primary server and the stand-by server, performing, by executing an instruction with the processor, a hot-swap to cause the second virtual machine to operate as the primary server and the first virtual machine to operate as the stand-by server, the hot-swap being performed by changing a file system access mode of the first virtual machine from a read/write access of a first file system to a read-only access of the first file system and changing a file system access mode of the second virtual machine from a read-only access of a second file system to a read/write access of the second file system, the first and second file systems having the same information, the secondary server being started prior to the hot-swap being initiated, and the hot-swap being performed without restarting the secondary server; and restarting the first virtual machine.
-
-
12. A tangible machine readable non-transitory storage medium comprising instructions that, when executed, cause a machine to at least:
-
start a first virtual machine operating as a primary server and a second virtual machine operating as a stand-by server, the first and second virtual machines being implemented on a same host processing system; generate a snapshot of a first file system associated with the primary server, the snapshot to be used to construct an up-to-date version of the first file system, and the up-to-date version of the first file system to be stored as a second file system in a virtual machine disk used by the stand-by server; monitor operational status of the primary server and operational status of the stand\-by server; based on the monitored operational status of the primary server and operational status of the stand-by server, and without restarting the stand-by server; change a file system access mode of the primary server when implemented by the first virtual machine from a read/write access of the first file system to a read-only access of the first file system, change a file system access mode of the stand-by server when implemented by the second virtual machine from a read-only access of the second file system to a read/write access of the second file system to cause the second virtual machine to act as the primary server, the first and second file systems having the same information; and restart the first virtual machine to act as the stand-by server.
-
-
13. A tangible machine readable non-transitory storage medium comprising instructions that, when executed, cause a machine to at least:
-
start a first virtual machine operating as a primary server and a second virtual machine operating as a stand-by server, the first and second virtual machines being implemented on a same host processing system; monitor operational status of the primary server and operational status of the stand-by server; based on the monitored operational status of the primary server and the stand-by server, and without restarting the stand-by server; change a file system access mode of the primary server when implemented by the first virtual machine from a read/write access of a first file system to a read-only access of the first file system, change a file system access mode of the stand-by server when implemented by the second virtual machine from a read-only access of a second file system to a read/write access of the second file system to cause the second virtual machine to act as the primary server, the first and second file systems having the same information; and restart the first virtual machine to act as the stand-by server. - View Dependent Claims (14, 15, 16, 17, 18, 19)
-
Specification