LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-21-2018, 02:01 AM   #1
Ipolit
Member
 
Registered: Nov 2003
Location: Bulgaria
Distribution: Vector Linux, Morphix
Posts: 321

Rep: Reputation: 33
High availability system SAN and LUN organisation


Hello,
I started to build HA cluster with 3 servers running Xen Server and SAN for storage repository. I haven't made such installation so far and I am wondering how to organize the SAN.
First of all I read a lot of controversial opinions concerning the LUNs. Some people claim there should be 1 VM per LUN while other say you can put many VMs on a single LUN.
What is the right solution. I see advantage on 1 VM per LUN if I want to make LUN snapshots and to copy those snapshots to another SAN (which I have).
The other question is should the LUNs be thin or thick provisioned. I understand the advantages of the thin provisioned LUNs, but I read somewhere performance is affected with them. What do you think?
And the last thing is what RAID to be configured on the SAN? The SAN is 12 SAS HDD and definitely there will be mirroring - RAID 1. But should I make RAID 0 between the disks?
Thank you in advance
 
Old 12-21-2018, 04:04 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
I don’t quite understand what you mean by “VM per LUN”. VMs can share storage, but each requires its own root disk. Can you elaborate?

You may have a tiny performance penalty each time a new block is allocated on a thin LUN, but my guess is that you would not notice. Thin provisioning is good for space efficiency, but you risk not having enough space at some time. If your VMs rarely use all their allocated space, use thin provisioning. If the VMs belong to customers, use both thin and thick, and charge more for thick.

Regarding striping, Veritas says “Striping is useful if you need large amounts of data that is written to or read from physical disks, and consistent performance is important.” Does that describe your application?
 
Old 12-21-2018, 05:04 AM   #3
Ipolit
Member
 
Registered: Nov 2003
Location: Bulgaria
Distribution: Vector Linux, Morphix
Posts: 321

Original Poster
Rep: Reputation: 33
Thank you, berndbausch.
My question is should I put each VM virtual disk on a LUN specially created for it or I can create a LUN for example 5 TB and to put 5 Virtual machines disks 1 TB on it.
 
Old 12-21-2018, 05:13 AM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
My experience is with OpenStack mainly. There, each VM either gets a file on its hypervisor host as root disk, or a so-called volume, which usually corresponds to a LUN.

I don’t see an advantage sharing LUNs, but it would be hard to manage, snapshots included.
 
Old 12-21-2018, 05:34 AM   #5
Ipolit
Member
 
Registered: Nov 2003
Location: Bulgaria
Distribution: Vector Linux, Morphix
Posts: 321

Original Poster
Rep: Reputation: 33
Here is a link where they say you can put 10 VMs on single LUN. I don't know what to do.
https://loopbackconnector.com/2012/0...ioning-primer/
 
Old 12-21-2018, 05:40 AM   #6
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
The article doesn’t explain what’s the advantage putting several VMs onto one LUN, and what’s the disadvantage to have one LUN for one VM. Perhaps it’s specific to VMware six years ago?

I suggest looking for more recent resources, perhaps from VMware directly.
 
Old 12-21-2018, 07:10 AM   #7
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by Ipolit View Post
I started to build HA cluster with 3 servers running Xen Server and SAN for storage repository. I haven't made such installation so far and I am wondering how to organize the SAN.
First of all I read a lot of controversial opinions concerning the LUNs. Some people claim there should be 1 VM per LUN while other say you can put many VMs on a single LUN.
What is the right solution. I see advantage on 1 VM per LUN if I want to make LUN snapshots and to copy those snapshots to another SAN (which I have).
I have not worked with Xen. But when I used to manage ESXi cluster, always did 1VM/LUN. Reason for that is in hardware failover situation, we needed some VMs on certain hosts and others on different (due to resource requirements). This would have been difficult if multiple VMs are on same LUN. So, not sure if you have this kind of requirements now, but perhaps plan for future?

Quote:
Originally Posted by Ipolit View Post
The other question is should the LUNs be thin or thick provisioned. I understand the advantages of the thin provisioned LUNs, but I read somewhere performance is affected with them. What do you think?
This may depened on your environment. For example, my ESXi cluster was for Exchange environment for a university (several thousand users), so all of the disks were thick provisioned.
Currently managing Hyper-V cluster (for under 100 users) and here all VMs are thin provisioned, and users do not report any performance issue. Some of the users jobs are heavy in IO.

Quote:
Originally Posted by Ipolit View Post
And the last thing is what RAID to be configured on the SAN? The SAN is 12 SAS HDD and definitely there will be mirroring - RAID 1. But should I make RAID 0 between the disks?
Thank you in advance
Don't understand this question... For 12 drives, I would personally do RAID50 (create two RAID5 sets with 6-drives, then RAID0 of two RAID5 sets).

Hope this helps?
 
  


Reply

Tags
ha system, high availability, lun, san



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
Process to migrate RHEL6 SAN boot LUN to new SAN? tuxpal Linux - Server 9 10-05-2018 11:34 AM
[SOLVED] How to identify the New LUN assigned to redhat system ? If there is multiple devices or LUN already dev008 Linux - Newbie 6 09-23-2016 12:19 PM
Replacing 200 GB LUN with 100 GB LUN in LVM rajaniyer123 Linux - Enterprise 4 03-27-2012 12:32 PM
[SOLVED] Linux high performance and high availability clustering Blue_Ice Linux - Software 2 03-27-2009 04:49 AM
LUN Device Mapping: 2 devices map to same lun DantePasquale Linux - Distributions 0 09-24-2007 02:59 PM

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

All times are GMT -5. The time now is 10:22 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