I'm trying to use a script to add of lots of volumes to a dataset within OnCommand. From the GUI I would find the volume from the "Unprotected" window and add it to an existing dataset. However, since there are so many I am hoping to somewhat automate it by just invoking a bunch of "DFPM dataset add" commands. Unfortunately, I am running into a problem in that DFPM can't seem to find a volume by its name, only its ID:
C:\Users\ckeith>dfpm dataset add DS01-Kraft-LocalCopies TestAdd
Error: Could not add TestAdd to dataset DS01-Kraft-LocalCopies (2384). Reason: There is no volume, qtree, directory, host, aggregate or virtualization object named 'TestAdd'.
C:\Users\ckeith>dfm search volume TestAdd
Volumes - 2 matches
3039 TestAdd ENAS-1-A 0.0
3040 TestAdd.snapshot ENAS-1-A 0.0
Qtrees - 1 matches
3041 - ENAS-1-A TestAdd
Events - 1 matches
Information 11754 vFiler Storage Unit Added 18 Mar 19:16 2379 VF01-Kraft-Dallas_Lab
C:\Users\ckeith>dfpm dataset add DS01-Kraft-LocalCopies 3039
Dataset dry run results
----------------------------------
Do: Setting deduplication schedule 'auto' on flexible volume.
Effect: Setting deduplication schedule 'auto' on flexible volume 'VF01-Kraft-Dallas_Lab:/H_TestVol' (3035)
Do: Change following options on volume VF01-Kraft-Dallas_Lab:/TestAdd(3039): [ nosnap to on ].
Effect: Change following options on volume VF01-Kraft-Dallas_Lab:/TestAdd(3039): [ nosnap to on ].
Do: Enable deduplication on flexible volume.
Effect: Enable deduplication on flexible volume 'VF01-Kraft-Dallas_Lab:/TestAdd' (3039)
Do: Setting deduplication schedule 'auto' on flexible volume.
Effect: Setting deduplication schedule 'auto' on flexible volume 'VF01-Kraft-Dallas_Lab:/TestAdd' (3039)
Added volume VF01-Kraft-Dallas_Lab:/TestAdd (3039) to dataset DS01-Kraft-LocalCopies (2384).
Any ideas why DFPM doesn't recognize the volume by its name? I'm using DFM version 5.0.2 on a Windows 2008 server.
Any and all suggestions will be greatly appreciated.
Regards,
Keith