Rebuild indexes in database after new disks added

  • Hello,

    This may sound like a silly question, but if a database has been moved to a new set of disks (SAN), would it be a good idea to rebuild all the indexes as a apposed to running indexdefrag?

    I apprieciate pages, extents etc, but wondered if the old underlying disks were fragmented is it recomended that a full reindex is done on the new disks?

    Thanks

  • Index fragmentation and disk fragmentation are different things. Indexrebuild and index defrag (and the 2 SQL 2005 replacements to them) fix index fragmentation. They are neither affected by nor do they fix disk fragmentation.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • sqlrumble (5/18/2009)


    Hello,

    This may sound like a silly question, but if a database has been moved to a new set of disks (SAN), would it be a good idea to rebuild all the indexes as a apposed to running indexdefrag?

    I apprieciate pages, extents etc, but wondered if the old underlying disks were fragmented is it recomended that a full reindex is done on the new disks?

    Thanks

    only if you don't normally have a maintenance window to reindex the databases and this database move has given you an opportunity, even then just reindex the indexes that are fragmented.

    by moving the database files to a new drive you ahve removed fragmentation at the drive level.

    Fragmentation within the database (empty pages, extents out of order) is independent of that.

    ---------------------------------------------------------------------

  • Gail, stop it! give someone else a chance! 😀

    ---------------------------------------------------------------------

  • george sibbald (5/18/2009)


    Gail, stop it! give someone else a chance! 😀

    Type faster in future. 😉

    😛

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • I think i have started a 'SQL-RUMBLE'.

    Thanks for the responses.

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply