Mount Point Folder Not Found

Hello Everyone,

 

I’m having this strange problem where the below section generates an error on the first run (push mode). Subsequent runs execute without issues. Directory gets created, but the step that maps volume to a folder can’t use it for whatever reason. Tried adding 10 seconds delay - no go.

 

PSVersion 5.1.14393.2515

[pre]

File MountDirSQLData
{
Ensure ="Present"
Type ="Directory"
DependsOn = '[Disk]MountPoint'
DestinationPath = "U:\Data"
}
WaitforDisk DataDisk
{
DiskId = $Node.DataDisk
RetryIntervalSec = 60
RetryCount = 5
DependsOn = '[Disk]MountPoint'
}
DiskAccessPath DataVolume
{
DiskId = $Node.DataDisk
AccessPath = 'U:\Data'
DependsOn = '[File]MountDirSQLData'
AllocationUnitSize = 64KB
FSLabel = 'Data'
}
[/pre]

Error message:

[pre]

PowerShell DSC resource MSFT_DiskAccessPath failed to execute Test-TargetResource functionality with error message: Access Path ‘U:\Data’ is not found.

Parameter name: AccessPath

  • CategoryInfo : InvalidOperation: (:slight_smile: , CimException

  • FullyQualifiedErrorId : ProviderOperationExecutionFailure

[/pre]

Any help would be appreciated.

Appears to be a bug in the module. Someone appears to be working on it, but it has not been resolved:

https://github.com/PowerShell/StorageDsc/issues/121