1 Reply Latest reply: Apr 10, 2013 10:58 AM by vinith RSS

How to establish iscsi sessions using powershell?

DAVID.PUCKETT.KAREO
Currently Being Moderated

Anyone have an example of establishing iscsi sessions using powershell?

 

Thanks

  • Re: How to establish iscsi sessions using powershell?
    vinith
    Currently Being Moderated

    Connect-NaController TS60808

    New-NaAggr bigaggr -Use64Bit -DiskCount 32

    New-NaVol bigvol -Aggregate bigaggr 4t

    Set-NaSnapshotReserve bigvol 0

    New-NaLun -Path /vol/bigvol/biglun -Size 3.5t -Type hyper_v

    Add-NaHostIscsiTargetPortal

    $session = Get-NaHostIscsiSession -TargetName (Get-NaIscsiNodeName)

    if ($session -eq $null) { Get-NaHostIscsiTarget (Get-NaIscsiNodeName) | Connect-NaHostIscsiTarget }

    New-NaIgroup bigigroup iscsi windows

    Get-NaHostIscsiAdapter | Add-NaIgroupInitiator bigigroup

    Add-NaLunMap /vol/bigvol/biglun bigigroup

    Start-NaHostDiskRescan

    Wait-NaHostDisk /vol/bigvol/biglun TS60808 | New-NaHostVolume

     

     

    Refer the "Host-side iSCSI & FC utilities" section at

     

    https://communities.netapp.com/docs/DOC-10684


More Like This

  • Retrieving data ...