citrix-pvs-healthcheck icon indicating copy to clipboard operation
citrix-pvs-healthcheck copied to clipboard

Get-PvsDiskInfo : The specified vDisk does not exist.

Open pmatula opened this issue 7 years ago • 9 comments

Hello, I've a new pvs 7.13 server and imported the devices without a vdisk assignment. When I start the script I get the message:

PS C:\scripts> .\Citrix-PVS77-Farm-Health-toHTML.ps1 Begin with Citrix Provisioning Services HealthCheck

Read some PVS Farm Parameters

Check PVS Target Devices

xenapp01 Collection: collection Used DiskVersion: 0 Used Server: Retry: Retry: Get-PvsDiskInfo : The specified vDisk does not exist. At C:\scripts\Citrix-PVS77-Farm-Health-toHTML.ps1:705 char:15

  • ... $diskinfo = Get-PvsDiskInfo -DiskLocatorId $short_diskLocatorID
  •                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (System.Collecti...ystem.String][]:KeyValuePair`2[]) [Get-PvsDiskInfo], PvsException
    • FullyQualifiedErrorId : Citrix.PVS.SnapIn.InvalidDiskLocator,Citrix.PVS.SnapIn.GetPvsDiskInfo

Is there any workaround/fix?

Thanks

pmatula avatar May 29 '17 09:05 pmatula

Does it fail completely? Or continues? For some of machines (the ones with no vdisk assigned) in my infra, it also fails, but the report continues on.

mikekacz avatar May 29 '17 09:05 mikekacz

wow. fast response.

no the report doesn't continue. (But I have no device with a vdisk assigned - I have not even a vdisk) But the report worked without devices.

pmatula avatar May 29 '17 09:05 pmatula

So quick workaround would be adding "-ea silentlycontinue" with no quotes after every invoke of Get-PvsDiskInfo as another parameter. This may cause some problems in the script.

I did not have an opportunity to test it on 7.13 I may need to deploy one on test environment.

mikekacz avatar May 29 '17 09:05 mikekacz

Thanks. When you need a tester, send me an email :+1:

pmatula avatar May 29 '17 11:05 pmatula

Read the prerequisites in the powershell script... You have to register a DLL, the command you have to run is listed in the powershell scrip.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Patrick Matula [email protected] Sent: Monday, May 29, 2017 4:01:07 AM To: sacha81/citrix-pvs-healthcheck Cc: Subscribed Subject: [sacha81/citrix-pvs-healthcheck] Get-PvsDiskInfo : The specified vDisk does not exist. (#18)

Hello, I've a new pvs 7.13 server and imported the devices without a vdisk assignment. When I start the script I get the message:

PS C:\scripts> .\Citrix-PVS77-Farm-Health-toHTML.ps1 Begin with Citrix Provisioning Services HealthCheck

Read some PVS Farm Parameters

Check PVS Target Devices

xenapp01 Collection: collection Used DiskVersion: 0 Used Server: Retry: Retry: Get-PvsDiskInfo : The specified vDisk does not exist. At C:\scripts\Citrix-PVS77-Farm-Health-toHTML.ps1:705 char:15

  • ... $diskinfo = Get-PvsDiskInfo -DiskLocatorId $short_diskLocatorID
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


 *   CategoryInfo : ObjectNotFound: (System.Collecti...ystem.String][]:KeyValuePair`2[]) [Get-PvsDiskInfo],

PvsException * FullyQualifiedErrorId : Citrix.PVS.SnapIn.InvalidDiskLocator,Citrix.PVS.SnapIn.GetPvsDiskInfo

Is there any workaround/fix?

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/sacha81/citrix-pvs-healthcheck/issues/18, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ASyJGLt9yD5nD0PmXUUWz2vtqwJr_h4Tks5r-olTgaJpZM4NpEI9.

ryanchauvin avatar May 29 '17 14:05 ryanchauvin

@ryanchauvin I don't understand what you mean?

pmatula avatar May 29 '17 15:05 pmatula

Run this in powershell first, just one time, then run the script from Sacha:

set-alias installutil C:\Windows\Microsoft.NET\Framework64\v4.0.30319\installutil.exe installutil "C:\Program Files\Citrix\Provisioning Services Console\Citrix.PVS.SnapIn.dll"


From: Patrick Matula [email protected] Sent: Monday, May 29, 2017 10:02 AM To: sacha81/citrix-pvs-healthcheck Cc: ryanchauvin; Mention Subject: Re: [sacha81/citrix-pvs-healthcheck] Get-PvsDiskInfo : The specified vDisk does not exist. (#18)

@ryanchauvinhttps://github.com/ryanchauvin I don't understand what you mean?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/sacha81/citrix-pvs-healthcheck/issues/18#issuecomment-304682255, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ASyJGFVpUvzlbj01UesEfNruTsBbuvL1ks5r-t38gaJpZM4NpEI9.

ryanchauvin avatar May 29 '17 15:05 ryanchauvin

Well, I did this already. As I described the script works without devices. I added "empty" devices (so no vDisk) and the script aborted. But I have the prerequisites already (otherwise the script wouldn't run in any situation)

pmatula avatar May 29 '17 15:05 pmatula

i need help in modifying the script to individual sites instead of using vdisk store

aadi555 avatar May 03 '18 05:05 aadi555