From mboxrd@z Thu Jan 1 00:00:00 1970 From: tgh Subject: Re: [PATCH] fix free of event channel in blkfront Date: Thu, 01 Feb 2007 15:46:24 +0800 Message-ID: <45C19AD0.2010608@ncic.ac.cn> References: <023701c73385$dbfd0e50$dab2220a@VF03007L><071e01c733b6$0845e010$dab2220a@VF03007L> <45C156EC.7020400@ncic.ac.cn> <198201c745b8$a2062840$dab2220a@VF03007L> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <198201c745b8$a2062840$dab2220a@VF03007L> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Kasai Takanori Cc: xen-devel List-Id: xen-devel@lists.xenproject.org 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 > >