Comments (12)
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.
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.
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.
Hi @asdglkjkwekdf - no problem. I'll see if I can take a look at this this weekend.
from storagedsc.
Hi @asdglkjkwekdf - sorry about the delay. I'm working on this today.
from storagedsc.
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.
Hello @PlagueHO - Thanks for looking at this. The changes for #81 make sense.
from storagedsc.
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.
I should be able to give the dev branch a go this week.
from storagedsc.
Tested successfully.
from storagedsc.
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.
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)
- Enable Code Coverage Reporting
- StorageDSC.Common: Assert-AccessPathValid does not properly validate slashes. HOT 1
- Get-DiskByIdentifier: Allow selection based on Serial Number
- Disk with Number '2' is already initialized with partition style '' but 'MBR' is required. HOT 1
- Update Azure DevOps Pipeline Images
- Update CI Pipeline Files from Latest Pattern
- Convert to class-based resources
- Convert tests to Pester 5
- DSC_Disk trigers defrag HOT 1
- Get-DiskByIdentifier: Allow FriendlyName property to be used as a disk identifier HOT 1
- Automatic Documentation Generation Fails on Ubuntu-22.04 build image
- Access denied to mount iso HOT 15
- OpticalDiskDriveLetter: The optical disk 1 could not be found in the system on Azure Windows Server 2022
- DSC_Disk: Add support for creating Dev Drive volume HOT 6
- VirtualHardDisk: New resource proposal HOT 3
- The deploy fails because there is a space in a tag in the module manifest HOT 3
- Trigger BREAKING CHANGE from PR #278 HOT 1
- Dev Drive DSC error message when not run as admin HOT 2
- OpticalDiskDriveLetter: DVD Drive for Windows Server Gen2 (UEFI) OS Images filtered HOT 12
- Make Supporting Helper Functions Public so that they can be tested/autodoced
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from storagedsc.