Application Integration
1827652 Members
3611 Online
109966 Solutions
New Discussion

Re: 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"
wave2453
Occasional Advisor

Re: Powershell Volume Creation

This is exactly what I use to create mine.