Operating System - HP-UX
1753449 Members
6373 Online
108794 Solutions
New Discussion юеВ

Re: Database data and log allocation on raw device

 
SOLVED
Go to solution
John Guster
Trusted Contributor

Database data and log allocation on raw device

using raw device for database with async driver, is there any performance concern in locating storage space for data and log? i.e. disks with DB data should not mixed with disks with DB log, is that true?
Thank you.
5 REPLIES 5
TTr
Honored Contributor

Re: Database data and log allocation on raw device

Usually you separate the data and log devices not only for performance but for safety. One important thing that is often overlooked is that these data and log devices, not only they should be separate on the host, they should stay separate all the way down to the storage systema nd the actual disk spindles.
In many cases the data and log devices are logical drives from the same array group of spindles in a storage array.
John Guster
Trusted Contributor

Re: Database data and log allocation on raw device

can you detail the reason? it is not file system, but raw device for database.
Jeeshan
Honored Contributor

Re: Database data and log allocation on raw device

Hi John

Distributed with different disks can increase the performance.

and your thought is true in sense.

!!!
a warrior never quits
TTr
Honored Contributor
Solution

Re: Database data and log allocation on raw device

> can you detail the reason?

In simple terms, your data devices are where you do the actual data I/O, the log devices is where you record each I/O as a transaction. So you do not want to do data I/O (DATA) and at the same time record the transactions (LOG) in the same raw device.

Safety comes into play when a device fails. If you have data and log in the same device that failed, you have lost data. Otherwise, if you lose the log, your data is is still there, if you lose the data, you can recovery it from backups and apply the log to make it current.

My other comment "not only they should be separate on the host, they should stay separate all the way down to the storage system" refers to a case where a DATA device and a LOG device might be logical devices on the same physical disk(s). In this case if the physical disk fails, both DATA and LOG are gone.
John Guster
Trusted Contributor

Re: Database data and log allocation on raw device

Thanks for your responses.
for recovery reason, data disks are better not mixed with log disks. Good point.