Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Database Design
»
Hardware
»
SQL Server RAID 1 , 1+0 and TempDB
SQL Server RAID 1 , 1+0 and TempDB
Rate Topic
Display Mode
Topic Options
Author
Message
Blue Mancunian
Blue Mancunian
Posted Saturday, August 21, 2010 3:07 PM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Today @ 8:21 AM
Points: 120,
Visits: 345
Hi,
I am tuning a disk sub system for our OLTP datebase server these
days. This is DAS disks. I now came into a question.
The server has 8 148GB SAS drives. To have fault tolerance, we want to
have RAID mirroring, so RAID 1 or 10. That leaves us half of the
whole capacity, which is 4 * 148GB. As this box is only used for
database, we want to have partitions for OS, data file, log file and
temp db. Now I there is a dilemma:
I know for best practise, temp db should on its own physical disk. If I set up four partition(logical drives), one for OS, one for data
files, one for logs and one for temp db, then I can only have RAID 1
on each of the disk array. But the advantage of this is temp db is
only its own disk.
Or the second choice I can have is to partition the disks into three
array (logical drives), namely OS, data files and logs. In this case I
can have RAID 1+0 (striping and mirroring) on data file partition and
RAID 1 on OS and log.
Could you give me some idea, which one is better? Any
disscussions are welcome. Thank you very much.
Post #973003
Vikas S. Rajput
Vikas S. Rajput
Posted Monday, August 23, 2010 12:53 AM
SSC Rookie
Group: General Forum Members
Last Login: Thursday, April 11, 2013 12:03 PM
Points: 29,
Visits: 188
I personally would go with option #1. Reason include that your system is an OLTP system (with considerable size), and I have seen how heavy tempDB operations can deteriorate the performance of OLTP. For OLTP, you should really be concentrating on TempDB I/O.
I take you are looking at option 2 for resiliency reasons. If resiliency and reliability of data file drive is a concern, I suggest you get a comprehensive backup strategy in place (rather than loosing out a seggregate work space for TempDB).
Let me know any follow up queries you might have.
- Vikas Rajput
_____________
Vikas S. Rajput
Post #973229
Blue Mancunian
Blue Mancunian
Posted Monday, August 23, 2010 10:14 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Today @ 8:21 AM
Points: 120,
Visits: 345
Vikas Rajput, thank you for your reply.
We only have one controller for all 8 disks. If we have two controller, how much improvement it could yield?
I can see the tempDB is used at moderate level, most used for query sorting, hash match and user defined functions. Since we just upgrade this database about 100GB from SQL Server 2000 to SQL Server 2008 standard edition so we are not using version storing function like: Snapshot isolation and online index creation. Do you think we will benefit from putting tempDB on its own array?
Moreover, I am going to use SQLIOSim to stress test this Server. Do you use its output to exam server's IO performance? How useful are they? (like Running Average IO Duration (ms), IO request blocks and Number of times IO throttled ) As for my experience before, same disk configuration on different server could get very different SQLIOSim Output.
-- Frank
Post #973589
Toby Harman
Toby Harman
Posted Wednesday, December 29, 2010 7:48 PM
Old Hand
Group: General Forum Members
Last Login: Yesterday @ 9:39 PM
Points: 322,
Visits: 476
Option 2 seems to say "build a 4 disk RAID 1+0 array and then sub-divide into partitions"? If that is that correct then I would never recommend it!
I'll give you an option 3 if I may:
Disk 1 RAID 1 OS + SQL installation
Disk 2 No RAID Temp DB
Disk 3 RAID 1 Data
Disk 4 RAID 1 Log
Spare Disk - Warm Standby disk for any failed unit.
This exposes you to marginally more risk in that the loss of the drive supporting tempdb will force a shutdown of SQL, but if any other disk fails then the array can be rebuilt automatically using the warm standby disk.
Remember - Tempdb is recreated from new every time the SQL is re-started.
Ultimately, you haven't really got enough spindles here to make this really effective. Another 2 spindles would mean that you could make Disk 2 RAID 1+0.
There isn't much point making the Log disk RAID 1+0 as this is essentially written sequentially and a single spindle does this very effectively.
Post #1040682
white shadow
white shadow
Posted Wednesday, March 16, 2011 5:37 AM
Old Hand
Group: General Forum Members
Last Login: Tuesday, November 13, 2012 5:04 AM
Points: 388,
Visits: 93
Personally i would do this...
RAID 1 = OS
RAID 1+0 = data and log
RAID 1 = tempdb
Test the above for performance. The only other option i can think of, that i would use, is below. Now a lot of people are going to throw a yellow flag here, but here me out. If you're using SAS drives then it's like having a switched network versus SCSI being more of a hub network. We have used this when we changed from a SCSI system to a SAS system. We only receieved 30% of the drives we had in the SCSI system and it performed 5 times faster. A proc went from 2 hours to 5 minutes...
RAID 1 = OS
RAID 1+0 = data, log and TempDB
Post #1078867
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.