Using ZEDI I have generated following code to generate a clone on C-mode cluster:
require 5.6.1;
use lib '/opt/netapp-manageability-sdk-5.0R1/lib/perl/NetApp';
use strict;
use warnings;
use NaServer;
use NaElement;
my $s = new NaServer('Cname', 1 , 15);
$s->set_server_type('FILER');
$s->set_transport_type('HTTPS');
$s->set_port(443);
$s->set_style('LOGIN');
$s->set_admin_user('vsadmin', 'XXXXXX');
my $api = new NaElement('volume-clone-create');
$api->child_add_string('junction-active','true');
$api->child_add_string('junction-path','/ORA/dbs03/PEPE');
$api->child_add_string('parent-snapshot','snapscript_31102013_195117_92');
$api->child_add_string('parent-volume','postgres03');
#$api->child_add_string('space-reserve','true');
#$api->child_add_string('use-snaprestore-license','<use-snaprestore-license>');
$api->child_add_string('volume','pepe');
my $xo = $s->invoke_elem($api);
if ($xo->results_status() eq 'failed') {
print 'Error:\n';
print $xo->sprintf();
exit 1;
}
print 'Received:\n';
print $xo->sprintf();
This is failing with error:
$ perl /tmp/clone.pl
Error:\n<results reason="Aggregate aggr4_c01n02 does not exist" status="failed" errno="14420"></results>
aggr4_c01n02 is the containing aggregate of the parent volume. It definitely exists. The filer is running Ontap 8.2P3. I am connecting to the cluster using a lif.
Thanks for your support.
Ruben