Configure FlashArray Host and Volume

Microsoft Platform Guide

Audience
Public
Source Type
Documentation

  1. Open up a Windows PowerShell session as an Administrator.
  2. Retrieve the NodeAddress from the Windows Server host. The NodeAddress for the example server, Server01, is iqn.1991-05.com.microsoft:server01. In the below example the NodeAddress is being stored in a PowerShell variable, $ServerIQN, which will be used in future steps.
    
    PS C:\> $ServerIQN = (Get-InitiatorPort | Where-Object { $_.NodeAddress -like '*iqn*' }).NodeAddress
    
    PS C:\> $ServerIQN
    iqn.1991-05.com.microsoft:server01
    

    2. Connect to the FlashArray and configure a host and the host port. In this step a new host is created, Server01, and the IQN is assigned using the $ServerIQN variable that was populated in Step 1.

    Using PowerShell SDK version 1.x

    
    # Using the PowerShell SDK version 1.x
    PS C:\> $FlashArray = New-PfaArray -EndPoint 10.0.0.1 -Credentials (Get-Credential) -IgnoreCertificateError
    
    cmdlet Get-Credential at command pipeline position 1
    Supply values for the following parameters:
    
    PS C:\> New-PfaHost -Array $FlashArray -Name 'Server01' -IqnList $ServerIQN
    
    iqn                                  wwn name 
    ---                                  --- ---- 
    {iqn.1991-05.com.microsoft:server01} {}  Server01

    Using PowerShell SDK version 2.x

    
    # Using the PowerShell SDK version 2.x
    PS C:\> $FlashArray = Connect-Pfa2Array -EndPoint 10.0.0.1 -Credential (Get-Credential) -IgnoreCertificateError
    
    cmdlet Get-Credential at command pipeline position 1
    Supply values for the following parameters:
    
    PS C:\> New-Pfa2Host -Array $FlashArray -Name 'Server01' -Iqns $ServerIQN
    Name             : Server01
    Chap             : class Chap {
                         HostPassword:
                         HostUser:
                         TargetPassword:
                         TargetUser:
                       }
    
    ConnectionCount  : 0
    HostGroup        : class ReferenceNoId {
                         Name:
                       }
    
    Iqns             : {iqn.1991-05.com.microsoft:sn1-r720-e04-05.ale.local}
    Nqns             : {}
    Personality      :
    PortConnectivity : class HostPortConnectivity {
                         Details: None
                         Status: critical
                       }
    
    PreferredArrays  : {}
    Space            : class Space {
                         DataReduction: 1
                         Shared:
                         Snapshots: 0
                         System:
                         ThinProvisioning: 1
                         TotalPhysical: 0
                         TotalProvisioned: 0
                         TotalReduction: 1
                         Unique: 0
                         Virtual: 0
                       }
    
    Wwns             : {}
    IsLocal          : True
    

    3. Create a volume on the FlashArray and connect to the host, Server01, from Step 2.

    Using PowerShell SDK version 1.x

    
    # Using the PowerShell SDK version 1.x
    PS C:\> New-PfaVolume -Array $FlashArray -VolumeName 'iSCSI-TestVolume' -Unit G -Size 500
    
    source  : 
    serial  : 45084F3508BF461400011AE3
    created : 2017-06-07T02:49:32Z
    name    : iSCSI-TestVolume
    size    : 536870912000
    
    PS C:\> New-PfaHostVolumeConnection -Array $FlashArray -VolumeName 'iSCSI-TestVolume' -HostName 'Server01'
    
    vol  : iSCSI-TestVolume
    name : Server01
    lun  : 1

    Using PowerShell SDK version 2.x

    
    # Using the PowerShell SDK version 2.x
    PS C:\> New-Pfa2Volume -Array $FlashArray -Name 'iSCSI-TestVolume' -Provisioned 536870912000
    Id                      : 40af952b-b047-94d2-9bb9-ca8cd9560a64
    Name                    : iSCSI-TestVolume
    ConnectionCount         : 0
    
    PS C:\> New-Pfa2Connection -Array $FlashArray -VolumeNames 'iSCSI-TestVolume' -HostNames 'Server01'
    Host             : class ReferenceNoId {
                         Name: Server01
                       }
    
    HostGroup        : class ReferenceNoId {
                         Name:
                       }
    
    Lun              : 1
    ProtocolEndpoint : class Reference {
                         Id:
                         Name:
                       }
    
    Volume           : class FixedReference {
                         Id: 40af952b-b047-94d2-9bb9-ca8cd9560a64
                         Name: iSCSI-TestVolume
                       }
    

    The completed view from the FlashArray management interface shows the host, volume and host ports set.