Solved

Best practice for lun presentation/carving for SQL instances

Posted on 2011-02-28
6
1,075 Views
Last Modified: 2012-06-21
Hi,

We are about to upgrade our current SQL environment which will utilise our current SAN environment. We currently have two SQL instances, one physical and one virtual (ESX).

I have configured three LUN’s on our SAN which are:

-  VMFS_LUN (ESX Server storage)
-  Data_LUN (SQL data)
-  Logs_LUN (SQL logs)

Below are the two SQL server instance and their disk configurations.

SQL Physical Server
C:  Local disk - OS + App install
D:  Shared storage (Log_LUN)
E:  Shared storage (Data_LUN)

SQL Virtual Server
C:  Shared Storage (VMFS_LUN) - OS + App install
D:  Shared storage (Log_LUN)
E:  Shared storage (Data_LUN)


My question is related to best practice for lun presentation/carving for SQL instances.
Is it better to create a different LUN for each SQL instance I have? For example: Log_Lun1 (SQL Physical Server) &  Log_Lun2 (SQL Virtual Server)

Also on our SQL virtual environment D and E drives, is it better to create these drives as VMFS which point to the Log and Data LUN’s? or should I used the isci initiator in windows?  


Any advice or suggestions will be welcomed!!!!
0
Comment
Question by:cmga
6 Comments
 
LVL 42

Expert Comment

by:paulsolov
Comment Utility
What are your IOPS requirements, SAN model, and Backup capability?
0
 
LVL 117

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
Comment Utility
Personally I would create, different LUNs for different SQL Instances, for Data DB and Data Logs.

VMFS versus iSCSI initaitor?

How will you backup the SQL servers, if it's all virtual, third party backup tools will back it all up.

If you present an iSCSI LUN via Microsoft Initiator, you'll need another mechansim to back this up, because it's not a virtual presentation (e.g. vmdk), or you could consider an RDM to the virtual machine as well. Remember VMDK on VMFS, give is lots of flexibility, versus the trade off of some performance.

also if you do iSCSI in the virtual machine, the virtual machine CPU is doing the iSCSI work, rather than presenting the LUN to ESX, and formatting the LUN as vmfs, and using a standard VMDK on the LUN.

I would recommend, presenting LUN direct to ESX server.
0
 

Author Comment

by:cmga
Comment Utility
IOPS Requirments? Still looking at this.

SAN Model? HP LeftHand Networks P4500

Backup Capability? Databases are backups by SQL and we do a file level backup of all the *.bak files on a nightly basis.
There are no requirements for a VCB image backup of the virtual SQL server as yet, but we will configure an image back of the virtual sql server which will exclude d & e drives.
0
Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

 
LVL 4

Expert Comment

by:virtualxistance
Comment Utility
Is the Physical / Virtual SQL instance for redundancy or just 2 seperate Instances?

Unless you are trying to use some sort of an Active Passive SQL setup, with a SQL Cluster / File Cluster  i don't think you'd be able to point to the same LUN from both servers and do a simultaneous RW.

If for seperate instances, I would suggest having 2 different sets of LUNS for the Data and Logs on each server.

Let ESX take care of the LUN than using iscsi initiator in Windows.
0
 
LVL 4

Expert Comment

by:mail2vijay1982
Comment Utility
The simple answer is you want a config that's balanced and easy to understand without referring to a spreadsheet each time you allocate LUNs. So here's what I've recommended for some of my customers:

RG/LU Carving:

All LU's are the same size. Larger LU's are created by merging multiple LU's together.

Within any raid group, every LU is assigned to the same controller.
RG0/2/4/6/8 -- Even raid groups (RGs) go have all their LU's assigned to CTL 0
RG1/3/5/7/9 -- Odd RGs have all their LU's assigned to CTL 1

A LU can be any four digit number from 0000 to 4095.

First two digits of the LU number matches the RG number, last two digits represent the "slice" within the RG.

So the LU's within RG6 would look like:

0600, 0601, 0602, 0603, ...

You can also make the first ten LU's in a RG small, the rest big, and separate them by gaps in the slice, i.e.: 0600-0612 = 30GB, 0640-0667 = 120GB, ...

This numbering system allows easy space recovery and reallocation when a server is decomissioned.
0
 

Author Closing Comment

by:cmga
Comment Utility
No all items where answered.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now