Bug 679032 - KVM storage hot-plug is unable to use the device nodes of previously detached disks.
Summary: KVM storage hot-plug is unable to use the device nodes of previously detached...
Keywords:
Status: CLOSED DUPLICATE of bug 692767
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: libvirt
Version: 5.6
Hardware: All
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Daniel Veillard
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-21 11:02 UTC by Muhammad Riyas vk
Modified: 2018-11-14 14:40 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-16 02:07:27 UTC
Target Upstream Version:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.