Code Monkey home page Code Monkey logo

Comments (12)

reidav avatar reidav commented on June 12, 2024 1

Hi,

We had the same issue while configuring disks before provisionning SQL Cluster (4.3.0.0)
Get-Partition always returns multiple disks.

We just added above 'if' statement after Get-Partitions command

$partition = Get-Partition `
-DriveLetter $DriveLetter `
-ErrorAction SilentlyContinue
 
**# Handle cluster disks returned by the Get-Partition commands
if ($partition -is [array] -and $disk) {
$partition = $partition | Where-Object { $_.DiskPath -eq $disk.Path }
}**

Hope it helps.

from storagedsc.

PlagueHO avatar PlagueHO commented on June 12, 2024

Hi @asdglkjkwekdf , that is some great info. Looks like it should be possible to port over method from MSFT_xDiskAccessPath to MSFT_xDisk. I'll try and put some time aside to do this. But not for a few days yet (this week is all kinds of crazy busy). But if you or someone else gets to it first, let me know you're working on it so we don't duplicate work.

from storagedsc.

asdglkjkwekdf avatar asdglkjkwekdf commented on June 12, 2024

I have already ported the code in my environment; but, unfortunately we are not allow to contribute code. The best I can do is report issues in as much detail as I can.

From my testing cloning the xDiskAccessPath code to the get and test methods was all that was required. I did not review the set method; but, I wonder whether that should have been changed as well.

from storagedsc.

PlagueHO avatar PlagueHO commented on June 12, 2024

Hi @asdglkjkwekdf - no problem. I'll see if I can take a look at this this weekend.

from storagedsc.

PlagueHO avatar PlagueHO commented on June 12, 2024

Hi @asdglkjkwekdf - sorry about the delay. I'm working on this today.

from storagedsc.

PlagueHO avatar PlagueHO commented on June 12, 2024

Hi @asdglkjkwekdf - I've made the changes to this now so that xDisk uses the same pattern as xDiskAccessPath. This change will go in as part of #81 which is a BREAKING CHANGE for xDisk, xDiskAccessPath and xWaitForDisk. Please see the details of #81 to see why this change was necessary.

So once this is released you'll need to update your configs slightly.

from storagedsc.

asdglkjkwekdf avatar asdglkjkwekdf commented on June 12, 2024

Hello @PlagueHO - Thanks for looking at this. The changes for #81 make sense.

from storagedsc.

PlagueHO avatar PlagueHO commented on June 12, 2024

Thanks @asdglkjkwekdf - I've merged this change now to Dev. So if you have a change, could you give it a try and see if it resolves your issue?

from storagedsc.

asdglkjkwekdf avatar asdglkjkwekdf commented on June 12, 2024

I should be able to give the dev branch a go this week.

from storagedsc.

asdglkjkwekdf avatar asdglkjkwekdf commented on June 12, 2024

Tested successfully.

from storagedsc.

asdglkjkwekdf avatar asdglkjkwekdf commented on June 12, 2024

Testing with new build more thoroughly indicates we still have an issue.

Set has been fixed however Get and Test have not been fixed

MSFT_xDisk.psm1 (dev branch)
==> Get Partition:

  • Get - Ln 95 > Not fixed
  • Set - Ln 264 - 268 > Fixed
  • Test - Ln 591 > Not fixed

==> Get Volume:

  • Get - Ln 98 > Not fixed
  • Set - Ln 388 > Fixed
  • Test - Ln 636 > Not fixed

Let me know if this does not make sense

from storagedsc.

PlagueHO avatar PlagueHO commented on June 12, 2024

Hi @asdglkjkwekdf - thanks for reporting this! I'll take a look this week - I'm a bit behind at the moment. Will definitely catch up this weekend though.

from storagedsc.

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.