Bug 679032

Summary: KVM storage hot-plug is unable to use the device nodes of previously detached disks.
Product: Red Hat Enterprise Linux 5 Reporter: Muhammad Riyas vk <mvattakk>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.6CC: dallan, eblake, jwest, virt-maint, xen-maint, yoyzhang
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 02:07:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Muhammad Riyas vk 2011-02-21 11:02:00 UTC
KVM storage hot-plug is unable to use the device nodes of previously detached disks.

Description of problem:

Even though hot-unplug removes the disk from the VM, next hot-plug is not able to utilize the same device node of the previously detached disk, but it hot-plugs the disk to a new device node.

Environment:
host:
RHEL 5.5
libvirt-0.8.2-15.el5_6.1.x86_64
kernel-2.6.18-238.1.1.el5

Guest:
RHEL 5.6
kernel-2.6.18-238.el5

How reproducible:

1. Load following modules to VM kernel

# modprobe acpiphp
# modprobe virtio_blk

2. Attach a virtio disk to the VM either from virt-manager or by using following command

#  virsh attach-disk --driver file RHEL5.6_64  /vm/KVM/test1.img vdb
Disk attached successfully

3. Detach this disk from the VM

# virsh detach-disk RHEL5.6_64  vdb
Disk detached successfully

4. Now try to attach the disk again as "vdb"
  
Actual results:

Newly attached target "vdb" appeares as "/dev/vde" inside VM.

Expected results:

It should present as "/dev/vdb" itself.

Additional info:

Even though VM identifies the disk as "/dev/vde", to detach the disk again we have to specify the target as "vdb"

# virsh detach-disk RHEL5.6_64  vdb
Disk detached successfully

this would detach /dev/vde from the VM.

Comment 1 RHEL Program Management 2011-06-20 22:33:35 UTC
This request was evaluated by Red Hat Product Management for inclusion in Red Hat Enterprise Linux 5.7 and Red Hat does not plan to fix this issue the currently developed update.

Contact your manager or support representative in case you need to escalate this bug.

Comment 3 Dave Allan 2011-08-16 02:07:27 UTC

*** This bug has been marked as a duplicate of bug 692767 ***