Block volume mount synchronization to prevent data corruption
AssigneeInternational Business Machines Corporation
InventorsAkash V. Gunjal, Shaikh I. Ali, Sushma Korati
Life of this patent
Estimating the term…
Abstract
Block volume mount synchronization is provided. A call is received to mount a block volume upon initiation of container generation on the host computer. Metadata of the block volume is checked for host lock prior to mounting the block volume on the host computer. The mounting of the block volume is allowed only when the metadata indicates that prior host lock does not exist thereby restricting usage of the block volume to a single user preventing data corruption of the block volume.
Claims18
A computer-implemented method for block volume mount synchronization, the computer-implemented method comprising:
- receiving, by a host computer, a call to mount a block volume upon initiation of container generation on the host computer, wherein the host computer is included in a cluster of host computers in a cloud environment, each respective host computer in the cluster of host computers in the cloud environment includes a block volume driver that performs block volume mounting synchronization;
- checking, by the host computer, metadata of the block volume for host lock prior to mounting the block volume on the host computer;
- and
- allowing, by the host computer, the mounting of the block volume only when the metadata indicates that prior host lock does not exist thereby restricting usage of the block volume to a single user preventing data corruption of the block volume.
A host computer system for block volume mount synchronization, the host computer system comprising:
- a bus system;
- a storage device connected to the bus system, wherein the storage device stores program instructions;
- and
- a processor connected to the bus system, wherein the processor executes the program instructions to:
- receive a call to mount a block volume upon initiation of container generation on the host computer system, wherein the host computer is included in a cluster of host computers in a cloud environment, each respective host computer in the cluster of host computers in the cloud environment includes a block volume driver that performs block volume mounting synchronization;
- check metadata of the block volume for host lock prior to mounting the block volume on the host computer system;
- and
- allow the mounting of the block volume only when the metadata indicates that prior host lock does not exist thereby restricting usage of the block volume to a single user preventing data corruption of the block volume.
A computer program product for block volume mount synchronization, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a host computer to cause the host computer to perform a method comprising:
- receiving, by the host computer, a call to mount a block volume upon initiation of container generation on the host computer, wherein the host computer is included in a cluster of host computers in a cloud environment, each respective host computer in the cluster of host computers in the cloud environment includes a block volume driver that performs block volume mounting synchronization;
- checking, by the host computer, metadata of the block volume for host lock prior to mounting the block volume on the host computer;
- and
- allowing, by the host computer, the mounting of the block volume only when the metadata indicates that prior host lock does not exist thereby restricting usage of the block volume to a single user preventing data corruption of the block volume.
Dependencies are inferred from the claim text.