Re: <<filegroup>> files from different hard disks:: tables(s) sto

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Tom Moreau (tom_at_dont.spam.me.cips.ca)
Date: 12/24/04


Date: Fri, 24 Dec 2004 09:53:28 -0500

If you don't have RAID then this is the "poor man's" RAID0. As long as you
don't fill up one of the files, then each table or index you place into the
filegroup will have pages distributed across both files. IOW, the
probability is quite high that the tables/indexes will be striped across
both files. Just make sure you have free space in both files.

-- 
Tom
---------------------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinnaclepublishing.com
"Tania" <Tania@discussions.microsoft.com> wrote in message
news:8A58AFDA-8768-4073-A0F8-8F53AF236D87@microsoft.com...
Thanks alot Tom
So, to clarify .... this is not like a RAID 0 simulation at all ?
Unless the one file in the filegroup gets full, the chances for having the
data for one index shared between the 2 hard disks is zero ?
Basically, I do not have RAID, and I do not worry about fault tolerance.
I just want data to be striped across more than one hard drive for faster IO
speed.
Thanks
Tania
"Tom Moreau" wrote:
> Relax!  When you create tables and indexes in a multi-file filegroup, they
> will go to both files.  If one of the files is full and cannot grow, then
> the remaining file will get the table and index data.
>
> When you restore, the files will go to their original locations unless you
> specify a different location.  Thus, you could have a database that was
> originally on two drives and then restore it onto another box with only
one
> drive - as long as you have the space.
>
>
> -- 
> Tom
>
> ---------------------------------------------------------------
> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
> SQL Server MVP
> Columnist, SQL Server Professional
> Toronto, ON Canada
> www.pinnaclepublishing.com
>
>
> "Tania" <anonymous@discussions.microsoft.com> wrote in message
> news:104101c4e9c1$cee34fa0$a601280a@phx.gbl...
> Hi
>
> I am feeling very ignorant on these matters, so please
> help out a technologically disabled woman !!
>
> I want an easy way to store table data on different hard
> drives without worrying how that happens in the
> background:
>
> I created an additional filegroup 'fg_test' for my
> database and added 2 files to it.  Each of the files is
> located on a different hard drive.
> Then I made fg_test my primary filegroup.
>
> My questions:
> (1)
> If I create new tables and indexes, on which hard drive
> will these tables and indexes end up ?
> (2)
> What happens in the case of a backup and complete restore
> for a database of which the primary filegroup points to 2
> hard drives ?  Where will the tables go ?
>
> Merry Christmas ... and thanks a million !
> Tania
>
>
>
>
>


Relevant Pages

  • Re: Filegroups and multi-processor threading improvements
    ... Microsoft SQL Server Storage Engine ... > threads that SQL 2000 will use per filegroup. ... > a RAID 10 setup, I/O will be limited to one CPU thread. ... > threads for disk I/O thus using two of your CPU's. ...
    (microsoft.public.sqlserver.server)
  • Re: <<filegroup>> files from different hard disks:: tables(s) sto
    ... It's difficult to try and roll your own RAID. ... Columnist, SQL Server Professional ... from non on seperate hard drives? ... > space in each of the files in the filegroup. ...
    (microsoft.public.sqlserver.programming)
  • Re: <<filegroup>> files from different hard disks:: tables(s) sto
    ... file group if the files have the same amount of free space in them. ... space in each of the files in the filegroup. ... Then SQL Server will essentially ... >> hard drives? ...
    (microsoft.public.sqlserver.programming)
  • Re: BEST PLACEMENT of DB FILES
    ... databases over the same set of hard drives? ... > Get RAID and you can sleep at night. ... > Columnist, SQL Server Professional ...
    (microsoft.public.sqlserver.programming)
  • Re: RAIDING different size drives
    ... You dont need to restore specific parts on a hard drive failure with the OS not mirrored. ... it being too easy to delete your good mirror by making it part of a new raid, ... But people *do* use it by mistake, thinking they are doing a proper backup. ... with a Win live CD to get a look at the state of the hard drives when deciding what has died etc. ...
    (comp.sys.ibm.pc.hardware.storage)