Microsoft Virtualization Discussions

How to establish iscsi sessions using powershell?

DAVID_PUCKETT_KAREO

Anyone have an example of establishing iscsi sessions using powershell?

Thanks

1 REPLY 1

vinith

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


Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public