Effective December 3, NetApp adopts Microsoft’s Business-to-Customer (B2C) identity management to simplify and provide secure access to NetApp resources.
For accounts that did not pre-register (prior to Dec 3), access to your NetApp data may take up to 1 hour as your legacy NSS ID is synchronized to the new B2C identity.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

Microsoft Virtualization Discussions

manual v. powershell flexclones


Getting an issue where flexclones, based on a snapshot, that are manually created are functioning properly however when I use the Powershell modules, it creates the flexclone, brings LUNs online, and maps LUNs to igroup, but system is unable to read LUNs.  Any suggestions?



POSH code?  What is the error you get when you try to read the LUN from the OS?  I assume this is Windows?


Thank you for responding.

Here is my 'sanitized' code:

connect-nacontroller CONTROLLER

$arrSnapList = @()

$colsnapshots = get-nasnapshot -name VOLUME

foreach ($objsnapshot in $colsnapshots) {$arrSnapList += $objsnapshot.name}

$snapid = $arrSnapList[0].split(".")
#write-host $snapid[1]

$strParentSnapshot = "CONTROLLER(1234567890)_VOLUME." + $snapid[1]
#write-host $strParentSnapshot

New-NAVolClone -ParentVolume VOLUME -CloneVolume clone_VOLUME -SpaceReserve none -ParentSnapshot $strParentSnapshot

Add-NALUNMap -Path /vol/clone_VOLUME/LUN -InitiatorGroup IGROUP -ID 13 | Set-NALun -Online
Add-NALUNMap -Path /vol/clone_VOLUME/LUN -InitiatorGroup IGROUP -ID 14 | Set-NALun -Online
Add-NALUNMap -Path /vol/clone_VOLUME/LUN -InitiatorGroup IGROUP -ID 15 | Set-NALun -Online   
Add-NALUNMap -Path /vol/clone_VOLUME/LUN -InitiatorGroup IGROUP -ID 16 | Set-NALun -Online

It does actually create the flexclone, maps, and onlines the LUNs.  The LUNs are just not 'readable', and no unfortunately this happens to be a Sybase raw device running on AIX.


Thanks for the code!  Well, you lost me at the AIX part :-).  I am not sure what has to happen on an AIX system once you present new LUNs.  I assume you do some sort of SCSI bus scan so the system knows about the new devices?  Assuming that is the case when you try to mount the LUN what happens?


Well its in working for 'bout a week, thanks for at least using a synapse on it, hopefully I don't have issues with snapshots in general...


We tested it against a different database, using the same script but changing names, and all is well.  Although I was not getting any errors last night, I am going to re-visit after hours and try to determine if it did not apply the correct snapshot or if there is anything else I may have missed.  Thanks again.

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