# US 2017/0364378 A1 · Live storage domain decommissioning in a virtual environment

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

- Number: US 2017/0364378 A1
- Document ID: US20170364378A1
- Status: Published application
- Kind: A1
- Application number: 15/183,411
- Filed: 2016-06-15
- Published: 2017-12-21
- Earliest claimed: 2016-06-15
- Assignees: Red Hat Israel, Ltd.
- Applicants: Red Hat Israel, Ltd.
- Inventors: Maor Lipchuk; Daniel Erez
- Web page: https://patentgrep.com/patent/US20170364378A1

## CPC

- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 3/0617: {in relation to availability}
- G06F 3/0632: {by initialisation or re-initialisation of storage systems}
- G06F 3/0664: {at device level, e.g. emulation of a storage device or system}
- G06F 3/0683: {Plurality of storage devices}
- G06F 11/10: Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F 2009/45562: {Creating, deleting, cloning virtual machine instances}
- G06F 2009/45579: {I/O management, e.g. providing access to device drivers or storage}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Implementations of the disclosure provide for live storage domain decommissioning in a virtual environment. A method of the disclosure includes identifying, by a processing device, a storage domain to decommission from a storage system. The storage domain comprises a plurality of disk images. It is determined whether the disk images are associated with a virtual machine. Thereupon, the disk images are hot-unplugged from the virtual machine. Responsive to detecting that the disk images are unplugged from the virtual machine, the disk image is deleted from the storage domain and the storage domain is removed from the storage system.

## Claims

### Claim 1

A method comprising:
selecting, by a processing device, a storage domain to decommission from a storage system, wherein the storage domain comprises a plurality of disk images;
determining whether the disk images are associated with a virtual machine;
hot-unplugging the disk images from the virtual machine in view of a classification of the virtual machine;
responsive to detecting that the disk images are unplugged from the virtual machine, deleting the disk images from the storage domain; and
removing the storage domain from the storage system.

### Claim 2 (depends on 1)

The method of claim 1, wherein the hot-unplugging of the disk image further comprises:
receiving a failure alert indicating that the hot-unplugging of the disk images from the virtual machine failed; and
responsive to detecting the failure alert, providing a prompt to request that the virtual machine is shut down.

### Claim 3 (depends on 2)

The method of claim 2, wherein responsive to determining that the at least one disk image is associated with an active virtual machine, transmitting a request to continue or stop decommissioning of the storage domain.

### Claim 4 (depends on 3)

The method of claim 3, wherein the hot-unplugging of the disk images comprises executing an instruction to block the active virtual machine from writing data to the disk images.

### Claim 5 (depends on 1)

The method of claim 1, wherein the hot-unplugging of the disk images comprises un-mounting the disk images from the virtual machine.

### Claim 6 (depends on 1)

The method of claim 1, wherein the deleting of the disk images comprises deleting a reference to the disk images from metadata associated with the storage domain.

### Claim 7 (depends on 1)

The method of claim 1, wherein removing the storage domain comprises removing a reference to the storage domain from a database associated with the storage system.

### Claim 8

A system comprising:
a memory device; and
a processing device, operatively coupled to the memory device, to:
select a storage domain to decommission from a storage system, wherein the storage domain comprises a plurality of disk images;
determine whether the disk images are associated with a virtual machine;
hot-unplug the disk images from the virtual machine in view of a classification of the virtual machine;
responsive to detecting that the disk images are unplugged from the virtual machine, delete the disk images from the storage domain; and
remove the storage domain from the storage system.

### Claim 9 (depends on 8)

The system of claim 8, wherein to hot-unplug the disk image further comprises:
receive a failure alert indicating that the hot-unplugging of the disk images from the virtual machine failed; and
responsive to detecting the failure alert, provide a prompt to request that the virtual machine is shut down.

### Claim 10 (depends on 9)

The system of claim 9, wherein responsive to determining that the at least one disk image is associated with an active virtual machine, transmit a request to continue or stop decommissioning of the storage domain.

### Claim 11 (depends on 10)

The system of claim 10, wherein to hot-unplug the disk images, the processing device is further to execute an instruction to block the active virtual machine from writing data to the disk images.

### Claim 12 (depends on 8)

The system of claim 8, wherein to hot-unplug the disk images, the processing device is further to un-mount the disk images from the virtual machine.

### Claim 13 (depends on 8)

The system of claim 8, wherein to delete the disk images, the processing device is further to delete a reference to the disk images from metadata associated with the storage domain.

### Claim 14 (depends on 8)

The system of claim 8, wherein to remove the storage domain, the processing device is further to remove a reference to the storage domain from a database associated with the storage system.

### Claim 15

A non-transitory computer-readable storage medium comprising executable instructions that, when executed by a processing device, cause the processing device to:
identify, by the processing device, a plurality of disk images on a storage domain to be decommissioned from a storage system;
group disk images of the plurality of disk images into a first category and second category, wherein the first category comprises a first set of disk images that are associated with an active virtual machine and the second category comprises a second set of disk images that are associated with a non-active virtual machines;
hot-unplug a disk image of at least one of the grouped disk images from a virtual machine in view of a classification of the virtual machine;
responsive to detecting that the disk image is associated with the first category:
generate a prompt to request that the active virtual machine is shut down; and
delete the disk image from the storage domain.

### Claim 16 (depends on 15)

The non-transitory computer-readable storage medium claim 15, wherein responsive to detecting that the disk image is associated with the active virtual machine, transmit a request to continue or stop decommissioning of the storage domain.

### Claim 17 (depends on 15)

The non-transitory computer-readable storage medium claim 15, wherein the executable instructions further cause the processing device execute an instruction to block the active virtual machine from writing data to the disk image.

### Claim 18 (depends on 15)

The non-transitory computer-readable storage medium claim 15, wherein to hot-unplug the disk image, the executable instructions further cause the processing device to un-mount the disk image from the virtual machine.

### Claim 19 (depends on 15)

The non-transitory computer-readable storage medium claim 15, wherein to delete the disk image, the executable instructions further cause the processing device to delete an identifier reference to the disk image in metadata associated with the storage domain.

### Claim 20 (depends on 15)

The non-transitory computer-readable storage medium claim 15, wherein responsive to detecting that the grouped disk images are unplugged from the storage domain, the executable instructions further cause the processing device to remove the storage domain from the storage system.
