Home > Ask the Storage Technology Experts > Questions & Answers > Setting up databases, indexes and log files
Ask The Storage Expert: Questions & Answers
EMAIL THIS

Setting up databases, indexes and log files

Christopher Poelker EXPERT RESPONSE FROM: Christopher Poelker

Pose a Question
Other Storage Categories
Meet all Storage Experts
Become an Expert for this site
>
QUESTION POSED ON: 13 June 2003
Bits & Bytes: When setting up your storage solution, you may have asked yourself a question or two. "Do I need to mirror my log files if I use RAID technology or, do I still need to archive my logfiles if I use RAID?" Once again, expert Chris Poelker gives us the low down on the proper way to set up a storage solution.

>
The reader asks: 1. Do I need to mirror my log files if I use RAID technology?
2. Do I need to worry about what and where datafiles go if I use RAID technology?
3. Do I need to worry about keeping data and indexes separately if I have RAID?
4. Do I still need to archive my logfiles if I use RAID?

Chris Poelker's response

The short answer to your question is YES.

Set up your storage as follows:

* Database files can be located on dedicated RAID5 storage. This is the best compromise between protection and speed.

* Indexes can be co-mingled with the database files but may be placed on in-memory resident or solid-state disk for speed.

* Log files should be placed on RAID1 or RAID10 storage. There should be no other processes located on these disks.

Depending on the resiliency of the storage solution, snapshots may be used to archive everything. Use a script to put the database in hot backup mode, implement the snapshots and then undo hot backup mode. If the storage array supports instant snapshots, this can take just a few seconds.

Archiving using snapshots can be done in two ways. Metadata-based snapshots or hardware-based clones. The ability to clone instantly is done differently by the various storage vendors. You may need to have a pre-configured third mirror. Others allow you to clone a RAID5 volume instantly. Ask your storage vendor what they allow.

The metadata solutions can be host based or storage based. Many of the solutions available for metadata snapshots use a "copy on write" technology that moves the original data block to the snapshot before a new write is allowed to the primary volume. This can lead to performance overhead. The good news is that as more data is copied out, the solution gets faster.

If you can afford it, it's best to put everything on striped mirrors (RAID0+1). In my opinion, it's best to mirror first, then stripe. This way you can survive multiple disk failures. If you stripe first and then mirror the stripes and if you lose a disk in one of the stripes, all data must be accessed from the other stripe and you will be unprotected if you lose another disk.

Chris

Editor's note: Do you agree with this expert's response? If you have more to share, post it in one of our discussion forums.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Search for Data Management Tools
TechTarget Storage Media
Storage Magazine View this month\\'s issue and subscribe today.
Storage Decisions Apply online for free conference admission.
SearchStorage.com
HomeNewsMagazineTopicsLearningMultimediaWhite PapersBlogsEventsAbout Us

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts