BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] ZFS for an Encrypted External Disk: My Experience and Notes
- Subject: [Discuss] ZFS for an Encrypted External Disk: My Experience and Notes
- From: richard.pieri at gmail.com (Rich Pieri)
- Date: Mon, 25 Jul 2022 11:58:51 -0400
- In-reply-to: <0f9cacf3-e355-1109-6e92-2cab27643886@borg.org>
- References: <0f9cacf3-e355-1109-6e92-2cab27643886@borg.org>
On Mon, 25 Jul 2022 08:34:04 -0700 Kent Borg <kentborg at borg.org> wrote: > To check whether the data all reads back correctly do a scrub (takes > a long time, and note the scrub happens on the underlying pool not > the dataset, > the volume does not have to be mounted to do a scrub, though the pool > needs to be imported): > > ? zpool scrub extern_backup_pool ZFS reads back every write immediately as part of the end to end data validation. Frequent scrubbing is not necessary. Periodic scrubbing is used to detect and repair errors that occour after the fact (cosmic ray bit flips for example). Here's a problem. Scrub can detect errors on this volume but it cannot repair them because you have no data redundancy. I recommend enabling copies=2 if you don't mirror your backup volumes: zfs set copies=2 extern_backup_pool While this will not save you from a device failure, it will allow zpool scrub to repair data errors. At the cost of halving your backup storage capacity and write performance. Note: this will not replicate existing data; only new data will be replicated. Scrubbing a production system is typically a weekly process. I scrub my backup volumes roughly once a month. -- \m/ (--) \m/
- Follow-Ups:
- [Discuss] ZFS for an Encrypted External Disk: My Experience and Notes
- From: kentborg at borg.org (Kent Borg)
- [Discuss] ZFS for an Encrypted External Disk: My Experience and Notes
- From: kentborg at borg.org (Kent Borg)
- [Discuss] ZFS for an Encrypted External Disk: My Experience and Notes
- References:
- [Discuss] ZFS for an Encrypted External Disk: My Experience and Notes
- From: kentborg at borg.org (Kent Borg)
- [Discuss] ZFS for an Encrypted External Disk: My Experience and Notes
- Prev by Date: [Discuss] ZFS for an Encrypted External Disk: My Experience and Notes
- Next by Date: [Discuss] ZFS for an Encrypted External Disk: My Experience and Notes
- Previous by thread: [Discuss] ZFS for an Encrypted External Disk: My Experience and Notes
- Next by thread: [Discuss] ZFS for an Encrypted External Disk: My Experience and Notes
- Index(es):