{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShell/xStorage/issues/66","repository_url":"https://api.github.com/repos/PowerShell/xStorage","labels_url":"https://api.github.com/repos/PowerShell/xStorage/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/xStorage/issues/66/comments","events_url":"https://api.github.com/repos/PowerShell/xStorage/issues/66/events","html_url":"https://github.com/PowerShell/xStorage/issues/66","id":188666425,"number":66,"title":"xDiskAccessPath - Cannot re-create Access Path mapping","user":{"login":"Zuldan","id":12680150,"avatar_url":"https://avatars.githubusercontent.com/u/12680150?v=3","gravatar_id":"","url":"https://api.github.com/users/Zuldan","html_url":"https://github.com/Zuldan","followers_url":"https://api.github.com/users/Zuldan/followers","following_url":"https://api.github.com/users/Zuldan/following{/other_user}","gists_url":"https://api.github.com/users/Zuldan/gists{/gist_id}","starred_url":"https://api.github.com/users/Zuldan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zuldan/subscriptions","organizations_url":"https://api.github.com/users/Zuldan/orgs","repos_url":"https://api.github.com/users/Zuldan/repos","events_url":"https://api.github.com/users/Zuldan/events{/privacy}","received_events_url":"https://api.github.com/users/Zuldan/received_events","type":"User","site_admin":false},"labels":[{"id":224179549,"url":"https://api.github.com/repos/PowerShell/xStorage/labels/bug","name":"bug","color":"fc2929","default":true},{"id":240210286,"url":"https://api.github.com/repos/PowerShell/xStorage/labels/in%20progress","name":"in progress","color":"99ffcc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-11-11T01:51:30Z","updated_at":"2016-11-15T09:31:27Z","closed_at":null,"body":"@PlagueHO thank you for a fantastic resource. I've been using it in production and it's been working a treat. I have come across a small issue where the resource is not keeping the desired state in certain situations.\r\n\r\nSay I have 3x disks mounted to 3x directories\r\n\r\nC:\\MountPoint\\SQLDATA01 (maps to disk 2)\r\nC:\\MountPoint\\SQLDATA02 (maps to disk 3)\r\nC:\\MountPoint\\SQLDATA03 (maps to disk 4)\r\n\r\n**Situation 1:**\r\n\r\nI delete C:\\MountPoint\\SQLDATA03 then run another consistency check. The resource doesn't re-attach the disk back to C:\\MountPoint\\SQLDATA03. Instead the following message appears \"Not enough available capacity\".\r\n\r\n```\r\nVERBOSE: [S12AUMDC01TST83]: LCM:  [ Start  Resource ]  [[xDiskAccessPath]DiskAccessPathSQLDATA03]\r\nVERBOSE: [S12AUMDC01TST83]: LCM:  [ Start  Test     ]  [[xDiskAccessPath]DiskAccessPathSQLDATA03]\r\nVERBOSE: [S12AUMDC01TST83]:                            [[xDiskAccessPath]DiskAccessPathSQLDATA03] Test-TargetResource: Testing Disk '4' status for access path 'C:\\MountPoint\\SQLDATA03'.\r\nVERBOSE: [S12AUMDC01TST83]:                            [[xDiskAccessPath]DiskAccessPathSQLDATA03] Test-TargetResource: Checking if disk number '4' is initialized.\r\nVERBOSE: [S12AUMDC01TST83]:                            [[xDiskAccessPath]DiskAccessPathSQLDATA03] Test-TargetResource: A volume assigned to access path 'C:\\MountPoint\\SQLDATA03\\' was not found.\r\nVERBOSE: [S12AUMDC01TST83]: LCM:  [ End    Test     ]  [[xDiskAccessPath]DiskAccessPathSQLDATA03]  in 0.0320 seconds.\r\nVERBOSE: [S12AUMDC01TST83]: LCM:  [ Start  Set      ]  [[xDiskAccessPath]DiskAccessPathSQLDATA03]\r\nVERBOSE: [S12AUMDC01TST83]:                            [[xDiskAccessPath]DiskAccessPathSQLDATA03] Set-TargetResource: Setting Disk '4' status for access path 'C:\\MountPoint\\SQLDATA03'.\r\nVERBOSE: [S12AUMDC01TST83]:                            [[xDiskAccessPath]DiskAccessPathSQLDATA03] Set-TargetResource: Checking disk number '4' partition style.\r\nVERBOSE: [S12AUMDC01TST83]:                            [[xDiskAccessPath]DiskAccessPathSQLDATA03] Set-TargetResource: Disk number '4' is already initialized with GPT.\r\nVERBOSE: [S12AUMDC01TST83]:                            [[xDiskAccessPath]DiskAccessPathSQLDATA03] Set-TargetResource: Creating partition on disk number '4' using all free space.\r\nInvoke-CimMethod : Not enough available capacity\r\n```\r\n**Situation 2:**\r\n\r\nIf I change the resource config to say instead of disk 4 mapping to C:\\MountPoint\\SQLDATA03, it should map to C:\\SQLDATA03, the same message appears, \"Not enough available capacity\"."},"comment":{"url":"https://api.github.com/repos/PowerShell/xStorage/issues/comments/260591358","html_url":"https://github.com/PowerShell/xStorage/issues/66#issuecomment-260591358","issue_url":"https://api.github.com/repos/PowerShell/xStorage/issues/66","id":260591358,"user":{"login":"Zuldan","id":12680150,"avatar_url":"https://avatars.githubusercontent.com/u/12680150?v=3","gravatar_id":"","url":"https://api.github.com/users/Zuldan","html_url":"https://github.com/Zuldan","followers_url":"https://api.github.com/users/Zuldan/followers","following_url":"https://api.github.com/users/Zuldan/following{/other_user}","gists_url":"https://api.github.com/users/Zuldan/gists{/gist_id}","starred_url":"https://api.github.com/users/Zuldan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zuldan/subscriptions","organizations_url":"https://api.github.com/users/Zuldan/orgs","repos_url":"https://api.github.com/users/Zuldan/repos","events_url":"https://api.github.com/users/Zuldan/events{/privacy}","received_events_url":"https://api.github.com/users/Zuldan/received_events","type":"User","site_admin":false},"created_at":"2016-11-15T09:31:27Z","updated_at":"2016-11-15T09:31:27Z","body":"Cool! thanks for the update."}}
{"actor":{"display_login":"Zuldan"}}