allanjude / zxfer

A continuation of development on zxfer, a popular script for managing ZFS snapshot replication
BSD 2-Clause "Simplified" License
123 stars 40 forks source link

Trying to replicate `zroot` gives error about pbkdf iterations #56

Open MacLemon opened 2 years ago

MacLemon commented 2 years ago

Summary:

Trying to replicate zroot gives error about pbkdf iteration requirements not being met on FreeBSD 13.0-RELEASE-p5.

Steps to Reproduce:

Invoke like this:

/usr/local/sbin/zxfer -dFkPv -g 375 -R zroot backups/zroot

Expected Results:

Should start replicating existing snapshots.

Actual Results:

Errors out:

Creating destination filesystem "backups/zroot" with specified properties.
cannot create 'backups/zroot': minimum pbkdf2 iterations is 100000
Error when creating destination filesystem.

Regression:

This has worked at some time on 12.1 if I recall correctly. Hasn't been working on 12.2 and 13.0.

Notes:

Neither of the datasets are encrypted.

Version Information:

FreeBSD 12.2-RELEASE-p* FreeBSD 13.0-RELEASE-p5 zxfer 1.1.7 with the readonly properties patched as described in Bug 253418 - sysutils/zxfer: 'objsetid' is readonly

ndruba commented 2 years ago

Hi! Please, try -I keylocation,keyformat,pbkdf2iters. In linux with the last openzfs its work.

MacLemon commented 2 years ago

Thanks @ndruba, I can confirm this works on