Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-23-2008, 06:22 AM
Roman Klesel
 
Posts: n/a
Default Physical layout of a DB in RAC environment

Dear DBAs,

from what I have learned one should keep things seperate in an
produktive Oracle DB:

online redologs:
on 2 different dedicated physical disks (raid sets), groups swiching
from one disk to another

archive logs:
on another dedicated disk (raid set)

datafiles for undo/redo TSP on RAID 1
datafiles for temp TSP on RAID 1

other dataflies on RAID 5

controlfiles 3 all on different physical disks.


Now I'm confronted with a setup where all data is stored in a T1 storage
system which internally does a RAID 5. Everything in this storage is
software mirrored in another T1.

Both RAC nodes use this storage system for all oracle relevant files
redologs, archivelogs, controlfiles ...

Plus the shadow DB uses this storage system for all its files too.

Everything is connect through fiberchannel switches.

Is this insane? Or does it just look mad to me? Or is this the modern
way of doing things?

Can you please comment on this!

Greetings Roman

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-23-2008, 06:23 AM
Daniel Morgan
 
Posts: n/a
Default Re: Physical layout of a DB in RAC environment

Roman Klesel wrote:

> Dear DBAs,
>
> from what I have learned one should keep things seperate in an
> produktive Oracle DB:
>
> online redologs:
> on 2 different dedicated physical disks (raid sets), groups swiching
> from one disk to another
>
> archive logs:
> on another dedicated disk (raid set)
>
> datafiles for undo/redo TSP on RAID 1
> datafiles for temp TSP on RAID 1
>
> other dataflies on RAID 5
>
> controlfiles 3 all on different physical disks.
>
>
> Now I'm confronted with a setup where all data is stored in a T1 storage
> system which internally does a RAID 5. Everything in this storage is
> software mirrored in another T1.
>
> Both RAC nodes use this storage system for all oracle relevant files
> redologs, archivelogs, controlfiles ...
>
> Plus the shadow DB uses this storage system for all its files too.
>
> Everything is connect through fiberchannel switches.
>
> Is this insane? Or does it just look mad to me? Or is this the modern
> way of doing things?
>
> Can you please comment on this!
>
> Greetings Roman


It works just fine. Let the SAN or NAS handle the problem. Once you've
written to the head ... the rest can just be ignored.

With RAW we got rid of file systems. With 10g even the volume management
can go away. It is a brave new world ... every 5 years or so.

--
Daniel Morgan
http://www.outreach.washington.edu/e...ad/oad_crs.asp
http://www.outreach.washington.edu/e...oa/aoa_crs.asp
damorgan@x.washington.edu
(replace 'x' with a 'u' to reply)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-23-2008, 06:24 AM
Sybrand Bakker
 
Posts: n/a
Default Re: Physical layout of a DB in RAC environment

On Thu, 29 Jan 2004 08:29:27 -0800, Daniel Morgan
<damorgan@x.washington.edu> wrote:

>It works just fine. Let the SAN or NAS handle the problem. Once you've
>written to the head ... the rest can just be ignored.
>
>With RAW we got rid of file systems. With 10g even the volume management
>can go away. It is a brave new world ... every 5 years or so.


Do you mean this seriously, or are you just being cynical?
To me the proposed configuration looks like it has been designed by
someone who is either just released from a mental asylum or is a bean
counter (or both)


--
Sybrand Bakker, Senior Oracle DBA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-23-2008, 06:24 AM
Paul Drake
 
Posts: n/a
Default Re: Physical layout of a DB in RAC environment

Roman Klesel <rupa@firemail.de> wrote in message news:<bvb4c8$2ku$1@ork.noris.net>...
> Dear DBAs,
>
> from what I have learned one should keep things seperate in an
> produktive Oracle DB:
>
> online redologs:
> on 2 different dedicated physical disks (raid sets), groups swiching
> from one disk to another
>
> archive logs:
> on another dedicated disk (raid set)
>
> datafiles for undo/redo TSP on RAID 1
> datafiles for temp TSP on RAID 1


