Automation

 View Only
  • 1.  Question concerning -RescanAllHba & -RescanVmfs

    Posted Dec 17, 2013 10:14 PM

    When I use -RescanAllHba & -RescanVmfs to rescan for datastores on a host, will my next command wait until the rescan if fully complete?

    If not, is there a way to ensure that the next part of my script does not continue until the datastores have been updated?

    Thanks



  • 2.  RE: Question concerning -RescanAllHba & -RescanVmfs

    Posted Dec 18, 2013 07:18 AM

    Normally, the script will wait till the scan is completed.

    Note that there is no RunAsync switch on the Get-VMHostStorage cmdlet.