Stop-StorageJob : Not Supported error while trying to stop long running Repair-VirtualDisk job

Sanath Kumar 20 Reputation points
2023-02-09T12:45:13.1066667+00:00

I have run Repair-VirtualDisk command for a virtualdisk which takes a very long time. So wanted to stop that job.

So, Tried "Get-StorageJob" and "Stop-StorageJob" to list out all running storage jobs and selectively stop the storage job.

"Get-StorageJob" gave the output as below

Name                     IsBackgroundTask ElapsedTime   JobState PercentComplete BytesProcessed BytesTotal
----                     ---------------- -----------   -------- --------------- -------------- ----------
LucidityVD1-Repair       False            5040.15:43:00 Running  40                    53.71 GB     134 GB
LucidityVD1-Regeneration True             00:13:18      Running  40                    53.71 GB     134 GB

So, I tried to stop the running job using below command,

Stop-StorageJob -Name "LucidityVD1-Repair"

Output:

Stop-StorageJob : Not Supported
Activity ID: {74fb443a-72b3-4ed3-8464-a3d243c739c4}
At line:1 char:1
+ Stop-StorageJob -Name "LucidityVD1-Repair"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (StorageWMI:ROOT/Microsoft/...MSFT_StorageJob) [Stop-StorageJob], CimE
   xception
    + FullyQualifiedErrorId : StorageWMI 1,Stop-StorageJob

The same error is seen when I try the command - Stop-StorageJob -Name "LucidityVD1-Regeneration"

Please let me know If I am doing something wrong or if there is another way to stop the on-going "Repair-VirtualDisk" job.

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,703 questions
Windows Server Storage
Windows Server Storage
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Storage: The hardware and software system used to retain data for subsequent retrieval.
668 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,627 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.