Solved

database and log files on same drive

Posted on 2014-07-20
5
312 Views
Last Modified: 2014-07-30
What are the risks in storing the db and logfiles on the same drive.

If its purely performance risk... why doea storing both on the same drive cause performance issues.
0
Comment
Question by:pma111
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 13

Accepted Solution

by:
duncanb7 earned 167 total points
ID: 40207839
Database recovery is concern.
Seperate it that is better and same drive Risks reported at this site
http://support.microsoft.com/kb/2033523

and you can take  a look at relative link for reference only if have time at
http://technet.microsoft.com/en-us/library/aa996891(v=exchg.80).aspx

Duncan
0
 
LVL 69

Assisted Solution

by:Qlemo
Qlemo earned 167 total points
ID: 40207867
Both reliability and performance are the reason for separating.

It does not make sense to use two partitions on the same physical disk - if it fails, both partitions are bad, and all files lost. For reliability you try to have a datafile backup and logfiles or a datafile and logfile backups available all the time.

More, neither DBMS I/O subsystem nor the OS I/O subsystem can optimize access for different partitions as good as for a single one. In general, the drive heads have to move much more in such cases.

With DBMS datafiles and logfiles use different access methods. While logfile operations tend to be more sequential and equally read/write, datafiles are read and written in a more random manner, with usually much more reads than writes.
It makes sense to use a file system adapted to those needs - and that is a different one for each.

Using RAID with redundancy (10 or 5 or similar) lessens the importance of separating files. On a RAID 10 you can place both file types into the same file system without risking performance or reliability (to a certain extend).
0
 
LVL 69

Assisted Solution

by:Scott Pletcher
Scott Pletcher earned 166 total points
ID: 40209456
>> While logfile operations tend to be more sequential and equally read/write <<

Log file operations are overwhelmingly write, not an equal mix of read and write.  That is why RAID5 is not a good choice for log files.
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 40209492
Of course. I forgot that reading logfiles happens in memory most of the time, different from starting MSSQL.
In addition to that, logfile writes may not be buffered (need to be write-thru), and the DBMS usually forces that (MSSQL does).
0
 
LVL 13

Expert Comment

by:duncanb7
ID: 40229738
Thx for your pt

ve a nice day

Duncan
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

733 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