Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Transaction Log Backup & DB Backup

Author  Topic 

cosy
Starting Member

22 Posts

Posted - 2008-11-20 : 18:17:05
HI All,

I set my MP to as follows and noticed when the database are backing up no transaction file create. but after the backup it will create the big transaction file.

MP: Optimize:12.00AM, Index:11.30PM, Backup: 1.00AM, Trans backup: 12.00am to 11.59PM every 20 min

So my backup take 3 hours ( 65Gig) so at 4.00AM i can see 17GB transaction (trn)file?

So how do i avoid this? do i need to run trn bak after the backup or just the trn backup only 6.00AM to 11.59PM?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-11-20 : 18:21:53
You've got a performance issue if your 65GB is taking 3 hours to backup. I've got an 80GB database that takes 15 minutes to backup with a SQL Server native backup command.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

nr
SQLTeam MVY

12543 Posts

Posted - 2008-11-20 : 19:49:09
Also - 65G full basckup and 17G tr log after 3 hours?
Sounds like you are updating an awful lot of rows - which the full backup would need to include after it's completed it's first pass.
I would have a look at your processes and make sure you are only updating necessary rows - e.g. not updating to the same value.

How do you do the backup? Single thread/file to same disk as the database?

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

cosy
Starting Member

22 Posts

Posted - 2008-11-20 : 23:55:08
HI,

With my Maintenance Plan i do the backup to RAID 5 disks. Transaction logs backups to the different volume.
Do i need to run trn backup at night time?
Go to Top of Page

nr
SQLTeam MVY

12543 Posts

Posted - 2008-11-21 : 03:16:43
raid 5 - good for reads bad for writes. Backup = writes.
Why?

Do you have your database and backups striped over the same raid 5 disc?
Have you seen raid 10.

Think this needs a Goddess.
I don't think the figures you are showing will be just down to disk performance though.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

cosy
Starting Member

22 Posts

Posted - 2008-12-04 : 19:38:12
HI All,

New to SQL administration, I setup SQL DB bak to weekley but still i can see the 17 gig TRN file at 3.00AM?

I run my Backup exec on night just to backup these bak file so is this doing something? sql agent?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-12-04 : 20:06:13
cosy, are you backing up the transaction log (different than the database) on a regular basis? Weekly is definitely not enough for a tlog.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -