LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 07-11-2013, 09:05 AM   #1
ternarybit
Member
 
Registered: Jun 2009
Distribution: Debian, Arch, Mint
Posts: 51

Rep: Reputation: 15
Question Xen domUs on remote storage (iSCSI / NFS)


I'm tinkering with a Debian Xen dom0, curious about the ways I can host domUs. This is not production, I'm just learning.

I'm considering a setup that centralizes all irreplaceable data on a box running FreeNAS, which can export iSCSI or NFS. If I understand correctly, iSCSI would allow me to layer LVM on top, which is the preferred way to run domUs for flexibility and performance. NFS would be used if I did a file-based VM setup, which I consider second choice.

The way I *think* it would work best:
Code:
                        FreeNAS SAN
                        -----------
Raw Disks -> RAID -> zpool -> dataset -> iSCSI target


                        Xen Server
                        ----------

iSCSI initiator -> 1 pv -> 1 vg -> multiple LVs for VMs
Would anyone care to comment on the viability, merits and demerits of such a setup? I'm interested in comments on performance, maintainability, backup and snapshotting, and any other administrative concern in a production environment.

In short: is there a standard or generally-accepted way to deploy Xen domUs to remote storage, all these considered?
 
Old 07-14-2013, 09:37 AM   #2
ternarybit
Member
 
Registered: Jun 2009
Distribution: Debian, Arch, Mint
Posts: 51

Original Poster
Rep: Reputation: 15
Maybe I've put some off with the whole "Xen domUs on a FreeNAS SAN" notion.

I suppose the heart of my question is "What are the best practices for deploying a Linux server running from a SAN?" From here I can flesh out my Xen question.
 
Old 07-29-2013, 08:48 PM   #3
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
What you're describing is certainly possible, but it's not too common to use LVM or similar technology on top of iSCSI on the hypervisor side. The LVM/iSCSI part is usually configured the other way around:
Code:
              Storage system:
Raw disks -> RAID set -> LVM/zpool/other -> iSCSI Target

             Hypervisor node:
iSCSI Initiator -> (whatever) -> VM
You don't really need to set up LVM on the initiator side, since the storage system can increase the size of the iSCSI target directly. Of course, you can still use LVM inside the VM if you so wish.

If you let the VMs use iSCSI targets directly you can easily do live migration of VMs between hypervisor nodes. I don't think that's possible if the iSCSI device is part of an LVM setup on the hypervisor side.
 
  


Reply

Tags
iscsi, nfs, xen



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] General routing/bridging problems (with Xen DomUs) quite212 Linux - Networking 1 01-10-2012 08:01 AM
Xen with dhcp in dom0 for domUs naquad Linux - Virtualization and Cloud 3 03-05-2010 05:13 AM
JBOD + ISCSI + NFS + XEN + W2K3 implementation question? jessemirza Linux - Server 1 02-01-2010 08:18 PM
LXer: Install Ubuntu Jaunty PV & HVM DomUs at Xen 3.4 Dom0 (kernel 2.6.30-rc6-tip) sh LXer Syndicated Linux News 0 05-21-2009 08:41 PM
LXer: Pygrub & loading OpenSuse 11 PV DomUs at Xen 3.3 CentOS 5.2 Dom0 (all 64-bit) LXer Syndicated Linux News 0 09-22-2008 08:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 09:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration