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] problem with extra storage via iscsi

To: Gertjan Oude Lohuis <gertjan@xxxxxxx>
Subject: Re: [Xen-users] problem with extra storage via iscsi
From: Ferenc Wagner <wferi@xxxxxxx>
Date: Thu, 28 Aug 2008 10:48:39 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx, Tammo Schuelke <tas@xxxxxxxxxx>
Delivery-date: Thu, 28 Aug 2008 01:49:22 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <48B592E5.1020108@xxxxxxx> (Gertjan Oude Lohuis's message of "Wed, 27 Aug 2008 19:46:13 +0200")
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: <vmime.48b5648d.73b.7f4328e012308a20@xxxxxxxxxxxxxxxxx> <vmime.48b56983.73b.629f06e0b67c5c20@xxxxxxxxxxxxxxxxx> <48B58B4A.9070100@xxxxxxx> <48B592E5.1020108@xxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)
Gertjan Oude Lohuis <gertjan@xxxxxxx> writes:

> Gertjan Oude Lohuis wrote:
>
>> No, the domU keeps working, I think because all partitions are
>> already mounted when open-iscsi starts.
>
> I figured out why /dev/sda is assigned to the LUN. This is a part from
> the domU configurationfile:
>
> root    = '/dev/sda1 ro'
> disk    = [ 'phy:xen-images/loghost-disk,sda1,w',
> 'phy:xen-images/loghost-swap,sda2,w',
> 'phy:xen-images/loghost-remotelogs,sda3,w', '
> phy:xen-images/loghost-httplogs,sda4,w' ]
>
>
> As you can see, only sda1 through sda4 are used, but sda is
> not. Mystery solved.
>
> Step two: what to do next:
> 1. Alter configuration file and add a phony /dev/sda, so that udev
> will give my LUN (hopefully) another name
> 2. Alter complete setup: assign only a /dev/sda to the domU and
> partition it inside the domU
> 3. Configure the LUN as /dev/sda, hoping that partitions made on the
> LUN will not conflict with existing /dev/sda[1-4]
> 4. Figure out a way to have udev assign another name than /dev/sda (eg
> sd[b-z])
>
> Any suggestions? Are there best practices for a situation like this,
> or more in general: partitioning for domU?

5. Use xvda[1-4] in your config (and guest) instead of sda[1-4].  It's
   a simple renaming, and is also future-proof.
-- 
Cheers,
Feri.

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

<Prev in Thread] Current Thread [Next in Thread>