How to delete the server driver in S2D?

sribd-cto 0 Reputation points
2023-06-12T03:20:11.71+00:00

I used the failover cluster manager to delete the server, but found that only the server was deleted, but the drives in the storage pool were not deleted. How to delete the drives of the deleted server in the storage pool? Will deleting the drive affect the data in the storage pool?

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,882 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,566 Reputation points
    2023-06-12T14:04:21.3766667+00:00

    Hello there,

    If you intend to add the server back into the cluster soon, or if you intend to keep its drives by moving them to another server, you can remove the server from the cluster without removing its drives from the storage pool. This is the default behaviour if you use Failover Cluster Manager to remove the server.

    Use the Remove-ClusterNode cmdlet in PowerShell:

    Remove-ClusterNode <Name>

    If you want to permanently remove a server from the cluster (sometimes referred to as scaling-in), you can remove the server from the cluster and remove its drives from the storage pool.

    Removing servers in Storage Spaces Direct https://learn.microsoft.com/en-us/windows-server/storage/storage-spaces/remove-servers

    Open PowerShell in admin mode (PowerShell ISE is better)

    To get the names of the disks, type the following command:

    Get-PhysicalDisk

    To get the names of the virtual disks, type the following command:

    Get-Virtual-Disk

    First mark the disk you want to remove as "retired" by the following command:

    Set-PhysicalDisk -FriendlyName 'PhysicalDiskXX' -Usage Retired

    Now your disk is mark to be removed. You need to rebuild each of your virtual disks with the following command:

    Repair-VirtualDisk -FriendlyName 'My Virtual Disk'

    You can monitor the progression of the process by typing the following command:

    Get-StorageJob

    Once everything is done, just remove the disk from the pool with this command:

    Remove-PhysicalDisk -FriendlyName 'PhysicalDiskXX'

    Similar discussion here https://social.technet.microsoft.com/Forums/ie/en-US/94af4c8a-7d7d-4fa6-98aa-74fe3bf1d944/windows-10-storage-space-cannot-remove-retired-drive?forum=winserverfiles

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer–


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.