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 21:22:32 +0800	[thread overview]
Message-ID: <45C1E998.4000305@ncic.ac.cn> (raw)
In-Reply-To: <1bdf01c745df$d016d7d0$dab2220a@VF03007L>

Thank you for reply

I boot the VM with a img file and the conf file is as follows

kernel = "/boot/vmlinuz-2.6.16-xenU"
memory = 256
name = "dom3"
vcpus = 1
vif = [ '' ]
disk = [ 'file:/vm/dom3.img,sda1,w' ]
netmask = "255.255.0.0"
gateway = "192.168.150.1"
hostname = "office2"
ip = "192.168.104.5"
root = "/dev/sda1 ro"
extra = "4"

and if I want to attach another img file to the VM ,then
the VM boot img must have many partitions such as sda ,sda1, sda2 when
the img file is made and
xm block-attach file:/vm1/template/another.img sda1 w
then in the VM ,mount the sda1,and access it
I am not for sure whether I understand your mean
or do you mean that the another img file with I want to attach to the VM
needs have many partitions?


could you make me clear about it

Thank you in advance







Kasai Takanori 写道:
> 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
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>

  reply	other threads:[~2007-02-01 13:22 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
2007-02-01 13:22               ` tgh [this message]
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=45C1E998.4000305@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.