tempfiles

> other datafiles on RAID 5
>
> controlfiles 3 all on different physical disks.
>
> Now I'm confronted with a setup where all data is stored in a T1 storage
> system which internally does a RAID 5. Everything in this storage is
> software mirrored in another T1.


some might call this RAID 15

> Both RAC nodes use this storage system for all oracle relevant files
> redologs, archivelogs, controlfiles ...
>
> Plus the shadow DB uses this storage system for all its files too.
>
> Everything is connect through fiberchannel switches.


I hope its multipathed.

> Is this insane?


Check out James Morle's paper "Sane SAN"
up on OakTable http://www.oaktable.net or BAARF http://www.baarf.com

There are papers up there also that discuss RAID, but it seems that
the RAID config is already determined, out of your control, etc.

> Or does it just look mad to me? Or is this the modern
> way of doing things?
>
> Can you please comment on this!
>
> Greetings Roman


Roman,

Do you get to keep a backup set on something other than the T1 units?
(and I don't mean tape).
use at least 4 redo log groups, with at least 2 members per group.
size the logs so that the log switches co-incide with your recovery
objectives.
If you want a log switch every 60 minutes and all of your transactions
occur during an 8am to 6pm window, then you could roughly estimate
your log size from:

select to_char(completion_time,'Day HH24') day_hour, count(1),
trunc(sum(blocks*block_size)/1048576) mb,
round(trunc(sum(blocks*block_size)/1048576)/count(1),2) avg_log
from v$archived_log
where substr(to_char(completion_time,'Day'),1,1)!='S'
and to_char(completion_time,'HH24') between '08' and '18'
group by to_char(completion_time,'Day HH24')
/

and set the parameter archive_lag_target to the switch interval in
seconds (e.g. 3600).

If you size the online redo logs too small, you'll introduce more log
file switches, and therefore have more checkpoints occur, which
includes overhead.

hth.

Pd
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-23-2008, 06:25 AM
Daniel Morgan
 
Posts: n/a
Default Re: Physical layout of a DB in RAC environment

Sybrand Bakker wrote:

> On Thu, 29 Jan 2004 08:29:27 -0800, Daniel Morgan
> <damorgan@x.washington.edu> wrote:
>
>
>>It works just fine. Let the SAN or NAS handle the problem. Once you've
>>written to the head ... the rest can just be ignored.
>>
>>With RAW we got rid of file systems. With 10g even the volume management
>>can go away. It is a brave new world ... every 5 years or so.

>
>
> Do you mean this seriously, or are you just being cynical?
> To me the proposed configuration looks like it has been designed by
> someone who is either just released from a mental asylum or is a bean
> counter (or both)
>
>
> --
> Sybrand Bakker, Senior Oracle DBA


Seriously.

With NetApp or EMC ... the one's I'm familiar with ... once you've
written to the head you can just ignore it ... questions about
stripping, mirroring, RAID, etc. are irrelevant. The head takes full
responsiblity for reading, writing, and recovery.

I've also come to the point where I think backing up to tape is a
ridiculous waste of time and money. These days you can back up to hard
disks far faster and for the same money. Fill a disk, pop it out,
replace it with another. Recycle hard disks not tape.

--
Daniel Morgan
http://www.outreach.washington.edu/e...ad/oad_crs.asp
http://www.outreach.washington.edu/e...oa/aoa_crs.asp
damorgan@x.washington.edu
(replace 'x' with a 'u' to reply)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-23-2008, 06:25 AM
Roman Klesel
 
Posts: n/a
Default Re: Physical layout of a DB in RAC environment

Daniel Morgan wrote:
> Sybrand Bakker wrote:
>
>> On Thu, 29 Jan 2004 08:29:27 -0800, Daniel Morgan
>> <damorgan@x.washington.edu> wrote:
>>
>>
>>> It works just fine. Let the SAN or NAS handle the problem. Once
>>> you've written to the head ... the rest can just be ignored.
>>>
>>> With RAW we got rid of file systems. With 10g even the volume
>>> management can go away. It is a brave new world ... every 5 years or so.

>>
>>
>>
>> Do you mean this seriously, or are you just being cynical?
>> To me the proposed configuration looks like it has been designed by
>> someone who is either just released from a mental asylum or is a bean
>> counter (or both)
>>
>>
>> --
>> Sybrand Bakker, Senior Oracle DBA

>
>
> Seriously.
>
> With NetApp or EMC ... the one's I'm familiar with ... once you've
> written to the head you can just ignore it ... questions about
> stripping, mirroring, RAID, etc. are irrelevant. The head takes full
> responsiblity for reading, writing, and recovery.
>
> I've also come to the point where I think backing up to tape is a
> ridiculous waste of time and money. These days you can back up to hard
> disks far faster and for the same money. Fill a disk, pop it out,
> replace it with another. Recycle hard disks not tape.
>


Hmmm...!

So there seems to be a quite spread out spectrum of opinions about this.

My main 2 doubts in this whole setup are:

1) The storage System (althogh it has redundant components) remmains a
single point of failure for all 3 instances: RAC1, RAC2 and shadow.

