-
Notifications
You must be signed in to change notification settings - Fork 1
DataStore Functions
Functions that deal with VMWare Datastores.
Get-VMWareOrphanedFile
Get-VMWareDataStoreSIOC
Get-VMWareDataStoreSIOC
.SYNOPSIS
Find orphaned files on a datastore
.DESCRIPTION
This function will scan the complete content of a datastore.
It will then verify all registered VMs and Templates on that
datastore, and compare those files with the datastore list.
Files that are not present in a VM or Template are considered
orphaned
.PARAMETER Datastore
The datastore that needs to be scanned
.EXAMPLE
PS> Get-VMWareOrphanedFiles -Datastore DS1
.EXAMPLE
PS> Get-Datastore -Name DS* | Get-VMWareOrphanedFiles
.EXAMPLE
Count files by datastore and used space.
Get-DataStore | Get-VMWareOrphanedFiles | group-object -Property datastore | foreach-object { New-object PSObject -Property @{ datastore=$_.name;Count=$_.count;Total=($_.group | measure-object -Property size -sum).sum/1TB} }
.Link
http://www.lucd.info/2016/09/13/orphaned-files-revisited/
.SYNOPSIS
Returns on object with SIOC information from a VMWare Datastore.
.SYNOPSIS
Makes changes to a datastores SIOC configuration