Remove-StoragePool S2D - Access Denied

Luigi Pandolfino 20 Reputation points
2023-11-13T20:09:11.27+00:00

We had the need to reinstall an Azure Stack HCI cluster from scratch.
When we got to creating volumes WAC wouldn't let us erase the disks. We then tried to delete the previous volume with the Remove-StoragePool and Remove-VirtualDisk commands but we had these errors:

Remove-StoragePool : The storage pool could not complete the operation because its configuration is read-only.

Remove-VirtualDisk : The storage pool could not complete the operation because its configuration is read-only.

We then tried running the Set-StoragePool -IsReadOnly $false command with this result:

Set-StoragePool : Access denied

Do you have any idea how to solve it?

Azure Stack HCI
Azure Stack HCI
A hyperconverged infrastructure operating system delivered as an Azure service that provides security, performance, and feature updates.
301 questions
{count} votes

Accepted answer
  1. Trent Helms - MSFT 2,536 Reputation points Microsoft Employee
    2023-11-14T14:39:43.2033333+00:00

    Hi,

    The storage pool is in a read-only state because the cluster is not available to bring it online. This is a protection mechanism to prevent changes to the storage pool when it is not in a healthy state.

    If you are looking to clean the disks and create a new storage pool, you will need to do it manually using the steps listed in this link - https://video2.skills-academy.com/en-us/windows-server/storage/storage-spaces/deploy-storage-spaces-direct#step-31-clean-drives.

    After cleaning the disks using the above script, the storage pool metadata will be completely removed, and the disks will be ready to recreate a new storage pool.

    Hope this helps!

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful