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

SQL Server 2012 over ReFS file system type (not supported) #107

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions BPCheck/Check_BP_Servers.sql
Original file line number Diff line number Diff line change
Expand Up @@ -910,9 +910,14 @@ SELECT 'Information' AS [Category], 'Machine' AS [Information],
--------------------------------------------------------------------------------------------------------------------------------
IF @sqlmajorver > 9
BEGIN
RAISERROR (N'|-Starting Disk space', 10, 1) WITH NOWAIT
SELECT DISTINCT 'Information' AS [Category], 'Disk_Space' AS [Information], vs.logical_volume_name,
vs.volume_mount_point, vs.file_system_type, CONVERT(int,vs.total_bytes/1048576.0) AS TotalSpace_MB,
vs.volume_mount_point,
vs.file_system_type,
CASE
WHEN vs.file_system_type = 'ReFS' AND @sqlmajorver < 12 THEN '[WARNING: ReFS is not supported in a product version preceding SQL Server 2014, in this case use NTFS]'
ELSE '[OK]'
END AS [Deviation]
, CONVERT(int,vs.total_bytes/1048576.0) AS TotalSpace_MB,
CONVERT(int,vs.available_bytes/1048576.0) AS FreeSpace_MB, vs.is_compressed
FROM sys.master_files mf
CROSS APPLY sys.dm_os_volume_stats(mf.database_id, mf.[file_id]) vs
Expand Down