Jump to content
Updated Privacy Statement

Terry Highfield

Members
  • Posts

    12
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by Terry Highfield

  1. Do you have any Catalogs using the Connection still? If so delete these and try removing the tasks again before proceeding...

     

    After deleting any catalog that could be using the connection you may need to just resort to PowerShell to remove the connections (Perhaps MCS or Studio has gotten mixed up with background task due to not being able to use the connection anymore).

     

    Add-PSSnapin Citrix.Broker.Admin.V2

    Add-PSSnapin Citrix.Host.Admin.V2

    Remove-Item -path "xdhyp:\HostingUnits\[HostingUnitName]"

    Remove-BrokerHypervisorConnection -Name "[ConnectionName]"

    Remove-Item -path  "xdhyp:\Connections\[ConnectionName]"

     

    If you refresh the nodes in studio (or just restart studio) the connection should be removed.

    • Like 8
  2. Ok, I'd attempt a more brute force approach then. The following commands will remove all the tasks that used to belong to the hosting unit (resource) that you wish to delete (I don't think it's a question of limiting them to particular images).

     

    • Add-PSSnapin Citrix.MachineCreation.Admin.V2
    • Get-ProvTask | Where-Object { $_.HostingUnit -eq "Put-Here-Your-Hosting-ID"} | Stop-ProvTask 
    • Get-ProvTask | Where-Object { $_.HostingUnit -eq "Put-Here-Your-Hosting-ID"} | Remove-ProvTask 

     

    you can retrieve the hosting unit id by calling Get

    • Add-PSSnapin Citrix.Host.Admin.V2
    • cd xdhyp:\HostingUnits\
    • dir

    (the hosting unit to find the id of will have the same name that you gave the hosting resource in studio - they are the same thing)

     

    After running the commands above you should be able to remove the connection from Studio.

     

    Note: If you associated more than one Resource with the connection that you wish to delete then you'll have to run the commands above for each Hosting Unit (Resource)

    • Like 1
  3. Hi,

    What is it that you are trying to achieve with the command? MCS does run background disk cleanup tasks occasionally. I wouldn't advise just removing these tasks just to delete a host resource. If you remove the tasks then those disk images will not be cleared from your storage - is this your intention?

     

    Have you monitored the backgrounds tasks at all? What are their current states?

     

    Terry

×
×
  • Create New...