Hi Everyone,
We utilise a DFSR environment at work in order to replicate data back to our Hub Server Infrastructure from our Site Servers we have out in the fleet.
Currently we have a spreadsheet where we track Drives on the DFSR Hub Servers, Disk Space, Which Drives are used for which replication group. THis is used to assist our team in identifying where we can create a new replication group when we have a new site setup to complete, as well as try to identify if we need to shift data to another DFSR Hub Server/Volume due to growth of data sets etc. When this data is refreshed, we pretty much have to go through each server and drive to identify storage utilisation and update these details in the spreadsheet (i.e. it is a manual process).
Due to this manual process, we've been caught out on occasion where we've run out of disk space due to new Replication Groups being setup of drives that don't really have sufficient space new RG's, which means we normally have to react quickly to shuffle RG's to other volumes on another DFSR Hub Server with sufficient capacity, or expand volumes (due to the drive running out of space, and no possibility of natively migrating the replication group via DFSR itself).
I'm very much a novice when it comes to creating powershell scripts to serve these types of functions, but I was hoping someone either may be able to give me some pointers or build a script that does the following:
- Reviews list of drives Drives on a list of servers (Only including specified Drives, not C Drive for example)
- Obtain information such as:
- Drive Size (in GB)
- Space Remaining (in GB)
- Breakdown of folders and space consumed at a level 2 folders down from the Drive Letter (e.g. G:\DFSR\<ReplicationGroupName>, this would be for each folder under the DFSR Folder Level) for each drive on each server
- Detail to be output to an excel file, where it can be potentially viewed
- Potential for Dashboards to get better visibilty of what the data above presents?
- Script would need to be set as a scheduled task in order for data to be refreshed periodcally.
The above information would allow my team to know if/when Replication Groups may need to be shifted or if we have sufficient capacity to add additional Replication Groups to certain servers and drives. Would also assist in identifying "at a glance" any Replication Groups we know as being decommissioned.
This isn't necessarily a DFSR request, just something that may assist in managing our DFSR infrastructure better.
If anyone has an idea on how I could achieve this, it would be greatly appreciated.
Thanks in Advance!
Simon