allanjude / zxfer

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

zxfer resuming unneeded disks from sleep #26

Open petr-fischer opened 8 years ago

petr-fischer commented 8 years ago

Hello, I have 3 ZFS pools on home server (zroot, zusbbackup, zmirror) and I am backuping FreeBSD system (zroot) to the USB drive (zusbbackup) with this cron job:

zxfer -dFPv -R zroot zusbbackup/backups/pf-server

I am putting my big media mirror (zmirror) to sleep after 40 minutes of inactivity. But - when zxfer starts (zroot -> zusbbackup), my zmirror disks are resumed - I don't want to even touch the zmirror pool by zxfer while backuping different zpools.

Is possible, that zxfer in some internal command call ZFS function, that acts over ALL zpools (some internal snapshot listing or something)?

Any idea?

Thanks very much!

allanjude commented 8 years ago

Yes, it does 'zfs list' across everything at the start of the replication

SnapshotCiTy commented 8 years ago

@petr-fischer could you share how you put disks or pools to sleep? Thx

petr-fischer commented 8 years ago

@cedrictineo by setting timeout (in /etc/rc.local) [FreeBSD]

camcontrol idle ada1 -t 7200
camcontrol idle ada2 -t 7200
camcontrol idle da1 -t 2400