WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] block-attach on dom0 missing

To: Pasi Kärkkäinen <pasik@xxxxxx>
Subject: Re: [Xen-users] block-attach on dom0 missing
From: Tanuj Bansal <bansal.tanuj83@xxxxxxxxx>
Date: Fri, 18 Dec 2009 12:50:24 +0530
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 17 Dec 2009 23:21:06 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=gbNhrDle1Wplx3pkOvdyJW4hhyaJNYgdbmUf9mMxzi4=; b=CAFnHMCGKL4fP2SKYQx9oeCDVHYLoOQ9bi0TbY6ULx27Lh/jBLkAIWxyH3PAslnLWr y961ACN1S18OqovMdKlcqYIH/f5sti5MbTFQ171puCfqfgoe2A3pBFjhpGCIbmzTl+s9 Ve+6hP0/Bpuoqtok4J1hEiXigA+NNt0iGWNjQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=YIBdD65Zh7gixStWwzRA6rodlE1xKNNBxTHKt+qtOWcZPeLbZ6xD6sp/8jrDlQdUDN bqNokb6m8wG2ASxpG2z8G6ktA4ynDcM9DjBNfdSuxu2zm8lMlfL5BiPnG1ASpSiYTR4V V2gwjAPdEUBiLgDlqjWN5Ug60Qsld4+Z1I0Ng=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20091218071748.GA16033@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <95bff5630912172303k2de57eb3ub4b993673652474e@xxxxxxxxxxxxxx> <20091218071748.GA16033@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Yes, I know to use kpartx and it is easy but need to know this also...please let me know...where is attached device


On Fri, Dec 18, 2009 at 12:47 PM, Pasi Kärkkäinen <pasik@xxxxxx> wrote:
On Fri, Dec 18, 2009 at 12:33:37PM +0530, Tanuj Bansal wrote:
>    I have one domU using the disk file tanuj.dsk
>
>    [root@tanuj-xen-new virtual]# cat /etc/xen/tanuj
>    name = "tanuj"
>    uuid = "3d9ab75d-e08f-bac9-b56c-1cd6a43d1e35"
>    maxmem = 300
>    memory = 300
>    vcpus = 4
>    bootloader = "/usr/bin/pygrub"
>    > >    > >    > >    vfb = [  ]
>    disk = [ "tap:aio:/virtual/tanuj.dsk,xvda,w", "phy:/dev/sda11,xvdb,w" ]
>    vif = [ "mac=00:16:3e:32:e9:5f,bridge=xenbr0" ]
>    [root@tanuj-xen-new virtual]#
>
>    and this domU has disk /dev/xvda1 mounted at /boot
>
>    [root@tanuj ~]# df -h /boot
>    Filesystem            Size  Used Avail Use% Mounted on
>    /dev/xvda1             99M   13M   81M  14% /boot
>    [root@tanuj ~]#
>
>    now I am trying to attach that /dev/xvda1 on my dom0
>
>    #  xm block-attach 0 tanuj.dsk /dev/xvda1 w 0
>
>    Now I can see the attached device in xm list --long
>

<snip>

>
>    But I am not able to locate that disk /dev/xvda1 on my dom0 and how can i
>    mount it even if my domU is down
>
>    I know that the /dev/xvda1 data can be taken by using losetup and kpartx
>    but need to know about this
>

Why do you need this? just use kpartx (no need for losetup), it's much
easier and it works.

-- Pasi


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>