On 09/27/2011 02:31 PM, Itamar Heim wrote:
" The target element remains dependent on the source element " So what happens if the source element is discarded (can it be discarded)?
Good question. The SMI-S v1.5 specification states that (pg. 346-347 block services):
"Detach: Removes the association between the source and replica elements. The StorageSynchronized association is deleted. If the replica is still a valid PIT image, the provider sets OperationalStatus to “OK”. If not a valid image but the storage element can be reused, the provider sets OperationalStatus to “Error”. A Detach operation does not delete the replica element. A client should invoke ReturnToStoragePool if the element is to be deleted following the Detach operation."
It also states that detach is optional for snapshot replication types.
I did a test using the NetApp simulator. I executed ReturnToStoragePool (aka delete lun) on the source lun and it completed without errors and the snapshot remains (my test smi-s tool doesn't do detach). I verified that the snapshot data was the same after deleting the source (I changed the first block in the snapshot, before deleting the source lun). I haven't found anything in the specification *yet* that clearly states what the expected behavior is for this scenario.