Managing RDMs with PowerShell

User Guides for VMware Solutions

Audience
Public
Content Type
User Guides
Source Type
Documentation

Everpure offers a PowerShell Module called PureStorage.FlashArray.VMware to help with PowerShell management of Everpure and VMware environments.

To install this module, run:

PS C:\> Install-Module PureStorage.FlashArray.VMware

In this module there are a few cmdlets that assist specifically with RDMs.

PS C:\> Get-Command -Name *RDM* -Module PureStorage.FlashArray.VMware.RDM -CommandType Function

CommandType     Name                                               Version    Source

-----------     ----                                               -------    ------

Function        Convert-PfaRDMToVvol                               1.1.0.2    PureStorage.FlashArray.VMware.RDM

Function        Copy-PfaSnapshotToRDM                              1.1.0.2    PureStorage.FlashArray.VMware.RDM

Function        Get-PfaConnectionFromRDM                           1.1.0.2    PureStorage.FlashArray.VMware.RDM

Function        Get-PfaRDMSnapshot                                 1.1.0.2    PureStorage.FlashArray.VMware.RDM

Function        Get-PfaRDMVol                                      1.1.0.2    PureStorage.FlashArray.VMware.RDM

Function        New-PfaRDM                                         1.1.0.2    PureStorage.FlashArray.VMware.RDM

Function        New-PfaRDMSnapshot                                 1.1.0.2    PureStorage.FlashArray.VMware.RDM

Function        Remove-PfaRDM                                      1.1.0.2    PureStorage.FlashArray.VMware.RDM

Function        Set-PfaRDMCapacity                                 1.1.0.2    PureStorage.FlashArray.VMware.RDM

For instance, to create a new RDM, run:

PS C:\> connect-viserver -Server vcenter-01.purestorage.com

PS C:\> $flasharray = new-pfaarray -endpoint flasharray-01.purestorage.com -Credentials (get-credential)

PS C:\> $vm = get-vm SQLVM

PS C:\> $vm | new-pfaRDM -sizeInTB 4 -flasharray $flasharray

Replace vCenter FQDN, FlashArray FQDN, volume size and VM name with your own.