Pre replication checks

Rares

Renowned Member
Feb 28, 2017
86
17
73
Dear Proxmox team,

I managed to break ZFS replication two times now because of insufficient disk space on target machine. The only way I could recover was to delete the replica on the target and reboot the PX node.

Do you think it would be an idea before starting the replication to check for disk space on the target node? The process knows the size of the replication snapshot so it could check for that + some extra space.

OR

in case of error, is there a way to stop the replication safely so that the zfs_receiver will not hang the target node?

Rergards,

Rares
 
Hi,
Do you think it would be an idea before starting the replication to check for disk space on the target node? The process knows the size of the replication snapshot so it could check for that + some extra space.
No this is a very expensive operation and would take a couple of secs.

Monitoring the disk space is a mandatory job and you should know that there is no space left.
Also, ZFS get very slow after 70% usage so avoid to fill it up over 70% and you will never get problems with this.