Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False alarm "x backups done on drive y:\ in the last two weeks, where database files also live. This represents a serious risk if that array fails." #1916

Closed
HenrikStaunPoulsen opened this issue Jan 9, 2019 · 2 comments
Assignees
Milestone

Comments

@HenrikStaunPoulsen
Copy link
Contributor

Version of the script
7.1 dated 20190101

What is the current behavior?
if reports
x backups done on drive y:\ in the last two weeks, where database files also live. This represents a serious risk if that array fails."
even if there are no databases on the y: drive EXCEPT TempDb

If the current behavior is a bug, please provide the steps to reproduce.
put tempdb on its own drive. backup a database to the same drive. run sp_blitz.

What is the expected behavior?
tempdb is recreated on start-up, so we're not loosing data if we lose that drive.

Which versions of SQL Server and which OS are affected by this issue? Did this work in previous versions of our procedures?
all versions, event SQL Server 2008 R2.

Note:
I'll try to change line 958 of sp_blitz from
FROM sys.master_files AS mf )
to
FROM sys.master_files AS mf WHERE mf.database_id <> 2)

which fixes the problem on my server.
I'm not a GitHub super-user, so it may take a day or two.

BrentOzar added a commit that referenced this issue Jan 9, 2019
BrentOzar added a commit that referenced this issue Jan 9, 2019
…up_location

#1916 sp_Blitz ignore backup on TempDB drive
@BrentOzar
Copy link
Member

Great catch, and great bug report! You made the fix really easy, so I went ahead and did it. It's in the dev branch now, and it'll be in the next release. Thanks sir!

@BrentOzar BrentOzar self-assigned this Jan 9, 2019
@HenrikStaunPoulsen
Copy link
Contributor Author

great, then I did not have to learn to use GitHub, again.

BrentOzar added a commit that referenced this issue Jan 28, 2019
* Updating readme.md for sp_DatabaseRestore

Documenting @ExistingDBAction for https://dba.stackexchange.com/questions/226145/sp-databaserestore-msg-50000.

* 1900 sp_BlitzIndex add histograms

When @TableName is specified and sys.dm_db_stats_histogram is available. Closes #1900.

* #1903 sp_Blitz SQLServerCheckup

Adding filter for that app name. Closes #1903.

* #1905 sp_BlitzIndex remove BOU link

Nothing against BOU, just don't need it in that particular place. Closes #1905.

* #1908 Update copyright dates

Ah, the glamour. Closes #1908.

* Issue #1904 Change RAISERROR 'severity' for that should trigger throw and error.

* Issue #1910 Add SQL Server version check before choosing 'memory grant' as the @BlitzCacheSortOrder.

* Issue #1910 Add temp table creation.

* #1914 sp_BlitzIndex partition error severity

Dropping severity level from 16 to 0 since we're logging it in the result set anyway. Closes #1914.

* Issue 1894 Moved RESTORE HEADERONLY up

* LF line endings

* added some extra checks + corrected some nesting

* rebase and line endings

* Web site commit

Does this fix line endings?

* #1916 sp_Blitz ignore backup on TempDB drive

Closes #1916.

* Auto line endings

Dealing with sp_DatabaseRestore's line endings.

