The transition to NetApp MS Azure AD B2C is complete. If you missed the pre-registration, you will be invited to reigister at next log in.
Please note that access to your NetApp data may take up to 1 hour.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

ONTAP Discussions

Is there any ndmpcopy support for flexgroups


I will need to migrate a lot of data from FlexVols to FlexGroups. Anyone know if there is a twinkle in NetApp’s eye about this?  I understand I can go from a flexvol to a flexgroup, but I need to do it at a branche within the flexvol’s tree. Actually, perhaps two to four thousand branches;  we need to restructure and re-organize data. 





Starting with ONTAP 9.7, NDMP is supported on FlexGroup volumes:
The "ndmpcopy" command is supported for data transfer between FlexVol and FlexGroup volumes.




I read that in the manual.  However, it does not specify whether I can supply a flexvol sub-tree to copy, or if it only copies the flexvol to the flexgroup.  I need to restructure data as I am copying it, so I need to specify a particular directory tree, under which all files and directories will be moved.


The docs also do not specify if I can provide a destination sub-tree path to copy to, or if it will simply write it to the root of the flexgroup.



"ndmpcopy" is a file-level copy tool (it doesn't care about blocks), which means it deals at 'directory' level which is a file-system level. So, I am hoping that if you provide a directory/sub-tree it should be able to write to that.


I have not dealt with flex-group in practical terms, but based on the documentation around it, It seems flex -group volume is simply a collection of flexvols acting as a "single entity",  considering this theory,  when you copy a directory(files) to the directory in flex group it should ideally mimic a flex-vol and do all that redirection automatically internally but on the surface behave as if it is flexvol. If that is so, then it should ideally work, could you not try a test copy of a directory to the flex-group directory.


I have done some limited testing in a simulated environment.

Please refer to

There is a link in this doc referring to KB


I setup an ONTAP 9.7 cluster. I created a FlexVol with 5000+ files (1K or less for testing) in many directories.

I was able to run this command:

system node run -node cluster1-01 -command ndmpcopy -sa ndmpuser:1tUMETJJN9sIyCJw -da ndmpuser:1tUMETJJN9sIyCJw


Which copied a flexvol to a flexgroup at the top level.


I also tried:


system node run -node cluster1-01 -command ndmpcopy -sa ndmpuser:1tUMETJJN9sIyCJw -da ndmpuser:1tUMETJJN9sIyCJw


which copied a couple of directories down (not even qtrees, regular directories).


Now, It did not 100% evenly distribute, but it still did a pretty good job.


/vol/fg01__0001/ 1200     408401      0%  /fg01                      nas

/vol/fg01__0002/ 1600     408001      0%  ---                        nas

/vol/fg01__0003/ 1603     407998      0%  ---                        nas

/vol/fg01__0004/ 1203     408398      0%  ---                        nas

/vol/vol01/ 5308     158522      3%  /vol01                     nas


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