# US 11,119,801 B2 · Migrating virtual machines across commonly connected storage providers

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 11,119,801 B2
- Document ID: US11119801B2
- Status: Granted
- Kind: B2
- Application number: 16/368,114
- Filed: 2019-03-28
- Published: 2020-10-01
- Granted: 2021-09-14
- Earliest claimed: 2019-03-28
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Gerald McBrearty
- Web page: https://patentgrep.com/patent/US11119801B2

## CPC

- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0647: {Migration mechanisms}
- G06F 3/0664: {at device level, e.g. emulation of a storage device or system}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 2009/4557: {Distribution of virtual machine instances; Migration and load balancing}
- G06F 2009/45595: {Network integration; Enabling network access in virtual machine instances}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Method and system for deploying a virtual machine or attaching a storage volume to a virtual machine (VM). A process obtains information regarding fabrics attached to hosts and storage devices attached to the fabrics and determines whether a VM can be deployed to a host or whether storage volumes can be attached to a VM. In one case, determining that a fabric attached to a host can support a virtual SCSI volume causes migrating a VM to the host and attaching the virtual SCSI volume to the migrated VM. In another case, determining that the fabric attached to a host can support an NPIV volume causes migrating the VM to the host and attaching the NPIV volume to a virtual channel mapped to the fabric attached to the host. If the VM cannot be migrated, then the user is given an indication that the attachment is not possible.

## Claims

### Claim 1

A method for attaching a storage volume to a virtual machine, the method comprising:
determining from a plurality of storage providers that an attachment of the storage volume to the virtual machine is possible, wherein each storage provider includes a fabric and a portion of a plurality of storage devices connected to the fabric, the fabric of each storage provider being connected to one or more host computers of a plurality of host computers;
wherein determining that an attachment of the storage volume to the virtual machine is possible comprises interrogating the plurality of storage providers and finding at least one fabric that is connected to both a first host computer and a second host computer in the plurality of host computers;
upon determining that migration of the virtual machine is permitted, migrating the virtual machine from the first host computer on which the virtual machine is running to the second host computer to allow the attachment of the storage volume to the virtual machine; and
attaching the storage volume to the migrated virtual machine.

### Claim 2 (depends on 1)

The method of claim 1,
wherein the fabric of each storage provider includes a plurality of ports; and
wherein determining that the attachment of the storage volume to the virtual machine is possible is based on the plurality of ports of each storage provider.

### Claim 3 (depends on 1)

The method of claim 1, further comprising, upon determining that migration of the virtual machine is not permitted, sending an indication to a user interface that the storage volume cannot be attached to the virtual machine.

### Claim 4 (depends on 1)

The method of claim 1,
wherein the storage volume is attachable as a virtual SCSI (vSCSI) volume;
further comprising determining that the second host computer connects to the fabric of one of the plurality of storage providers that can accept the vSCSI volume.

### Claim 5 (depends on 1)

The method of claim 1,
wherein the storage volume is attachable as a virtualized N_Port ID (NPIV) volume;
further comprising, prior to migrating the virtual machine to the second host computer, determining that the second host computer connects to the fabric of one of the plurality of storage providers that can accept the NPIV volume, and allocating a new virtual channel mapped to the fabric that can accept the NPIV volume; and
wherein attaching the storage volume to the second host computer includes attaching the storage volume to the new virtual channel.

### Claim 6 (depends on 5)

The method of claim 5, wherein the new virtual channel conforms to a Fibre Channel.

### Claim 7

A system comprising
a plurality of storage devices;
a plurality of storage providers, each storage provider including a fabric and a portion of the plurality of storage devices; and
a plurality of host computers including a first host computer and a second host computer, each host computer running a virtual IO server and one or more client virtual machines, including a first virtual machine, the virtual IO server being responsive to a storage connectivity group (SCG) running on one host computer of the plurality of host computers, the fabric of each storage provider being connected to one or more host computers of the plurality of host computers, wherein the SCG is configured to attach a storage volume to the first virtual machine by:
determining from the plurality of storage providers that an attachment of the storage volume to the first virtual machine is possible by interrogating the plurality of storage providers and finding at least one fabric that is common connected to both the first host computer and the second host computer in the plurality of host computers;
upon determining that migration of the first virtual machine is permitted, migrating the first virtual machine to the second host computer to allow the attachment of the storage volume to the migrated first virtual machine; and
attaching the storage volume to the migrated first virtual machine.

