November 29, 2022 at 2:31 pm
We have started the full backup job that uses Veritas netbackup. The server has about 10 databases. 4-5 of them are large databases. There are no transactions showing that relates to backup from the dmv sys.dm_exec_requests but the job is running. I didn’t see any blocking. How to find what the backup job is doing?
From activity monitor logging & network I/o are showing some wait time.
November 29, 2022 at 3:06 pm
Veritas doesn't show progress bar or other job information ?
What does SP_WHO2 show for the Veritas SPID ?
I have used this script, but may not help you if dm_exec_requests shows nothing for backups.
SELECT session_id as SPID, command, sh.text AS Query, start_time, percent_complete,
dateadd(second,estimated_completion_time/1000, getdate()) as estimated_completion_time
FROM sys.dm_exec_requests req CROSS APPLY sys.dm_exec_sql_text(req.sql_handle) sh
WHERE req.command in ('BACKUP DATABASE','RESTORE DATABASE')
November 29, 2022 at 4:20 pm
What are you seeing in the logs?
Do you see a lot of IO Frozen / IO Resumed messaged when the backup is “running”?
You may be facing slow VSS rather than a SQL bottleneck.
November 29, 2022 at 5:21 pm
No, I am not seeing those messages in the log.
November 29, 2022 at 6:35 pm
What is a sample output of the following query?
Just want to see where SQL thinks the backups are actually going as if it’s going to a virtual device using VDI or VSS, then the engine offloads the backup command to an alternative provider to do the backup for you so you won’t see any progress in the sessions as it’s all usually done within 10 seconds and then your waiting on VSS or the VDI APIs to complete the remainder of the backup in a different processes.
SELECT bs.database_name,
backuptype = CASE
WHEN bs.type = 'D' AND bs.is_copy_only = 0 THEN 'Full Database'
WHEN bs.type = 'D' AND bs.is_copy_only = 1 THEN 'Full Copy-Only Database'
WHEN bs.type = 'I' THEN 'Differential database backup'
WHEN bs.type = 'L' THEN 'Transaction Log'
WHEN bs.type = 'F' THEN 'File or filegroup'
WHEN bs.type = 'G' THEN 'Differential file'
WHEN bs.type = 'P' THEN 'Partial'
WHEN bs.type = 'Q' THEN 'Differential partial'
END + ' Backup',
CASE bf.device_type
WHEN 2 THEN 'Disk'
WHEN 5 THEN 'Tape'
WHEN 7 THEN 'Virtual device'
WHEN 9 THEN 'Azure Storage'
WHEN 105 THEN 'A permanent backup device'
ELSE 'Other Device'
END AS DeviceType,
bms.software_name AS backup_software,
bs.recovery_model,
bs.compatibility_level,
BackupStartDate = bs.Backup_Start_Date,
BackupFinishDate = bs.Backup_Finish_Date,
LatestBackupLocation = bf.physical_device_name,
backup_size_mb = CONVERT(DECIMAL(10, 2), bs.backup_size / 1024. / 1024.),
compressed_backup_size_mb = CONVERT(DECIMAL(10, 2), bs.compressed_backup_size / 1024. / 1024.),
database_backup_lsn, -- For tlog and differential backups, this is the checkpoint_lsn of the FULL backup it is based on.
checkpoint_lsn,
begins_log_chain,
bms.is_password_protected
FROM msdb.dbo.backupset bs
LEFT JOIN msdb.dbo.backupmediafamily bf
ON bs.[media_set_id] = bf.[media_set_id]
INNER JOIN msdb.dbo.backupmediaset bms
ON bs.[media_set_id] = bms.[media_set_id]
WHERE bs.backup_start_date > DATEADD(MONTH, - 2, sysdatetime()) --only look at last two months
ORDER BY bs.database_name ASC,
bs.Backup_Start_Date DESC;
November 29, 2022 at 8:55 pm
I am seeing that transactional log for database is full due to log_backup messages in the error log whenever I try to run the back. I can’t able to run log back up for that DB.
The messages sequence are
Error: 9002 (The transaction log is full)
Error: 3041 (Backup failed to complete the coomand. Check the backup application)
Error: 18210 (Backup virtual Device File: Request durable media: Flush failure on backup device. Operating system error 995 (The I/O operation has been aborted because of either a thread exit or an application request)
November 30, 2022 at 1:48 am
If it were me, I'd get on the phone with Veritas .
--Jeff Moden
Change is inevitable... Change for the better is not.
November 30, 2022 at 1:41 pm
Can you run native SQL backups of T-Log and Database so you have some D.R. protection ?
December 1, 2022 at 7:52 pm
Is it require to have any free log space to take the full back of the database or log backup?
December 2, 2022 at 4:04 am
I tried to run native full backup to local drive. It terminated with the same error message like log full. Does it allow sql backup to local drive when the full database backup was taken by Veritas?
Viewing 10 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply