• No results found

Installing and configuring Data Deduplication

In document 20743A-ENU-TrainerHandbook (Page 80-82)

After the planning phase, perform the following steps to deploy Data Deduplication to a server in your environment:

1. Install Data Deduplication components on the server. Use the following options to install deduplication components on the server:

o Server Manager. In Server Manager, perform the following steps:

i. Open the Add Roles and Features Wizard.

ii. Under Server Roles, select File and Storage Services, and then select the File Services

check box.

iii. Select the Data Deduplication check box, and then click Install.

o Windows PowerShell. You can use the following commands to install Data Deduplication:

Import-Module ServerManager

Add-WindowsFeature -Name FS-Data-Deduplication Import-Module Deduplication

2. Enable Data Deduplication. Use the following options to enable Data Deduplication on the server:

o Server Manager. From the Server Manager dashboard:

i. Right-click a data volume, and then select Configure Data Deduplication.

ii. In the Data deduplication box, select the workload that you want to host on the volume.

For example, select General purpose file server for general data files or Virtual Desktop Infrastructure (VDI) server when configuring storage for running virtual machines.

iii. Enter the minimum number of days that should elapse from the date of file creation before

files are deduplicated. Enter the extensions of any file types that should not be deduplicated, and then click Add to browse to any folders with files that should not be deduplicated.

iv. Click Apply to apply these settings and return to the Server Manager dashboard, or click the

Set Deduplication Schedule button to continue to set up a schedule for deduplication.

o Windows PowerShell. Use the following command to enable deduplication on a volume:

Enable-DedupVolume –Volume VolumeLetter –UsageType StorageType

Note: Replace VolumeLetter with the drive letter of the volume. Replace StorageType with the value corresponding to the expected type of workload for the volume. Acceptable values include:

• HyperV. A volume for Hyper-V storage.

• Backup. A volume that is optimized for virtualized backup servers. • Default. A general-purpose volume.

Optionally, you can use the Set-DedupVolume Windows PowerShell cmdlet to configure additional options, such as the minimum number of days that should elapse from the date of file creation before files are deduplicated, the extensions of any file types that should not be deduplicated, or the folders that should be excluded from deduplication.

MCT USE ONL

Y. STUDENT USE PROHIBITED

Upgrading Your Skills to MCSA: Windows Server 2016 2-19

3. Configure Data Deduplication jobs. With Data Deduplication jobs, you can run them manually, run them on demand, or use a schedule. There are four types of jobs that you can perform on a volume:

o Optimization. Includes built-in jobs that are automatically scheduled for optimizing the volumes

on a periodic basis. Optimization jobs deduplicate data and compress file chunks on a volume in accordance with the policy settings. In addition to Server Manager, you also can use the following command to trigger an optimization job on demand:

Start-DedupJob –Volume VolumeLetter –Type Optimization

o Data scrubbing. Scrubbing jobs are scheduled automatically to analyze the volume on a weekly

basis and produce a summary report in the Windows event log. You also can use the following command to trigger a scrubbing job on demand:

Start-DedupJob –Volume VolumeLetter –Type Scrubbing

o Garbage collection. Garbage collection jobs are scheduled automatically to process data on the

volume on a weekly basis. Because garbage collection is a process-intensive operation, consider waiting until after the deletion load reaches a threshold to run this job on demand, or schedule the job for after business hours. You also can use the following command to trigger a garbage collection job on demand:

Start-DedupJob –Volume VolumeLetter–Type GarbageCollection

o Unoptimization. Unoptimization jobs are available on an as-needed basis and are not scheduled

automatically. However, you can use the following command to trigger an unoptimization job on demand:

Start-DedupJob –Volume VolumeLetter–Type Unoptimization

Note: For more information on the Windows PowerShell cmdlet Start-DedupJob, refer to: http://aka.ms/Yphsar

4. Configure Data Deduplication schedules. When you enable Data Deduplication on a server, three schedules are enabled by default: optimization is scheduled to run every hour, and garbage collection and scrubbing are scheduled to run once a week. You can view the schedules by using the Get-

DedupSchedule Windows PowerShell cmdlet. These scheduled jobs run on all the volumes on the

server. However, if you want to run a job only on a particular volume, you must create a new job. You can create, modify, or delete job schedules from the Deduplication Settings page in Server

Manager, or by using the following Windows PowerShell cmdlets: New-DedupSchedule, Set- DedupSchedule, or Remove-DedupSchedule.

Note: Data Deduplication jobs only support, at most, weekly job schedules. If you need to create a schedule for a monthly job or for any other custom time period, use Task Scheduler. However, you will be unable to view these custom job schedules created with Task Scheduler by using the Get-DedupSchedule Windows PowerShell cmdlet.

MCT USE ONL

Y. STUDENT USE PROHIBITED

2-20 Overview of storage in Windows Server 2016

In document 20743A-ENU-TrainerHandbook (Page 80-82)

Related documents