David Oh
2011-Jan-01 22:09 UTC
[Xen-users] How to add 2 physical scsi drives to ubuntu fileshare VM on XCP 0.50
All,I''m new to XEN and cloud computing. I''ve successfully setup XCP 0.50 and my first domU (a mailserver running on Debian 5.0). 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. I''ve googled for the past few days and found nothing helpful. Can anyone provide me some insight on how best to accomplish this or point me to a good resource that can help me out?Thanks kindly,Dave _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rudi Ahlers
2011-Jan-03 17:54 UTC
Re: [Xen-users] How to add 2 physical scsi drives to ubuntu fileshare VM on XCP 0.50
On Sun, Jan 2, 2011 at 12:09 AM, David Oh <davidohonline@hotmail.com> wrote:> All, > I''m new to XEN and cloud computing. I''ve successfully setup XCP 0.50 and my > first domU (a mailserver running on Debian 5.0). 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. > I''ve googled for the past few days and found nothing helpful. Can anyone > provide me some insight on how best to accomplish this or point me to a good > resource that can help me out? > Thanks kindly, > Dave > > > _______________________________________________The easy way is to export the drives via NFS / CIFS on dom0 and mount then on domU :) -- Kind Regards Rudi Ahlers SoftDux Website: http://www.SoftDux.com Technical Blog: http://Blog.SoftDux.com Office: 087 805 9573 Cell: 082 554 7532 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Simon Hobson
2011-Jan-03 22:09 UTC
Re: [Xen-users] How to add 2 physical scsi drives to ubuntu fileshare VM on XCP 0.50
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. Eg: 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 Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Christian Fischer
2011-Jan-04 19:45 UTC
Re: [Xen-users] How to add 2 physical scsi drives to ubuntu fileshare VM on XCP 0.50
On Monday 03 January 2011 18:54:56 Rudi Ahlers wrote:> On Sun, Jan 2, 2011 at 12:09 AM, David Oh <davidohonline@hotmail.com> wrote: > > All, > > I''m new to XEN and cloud computing. I''ve successfully setup XCP 0.50 and > > my first domU (a mailserver running on Debian 5.0). 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. > > I''ve googled for the past few days and found nothing helpful. Can anyone > > provide me some insight on how best to accomplish this or point me to a > > good resource that can help me out? > > Thanks kindly, > > Dave > > > > > > _______________________________________________ > > The easy way is to export the drives via NFS / CIFS on dom0 and mount > then on domU :)The better and probaly easiest way is creating two local SCSI storage resources which provide domU access to the block devices without additional LVM layer. There''s no need to install and/or configure NFS or CIFS server software/shares and to deal with whose overhead. Please let me know if you like to get mailed the SCSISR python script. Christian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users