Array Setup and Networking
1752777 Members
6335 Online
108789 Solutions
New Discussion

PowerShell Module

 
jrich52352
Trusted Contributor

Re: PowerShell Module

Volume Collection snapshot was added to the new-nssnapshot

also is anyone using this on 2.0.7.0?

I just updated and it seems like it broke the new-nsvolume?

clint_mcguire
Occasional Advisor

Re: PowerShell Module

Hey Justin,

Can you add Set-NSVolumeACL?

I've tried to use $acl = Get-NSVolumeACL <vol>

$acl.InitiatorGrp = "<new acl>"

$acl.set

But it doesn't update the properties on the Array. 

It will update the value of the object in PowerShell, can be demonstrated by running $acl before and after the $acl.InitiatorGrp...  Also, $acl.set doesn't throw an error.

mikeelam57
Occasional Advisor

Re: PowerShell Module

I believe Justin already included a way to update the ACL for Nimble Volumes.

Add-NSInitiatorGroupToVolume -InitiatorGroup (String) -Volume (string) -Access Volume

Mike

mikeelam57
Occasional Advisor

Re: PowerShell Module

Justin,

I am wanting to update arrays to 2.x, are we safe to utilize the same module?

Mike

clint_mcguire
Occasional Advisor

Re: PowerShell Module

Right!

Thanks,

jrich52352
Trusted Contributor

Re: PowerShell Module

Its not safe but im working on the module now, because I need it too. I should hopefully have something posted by tomorrow.

I dont know why, but i've stopped getting emails when there are new messages so i apologize about the delays!

i'll have to poke around my profile

ramkump2
New Member

Re: PowerShell Module

Hi Justin

I am trying to replicate the volume collection can it be done? Ive tried doing it but it just creates the volume collection snapshots and does not replicate it.

Ive tried -replicate as a common parameter but doesn't work

New-NSSnapshot -name repl -VolumeCollection xxxxxxxxxxxx -replicate

Thanks


    New-NSSnapshot [-Name] <String> [-VolumeCollection] <String> [-Description
    <Object>] [-Online] [-Writable] [<CommonParameters>]


DESCRIPTION
    Takes a new snapshot of a specified volume, allowing you to control if its
    writeable and if its online or not.

jrich52352
Trusted Contributor

Re: PowerShell Module

I didnt impliment any replication functionality, because I didnt have any way to test it.

I dont work at the same company any more and dont currently have access to any nimble storage to write/test any additions.

I hope to get access to a unit in the not to distant future.

ramkump2
New Member

Re: PowerShell Module

Hi Justin,

I wonder if its as easy as adding another switch like online and writeable in the snap ps script just call it replicate not really sure as I am not a powershell expert so would appreciate any help and I can test it here, might be useful for other users too. At the moment I've written another script using the powershell ssh module but would rather use this method if we can get it working.

Thanks


jrich52352
Trusted Contributor

Re: PowerShell Module

So, the CommonParameters has to do with cmdletbinding, and its for stuff like -verbose

http://technet.microsoft.com/en-us/library/hh847884.aspx

As far as adding replication, thats not a feature of the snapshot, so it would end up as a separate cmdlet.

its probably not too horrible to write, but without having access to a pair of units, I wouldnt be able to test it.