All of lore.kernel.org
 help / color / mirror / Atom feed
From: tgh <tianguanhua@ncic.ac.cn>
To: Kasai Takanori <kasai.takanori@jp.fujitsu.com>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] fix free of event channel in blkfront
Date: Thu, 01 Feb 2007 15:46:24 +0800	[thread overview]
Message-ID: <45C19AD0.2010608@ncic.ac.cn> (raw)
In-Reply-To: <198201c745b8$a2062840$dab2220a@VF03007L>

Thank you for reply
I try to do it under your guide as follows
# xm block-attach dom6 file:/vm1/template/tp.img sdb2 w
[root@genode012 vmcserver]# xm block-list dom1
Vdev BE handle state evt-ch ring-ref BE-path
2049 0 0 4 7 8 /local/domain/0/backend/vbd/102/2049
2050 0 0 4 8 815 /local/domain/0/backend/vbd/102/2050

and xm block-detach can work
but xm console dom1, then there is not the new disk in dom1
what is wrong with it?



that is the log in /var/log/xen/xend.log as follows:
[2007-02-01 14:08:47 xend 6460] DEBUG (DevController:110) DevController:
writing {'backend-id': '0', 'virtual-device': '2050''
, 'device-type': 'disk', 'state': '1', 'backend':
'/local/domain/0/backend/vbd/102/2050'} to /local/domain/102/device/vbd/2055
0.
[2007-02-01 14:08:47 xend 6460] DEBUG (DevController:112) DevController:
writing {'domain': 'dom1', 'frontend': '/local/domaii
n/102/device/vbd/2050', 'dev': 'sda2', 'state': '1', 'params':
'/vm1/template/tp1.img', 'mode': 'w', 'online': '1', 'frontendd
-id': '102', 'type': 'file'} to /local/domain/0/backend/vbd/102/2050.
[2007-02-01 14:08:47 xend 6460] DEBUG (DevController:149) Waiting for 2050.
[2007-02-01 14:08:47 xend 6460] DEBUG (DevController:464)
hotplugStatusCallback /local/domain/0/backend/vbd/102/2050/hotplug--
status.
[2007-02-01 14:08:47 xend 6460] DEBUG (DevController:464)
hotplugStatusCallback /local/domain/0/backend/vbd/102/2050/hotplug--
status.
[2007-02-01 14:08:47 xend 6460] DEBUG (DevController:478)
hotplugStatusCallback 1.


could you give me help
Thanks in advance










Kasai Takanori 写道:
> Hi
>
>> I am using the xen-3.0.3 on paravirtualVM
>> and I try to use xm block-attach dom6 /vm1/tp.img sda2 w
>> It seems to be ok, no error ,
>> but in the dom6 there is no sda2
>> and xm block-detach dom6 2050,it does not work
>> and xm block-list dom6 as follows ,
>
> The block-attach command seems to have failed because your use is wrong.
> # xm block-attach dom6 /vm1/tp.img sda2 w
> ^^^^^^^^^^^
> When backend device is a file, it is necessary to specify file.
> Moreover, when it is a physical device, it is necessary to specify phy.
>
> The example is as follows.
> # xm block-attach dom6 file:/vm1/tp.img sda2 w
> # xm block-attach dom6 phy:/dev/sdb sda2 w
>
> The block-detach command works correctly, if the block-attach command
> succeeds.
>
> Best Regards,
>
> -- 
> Takanori Kasai
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>

  reply	other threads:[~2007-02-01  7:46 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-26 12:01 [PATCH] fix free of event channel in blkfront Kasai Takanori
2006-12-29 17:54 ` Steven Hand
2007-01-09  0:33   ` Kasai Takanori
2007-01-09  6:18     ` Kasai Takanori
2007-01-09 10:48       ` Kasai Takanori
2007-02-01  2:56       ` tgh
2007-02-01  4:22         ` Kasai Takanori
2007-02-01  7:46           ` tgh [this message]
2007-02-01  9:03             ` Kasai Takanori
2007-02-01 13:22               ` tgh
2007-02-02  0:18                 ` Kasai Takanori
2007-02-02  1:42                   ` tgh
2007-02-02  3:39                     ` Kasai Takanori
2007-02-02  6:24                       ` tgh
2007-04-11  2:22                       ` tgh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45C19AD0.2010608@ncic.ac.cn \
    --to=tianguanhua@ncic.ac.cn \
    --cc=kasai.takanori@jp.fujitsu.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.