partedUtil commands in the ESXi CLI to clear the disk fails, returning errors such as "Read-only file system" or "No such file or directory".VMware vSAN 8.0 OSA
This issue occurs because the disks contain persistent metadata and partitions from a previous third-party installation (such as a Nutanix environment).
The ESXi VMkernel frequently flags these "Foreign" or "OS" partition tables as active system disks. To protect what it perceives as an active OS, the VMkernel places a strict lock on the partition table. Because the original third-party management tools are no longer present to release the disks, native ESXi tools (like partedUtil) are blocked from overwriting the GUID Partition Table (GPT) or modifying the drive.
To resolve this issue, you must bypass the ESXi software layer and its kernel locks to completely clear the legacy metadata from the disk.