Enable data deduplication

Enable data deduplication

  1. Ensure connection to Remote Windows PowerShell Session

Amazon FSx

  1. Execute the command:
Get-Command *-FSxDedup*

Amazon FSx

  1. Execute the command to activate data duplication
Enable-FSxDedup

Amazon FSx

  1. Execute the following test commands:
Get-FSxDedupConfiguration

Amazon FSx

  1. Continue executing the command:
Get-FSxDedupStatus

Amazon FSx

  1. Execute the command:
Get-FSxDedupMetadata

Amazon FSx

  1. Execute test command:
Get-FSxDedupSchedule

Amazon FSx

  1. Continue to Runthe following command:
Measure-FSxDedupFileMetadata -path "D:\share"

Amazon FSx

Create a new anti-duplication optimization schedule

  1. Execute command on Remote Windows PowerShell Session.
New-FSxDedupSchedule
  • Perform configuration

  • Name: DailyOptimization

  • Type: Optimization

Amazon FSx

  1. Make configuration
Set-FSxDedupSchedule -?

Amazon FSx

  1. Next, execute the command to configure the time:
Set-FSxDedupSchedule -Name DailyOptimization -Start start_time
  • Wait for about 3-5 minutes, execute the following test command:
Get-FSxDedupStatus
  • The results of all schools have not changed

  • Wait for more than 10 minutes to use the above command again, you will see the change in the following parts:

    • LastOptimizationResult
    • OptimizedFilesCount
    • OptimizedFilesSavingsRate
    • OptimizedFilesSize
    • SavedSpace