Application Integration
cancel
Showing results for 
Search instead for 
Did you mean: 

Powershell Volume Creation

 
tkutil115
Occasional Contributor

Powershell Volume Creation

using powershell, how do I configure access/assign and initiator group to a new volume? 

New-NSVolume -name Volume1 -size 1572864 -perfpolicy_id 034ebc54516d750de1000000000000000000000014 -multi_initiator $true

 

TIA

Troy

2 REPLIES 2
pmiller7
Occasional Visitor

Re: Powershell Volume Creation

You might try the following:

$IG=(Get-NSInitiatorGroup -Name YourInitiatorGroupName)
$vol=(Get-NSVolume -Name Volume1)
New-NSAccessControlRecord -vol_id $vol.id -initiator_group_id $IG.id -apply_to "both"
Highlighted
wave2453
Occasional Advisor

Re: Powershell Volume Creation

This is exactly what I use to create mine.