September 17, 2010 at 7:13 am
Brandie Tarvin (9/17/2010)
You can't shrink other databases while the disk is full. SQL Server requires space in which to do the shrinking, in which to add markers or throw data into tempdb or whatever it's doing.
Shrink is a logged operation. Hence there must be available space in the transaction log in order to shrink.
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
September 17, 2010 at 7:15 am
GilaMonster (9/17/2010)
Brandie Tarvin (9/17/2010)
You can't shrink other databases while the disk is full. SQL Server requires space in which to do the shrinking, in which to add markers or throw data into tempdb or whatever it's doing.Shrink is a logged operation. Hence there must be available space in the transaction log in order to shrink.
Talk about your catch 22... especially since 90% of the shrink question seems to happen when you're out of space in the file / drive :w00t:.
September 17, 2010 at 7:19 am
Ninja's_RGR'us (9/17/2010)
Talk about your catch 22... especially since 90% of the shrink question seems to happen when you're out of space in the file / drive :w00t:.
My personal favourite is people trying to shrink a full transaction log. I want to shout at them sometimes 'It's full! There's no free space in it! You need to make it bigger, not smaller!'
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
September 17, 2010 at 7:21 am
GilaMonster (9/17/2010)
Brandie Tarvin (9/17/2010)
You can't shrink other databases while the disk is full. SQL Server requires space in which to do the shrinking, in which to add markers or throw data into tempdb or whatever it's doing.Shrink is a logged operation. Hence there must be available space in the transaction log in order to shrink.
Thank you for the clarification, Gail. It helps.
September 17, 2010 at 7:28 am
I must be spacing out. read through the posts, and didn't see the previous suggestion. mea culpa. 🙂
September 17, 2010 at 7:32 am
GilaMonster (9/17/2010)
Ninja's_RGR'us (9/17/2010)
Talk about your catch 22... especially since 90% of the shrink question seems to happen when you're out of space in the file / drive :w00t:.My personal favourite is people trying to shrink a full transaction log. I want to shout at them sometimes 'It's full! There's no free space in it! You need to make it bigger, not smaller!'
Gail, if I happen to be one of those people, you have my permission to thwack me soundly upside the back of the head with a cricket bat. Please, correct me if you catch me saying something stupid.
September 17, 2010 at 7:33 am
Brandie Tarvin (9/17/2010)
GilaMonster (9/17/2010)
Brandie Tarvin (9/17/2010)
You can't shrink other databases while the disk is full. SQL Server requires space in which to do the shrinking, in which to add markers or throw data into tempdb or whatever it's doing.Shrink is a logged operation. Hence there must be available space in the transaction log in order to shrink.
Thank you for the clarification, Gail. It helps.
No need to be sorry to help out... and on the plus side you're going to be better at it so I fail to see a downside here!
September 17, 2010 at 7:34 am
Brandie Tarvin (9/17/2010)
GilaMonster (9/17/2010)
Ninja's_RGR'us (9/17/2010)
Talk about your catch 22... especially since 90% of the shrink question seems to happen when you're out of space in the file / drive :w00t:.My personal favourite is people trying to shrink a full transaction log. I want to shout at them sometimes 'It's full! There's no free space in it! You need to make it bigger, not smaller!'
Gail, if I happen to be one of those people, you have my permission to thwack me soundly upside the back of the head with a cricket bat. Please, correct me if you catch me saying something stupid.
Well you just did... you're not THAT dumb (uninformed might be a better choice of words).
September 17, 2010 at 7:35 am
GilaMonster (9/17/2010)
Ninja's_RGR'us (9/17/2010)
Talk about your catch 22... especially since 90% of the shrink question seems to happen when you're out of space in the file / drive :w00t:.My personal favourite is people trying to shrink a full transaction log. I want to shout at them sometimes 'It's full! There's no free space in it! You need to make it bigger, not smaller!'
Hmm, makes you wonder if we need to make another article about dealing with severe problemes at work under pressure. And by we I mean you :hehe:.
September 17, 2010 at 10:12 am
Update: I took Gail's advice and moved tempdb to another drive and recycled SQL Server. The database in question was able to recover and I was able to shrink its transaction log. I reclaimed 250 GB of space on the drive via these actions. Going forward I am going to implement a revcovery scheme that is more in tune with the usage of this database.
While I am an experienced DBA (Oracle, DB2, Teradata, Sybase) this is my first foray into MS SQL Server and the Windows OS. Each DBMS has its own nuances when it comes to backup/recovery, and I turned to your experience so that I would not put myself in a worse postion that I already was. I greatly appreciate your helpful (and sometimes spirited!) suggestions and I'm sure I will return in the future with issues.
Kathryn
September 17, 2010 at 10:24 am
hallhome (9/17/2010)
Update: I took Gail's advice and moved tempdb to another drive and recycled SQL Server. The database in question was able to recover and I was able to shrink its transaction log. I reclaimed 250 GB of space on the drive via these actions. Going forward I am going to implement a revcovery scheme that is more in tune with the usage of this database.While I am an experienced DBA (Oracle, DB2, Teradata, Sybase) this is my first foray into MS SQL Server and the Windows OS. Each DBMS has its own nuances when it comes to backup/recovery, and I turned to your experience so that I would not put myself in a worse postion that I already was. I greatly appreciate your helpful (and sometimes spirited!) suggestions and I'm sure I will return in the future with issues.
Kathryn
Kathryn,
First of all, I'm glad these actions worked for you.
Secondly, Excellent idea on determining what the recovery scheme should be. In order to prevent unnecessary growth until you do that, you ought to consider either start performing transaction log backups, or setting the recovery model to simple.
And finally, I'm glad that you realized you could make it worse, and that you turned to us.
Looking forward to seeing more of you in the future (but, hopefully, without database down issues!)
Edit: Oh - thank you for reporting back for how you handled it, and then all is better.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 17, 2010 at 10:29 am
Great advice from Wayne, and if you search for Gail, she has a great article on managing transaction logs on this site.
September 17, 2010 at 10:56 am
Ninja's_RGR'us (9/17/2010)
Hmm, makes you wonder if we need to make another article about dealing with severe problemes at work under pressure. And by we I mean you :hehe:.
Thank you for volunteering!
Now, should that come before or after the rewrite of 'Managing transaction logs', before or after the article on recovering from a suspect database annd before or after the editorial on asking good questions?
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
September 17, 2010 at 11:00 am
hallhome (9/17/2010)
Update: I took Gail's advice and moved tempdb to another drive and recycled SQL Server. The database in question was able to recover and I was able to shrink its transaction log.
Oh good. Always nice to have a positive outcome on these kinda questions.
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
September 17, 2010 at 11:24 am
GilaMonster (9/17/2010)
Ninja's_RGR'us (9/17/2010)
Hmm, makes you wonder if we need to make another article about dealing with severe problemes at work under pressure. And by we I mean you :hehe:.Thank you for volunteering!
Now, should that come before or after the rewrite of 'Managing transaction logs', before or after the article on recovering from a suspect database annd before or after the editorial on asking good questions?
Before, before, before, but after the one on the woes of being abused on the forums. 😀
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
Viewing 15 posts - 61 through 75 (of 86 total)
You must be logged in to reply to this topic. Login to reply