Giter VIP home page Giter VIP logo

Comments (7)

raandree avatar raandree commented on May 19, 2024

Actually we did never have the chance to run AL on a computer having MPIO drives attached. Can you propose a code change to fix this or do you have a test machine we can connect to for a short time to fix this ourselves?

from automatedlab.

BristleBeard avatar BristleBeard commented on May 19, 2024

I cannot provide access, but I'd be happy to propose a code change. I'll get the specifics and cobble something together.

from automatedlab.

raandree avatar raandree commented on May 19, 2024

Thanks in advance for your time. If you need help, please reach out to us.

from automatedlab.

BristleBeard avatar BristleBeard commented on May 19, 2024

What's the reasoning on excluding virtual disks? I think part of the issue I'm seeing could be from the disk is inside a thin provisioned storage space. It seems the checking against BusType should be sufficient.

from automatedlab.

raandree avatar raandree commented on May 19, 2024

As far as I remember we excluded virtual disk as we did not want to install into a mounted VHD by accident. Also mounted VHDs do not have a serial number and we used the serial number and signature to uniquely identity a disk. However I have looked up the cache and did not find the information there so I am not sure if we still need this info:

Select-Xml -Xml ([xml](Get-ItemProperty -Path HKCU:\SOFTWARE\AutomatedLab\Cache -Name LocalDisks).LocalDisks) -XPath //LocalDisk | Select-Object -ExpandProperty Node | ft @{ Name = 'DriveLetter'; Expression = { ([char][int]$_.DriveLetter) } }, Serial, Signature

Does it help to change the lines in AutomatedLabDefinition.psm1 around line 484 and remove the where statements?

$physicalDisks = Get-PhysicalDisk # | Where-Object { $_.BusType -ne 'File Backed Virtual' }
$disks = Get-CimInstance -Class Win32_DiskDrive #|
#Where-Object { $_.SerialNumber } |
#Where-Object { $_.SerialNumber.Trim() -in $physicalDisks.SerialNumber }

Per, what do you think about this?

from automatedlab.

BristleBeard avatar BristleBeard commented on May 19, 2024

Commenting out the where statement is exactly the workaround I've been using. In my instance, Get-PhysicalDisk does return a serial number on the storage spaces, but Win32_DiskDrive returns an object for the serial number that doesn't match it.

from automatedlab.

raandree avatar raandree commented on May 19, 2024

I have asked Per Pedersen if this change is going to create trouble - he has written the disk measurement and discovery feature. If he agrees, we will make this for V4.

from automatedlab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.