### Claim 8 (depends on 7)

The system of claim 7,
wherein the fabric of each storage provider includes a plurality of ports; and
wherein determining that the attachment of the storage volume to the second host computer is possible is based on the plurality of ports of each storage provider.

### Claim 9 (depends on 7)

The system of claim 7,
wherein the SCG is further configured to, upon determining that migration of the first virtual machine is not permitted, send an indication to a user interface that the storage volume cannot be attached to the first virtual machine.

### Claim 10 (depends on 7)

The system of claim 7,
wherein the storage volume is attachable as a virtual SCSI (vSCSI) volume; and
wherein the SCG is further configured to determine that the second host computer connects to the fabric of one of the plurality of storage providers that can accept the vSCSI volume.

### Claim 11 (depends on 7)

The system of claim 7,
wherein the storage volume is attachable as a virtualized N_Port ID (NPIV) volume;
wherein the SCG is further configured to, prior to migrating the first virtual machine to the second host computer, determine that the second host computer connects to the fabric of one of the plurality of storage providers that can accept the NPIV volume, and allocate a new virtual channel mapped to the fabric of the storage provider that accepts the NPIV volume; and
wherein attaching the storage volume to the second host computer includes attaching the storage volume to the new virtual channel.

### Claim 12 (depends on 11)

The system of claim 11, wherein the new virtual channel conforms to a Fibre Channel.

### Claim 13

A computer program product for attaching a storage volume to a virtual machine, the computer program product comprising:
a computer-readable storage medium having computer-readable program code embodied therewith, the computer-readable program code executable by one or more computer processors to:
determine from a plurality of storage providers that an attachment of the storage volume to the virtual machine is possible, wherein each storage provider includes a fabric and a portion of a plurality of storage devices connected to the fabric, the fabric of each storage provider being connected to one or more host computers of a plurality of host computers;
wherein determining that an attachment of the storage volume to the virtual machine is possible comprises interrogating the plurality of storage provides and finding at least one fabric that is connected to both a first host computer and a second host computer in the plurality of host computers;
upon determining that migration of the virtual machine is permitted, migrate the virtual machine from the first host computer on which the virtual machine is running to the second host computer to allow the attachment of the storage volume to the virtual machine; and
attach the storage volume to the migrated virtual machine.

### Claim 14 (depends on 13)

The computer program product of claim 13,
wherein the fabric of each storage provider includes a plurality of ports; and
wherein the computer-readable program code executes to determine that the attachment of the storage volume to one host computer of a plurality of host computers is possible based on the plurality of ports of each storage provider.

### Claim 15 (depends on 13)

The computer program product of claim 13, wherein, upon determining that migration of the virtual machine is not permitted, the computer-readable code is further executable to send an indication to a user interface that the storage volume cannot be attached to the virtual machine.

### Claim 16 (depends on 14)

The computer program product of claim 14,
wherein the storage volume is attachable as a virtualized SCSI (vSCSI) volume; and
wherein the computer-readable code is further executable to determine that the second host computer connects to the fabric of one of the plurality of storage providers that can accept the vSCSI volume.

### Claim 17 (depends on 14)

The computer program product of claim 14,
wherein the storage volume is attachable as a virtualized N_Port ID (NPIV) volume;
wherein the computer-readable program code is further executable to, prior to migrating the virtual machine to the second host computer, determine that the second host computer connects to the fabric of one of the plurality of storage providers that can accept the NPIV volume, and allocate a new virtual channel mapped to the fabric that can accept the NPIV volume; and
wherein the computer-readable program code that is executable to attach the storage volume to the second host computer includes being executable to attach the storage volume to the new virtual channel.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the new virtual channel conforms to a Fibre Channel.
