Bug 701589

Summary: Can not found the disk after hotplug it to the RHEL Fully Virtualized guest via attach-device
Product: Red Hat Enterprise Linux 5 Reporter: wangyimiao <yimwang>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 5.7CC: ajia, dallan, dyuan, llim, rwu, yoyzhang
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-15 19:45:51 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 wangyimiao 2011-05-03 09:56:44 UTC
Description of problem:
Can not found the hotplug disk after disk hotplug to the RHEL6.0 guest. 

Version-Release number of selected component (if applicable):
libvirt-0.8.2-18.el5
kvm-83-231.el5
kernel-xen-2.6.18-259.el5

How reproducible:
5/5

Steps to Reproduce:

1. Defined and started a RHEL6.0 domian.

# virsh start http_test
Domain http_test started

2.Create a image.

# qemu-img create -f raw /var/lib/xen/images/foo.img 10M

3. Create a disk desription file as following XML:
# cat disk.xml

   <disk type='file' device='disk'>
      <driver name='tap' type='aio'/>
         <source file='/var/lib/xen/images/foo.img'/>
      <target dev='xvdb' bus='xen'/>
    </disk>

4. # virsh attach-device http_test disk.xml
Device attached successfully


5. Run command 'fdisk -l' in guest
# fdisk -l
Disk /dev/sda: 6442 MB, 6442450944 bytes
255 heads, 63 sectors/track, 783 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00057825

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64         784     5778432   8e  Linux LVM
Partition 2 does not end on cylinder boundary.

Disk /dev/dm-0: 3800 MB, 3800039424 bytes
255 heads, 63 sectors/track, 461 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 2113 MB, 2113929216 bytes
255 heads, 63 sectors/track, 257 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table


Actual results:
Can not found the hotplug disk "/dev/xvdb" after disk hotplug to the RHEL6.0 Fully Virtualized guest.

Expected results:
Hotplug disk "/dev/xvdb" should be shown in step5.

Comment 1 wangyimiao 2011-05-13 07:38:42 UTC
That issue can be reproduce in rhel5.6 host.
libvirt-0.8.2-15.el5
kernel-xen-2.6.18-238.el5
xen-3.0.3-120.el5

Comment 2 wangyimiao 2011-05-13 08:29:36 UTC
Sorry for wrong version build verison,Clarify the version build:
Version-Release number of selected component (if applicable):
libvirt-0.8.2-18.el5
xen-3.0.3-130.el5
kernel-xen-2.6.18-259.el5

Comment 3 wangyimiao 2011-05-13 08:47:51 UTC
And retest it in RHEL5.5 domain guest again.It seems fine,hotplug disk "/dev/xvdb" can be shown in 'fdisk -l' command.

Run command 'fdisk -l' in guest
# fdisk -l
Disk /dev/hda: 4194 MB, 4194304000 bytes
255 heads, 63 sectors/track, 509 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      104391   83  Linux
/dev/hda2              14         509     3984120   8e  Linux LVM

Disk /dev/xvdb: 10 MB, 10485760 bytes
255 heads, 63 sectors/track, 1 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/xvdb doesn't contain a valid partition table

Comment 4 RHEL Program Management 2011-06-20 22:44:33 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 6 RHEL Program Management 2011-08-15 19:45:51 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.