[pve-devel] nexenta rollback problems.

Alexandre DERUMIER aderumier at odiso.com
Thu Sep 20 07:02:25 CEST 2012

response from nexenta: 


Your case # 00014435: commstar : keep the disk guid after unmap/remap a lun (sa-api) has been updated as follows: 


There is no way to do this via SA-API . 

The only way to do it is via bash you as mentioned . 

#stmfadm create-lu -p guid=* LUN GUID* /dev/rdsk/... 

Please test it out if it works for your use. 

Best regards, Abhishek 

Nexenta Support Center 

----- Mail original ----- 

De: "Alexandre DERUMIER" <aderumier at odiso.com> 
À: "Dietmar Maurer" <dietmar at proxmox.com> 
Cc: pve-devel at pve.proxmox.com 
Envoyé: Mercredi 19 Septembre 2012 08:34:00 
Objet: Re: [pve-devel] nexenta rollback problems. 

mmm, maybe, need to be tested. (my nexenta test box is down for now, I'll can test it not before friday). 

I found an article here 
COMSTAR: Keeping GUID's with a new Backend Device 

it seem to be possible to specify the guid with stmfadm command 
(with ssh, and not the nexenta api, so I don't know if it's break the nexenta view of the luns) 

stmfadm create-lu -p guid=*LUN GUID* /dev/rdsk/... 

I'll tell the question to nexenta support. 

----- Mail original ----- 

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Alexandre DERUMIER" <aderumier at odiso.com> 
Cc: pve-devel at pve.proxmox.com 
Envoyé: Mercredi 19 Septembre 2012 08:02:19 
Objet: RE: nexenta rollback problems. 

> 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); 
pve-devel mailing list 
pve-devel at pve.proxmox.com 

More information about the pve-devel mailing list