* 1919 sp_Blitz ignoring a few checks for Managed Instances (#1920)

* 1919 sp_Blitz ignoring a few checks for Managed Instances

Working on #1919.

* #1919 sp_Blitz excluding restored databases

When checking backup history. Working on #1919.

* #1919 sp_Blitz ignore some checks on Mgd Instances

Changing RCSI wording on Azure SQL DB. Working on #1919.

* #1921 Sp_BlitzIndex Add Drop and Create Columns to Output (#1923)

Joined output query to #IndexCreateTsql to retrieve the CreateTsql already generated earlier in the script.  Created Drop TSQL based off evaluating what type of index was present.

* #1921 sp_BlitzIndex adding drops (#1924)

Moving drop and create TSQL to the end of mode 2's results. Closes #1921.

* #1925 sp_Blitz AWS RDS detection (#1926)

Don't just rely on EC2 VM name to detect RDS. Also adds a new result noting that checks were skipped. Closes #1925.

* #1927 sp_BlitzIndex skip rdsadmin db (#1928)

GetAllDatabases = 1 fails when it hits rdsadmin because they're referring to the resource db. Closes #1927.

* 2019_01 Release (#1931)

Prep work for the release - changing version numbers, building build scripts.
BrentOzar added a commit that referenced this issue Feb 19, 2019
* Updating readme.md for sp_DatabaseRestore

Documenting @ExistingDBAction for https://dba.stackexchange.com/questions/226145/sp-databaserestore-msg-50000.

* 1900 sp_BlitzIndex add histograms

When @TableName is specified and sys.dm_db_stats_histogram is available. Closes #1900.

* #1903 sp_Blitz SQLServerCheckup

Adding filter for that app name. Closes #1903.

* #1905 sp_BlitzIndex remove BOU link

Nothing against BOU, just don't need it in that particular place. Closes #1905.

* #1908 Update copyright dates

Ah, the glamour. Closes #1908.

* Issue #1904 Change RAISERROR 'severity' for that should trigger throw and error.

* Issue #1910 Add SQL Server version check before choosing 'memory grant' as the @BlitzCacheSortOrder.

* Issue #1910 Add temp table creation.

* #1914 sp_BlitzIndex partition error severity

Dropping severity level from 16 to 0 since we're logging it in the result set anyway. Closes #1914.

* Issue 1894 Moved RESTORE HEADERONLY up

* LF line endings

* added some extra checks + corrected some nesting

* rebase and line endings

* Web site commit

Does this fix line endings?

* #1916 sp_Blitz ignore backup on TempDB drive

Closes #1916.

* Auto line endings

Dealing with sp_DatabaseRestore's line endings.

* 1919 sp_Blitz ignoring a few checks for Managed Instances (#1920)

* 1919 sp_Blitz ignoring a few checks for Managed Instances

Working on #1919.

* #1919 sp_Blitz excluding restored databases

When checking backup history. Working on #1919.

* #1919 sp_Blitz ignore some checks on Mgd Instances

Changing RCSI wording on Azure SQL DB. Working on #1919.

* #1921 Sp_BlitzIndex Add Drop and Create Columns to Output (#1923)

Joined output query to #IndexCreateTsql to retrieve the CreateTsql already generated earlier in the script.  Created Drop TSQL based off evaluating what type of index was present.

* #1921 sp_BlitzIndex adding drops (#1924)

Moving drop and create TSQL to the end of mode 2's results. Closes #1921.

* #1925 sp_Blitz AWS RDS detection (#1926)

Don't just rely on EC2 VM name to detect RDS. Also adds a new result noting that checks were skipped. Closes #1925.

* #1927 sp_BlitzIndex skip rdsadmin db (#1928)

GetAllDatabases = 1 fails when it hits rdsadmin because they're referring to the resource db. Closes #1927.

* 2019_01 Release (#1931)

Prep work for the release - changing version numbers, building build scripts.

* #1933 sp_BlitzIndez Azure SQL DB (#1934)

Check for DaysUptime is null. Closes #1933.

* 1936 Deprecate Power BI Dashboard (#1937)

Closes #1936.

* sp_BlitzFirst - Decimals - Fixes #1940 (#1941)

* batch requests & waits/core/sec are now decimals

* also updated final data set for consistency

* 1950 sp blitz lock azure sql db hyperscale (#1951)

* #1950 sp_BlitzLock Azure SQL DB Hyperscale

Fixes #1950.

* #1950 sp_BlitzLock Azure SQL DB Hyperscale

Oops, forgot my semicolon. Fixes #1950.

* #1947 sp_BlitzIndex stats for current db (#1955)

Can only get stats if you're in the database you're analyzing. Closes #1947.

* #1952 sp_BlitzIndex Fix INSERT query column order (#1954)

* remove table name from create index script (#1942)

* Add Version Checking  for all SP (#1949)

* Update sp_BlitzCache.sql

DECLARE @BlitzCacheVersion     VARCHAR(30);
DECLARE @BlitzCacheVersionDate DATETIME2;
EXEC dbo.sp_BlitzCache @VersionCheckMode = 1, @Version = @BlitzCacheVersion OUTPUT, @VersionDate = @BlitzCacheVersionDate OUTPUT ;
SELECT @BlitzCacheVersion as BlitzCacheVersion , @BlitzCacheVersionDate as BlitzCacheVersionDate

* Update sp_BlitzFirst.sql

* Update sp_BlitzIndex.sql

* Update sp_BlitzLock.sql

* Update sp_BlitzQueryStore.sql

* Update sp_BlitzWho.sql

* Update sp_DatabaseRestore.sql

* Update sp_BlitzInMemoryOLTP.sql

* Update sp_foreachdb.sql

* Update sp_ineachdb.sql

* Update sp_BlitzBackups.sql

* Update sp_Blitz.sql

* Update sp_AllNightLog_Setup.sql

* Update sp_AllNightLog.sql

* Update sp_BlitzInMemoryOLTP.sql

* Update sp_BlitzLock.sql

* sp_ineachdb version check

Tweaking #1948 so it works. Closes #1948.

* Update sp_BlitzCache.sql (#1953)

Complete the join between #missing_index_detail and ##bou_BlitzCacheProcs as otherwise on servers running jobs with many steps, each missing indices will cause #missing_index_pretty to grow exponentially, causing sp_BlitzCache to run for hours.

* Fixes #1943 - sp_Blitz check if SSIS/SSRS/SSAS are running (#1957)

* Update sp_Blitz.sql

* Update sp_Blitz.sql

* Update sp_Blitz Checks by Priority.md

* Update sp_Blitz Checks by Priority.md

* Update sp_Blitz Checks by Priority.md

* altered search strings

because *of course* there's white space. shouldn't hurt too badly because there aren't many services running on sql boxes (hopefully)

* #1943 adding URL (#1960)

For new SSAS/IS/RS check. Closes #1943.

* sp_BlitzCache additional plural checks for @sortorder (#1963)

* additional plural checks

added in plural checks, also raised error to 16 when invalid sort order is chosen.

* removed unnecessary checks

* minor typo (#1965)

* #1967 sp_Blitz updating supported versions (#1969)

SQL 2012 pre-SP4 is out of support. Closes #1967.

* #1935 sp_BlitzCache Azure compatibility (#1972)

Azure SQL DB compatibility and removing bou from global temp table names. Closes #1935.

* #1973 sp_BlitzIndex truncation error (#1974)

Fixes #1973.

* #1971 add POOL_LOG_RATE_GOVERNOR as poison (#1975)

Closes #1971.

* #1966 fix sp_Blitz check IDs (#1976)

203 and 224 were swapped in the documentation. Closes #1966.

* 20190219 bumping version numbers

To prep for imminent release...

* 20190219 release

Updating install-all-scripts with new versions.
BrentOzar added a commit that referenced this issue Feb 19, 2019
* Updating readme.md for sp_DatabaseRestore

Documenting @ExistingDBAction for https://dba.stackexchange.com/questions/226145/sp-databaserestore-msg-50000.

* 1900 sp_BlitzIndex add histograms

When @TableName is specified and sys.dm_db_stats_histogram is available. Closes #1900.

* #1903 sp_Blitz SQLServerCheckup

Adding filter for that app name. Closes #1903.

* #1905 sp_BlitzIndex remove BOU link

Nothing against BOU, just don't need it in that particular place. Closes #1905.

* #1908 Update copyright dates

Ah, the glamour. Closes #1908.

* Issue #1904 Change RAISERROR 'severity' for that should trigger throw and error.

* Issue #1910 Add SQL Server version check before choosing 'memory grant' as the @BlitzCacheSortOrder.

* Issue #1910 Add temp table creation.

* #1914 sp_BlitzIndex partition error severity

Dropping severity level from 16 to 0 since we're logging it in the result set anyway. Closes #1914.

* Issue 1894 Moved RESTORE HEADERONLY up

* LF line endings

* added some extra checks + corrected some nesting

* rebase and line endings

* Web site commit

Does this fix line endings?

* #1916 sp_Blitz ignore backup on TempDB drive

Closes #1916.

* Auto line endings

Dealing with sp_DatabaseRestore's line endings.

* 1919 sp_Blitz ignoring a few checks for Managed Instances (#1920)

* 1919 sp_Blitz ignoring a few checks for Managed Instances

Working on #1919.

* #1919 sp_Blitz excluding restored databases

When checking backup history. Working on #1919.

* #1919 sp_Blitz ignore some checks on Mgd Instances

Changing RCSI wording on Azure SQL DB. Working on #1919.

* #1921 Sp_BlitzIndex Add Drop and Create Columns to Output (#1923)

Joined output query to #IndexCreateTsql to retrieve the CreateTsql already generated earlier in the script.  Created Drop TSQL based off evaluating what type of index was present.

* #1921 sp_BlitzIndex adding drops (#1924)

Moving drop and create TSQL to the end of mode 2's results. Closes #1921.

* #1925 sp_Blitz AWS RDS detection (#1926)

Don't just rely on EC2 VM name to detect RDS. Also adds a new result noting that checks were skipped. Closes #1925.

* #1927 sp_BlitzIndex skip rdsadmin db (#1928)

GetAllDatabases = 1 fails when it hits rdsadmin because they're referring to the resource db. Closes #1927.

* 2019_01 Release (#1931)

Prep work for the release - changing version numbers, building build scripts.

* #1933 sp_BlitzIndez Azure SQL DB (#1934)

Check for DaysUptime is null. Closes #1933.

* 1936 Deprecate Power BI Dashboard (#1937)

Closes #1936.

* sp_BlitzFirst - Decimals - Fixes #1940 (#1941)

* batch requests & waits/core/sec are now decimals

* also updated final data set for consistency

* 1950 sp blitz lock azure sql db hyperscale (#1951)

* #1950 sp_BlitzLock Azure SQL DB Hyperscale

Fixes #1950.

* #1950 sp_BlitzLock Azure SQL DB Hyperscale

Oops, forgot my semicolon. Fixes #1950.

* #1947 sp_BlitzIndex stats for current db (#1955)

Can only get stats if you're in the database you're analyzing. Closes #1947.

* #1952 sp_BlitzIndex Fix INSERT query column order (#1954)

* remove table name from create index script (#1942)

* Add Version Checking  for all SP (#1949)

* Update sp_BlitzCache.sql

DECLARE @BlitzCacheVersion     VARCHAR(30);
DECLARE @BlitzCacheVersionDate DATETIME2;
EXEC dbo.sp_BlitzCache @VersionCheckMode = 1, @Version = @BlitzCacheVersion OUTPUT, @VersionDate = @BlitzCacheVersionDate OUTPUT ;
SELECT @BlitzCacheVersion as BlitzCacheVersion , @BlitzCacheVersionDate as BlitzCacheVersionDate

* Update sp_BlitzFirst.sql

* Update sp_BlitzIndex.sql

* Update sp_BlitzLock.sql

* Update sp_BlitzQueryStore.sql

* Update sp_BlitzWho.sql

* Update sp_DatabaseRestore.sql

* Update sp_BlitzInMemoryOLTP.sql

* Update sp_foreachdb.sql

* Update sp_ineachdb.sql

* Update sp_BlitzBackups.sql

* Update sp_Blitz.sql

* Update sp_AllNightLog_Setup.sql

* Update sp_AllNightLog.sql

* Update sp_BlitzInMemoryOLTP.sql

* Update sp_BlitzLock.sql

* sp_ineachdb version check

Tweaking #1948 so it works. Closes #1948.

* Update sp_BlitzCache.sql (#1953)

Complete the join between #missing_index_detail and ##bou_BlitzCacheProcs as otherwise on servers running jobs with many steps, each missing indices will cause #missing_index_pretty to grow exponentially, causing sp_BlitzCache to run for hours.

* Fixes #1943 - sp_Blitz check if SSIS/SSRS/SSAS are running (#1957)

* Update sp_Blitz.sql

* Update sp_Blitz.sql

* Update sp_Blitz Checks by Priority.md

* Update sp_Blitz Checks by Priority.md

* Update sp_Blitz Checks by Priority.md

* altered search strings

because *of course* there's white space. shouldn't hurt too badly because there aren't many services running on sql boxes (hopefully)

* #1943 adding URL (#1960)

For new SSAS/IS/RS check. Closes #1943.

* sp_BlitzCache additional plural checks for @sortorder (#1963)

* additional plural checks

added in plural checks, also raised error to 16 when invalid sort order is chosen.

* removed unnecessary checks

* minor typo (#1965)

* #1967 sp_Blitz updating supported versions (#1969)

SQL 2012 pre-SP4 is out of support. Closes #1967.

* #1935 sp_BlitzCache Azure compatibility (#1972)

Azure SQL DB compatibility and removing bou from global temp table names. Closes #1935.

* #1973 sp_BlitzIndex truncation error (#1974)

Fixes #1973.

* #1971 add POOL_LOG_RATE_GOVERNOR as poison (#1975)

Closes #1971.

* #1966 fix sp_Blitz check IDs (#1976)

203 and 224 were swapped in the documentation. Closes #1966.

* 20190219 bumping version numbers

To prep for imminent release...

* 20190219 release

Updating install-all-scripts with new versions.

* 2019_02 Release

Bumping version numbers & dates.

* Merge conflicts, good times

* Merge conflicts, whee
BrentOzar added a commit that referenced this issue Feb 19, 2019
* Updating readme.md for sp_DatabaseRestore

Documenting @ExistingDBAction for https://dba.stackexchange.com/questions/226145/sp-databaserestore-msg-50000.

* 1900 sp_BlitzIndex add histograms

When @TableName is specified and sys.dm_db_stats_histogram is available. Closes #1900.

* #1903 sp_Blitz SQLServerCheckup

Adding filter for that app name. Closes #1903.

* #1905 sp_BlitzIndex remove BOU link

Nothing against BOU, just don't need it in that particular place. Closes #1905.

* #1908 Update copyright dates

Ah, the glamour. Closes #1908.

* Issue #1904 Change RAISERROR 'severity' for that should trigger throw and error.

* Issue #1910 Add SQL Server version check before choosing 'memory grant' as the @BlitzCacheSortOrder.

* Issue #1910 Add temp table creation.

* #1914 sp_BlitzIndex partition error severity

Dropping severity level from 16 to 0 since we're logging it in the result set anyway. Closes #1914.

* Issue 1894 Moved RESTORE HEADERONLY up

* LF line endings

* added some extra checks + corrected some nesting

* rebase and line endings

* Web site commit

Does this fix line endings?

* #1916 sp_Blitz ignore backup on TempDB drive

Closes #1916.

* Auto line endings

Dealing with sp_DatabaseRestore's line endings.

* 1919 sp_Blitz ignoring a few checks for Managed Instances (#1920)

* 1919 sp_Blitz ignoring a few checks for Managed Instances

Working on #1919.

* #1919 sp_Blitz excluding restored databases

When checking backup history. Working on #1919.

* #1919 sp_Blitz ignore some checks on Mgd Instances

Changing RCSI wording on Azure SQL DB. Working on #1919.

* #1921 Sp_BlitzIndex Add Drop and Create Columns to Output (#1923)

Joined output query to #IndexCreateTsql to retrieve the CreateTsql already generated earlier in the script.  Created Drop TSQL based off evaluating what type of index was present.

* #1921 sp_BlitzIndex adding drops (#1924)

Moving drop and create TSQL to the end of mode 2's results. Closes #1921.

* #1925 sp_Blitz AWS RDS detection (#1926)

Don't just rely on EC2 VM name to detect RDS. Also adds a new result noting that checks were skipped. Closes #1925.

* #1927 sp_BlitzIndex skip rdsadmin db (#1928)

GetAllDatabases = 1 fails when it hits rdsadmin because they're referring to the resource db. Closes #1927.

* 2019_01 Release (#1931)

Prep work for the release - changing version numbers, building build scripts.

* #1933 sp_BlitzIndez Azure SQL DB (#1934)

Check for DaysUptime is null. Closes #1933.

* 1936 Deprecate Power BI Dashboard (#1937)

Closes #1936.

* sp_BlitzFirst - Decimals - Fixes #1940 (#1941)

* batch requests & waits/core/sec are now decimals

* also updated final data set for consistency

* 1950 sp blitz lock azure sql db hyperscale (#1951)

* #1950 sp_BlitzLock Azure SQL DB Hyperscale

Fixes #1950.

* #1950 sp_BlitzLock Azure SQL DB Hyperscale

Oops, forgot my semicolon. Fixes #1950.

* #1947 sp_BlitzIndex stats for current db (#1955)

Can only get stats if you're in the database you're analyzing. Closes #1947.

* #1952 sp_BlitzIndex Fix INSERT query column order (#1954)

* remove table name from create index script (#1942)

* Add Version Checking  for all SP (#1949)

* Update sp_BlitzCache.sql

DECLARE @BlitzCacheVersion     VARCHAR(30);
DECLARE @BlitzCacheVersionDate DATETIME2;
EXEC dbo.sp_BlitzCache @VersionCheckMode = 1, @Version = @BlitzCacheVersion OUTPUT, @VersionDate = @BlitzCacheVersionDate OUTPUT ;
SELECT @BlitzCacheVersion as BlitzCacheVersion , @BlitzCacheVersionDate as BlitzCacheVersionDate

* Update sp_BlitzFirst.sql

* Update sp_BlitzIndex.sql

* Update sp_BlitzLock.sql

* Update sp_BlitzQueryStore.sql

* Update sp_BlitzWho.sql

* Update sp_DatabaseRestore.sql

* Update sp_BlitzInMemoryOLTP.sql

* Update sp_foreachdb.sql

* Update sp_ineachdb.sql

* Update sp_BlitzBackups.sql

* Update sp_Blitz.sql

* Update sp_AllNightLog_Setup.sql

* Update sp_AllNightLog.sql

* Update sp_BlitzInMemoryOLTP.sql

* Update sp_BlitzLock.sql

* sp_ineachdb version check

Tweaking #1948 so it works. Closes #1948.

* Update sp_BlitzCache.sql (#1953)

Complete the join between #missing_index_detail and ##bou_BlitzCacheProcs as otherwise on servers running jobs with many steps, each missing indices will cause #missing_index_pretty to grow exponentially, causing sp_BlitzCache to run for hours.

* Fixes #1943 - sp_Blitz check if SSIS/SSRS/SSAS are running (#1957)

* Update sp_Blitz.sql

* Update sp_Blitz.sql

* Update sp_Blitz Checks by Priority.md

* Update sp_Blitz Checks by Priority.md

* Update sp_Blitz Checks by Priority.md

* altered search strings

because *of course* there's white space. shouldn't hurt too badly because there aren't many services running on sql boxes (hopefully)

* #1943 adding URL (#1960)

For new SSAS/IS/RS check. Closes #1943.

* sp_BlitzCache additional plural checks for @sortorder (#1963)

* additional plural checks

added in plural checks, also raised error to 16 when invalid sort order is chosen.

* removed unnecessary checks

* minor typo (#1965)

* #1967 sp_Blitz updating supported versions (#1969)

SQL 2012 pre-SP4 is out of support. Closes #1967.

* #1935 sp_BlitzCache Azure compatibility (#1972)

Azure SQL DB compatibility and removing bou from global temp table names. Closes #1935.

* #1973 sp_BlitzIndex truncation error (#1974)

Fixes #1973.

* #1971 add POOL_LOG_RATE_GOVERNOR as poison (#1975)

Closes #1971.

* #1966 fix sp_Blitz check IDs (#1976)

203 and 224 were swapped in the documentation. Closes #1966.

* 20190219 bumping version numbers

To prep for imminent release...

* 20190219 release

Updating install-all-scripts with new versions.

* 2019_02 Release

Bumping version numbers & dates.

* Merge conflicts, good times

* Merge conflicts, whee

* 2019_02 release

Updating build scripts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants