This problem occurs when you apply a host profile to a different host than the one from which you extracted the host profile. After you apply the host profile the PluggableStorageArchitectureProfile and/or the NativeMultiPathingProfile subprofiles of the storage host profile report that one or more storage devices are not compliant. You can not successfully remediate the host profile, no matter how many times you apply the profile.
VMware vSphere ESXi 8.x and later
Host Profiles enforce shared storage configurations across all hosts in the cluster and expect all devices to be either "local" or "shared clusterwide." The vSphere storage stack automatically detects which devices are local and makes this information available to higher level software but unfortunately this information is not always reliable for the special case of local Serial Attached SCSI (SAS) devices. Sometimes these devices are detected as non-local when they are in fact local.
If you have one or more SAS devices on the host from which you extracted the host profile that, although local to this host, are not detected to be local by the vSphere storage stack then this issue will occur. Alternatively you could have SAS devices that are shared among some but not all hosts in the cluster, which would also cause this issue. If you know the GUID for a local SAS, you can check if this is the case at the ESXi command line with the following command:
esxcli storage core device list --device device_guid | grep Local:
device_guid is either of the form naa.ddd where ddd are digits or mpx.vmhba0.C0:T0:L0 where the vmhba number is 1 or 2 digits and the C0:T0:L0 might be (for example) C1:T1:L1 or similar.
You can perform one of the following four options to fix this issue.Each option requires that all hosts in your cluster have the same set of storage devices that are shared across the cluster, so ensure that the host from which you extract the host profile is properly configured as regards storage devices that are shared clusterwide. The local/non-local SAS issue will be fixed on ALL hosts regardless of which approach you use. If any shared storage devices are not present on other hosts you will see errors for those but not for any local SAS devices.
The profile from any of the above options should be applied to all other hosts in the cluster to reset the "shared clusterwide" field on the other hosts. Alternatively you can check compliance and then choose to remediate. Any shared storage devices which are not present on another host results in non-remediable compliance failures but the local SAS devices is reset such that compliance failure is remediated.