Subscribe
Accepted Solution

How to remove secondary volume from dataset with nmsdk API?

I am looking for the way how to remove secondary volume from dataset. I am able to remove volumes/qtrees from primary site with "dataset-remove-member" but I am getting this error for secondary volumes: Error: 'member_name' is not in 'dataset_name':root . Any ideas?

Re: How to remove secondary volume from dataset with nmsdk API?

Hi,

I might be missing the point of the question, but have you already attempted to use the CLI?

dfpm dataset relinquish { [ <destination-volume-name-or-id> ] | [ <destination-qtree-name-or-id> ] }

Thanks,

Kevin

Re: How to remove secondary volume from dataset with nmsdk API?

Hi, unfortunatelly, I can't use CLI, but I am trying to do something exactly like: dfpm dataset remove -N 'Backup' dataset_name dataset_member_name(or ID), but with API.

Thanks, Petr

Re: How to remove secondary volume from dataset with nmsdk API?

my $param = NaElement->new("dataset-member-parameter");

      $param->child_add_string("dp-node-name", 'Backup/Primary Data');