Fab Sidoli
Contributor
- Joined
- May 15, 2019
- Messages
- 114
I am trying to set up dataset replication of user data between two FreeNAS boxes and have a query with the process.
I have Box A (source) and Box B (destination).
On Box A I have the following pool structure:
store
-> group
----> group1
----> group2
-> home
----> user1
----> user2
etc...
Each is a dataset in it's own right and on Box A I can see that these live under /mnt/store/...
On Box B I set up the pool store which also lives under /mnt/.
I have set up an SSH connection on Box A to allow the replication to take place.
Under Tasks -> Periodic Snapshot Tasks I have created two schedules, one for store/group and one for store/home (apparently you can't have one for store as this is the system dataset).
I set each of these to do recursive snapshots and have defined a temporary schedule for testing purposes.
Under Tasks -> Replication Tasks I have defined a task for doing the ZFS send/recv from Box A -> B.
I'm doing a PUSH over SSH using the SSH connection previously set up. The source datasets are selected as store/group and store/home. The target destination is set to store. The Recursive option is set.
The replication appears to take place and within the BUI I can see that the pools are "replicated". However, /mnt/store/group and /mnt/store/home on Box B appear to be empty when viewed on the command line using 'ls -l' (see below). 'zfs list' does show the datasets like the BUI, however.
# ls -lR /mnt/store
total 27
drwxr-xr-x 2 root wheel 3 Apr 3 00:01 group
drwxr-xr-x 2 root wheel 3 Apr 3 00:12 home
/mnt/store/group:
total 1
-rw-r--r-- 1 root wheel 0 Feb 20 21:02 .windows
/mnt/store/home:
total 1
-rw-r--r-- 1 root wheel 0 Feb 20 21:02 .windows
The first time I tested replication a while back I could actually see the datasets under /mnt/store/{group,home}. This time around, however, the first new replication actively deleted the datasets under store on Box B. It has left .zfs/snapshot directories in place however.
I'm not sure I understand what is going on.
Fab
I have Box A (source) and Box B (destination).
On Box A I have the following pool structure:
store
-> group
----> group1
----> group2
-> home
----> user1
----> user2
etc...
Each is a dataset in it's own right and on Box A I can see that these live under /mnt/store/...
On Box B I set up the pool store which also lives under /mnt/.
I have set up an SSH connection on Box A to allow the replication to take place.
Under Tasks -> Periodic Snapshot Tasks I have created two schedules, one for store/group and one for store/home (apparently you can't have one for store as this is the system dataset).
I set each of these to do recursive snapshots and have defined a temporary schedule for testing purposes.
Under Tasks -> Replication Tasks I have defined a task for doing the ZFS send/recv from Box A -> B.
I'm doing a PUSH over SSH using the SSH connection previously set up. The source datasets are selected as store/group and store/home. The target destination is set to store. The Recursive option is set.
The replication appears to take place and within the BUI I can see that the pools are "replicated". However, /mnt/store/group and /mnt/store/home on Box B appear to be empty when viewed on the command line using 'ls -l' (see below). 'zfs list' does show the datasets like the BUI, however.
# ls -lR /mnt/store
total 27
drwxr-xr-x 2 root wheel 3 Apr 3 00:01 group
drwxr-xr-x 2 root wheel 3 Apr 3 00:12 home
/mnt/store/group:
total 1
-rw-r--r-- 1 root wheel 0 Feb 20 21:02 .windows
/mnt/store/home:
total 1
-rw-r--r-- 1 root wheel 0 Feb 20 21:02 .windows
The first time I tested replication a while back I could actually see the datasets under /mnt/store/{group,home}. This time around, however, the first new replication actively deleted the datasets under store on Box B. It has left .zfs/snapshot directories in place however.
I'm not sure I understand what is going on.
Fab