Hello SpiceWorks Community!
I seemed to have come across another strange error that Google seems to have no information about...
I am running a BIOS RAID-1 500GB system with 2x Intel Xeon Quad-Cores @ 2.50 GHz, 8 GB RAM, and Server 2012 R2. This server has AD CS, AD DS, DHCP, DNS, Hyper-V, IIS, NAP, Printer Services, and Remote Access roles (yes I know, horrible to put all these roles onto this one server, but this server is basically a test environment with may be at the most 2 client machines/users connecting simultaneously, if that. That, and there's method to the madness).
Anyway, I tried had defrag run an analysis report of the level of fragmentation (since the server started running unbearably slow; and no it's not because of the roles since it was blazing fast when I first configured everything and continued to be fast for months until recently) and sure enough I was at 44%. I tried to run defrag manually, and it started to run, then suddenly stopped with no error messages or anything. But the analysis reports it's now at 42%.
I tried running this power shell script:
PS C:\> Optimize-Volume -DriveLetter C -Defrag -Verbose
And this is what outputs:
VERBOSE: Invoking defragmentation on (C:)...
VERBOSE: Analysis: 0% complete...
VERBOSE: Analysis: 32% complete...
VERBOSE: Analysis: 33% complete...
VERBOSE: Analysis: 34% complete...
VERBOSE: Analysis: 37% complete...
VERBOSE: Analysis: 41% complete...
VERBOSE: Analysis: 43% complete...
VERBOSE: Analysis: 44% complete...
VERBOSE: Analysis: 45% complete...
VERBOSE: Analysis: 46% complete...
VERBOSE: Analysis: 47% complete...
VERBOSE: Analysis: 48% complete...
VERBOSE: Analysis: 50% complete...
VERBOSE: Analysis: 51% complete...
VERBOSE: Analysis: 52% complete...
VERBOSE: Analysis: 53% complete...
VERBOSE: Analysis: 54% complete...
VERBOSE: Analysis: 56% complete...
VERBOSE: Analysis: 59% complete...
VERBOSE: Analysis: 60% complete...
VERBOSE: Analysis: 62% complete...
VERBOSE: Analysis: 65% complete...
VERBOSE: Analysis: 68% complete...
VERBOSE: Analysis: 72% complete...
VERBOSE: Analysis: 73% complete...
VERBOSE: Analysis: 74% complete...
VERBOSE: Analysis: 77% complete...
VERBOSE: Analysis: 80% complete...
VERBOSE: Analysis: 84% complete...
VERBOSE: Analysis: 86% complete...
VERBOSE: Analysis: 87% complete...
VERBOSE: Analysis: 92% complete...
VERBOSE: Analysis: 100% complete.
VERBOSE:
Pre-Optimization Report:
VERBOSE:
Volume Information:
VERBOSE: Volume size = 464.72 GB
VERBOSE: Cluster size = 4 KB
VERBOSE: Used space = 76.06 GB
VERBOSE: Free space = 388.66 GB
VERBOSE:
Fragmentation:
VERBOSE: Total fragmented space = 43%
VERBOSE: Average fragments per file = 1.48
VERBOSE: Movable files and folders = 107764
VERBOSE: Unmovable files and folders = 5
VERBOSE:
Files:
VERBOSE: Fragmented files = 6947
VERBOSE: Total file fragments = 47991
VERBOSE:
Folders:
VERBOSE: Total folders = 7540
VERBOSE: Fragmented folders = 1389
VERBOSE: Total folder fragments = 2740
VERBOSE:
Free space:
VERBOSE: Free space count = 6411
VERBOSE: Average free space size = 62.07 MB
VERBOSE: Largest free space size = 385.11 GB
VERBOSE:
Master File Table (MFT):
VERBOSE: MFT size = 175.25 MB
VERBOSE: MFT record count = 179455
VERBOSE: MFT usage = 100%
VERBOSE: Total MFT fragments = 1
VERBOSE: Note: File fragments larger than 64MB are not included in the fragmentation statistics.
VERBOSE: Performing pass 1:
VERBOSE: Defragmentation: 0% complete...
Optimize-Volume : One or more parameter values passed to the method were invalid.
At line:1 char:1
+ Optimize-Volume -DriveLetter C -Defrag -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (MSFT_Volume (Ob...3-80b4-806e...):ROOT/Microsoft/...age/MSFT_Volume) [
Optimize-Volume], CimException
+ FullyQualifiedErrorId : MI RESULT 4,Optimize-Volume
Has anyone else run into this issue? And if so have you/how did you resolve this?