-
Notifications
You must be signed in to change notification settings - Fork 42
Description
Im wondering why is that below.
On localhost ./zreplicate works as expected:
lap bin # ./zreplicate -vo --create-destination --no-replication-stream data/test data/backup
Replicating dataset localhost:data/test into localhost:data/backup...
Assessing that the source dataset exists...Assessing that the destination dataset exists...
Replicating (full) data/test to data/backup
Base snapshot available in destination: None
Target snapshot available in source: <Snapshot: data/test@autosnapshot-2016-10-21-014702>
send from @ to data/test@autosnapshot-2016-10-21-014702 estimated size is 9,50K
total estimated size is 9,50K
TIME SENT SNAPSHOT
40,7KiB 0:00:00 [1,29GiB/s] [ <=>
receiving full stream of data/test@autosnapshot-2016-10-21-014702 into data/backup@autosnapshot-2016-10-21-014702received 40,4KB stream in 1 seconds (40,4KB/sec)
Replication complete.
but doing it to remote direction (all the user zfs/zfs-shell/sudo stuff is OK) outputs:
lap bin # ./zreplicate -o -v --create-destination --no-replication-stream localhost:data/test zfs@edge1:rpool/DATA/backup/test
Replicating dataset localhost:data/test into zfs@edge1:rpool/DATA/backup/test...
Assessing that the source dataset exists...
Assessing that the destination dataset exists...
Creating missing destination dataset exists as requested
Traceback (most recent call last):
File "./zreplicate", line 78, in
dst_conn.create_dataset(destination_dataset_name)
File "/home/llu/praca/zfs/zfs-tools/bin/../src/zfstools/connection.py", line 66, in create_dataset
return self.pools.lookup(name)
File "/home/llu/praca/zfs/zfs-tools/bin/../src/zfstools/connection.py", line 58, in _get_poolset
self._poolset.parse_zfs_r_output(stdout2,properties)
File "/home/llu/praca/zfs/zfs-tools/bin/../src/zfstools/models.py", line 179, in parse_zfs_r_output
fs = self.pools[poolname]
KeyError: 'rpool'