Filegroup Usage

Filegroup space usage

Columns

Name Description
Database Name Database name
Filegroup Name Filegroup name; LOG = Log files
% Used % of total usable space (database + OS) that is used
Status Filegroup status (ONLINE, SUSPECT, UNAVAILABLE)
Free Space Total unused space over all OS volumes holding files from this filegroup
DB Used Space Amount of space (database) used in the filegroup
DB Used / Sec Additional amount of space (database) used in the filegroup per second, in interval
Avg DB Used / Sec Average additional amount of space (database) used in the filegroup per second, since collection started
Delta DB Used Delta amount of space (database) used in the filegroup
Avg Delta DB Used Average of delta amount of space (database) used in the filegroup, since collection started
Is Sparse? Whether any file in the filegroup is a sparse file (i.e. for snapshots)
Is Growth Unlimited? Whether any file in the filegroup has growth unlimited
DB Free Space Unused space (database)
OS Allocated Amount of space (OS) used in the filegroup
OS Free Space Total unused space (OS) over all OS volumes holding files from this filegroup; if OS free space is too small for next (grown) file extent for a file, then that will be shown under OS Unusable Space, and the value considered here, for that file on that volume, will be 0
OS Unusable Space Total amount of unusable space (OS) over all OS volumes holding files from this filegroup; for example, OS free space that is too small for next (grown) file extent
Max Size Total maximum size imposed on the filegroup over all files; 0 = On all files, no growth allowed or unlimited growth (subject to OS space); the meaning of this value will be ambiguous if a filegroup has a mix of unlmited growth and limited growth files
File Count Number of files in the filegroup
Not Online File Count Number of files in the filegroup that are not online
Suspect File Count Number of files in the filegroup that have suspect pages
Suspect Pages Number of suspect pages in the filegroup
Read Only File Count Number of files in the filegroup that are marked read-only

File Usage - Columns

Name Description
Logical Name Logical name of file
Status File state, including (but not limited to):
  • ONLINE
  • RESTORING
  • RECOVERING
  • RECOVERY_PENDING
  • SUSPECT
  • OFFLINE
  • DEFUNCT
  • DB ONLINE
  • DB RESTORING
  • DB RECOVERING
  • DB RECOVERY_PENDING
  • DB SUSPECT
  • DB EMERGENCY
  • DB OFFLINE
  • DB COPYING
  • DB OFFLINE_SECONDARY
  • UNAVAILABLE
OS Allocated Amount of space (OS) used in the file
% Used % of total usable space (database + OS) that is used
Free Space Unused space
OS Next Allocation Absolute size of next (grown) file extent allocation at OS level; calculated by Surveillance using many factors
Data Used % Of Allocated % of total usable space (database) that is used
DB Used Amount of space (database) used in the file
DB Free Unused space (database)
OS % Growth % growth applied to new file extents, at the OS level; 0 = Not percentage-based growth
OS Growth Absolute growth applied to new file extents, at the OS level; 0 = Percentage-based growth
Is Growth Unlimited? Whether growth is unlimited (subject to OS space) for the file
Max Size Maximum size imposed on the file; 0 = No growth allowed, -1 = Unlimited growth (subject to OS space)
OS Free Unused space (OS); if OS free space is too small for next (grown) file extent, then that will be shown under OS Unusable, and this value will be 0
OS Unusable Amount of unusable space (OS); for example, OS free space that is too small for next (grown) file extent
Suspect Pages Number of suspect pages; sourced from msdb..suspect_pages
Is Read Only? Whether the file is marked read-only
Is Sparse? Whether this is a sparse file (i.e. for snapshots)
File ID File ID
Physical Name Physical name (path) of the file

Entity Requirements

Attributes: DMV
Minimum database version: 9.0

Sample