Daniel Carrico
Cadet
- Joined
- Jan 11, 2017
- Messages
- 2
I understand that datasets can easily be renamed using the shell and the following command:
Simple enough. My question is what happens with pre-existing snapshots and how is the renamed dataset handled on the receiving end of a replication task?
Here's my setup. I have recursive snapshots enabled on Server 1 so that all of the datasets on my zpool are always included. I also have a replication task setup to mirror the entire zpool with snapshots to a remote server, Server 2.
If I rename a dataset on Server 1:
I'm running 9.10.2-U5 on both Server 1 and Server 2.
zfs rename zpool/oldname zpool/newname
Simple enough. My question is what happens with pre-existing snapshots and how is the renamed dataset handled on the receiving end of a replication task?
Here's my setup. I have recursive snapshots enabled on Server 1 so that all of the datasets on my zpool are always included. I also have a replication task setup to mirror the entire zpool with snapshots to a remote server, Server 2.
If I rename a dataset on Server 1:
- Will the snapshots for that dataset be associated with the renamed dataset on Server 1 following the rename? Or will they be lost?
- Will my recursive snapshot task on Server 1 continue on with the renamed dataset?
- Will the replication task also rename and replicate the renamed dataset on Server 2? Or does it see the renamed dataset on Server 1 as a new dataset, and simply copy it over like any other?
I'm running 9.10.2-U5 on both Server 1 and Server 2.