How do I Overwrite SFW Snap Shots?
- 13 years ago
You use snapback - this will not overwrite your good data - you woukd use resyncfromreplica option if you wanted to overwrite original data with snapshot data.
Just to clarify:
You start with volume A which has normal plex A and snapshot plex B (i.e volume A contains 2 copies of data - plex A and plex B)
You create a snapshot B so that volume A, now JUST has plex A and you have a new snapshot B volume with plex B.
If you use snapback, then contents of plex B gets overwriten with contents of plex A in volume A and snapshot B must be unmounted to do this.
If you use snapback with resyncfromreplica option then plex A gets overwritten with contents of plex B - i.e volume A get overwritten with data in snapshot B and to do this you must unmount volume A first.
If you are ever unsure which way copy is going to go, then mount the filesystem you want and then if you use the wrong option, it will fail as mounted filesystem will be "open" so it cannot be written to from snapshot command.
Mike