Ran out of space on secondary server

  • Hello Gurus

    Please advice ASAP

    Ran out of space on secondary server. What need to be done immediately. The databses on this server are participating in log shipping. How should I gain back space.

  • Take a look at the database sizes, if it has a lot unallocated shrink it. If the log file is huge take a backup.

  • this is a secondary server, databses are in stanby/read-only mode, how can we shrink.

  • vsm198 (7/1/2010)


    this is a secondary server, databses are in stanby/read-only mode, how can we shrink.

    I think you can shrink the primary database and it will shrink the other database.

  • You likely need to also add space. Shrinking is a temporary fix. As data grows, reindexes, etc., the files will grow again.

  • If you ran out of space on the secondary but not the primary sounds like they are not sized the same, they really should be.

    For what its worth a shrink of the databases on the primary will be carried over to the secondary. However unless you use the truncateonly option in the shrink you will fragment the data in your database and you don't want to do that. As Steve said they will only grow again anyway.

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

  • Thank you Gurus

    I shrinked the PR databse , took a full backup then restored it on Secondary server. This gave space to breathe.

    Thank you again

  • Shrink, backup log, apply log through log shipping would have worked as well.

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

  • This happend due to a huge transaction log, so I shrinked the log file on PR, and then took a full backup of db and then restored. This gave some space, now we are in the process of adding space to drive which should be the permanent fix.

    Thank You again.

Viewing 9 posts - 1 through 8 (of 8 total)

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