Hello,
I am in the process of setting up a backup NAS for my 9.10U6. I like to monitor the progress of zfs send/receive commands with pv, as well as speed them up with mbuffer. Since we are not supposed to install anything in the FreeNAS root, I put pv and mbuffer in a separate jail. But how would I be able to access my entire pool and run a command like this in that jail?
zfs send -I tank/@manual | mbuffer -q -s 128k -m 1G | pv -b | nc NEWBOX 8000
I have tried providing my /mnt/tank as a mount point to the jail but that didn't work - it's not recursive and mounted as an empty dir. Also considered jexec for the mbuffer and pv parts but that does not work as IO redirection is on the shell level.
I then stumbled over warden flags such as enforce_statfs=0,allow.mount=1,allow.mount.zfs=1 but I am a bit unclear on usage and implications.
Has anyone done something like this before?
Thank you,
Achim
I am in the process of setting up a backup NAS for my 9.10U6. I like to monitor the progress of zfs send/receive commands with pv, as well as speed them up with mbuffer. Since we are not supposed to install anything in the FreeNAS root, I put pv and mbuffer in a separate jail. But how would I be able to access my entire pool and run a command like this in that jail?
zfs send -I tank/@manual | mbuffer -q -s 128k -m 1G | pv -b | nc NEWBOX 8000
I have tried providing my /mnt/tank as a mount point to the jail but that didn't work - it's not recursive and mounted as an empty dir. Also considered jexec for the mbuffer and pv parts but that does not work as IO redirection is on the shell level.
I then stumbled over warden flags such as enforce_statfs=0,allow.mount=1,allow.mount.zfs=1 but I am a bit unclear on usage and implications.
Has anyone done something like this before?
Thank you,
Achim