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/
Home Products Support Community News


Re: [Xen-users] How to add 2 physical scsi drives to ubuntu fileshare VM

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] How to add 2 physical scsi drives to ubuntu fileshare VM on XCP 0.50
From: Simon Hobson <linux@xxxxxxxxxxxxxxxx>
Date: Mon, 3 Jan 2011 22:09:22 +0000
Delivery-date: Mon, 03 Jan 2011 14:10:49 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <COL112-W28A9D45F3F466244C2527AB9050@xxxxxxx>
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: <COL112-W28A9D45F3F466244C2527AB9050@xxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
David Oh wrote:
I'm now going for my second domU - a fileserver running Ubuntu 10.04LTS 64-bit server but I have one question:

I have 2 500GB SCSI drives full of files (one formatted as EXT3, the other XFS) I'd like the fileshare domU I'm going to create to access these disks directly (or flow through some sort of virtual container) without having to reformat or migrate. My desire is to be able to take these drives out and plug them into another machine without having to do much fussing around to access the files.

As I read it - you have these disks full of files, you want to mount them on the DomU, and then share them from that ?

Just add additional virtual disk declarations to your client config and they'll appear to the client. There are two ways to do it, which you choose is a matter of personal preference and what else you run on the machine.

Option 1 : give the whole disk to the client.

In the client config on your Dom0, give the device name of the whole disk (eg /dev/sdc) as the device.
disk = [ 'phy:/dev/vg0/filesrversystem,xvda1,w', 'phy:/dev/sdc,xvda2,w' ]

In the DomU, you'll now find you have a disk (/dev/xvda2 in this case) that is partitioned - so you'd mount /dev/xvda1 etc.

Option 2 : pass individual partitions

This is what I do - partly because I run multiple clients and have a lot of LVM volumes all on the same (raid) disk. Eg : disk = [ 'phy:/dev/vg0/filesrverroot,xvda1,w', 'phy:/dev/vg0/filesrvervar,xvda2,w', 'phy:/dev/vg0/filesrver swap,xvda3,w', 'phy:/dev/sdc1,xvda2,w' ]

assuming in this case that /dev/sdc1 is the partition with all your files on it.

Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.

Xen-users mailing list

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