Bug 395611 - online attaching of a block-device fails
Summary: online attaching of a block-device fails
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: xen
Version: 5.0
Hardware: All
OS: Linux
low
low
Target Milestone: ---
: ---
Assignee: Daniel Berrangé
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-11-22 12:39 UTC by Thorsten Scherf
Modified: 2009-12-14 21:16 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-06-10 14:08:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Thorsten Scherf 2007-11-22 12:39:34 UTC
Description of problem:
dd if=/dev/zero of=shared.img bs=1M count=500
xm block-attach 1

[root@station100 images]# xm block-list 1
Vdev  BE handle state evt-ch ring-ref BE-path
51712    0    0     4      8      8     /local/domain/0/backend/tap/1/51712  
51728    0    0     3      10     571 
/local/domain/0/backend/vbd/1/51728/var/lib/xen/images/shared.img xvdb w

fdisk -l in the guest doesn't show up the new block device.


Version-Release number of selected component (if applicable):
[root@station100 images]# rpm -q xen
xen-3.0.3-41.el5
[root@station100 images]# rpm -q kernel-xen
kernel-xen-2.6.18-53.el5
[root@station100 images]# rpm -q libvirt
libvirt-0.2.3-9.el5


How reproducible:


Steps to Reproduce:
1.
2. see above
3.
  
Actual results:
no newb lock device visible in the geust

Expected results:
new block device visible :)

Additional info:

Comment 1 Thorsten Scherf 2007-11-22 12:41:12 UTC
attaching command was:
[root@station100 images]# xm block-attach 1 /var/lib/xen/images/shared.img xvdb w



Comment 2 Thorsten Scherf 2008-06-10 12:03:24 UTC
any updates on this?

Comment 4 Chris Lalancette 2008-06-10 13:37:52 UTC
Hm, I believe your block-attach syntax is wrong.

You need:

xm block-attach <domain> tap:aio:/var/lib/xen/images/shared.img /dev/xvdb w

Does that work?

Chris Lalancette

Comment 5 Thorsten Scherf 2008-06-10 14:03:40 UTC
yeah, that fixed it. thanks


Comment 6 Chris Lalancette 2008-06-10 14:08:55 UTC
OK, great.  Going to close as NOTABUG.

Chris Lalancette


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