Cant't remove Physical Disk with the friendlyname PhysicalDisk-1 and status Lost Communication

Christian 0 Reputation points
2023-08-25T07:55:49.62+00:00

Hello, I am trying to delete a disk from a StoragePool:User's image

First, I execute this command, which also completes successfully:

Set-PhysicalDisk -FriendlyName 'physicaldisk-1' -Usage Retired

But then I try

Remove-PhysicalDisk physicaldisk-1

Do I get the error message

Remove-PhysicalDisk : The argument transformation for the "StoragePool" parameter cannot be processed. The value "physicaldisk-1" cannot be converted to type "Microsoft.Management.Infrastructure.CimInstance" type. Error: "The specified argument is outside the valid range of values. Parameter name: className"

I wanted to try to erase the disk via the serialnumber or uniqueid



Get-PhysicalDisk | select-object serialnumber, uniqueid, friendlyname, operationstatus, healthstatus

but there I only get this info:

serialnumber:
uniqueid:
friendlyname: PhysicalDisk-1
operationstatus:
HealthStatus: Warning

Do you have any ideas what else I could do?

I have already restarted several times.
Reset-PhysicalDisk fails with "Reset-physicaldisk : Failed".

Thanks a lot for your help!

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,525 questions
Windows Server Clustering
Windows Server Clustering
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Clustering: The grouping of multiple servers in a way that allows them to appear to be a single unit to client computers on a network. Clustering is a means of increasing network capacity, providing live backup in case one of the servers fails, and improving data security.
974 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.
642 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 33,376 Reputation points Microsoft Vendor
    2023-09-12T09:52:52.0166667+00:00

    Hi,

    Please see if passing a CimInstance to Remove-PhysicalDisk works.

    Get-PhysicalDisk physicaldisk-1 | Remove-PhysicalDisk
    

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments