oetiker / znapzend

zfs backup with remote capabilities and mbuffer integration.
www.znapzend.org
GNU General Public License v3.0
607 stars 137 forks source link

Cannot use --features=compressed even if both SRC and DST are compressed (invalid option 'c') #481

Closed gabviv73 closed 3 years ago

gabviv73 commented 4 years ago

I would like to transfer compressed streams over a slow WAN link, so I've setup --features=compressed

This is my dataset in znapzend:

# znapzendzetup export DATA/mysql

dst_quantum=root@10.0.254.100:DISKB/znapzend/emip/DATA/mysql
dst_quantum_plan=7days=>1hours,30days=>2hours,90days=>1days,1years=>1weeks,10years=>1months
dst_znapzend=root@znapzend.rvmgroup.local:BACKUP/znapzend/emip/DATA/mysql
dst_znapzend_plan=7days=>1hours,30days=>2hours,90days=>1days,1years=>1weeks,10years=>1months
enabled=on
mbuffer=off
mbuffer_size=1G
post_znap_cmd=off
pre_znap_cmd=off
recursive=off
src=DATA/mysql
src_plan=1days=>1hours,3days=>2hours,14days=>990minutes
tsformat=%Y-%m-%d-%H%M%S
zend_delay=0

SRC and DST have compression turned on

# zfs get all DATA/mysql | grep -w compression DATA/mysql compression on inherited from DATA

# zfs get all DISKB/znapzend/emip/DATA/mysql | grep -w compression DISKB/znapzend/emip/DATA/mysql compression on inherited from DISKB

But when the job is run, I got these errors:

