FSx for Windows File Server에서 이번에 File Server Resource Manager 기능을 새로 출시하였습니다. 간략하게 현재 FSxw의 Report를 만드는 방법을 소개합니다.
FSx for Windows에서 FSRM을 사용하려면 먼저 128Mb/s 이상의 처리량을 사용해야 합니다. 따라서 해당 처리량을 사용하고 있지 않다면 해당 처리량으로 증설 이 필요합니다.
1.File Server Resource Manager를 사용하는 방법은 Administration 탭에서 File Server Resource Manager를 Enable 합니다.

-
그리고 GUI를 지원하지 않기 때문에 Network & Security에서 Windows Remote PowerShell Endpoint 확인이 필요합니다.
-
Managed AD의 Admin 권한 또는 FSXw 파일시스템 생성시 기입했던 admin그룹의 사용자로 도메인에 가입된 인스턴스에 로그입합니다. 이때 5985 Port가 FSxw 파일시스템과 연결이 되어야 파워쉘 엔드 포인트로 연결이 가능합니다.
-
파워쉘을 관리자 권한으로 열고 2.에서 확인한 Windows Remote PowerShell Endpoint 를 아래와 같이 입력합니다.
$FSxWindowsRemotePowerShellEndpoint = "amznfsxl.a.d.com".
(amznfsxl.a.d.com이 Windows Remote PowerShell Endpoint 입니다.)
- QuotaUsage 사용량을 알고 싶으시면 아래와 같이 명령어를 기입합니다.
Invoke-Command -ComputerName $FSxWindowsRemotePowerShellEndpoint -ConfigurationName FSxRemoteAdmin -ScriptBlock {
New-FSxFSRMStorageReport -Name "Find large files" -Namespace "share" -Interactive $true -ReportType "QuotaUsage"
}
- LargeFiles 사용량을 알고 싶으시면 아래와 같이 명령어를 기입합니다.
Invoke-Command -ComputerName $FSxWindowsRemotePowerShellEndpoint -ConfigurationName FSxRemoteAdmin -ScriptBlock {
New-FSxFSRMStorageReport -Name "LargeFiles" -Namespace "share" -Interactive $true -ReportType "LargeFiles"
}
- 파일이름은 ReportType 에 의해서 정해집니다. 그리고 ReportType 종류는 아래와 같습니다.
• DuplicateFiles: Identifies duplicate files based on file size and content
• FilesByFileGroup: Groups files by file group membership
• FilesByOwner: Groups files by owner
• FilesByProperty: Groups files by classification property
• FileScreenAuditFiles: Lists file screening violations
• FoldersByProperty: Groups folders by management property
• LargeFiles: Lists files above a specified size threshold
• LeastRecentlyAccessed: Lists files that haven't been accessed recently
• MostRecentlyAccessed: Lists files that were accessed recently
• QuotaUsage: Shows quota usage statistics
- 보고서 파일은
\\file-system-dns-name\D$ 에 보고서 파일이 존재 합니다.

스케줄을 걸어 실행한 보고서가 아니기에 Interactive 폴더에 있습니다. 스케줄 을 걸어 정기적으로 보고서 작성이 필요하시다면 아래 문서를 참고하시기 바랍니다. [1]

- 아래는 예시로 작성된 Quota Usage Report와 Large Files Report 입니다.

*Report 작성은 시스템의 자원을 소모하기에 FSxw가 유휴 상태 즉 중복제거나 쉐도우 복사 그리고 백업이 없을 시간대에 수행하시길 권장드립니다.
[1] https://docs.aws.amazon.com/fsx/latest/WindowsGuide/fsrm-storage-reports.html#fsrm-storage-reports-commands