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] Using diskOnKey as additional disk - is it possible with

To: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
Subject: Re: [Xen-users] Using diskOnKey as additional disk - is it possible with default configuration?
From: "Ian Brown" <ianbrn@xxxxxxxxx>
Date: Mon, 2 Apr 2007 16:16:25 +0300
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 02 Apr 2007 06:15:24 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sTBxjqTsgkcCdXHc5rc/13MT+fpUmzWvwV7XT3b0IAai46d61c2w/JoTYJwxrMrCI8aI3wfEplbky9D1HADduYUhAS9ssjob4i1ck6mV54WbzCOOVmE9b4GpUSiNIJBe+YRH5W1l6TBKBeXOH672aUyB53s0DKjEiUcAjv/eSaM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gu6PVmQb+AB9r7v7oUeDX2++FcV3lm0/Jgl4v1Vj1e/tXT0MJId2OneQCVKduLsVCe1yrz+TIHWJgvb04I73Y6F6XsEmu2d16j2H0vtjvpO0wfOvXEiz0t/JAlTDvMGTcwTBGgne+Uw198m5GqarAVYARL0yFKP6gD2xf2g+Nis=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <907625E08839C4409CE5768403633E0B018E1B6D@xxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <d0383f90704020256p5e4726f6ld4a9668445e200dd@xxxxxxxxxxxxxx> <907625E08839C4409CE5768403633E0B018E1B6D@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Mats,
 Thanks for your trial; following your mail I tried it with hda; it
is the same, it does not work -
"fdisk -l" does not show hda.

Regards,
Ian


On 4/2/07, Petersson, Mats <Mats.Petersson@xxxxxxx> wrote:
> -----Original Message-----
> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Ian Brown
> Sent: 02 April 2007 10:57
> To: xen-users@xxxxxxxxxxxxxxxxxxx
> Subject: [Xen-users] Using diskOnKey as additional disk - is
> it possible with default configuration?
>
> Hello,
>  I try the following:
> I have in the configDomU file the following:
>
> disk = [ 'tap:aio:/var/lib/xen/images/guest10/guest10File]
>
> which works OK; I can start domU by "xm create -c configDomU.
>
>
> Now, my question is: can I add an additional USB DiskOnKey as a
> physical device ?
> What I tried is:
> First I added mknod /dev/sda6 b 8 6 in domU.
> Then I added to the configDomU file:
> disk = [ 'tap:aio:/var/lib/xen/images/guest10/guest10File,xvda,w'
> ,'phy:/dev/sdb,sda6,w' ]
>
> /dev/sdb is the device of teh USB DiskOnKey and **it is unmounted**.
> and start domU.
> "fdisk -l" does not show any new device. (I expected to see
> /dev/sda6).
>   (Of course that the /dev/xvda for guest10File exists)
>
> When I try to do the following:
>
>       disk = [
> 'tap:aio:/var/lib/xen/images/guest10/guest10File,xvda,w'
> ,'phy:/dev/sda7,sda6,w' ]
>
> where /dev/sda7 is an unmounted partition in dom0, than after
> starting domU I am **able** to see with
>
> "fdisk -l " the /dev/sda6 device.
>
> Is it something to do with that it can't add additional disk
> if it is a USB ?
>
> Regards,
> Ian
>
I'm by no means an expert on this, but is it by any chance that you
shouldn't use "sda" but rather "hda" for the export name? Bear in mind
that the guest doesn't actually know (or cares) what PHYSICAL device it
is talking to, but it has to hook onto it in some way, and I seem to
remember something similar before. Worth a try, I should think.

--
Mats




_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users