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

Hi

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

Perhaps, it seems that xm block-attach/detach can work. 
Does the specified file have the partition? (/vm1/template/tp.img)

Please attach to sdb if there is a partition.
dom0# xm block-attach dom6 file:/vm1/template/tp.img sdb w

It is recognized with dom1 as follows.(3 partitions)
dom1# cat /proc/diskstats
   8   16 sdb 78 353 927 632 8 1 18 4 0 360 636
   8   17 sdb1 173 346 9 18
   8   18 sdb2 185 185 0 0
   8   19 sdb3 47 188 0 0
dom1# mount /dev/sdb3 /mnt
dom1# ls /mnt
bin   dev  home  lost+found  misc  net  proc  sbin     srv  tmp  var
boot  etc  lib   media       mnt   opt  root  selinux  sys  usr      


However, if SCSI driver can work on dom1, it is not possible to attach to sdx.
It is because VBD overlaps with SCSI driver's majors number. 
In that case, please attach to xvda.
dom0# xm block-attach dom6 file:/vm1/template/tp.img xvda w
 
Best Regards,

--
Takanori Kasai

  reply	other threads:[~2007-02-01  9:03 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
2007-02-01  9:03             ` Kasai Takanori [this message]
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='1bdf01c745df$d016d7d0$dab2220a@VF03007L' \
    --to=kasai.takanori@jp.fujitsu.com \
    --cc=tianguanhua@ncic.ac.cn \
    --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.