From mboxrd@z Thu Jan 1 00:00:00 1970 From: tgh Subject: Re: [PATCH] fix free of event channel in blkfront Date: Fri, 02 Feb 2007 14:24:45 +0800 Message-ID: <45C2D92D.9030904@ncic.ac.cn> References: <023701c73385$dbfd0e50$dab2220a@VF03007L><071e01c733b6$0845e010$dab2220a@VF03007L> <45C156EC.7020400@ncic.ac.cn> <198201c745b8$a2062840$dab2220a@VF03007L> <45C19AD0.2010608@ncic.ac.cn> <1bdf01c745df$d016d7d0$dab2220a@VF03007L> <45C1E998.4000305@ncic.ac.cn><017601c7465f$abcb18c0$dab2220a@VF03007L> <45C29711.8030901@ncic.ac.cn> <021601c7467b$beb51a50$dab2220a@VF03007L> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <021601c7467b$beb51a50$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 your patient and detail guide It works as you said there is something wrong with the img file which I want to attach to the VM Now it works well Thanks again Kasai Takanori 写道: > Hi, > >> Now I boot the VM with the conf file >> ... >> disk = [ 'file:/vm/dom3.img,sda1,w' ] >> ... >> and then commit the commands as follows >> >> [root@genode012 vmcserver]# xm block-attach dom3 >> file:/vm1/template/tp1.img sda2 w >> [root@genode012 vmcserver]# xm block-list dom3 >> Vdev BE handle state evt-ch ring-ref BE-path >> 2049 0 0 4 6 8 /local/domain/0/backend/vbd/107/2049 >> 2050 0 0 4 8 534 /local/domain/0/backend/vbd/107/2050 >> [root@genode012 vmcserver]# xm console dom3 >> >> [root@office2 ~]# cat /proc/diskstats >> ... >> >> 8 2 sda2 0 0 0 0 0 0 0 0 0 0 0 > > The block-attach command seems to have succeeded. > It can be confirmed that sda2 is attached. > > It can confirm the content if the mount is done. > # mount /dev/sda2 /mnt > # ls /mnt > > >> [root@office2 ~]# df -h >> Filesystem /dev/sda1 5.8G 4.0G 1.5G 73% / >> none 128M 0 128M 0% /dev/shm >> >> what do I do wrong? How should I make it ? >> I am really confused with it > > If the mount is done, it comes to see it. > If it is recognized when starting, the block-attach command should not > be used. > Then, it is necessary to define two disks by configuration file. > When starting, automatic mount will be able to be done if it set to > /etc/fstab > as well as Native Linux. > > Best Regards, > > -- > Takanori Kasai > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > >