[pve-devel] nexenta rollback problems.
Dietmar Maurer
dietmar at proxmox.com
Wed Sep 19 08:02:19 CEST 2012
> Subject: Re: nexenta rollback problems.
>
> I have already look at it but I never find a way to reassign the previous guid...
Seems import_lu does the trick. Do you think that will work?
sub nexenta_import_lu {
my ($scfg, $zvol) = @_;
nexenta_request($scfg, 'import_lu', 'scsidisk', "$scfg->{pool}/$zvol");
}
sub volume_snapshot_rollback {
my ($class, $scfg, $storeid, $volname, $snap) = @_;
nexenta_delete_lu($scfg, $volname);
nexenta_request($scfg, 'rollback', 'snapshot', "$scfg->{pool}/$volname\@$snap", '');
nexenta_import_lu($scfg, $volname);
nexenta_add_lun_mapping_entry($scfg, $volname);
}
More information about the pve-devel
mailing list