[Autogenerated] Let's now explore how PowerShell becomes your ultimate tool set
for streamlining the management of advanced file services.
With PowerShell,
you can gain access to a comprehensive array of dedicated commandments
such as G dup volume for retrieving deduplication,
information set dup volume for configuring,
deduplication settings and enable dedupe volume to enable deduplication,
enable to efficiently optimize and secure your data storage.
We'll explore each command lit along with practical
use examples a little bit later.
So Bethany's Pie Shop has a file server that houses all the recipes,
photos, documents and other important business files.
Over time, a lot of redundant copies of files have accumulated on the server.
They have taken up lots of unnecessary storage space.
You need to set up data deduplication on the file server to
eliminate these redundant copies and free up disk space.
And this demo will walk through the sip to enable
data deduplication on the volume.
We're going to kick off a deduplication job and monitor the job
status to ensure it completes successfully.
This will allow the it admin to reclaim the good amount of
wasted this space on the file server.
Let's walk through setting up data deduplication on the SV one file server.
So I have my PowerShell console open here and I'm
connected to my file server SV one.
But first I need to confirm that the data deduplication feature is installed.
This provides me the functionality needed to enable and run deduplication.
Data deduplication is a Windows feature called FS data duplication.
So i'll go to get Windows feature on the SV one server to
see if that feature is indeed installed.
All right, looks like it is not installed and to install it,
I simply need to pipe this to install Windows feature and
whittle a bit and get this feature installed,
but it has been successful.
Now, the volume I want to free up access based on is usually at the E volume.
So let me just see if there's anything on the E volume right now,
it may not be mounted.
No, it's not mounted yet.
So what I need to do is mount this volume and in this case,
I'm just using a demo disk.
So I don't have to make any changes to my actual volumes on my server.
I just have a volume as a vhdx file and I'm going to
be using that for duplication.
All right.
So now that it's mounted, it is the E drive and we are good to go now.
So as you can see,
I've created a large files here and I made copies of them to
be sure that there's plenty of duplication.
Let's now see how much free space is available on this vole
using get volume with the drive letter of E I should see how
much free space is available.
Looks like there is 32.89 gigabytes available on a roughly 50 gig volume.
Okay.
We have a starting point.
Let's see if we can squeeze out any more space from this volume.
Data deduplication needs to be enabled on the volume.
First, we can do that with the enable dup volume command lit.
All right, no errors looks like all is good.
Currently,
we have saved zero space and we have a savings rate
of 0% which is to be expected.
We're just getting started.
You can also run get dup volume to see that same output.
So now that there is one volume enabled for data deduplication.
So now we can kick off an optimization job that will analyze the
volume and consolidate all those redundant files.
The start duc job command here runs the optimization job.
I'll point it at the volume E and i'll specify that job type should be
optimization which will go through and eliminate duplicate data.
There are other job types like garbage collection and free up space from
data chunks that are no longer needed and scrubbing,
validates and fixes any corruption.
But we're removing duplicates and freeing up space.
Optimization is what we want.
All right, looks like it started.
So now we can monitor the progress with the GD duke job command.
Progress is 0%.
Progress is 100% looks like it has completed, still free up.
There we go.
When it doesn't return anything, that means it is 100% completed.
Now, let's check the volume and see what the free space looks like.
42.78.
And what were we before?
Looks like we were at 32.89.
So we saved about 10 gigs in that D duke job.
That's pretty good.
Depending on the type of data that you have.
Depends on the,
the space that it is going to remove the duplication from during my testing,
I've done it on simply text files.
You could really clean up a lot of space with just pure text,
but it just all depends on the file type.