Software Development Kit (SDK) and API Discussions

PowerShell Errors


We've got a wrapper application that kicks off powershell commands to create and destroy LUN clones on a six node 8.2 cluster mode system.  The problem is, rarely, it returns with an error "FlexClone not licensed".  This is very peculiar as all the nodes are licensed and the vast majority of the time everything works fine.  I've got a couple of guesses; bug in the PowerShell API; or something load related against the particular node we're attached to at the time.  Here's the syntax of the command.

New-NcClone -Volume <source_volume> -SourcePath <volume> -DestinationPath <new_volume> -Snapshot <source_snap> -SpaceReserved false

We're issuing is against the vserver directly (not going through the cluster manager).  Anyone with suggestions on how to narrow the problem or perhaps someone's seen this before?



Hi Michael,

The New-NcClone cmdlet does not do any license checks, so the error is coming from ONTAP.

When the command does fail, does re-issuing the command (eventually) work?  Or do you have to resort to other means to create the clone?




A retry will allow the command to work.  I'm not sure of the retry interval but I could check that if it's important.  We run 10-20 clones per day and this has happened twice, seemingly at random.

Register for Insight 2021 Digital

INSIGHT 2021 Digital: Meet the Specialists 2

On October 20-22, gear up for a fully digital, totally immersive virtual experience with a downright legendary lineup of world-renowned specialists. Tune in for visionary conversations, solution deep dives, technical sessions and more.

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