2) Does such a storage system prevent I/O contentions effectively
between REDLOG ARCHIVELOG and DATA/TEMP File aktivity?

BTW. We also use RAW devices ... what a hassle ...

Regars Roman

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-23-2008, 06:25 AM
Roman Klesel
 
Posts: n/a
Default Re: Physical layout of a DB in RAC environment


> Roman,
>
> Do you get to keep a backup set on something other than the T1 units?
> (and I don't mean tape).


I don't really understand what you mean here.
We do an RMAN Backup to a NFS mounted Filesytem (another point that I'm
very suspicious about.

Otherwise no. Everything live and shadow DB resides on different
partitions/RAW devices on the 2 T1s which are software mirrored.

> use at least 4 redo log groups, with at least 2 members per group.
> size the logs so that the log switches co-incide with your recovery
> objectives.


That's the case here.

> If you want a log switch every 60 minutes and all of your transactions
> occur during an 8am to 6pm window, then you could roughly estimate
> your log size from:
>
> select to_char(completion_time,'Day HH24') day_hour, count(1),
> trunc(sum(blocks*block_size)/1048576) mb,
> round(trunc(sum(blocks*block_size)/1048576)/count(1),2) avg_log
> from v$archived_log
> where substr(to_char(completion_time,'Day'),1,1)!='S'
> and to_char(completion_time,'HH24') between '08' and '18'
> group by to_char(completion_time,'Day HH24')
> /


Thanks I will use this for optimisation. Until now I was examining the
ceckpionts written to the alertfile in order to calculate the frequency
of the log switches.

>
> and set the parameter archive_lag_target to the switch interval in
> seconds (e.g. 3600).


Thanks I was allready looking for the cause of the log switches every 30
min.


I'm quite surprised that the idea to just dump everything into a black
box is that much accepted. I'm coming from the SAP scene and the
performace people there still totally doom this concept. Especially
putting Redolog files on such a box. They just hate RAID5.

Roman

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-23-2008, 06:25 AM
Dusan Bolek
 
Posts: n/a
Default Re: Physical layout of a DB in RAC environment

Daniel Morgan <damorgan@x.washington.edu> wrote in message news:<1075443006.598594@yasure>...

> With NetApp or EMC ... the one's I'm familiar with ... once you've
> written to the head you can just ignore it ... questions about
> stripping, mirroring, RAID, etc. are irrelevant. The head takes full
> responsiblity for reading, writing, and recovery.


I think this is true only if we're talking about cheap low end arrays.
We have here EMC's Symmetrixes and it seems to me like there is quite
a lot of things that you can setup (or in my case messed up). You can
specify for example RAID levels, which disks will be part of which
"volume group", many communication parameters etc.

> I've also come to the point where I think backing up to tape is a
> ridiculous waste of time and money. These days you can back up to hard
> disks far faster and for the same money. Fill a disk, pop it out,
> replace it with another. Recycle hard disks not tape.


However, tape could be quicker ... strange but true.

--
Dusan Bolek
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-23-2008, 06:26 AM
Ed Stevens
 
Posts: n/a
Default Re: Physical layout of a DB in RAC environment

On Thu, 29 Jan 2004 22:11:08 -0800, Daniel Morgan
<damorgan@x.washington.edu> wrote:

<snip>
>
>I've also come to the point where I think backing up to tape is a
>ridiculous waste of time and money. These days you can back up to hard
>disks far faster and for the same money. Fill a disk, pop it out,
>replace it with another. Recycle hard disks not tape.


Or one could use a tape managment system that virtualizes the whole
operation, and actually uses disk as an asynch buffer between the tape
and the 'application.' We use Tivioli Storage Manager in this
fashion. From my view, I'm writing backups to neither 'tape' nor
'disk' but simply to the TSM system. But within that system, my write
ends up going directly to a disk, from where it is later copied to
tape. So I get the storage advantages of tape without having to wait
on tape mounts and availability.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-23-2008, 06:26 AM
Ed Stevens
 
Posts: n/a
Default Re: Physical layout of a DB in RAC environment

On Fri, 30 Jan 2004 08:10:28 +0100, Roman Klesel <rupa@firemail.de>
wrote:

>
>> Roman,
>>
>> Do you get to keep a backup set on something other than the T1 units?
>> (and I don't mean tape).

>
>I don't really understand what you mean here.
>We do an RMAN Backup to a NFS mounted Filesytem (another point that I'm
>very suspicious about.
>
>Otherwise no. Everything live and shadow DB resides on different
>partitions/RAW devices on the 2 T1s which are software mirrored.
>
>> use at least 4 redo log groups, with at least 2 members per group.
>> size the logs so that the log switches co-incide with your recovery
>> objectives.

>
>That's the case here.
>
>> If you want a log switch every 60 minutes and all of your transactions
>> occur during an 8am to 6pm window, then you could roughly estimate
>> your log size from:
>>
>> select to_char(completion_time,'Day HH24') day_hour, count(1),
>> trunc(sum(blocks*block_size)/1048576) mb,
>> round(trunc(sum(blocks*block_size)/1048576)/count(1),2) avg_log
>> from v$archived_log
>> where substr(to_char(completion_time,'Day'),1,1)!='S'
>> and to_char(completion_time,'HH24') between '08' and '18'
>> group by to_char(completion_time,'Day HH24')
>> /

>
>Thanks I will use this for optimisation. Until now I was examining the
>ceckpionts written to the alertfile in order to calculate the frequency
>of the log switches.
>
>>
>> and set the parameter archive_lag_target to the switch interval in
>> seconds (e.g. 3600).

>
>Thanks I was allready looking for the cause of the log switches every 30
>min.
>
>
>I'm quite surprised that the idea to just dump everything into a black
>box is that much accepted. I'm coming from the SAP scene and the
>performace people there still totally doom this concept. Especially
>putting Redolog files on such a box. They just hate RAID5.
>
>Roman


Sounds like they can't make the mental leap from dealing with
discrete, dedicated disks to SAN units with massive amounts of
parallelism. And while I've never worked with SAP, it doesn't take
much reading in this very ng to see a general consensus that the app
itself is a performance dog in its own right. If that is true, and
based on my own experience with other app vendors, they'll look for
any excuse, no matter how slim or unsubstantiated, to place
performance blame somewhere outside of their app.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:14 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537