Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with Get-PfaConnectionFromRdm and an "array" of Flasharrays in -Flasharray $fa #63

Open
mcarpendale opened this issue Jul 14, 2021 · 0 comments

Comments

@mcarpendale
Copy link

Issues with Get-PfaConnectionFromRdm and an "array" of Flasharrays in -Flasharray $fa

if

$fa = $flasharray1, $flasharray2, $flasharray3, $flasharray4
PS /Users/mcarpendale/Downloads> $fa                                                         
Disposed   : False
EndPoint   : reddot.purestorage.int
UserName   : pureuser
ApiVersion : 1.17
Role       : ArrayAdmin
ApiToken   : <token>

Disposed   : False
EndPoint   : reddotx.purestorage.int
UserName   : pureuser
ApiVersion : 1.17
Role       : ArrayAdmin
ApiToken   : <token>

Disposed   : False
EndPoint   : reddotac1.purestorage.int
UserName   : pureuser
ApiVersion : 1.17
Role       : ArrayAdmin
ApiToken   : <token>

Disposed   : False
EndPoint   : reddotac2.purestorage.int
UserName   : pureuser
ApiVersion : 1.17
Role       : ArrayAdmin
ApiToken   : <token>

then Get-PfaConnectionFromRdm fails

Get-PfaConnectionFromRdm -rdm $rdm -Flasharray $fa                                             
Exception: /Users/mcarpendale/.local/share/powershell/Modules/PureStorage.FlashArray.VMware.RDM/2.0.1.0/PureStorage.FlashArray.VMware.RDM.psm1:307
Line |
 307 |        throw "Specified RDM was not found on the passed in FlashArrays …
     |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Specified RDM was not found on the passed in FlashArrays.

however Get-PfaRdmVol works

Get-PfaRdmVol -rdm $rdm -Flasharray $fa                                                        
name    : mysql-cb1
created : 8/6/2020 11:21:12 pm
source  : 
serial  : 50B09E9FCA1242100057B4D4
size    : 42949672960

$rdm is only a single line

PS /Users/mcarpendale/Downloads> $rdm = get-vm oraDocker |get-harddisk |where-object {$_.DiskType -eq 'RawPhysical'}
PS /Users/mcarpendale/Downloads> $rdm
CapacityGB      Persistence                                                    Filename
----------      -----------                                                    --------
40.000          IndependentPersiste… …res::UCS-AC-Datastore] oraDocker/oraDocker_3.vmdk

if $fa is set to a single array $flasharray3 then Get-PfaConnectionFromRdm works

PS /Users/mcarpendale/Downloads> $fa = $flasharray3                                                                                 
PS /Users/mcarpendale/Downloads> $fa                                                                                            
Disposed   : False
EndPoint   : reddotac1.purestorage.int
UserName   : pureuser
ApiVersion : 1.17
Role       : ArrayAdmin
ApiToken   : a2bc1b63-a4eb-35dd-846f-017d26dcd531

PS /Users/mcarpendale/Downloads> Get-PfaConnectionFromRdm -rdm $rdm -Flasharray $fa
Disposed   : False
EndPoint   : reddotac1.purestorage.int
UserName   : pureuser
ApiVersion : 1.17
Role       : ArrayAdmin
ApiToken   : <token>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant