Page 1 of 1

Does a full backup scrub a pool?

PostPosted: Fri Feb 09, 2018 2:50 am
by e8vww
I do full weekly backups of my pools to tape. Its my understanding that checksumming is done on any read or write, so will this in effect scrub the pools? I'm wondering if there is any point is doing a scrub on top of this routine or if it would just reduce drive life for no benefit.

Re: Does a full backup scrub a pool?

PostPosted: Fri Feb 09, 2018 11:37 am
by lundman
If you do full backups, it reads all data and would check all checksums as part of it. You could still run a scrub once a month or something

Re: Does a full backup scrub a pool?

PostPosted: Sun Feb 18, 2018 6:33 pm
by macz
@lundman

wouldnt it depend on how the backup was done?

I mean.. if you are zfs sending and recieving.. zfs knows the delta.. it never reads all the data.. just reads the diff as its sending it? it knows the changes at the block level so only new blocks data get read and transmitted.

and if you are rsync'ing the data.. does it really read each canditate file in its entirety or is it just looking at the delta of the files last modified date, size etc.. ?

now I concur that during an initial backup and all files are transferred they would be checksumed during that backup.. no so sure on delta backups?

Re: Does a full backup scrub a pool?

PostPosted: Tue Feb 20, 2018 4:23 am
by e8vww
macz wrote:@lundman

wouldnt it depend on how the backup was done?

I mean.. if you are zfs sending and recieving.. zfs knows the delta.. it never reads all the data.. just reads the diff as its sending it? it knows the changes at the block level so only new blocks data get read and transmitted.

and if you are rsync'ing the data.. does it really read each canditate file in its entirety or is it just looking at the delta of the files last modified date, size etc.. ?

now I concur that during an initial backup and all files are transferred they would be checksumed during that backup.. no so sure on delta backups?


I was careful to indicate "full backup" meaning not deltas.

Re: Does a full backup scrub a pool?

PostPosted: Tue Feb 20, 2018 9:22 pm
by macz
Well duh.. you did say tape.. ie not delta.. sorry.. have not seen a tape machine in ages and it didnt even register...

I stand corrected.. hehe

Re: Does a full backup scrub a pool?

PostPosted: Tue Feb 27, 2018 11:54 am
by e8vww
macz wrote:Well duh.. you did say tape.. ie not delta.. sorry.. have not seen a tape machine in ages and it didnt even register...

I stand corrected.. hehe


No problem. LTO6 is the cheapest format per TB so its my tool of choice.