Mar 20 21:50:48 emip znapzend[29278]: znapzend (PID=29278) initialized -- resuming normal operations.
Mar 20 22:00:00 emip znapzend[29278]: snapshot worker for DATA/home spawned (30956)
Mar 20 22:00:00 emip znapzend[30956]: creating snapshot on DATA/home
Mar 20 22:00:00 emip znapzend[29278]: snapshot worker for DATA/mysql spawned (30958)
Mar 20 22:00:00 emip znapzend[30958]: creating snapshot on DATA/mysql
Mar 20 22:00:00 emip znapzend[29278]: snapshot worker for DATA/home done (30956)
Mar 20 22:00:00 emip znapzend[29278]: send/receive worker for DATA/home spawned (30960)
Mar 20 22:00:00 emip znapzend[30960]: starting work on backupSet DATA/home
Mar 20 22:00:00 emip znapzend[30960]: sending snapshots from DATA/home to root@10.0.254.100:DISKB/znapzend/emip/DATA/home
Mar 20 22:00:00 emip znapzend[29278]: snapshot worker for DATA/mysql done (30958)
Mar 20 22:00:00 emip znapzend[29278]: send/receive worker for DATA/mysql spawned (30962)
Mar 20 22:00:00 emip znapzend[30962]: starting work on backupSet DATA/mysql
Mar 20 22:00:00 emip znapzend[30962]: sending snapshots from DATA/mysql to root@10.0.254.100:DISKB/znapzend/emip/DATA/mysql
Mar 20 22:00:04 emip znapzend[29278]: invalid option 'c'
Mar 20 22:00:04 emip znapzend[29278]: usage:
Mar 20 22:00:04 emip znapzend[29278]: #011send [-DnPpRvLe] [-[iI] snapshot] <snapshot>
Mar 20 22:00:04 emip znapzend[29278]: #011send [-Le] [-i snapshot|bookmark] <filesystem|volume|snapshot>
Mar 20 22:00:04 emip znapzend[29278]: For the property list, run: zfs set|get
Mar 20 22:00:04 emip znapzend[29278]: For the delegated permission list, run: zfs allow|unallow
Mar 20 22:00:04 emip znapzend[29278]: invalid option 'c'
Mar 20 22:00:04 emip znapzend[29278]: usage:
Mar 20 22:00:04 emip znapzend[29278]: #011send [-DnPpRvLe] [-[iI] snapshot] <snapshot>
Mar 20 22:00:04 emip znapzend[29278]: #011send [-Le] [-i snapshot|bookmark] <filesystem|volume|snapshot>
Mar 20 22:00:04 emip znapzend[29278]: For the property list, run: zfs set|get
Mar 20 22:00:04 emip znapzend[29278]: For the delegated permission list, run: zfs allow|unallow
Mar 20 22:00:06 emip znapzend[29278]: cannot receive: failed to read from stream
Mar 20 22:00:06 emip znapzend[30960]: ERROR: cannot send snapshots to DISKB/znapzend/emip/DATA/home on root@10.0.254.100
Mar 20 22:00:06 emip znapzend[30960]: sending snapshots from DATA/home to root@znapzend.rvmgroup.local:BACKUP/znapzend/emip/DATA/home
Mar 20 22:00:06 emip znapzend[29278]: cannot receive: failed to read from stream
Mar 20 22:00:06 emip znapzend[30962]: ERROR: cannot send snapshots to DISKB/znapzend/emip/DATA/mysql on root@10.0.254.100
Mar 20 22:00:06 emip znapzend[30962]: sending snapshots from DATA/mysql to root@znapzend.rvmgroup.local:BACKUP/znapzend/emip/DATA/mysql
Mar 20 22:00:09 emip znapzend[29278]: invalid option 'c'
Mar 20 22:00:09 emip znapzend[29278]: usage:
Mar 20 22:00:09 emip znapzend[29278]: #011send [-DnPpRvLe] [-[iI] snapshot] <snapshot>
Mar 20 22:00:09 emip znapzend[29278]: #011send [-Le] [-i snapshot|bookmark] <filesystem|volume|snapshot>
Mar 20 22:00:09 emip znapzend[29278]: For the property list, run: zfs set|get
Mar 20 22:00:09 emip znapzend[29278]: For the delegated permission list, run: zfs allow|unallow
Mar 20 22:00:09 emip znapzend[29278]: invalid option 'c'
Mar 20 22:00:09 emip znapzend[29278]: usage:
Mar 20 22:00:09 emip znapzend[29278]: #011send [-DnPpRvLe] [-[iI] snapshot] <snapshot>
Mar 20 22:00:09 emip znapzend[29278]: #011send [-Le] [-i snapshot|bookmark] <filesystem|volume|snapshot>
Mar 20 22:00:09 emip znapzend[29278]: For the property list, run: zfs set|get
Mar 20 22:00:09 emip znapzend[29278]: For the delegated permission list, run: zfs allow|unallow
Mar 20 22:00:09 emip znapzend[29278]: cannot receive: failed to read from stream
Mar 20 22:00:09 emip znapzend[30962]: ERROR: cannot send snapshots to BACKUP/znapzend/emip/DATA/mysql on root@znapzend.rvmgroup.local
Mar 20 22:00:09 emip znapzend[30962]: ERROR: suspending cleanup source dataset because at least one send task failed
Mar 20 22:00:09 emip znapzend[30962]: done with backupset DATA/mysql in 9 seconds
Mar 20 22:00:09 emip znapzend[29278]: send/receive worker for DATA/mysql done (30962)
Mar 20 22:00:09 emip znapzend[29278]: cannot receive: failed to read from stream
Mar 20 22:00:09 emip znapzend[30960]: ERROR: cannot send snapshots to BACKUP/znapzend/emip/DATA/home on root@znapzend.rvmgroup.local
Mar 20 22:00:09 emip znapzend[30960]: ERROR: suspending cleanup source dataset because at least one send task failed
Mar 20 22:00:09 emip znapzend[30960]: done with backupset DATA/home in 9 seconds
Mar 20 22:00:09 emip znapzend[29278]: send/receive worker for DATA/home done (30960)

OS details:

Suggestions ?

crabique commented 4 years ago

modinfo zfs? ZFS ≤0.6 doesn't support compressed send/recv.

gabviv73 commented 4 years ago

On SRC: # modinfo zfs | grep ^version: version: 0.6.5.9-5

On DST: # modinfo zfs | grep ^version: version: 0.7.12-2+deb10u1

So I need to upgrade packages on SRC ?

crabique commented 4 years ago

Yes.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.