4 ms·
Go with LVM parity volumes. 1. For sequential it's up to 3x with full stripe writes, up to 3x in random. 2. Reads in a mirror can't be 'distributed' for the s
by justsomehnguy 3y ago
Go with LVM parity volumes.
1. For sequential it's up to 3x with full stripe writes, up to 3x in random.
2. Reads in a mirror can't be 'distributed' for the sequential access anyway - repositioning would eat all benefits, it's always faster to read further than to seek and read.
3. For 4 drives it's negligible
4. You can even swap in smaller drives, if your total dataset would fit, no hard limit
5. Exactly the same
And you are free to use the free space as JBOD, mirror, mirrored mirror or stripe.
- greggyb 3y agoThat would be awfully hard to do as I am not using Linux (: 1. Yes, two mirrored vdevs are not the highest performance configuration for four devices, but they beat a single raidz vdev, which was the suggestion from the prior poster. 2. Random reads are more important than sequential for desktop responsiveness, and mirrors can serve different reads from each disk in the mirror, effectively doubling IOPS (minus overheads). 5. I am not sure I understand here. It seems like you're suggesting 3 data drives and a parity drive. This would allow at most one drive loss before data loss. Two mirrors allow at least one drive loss and up to two drive losses. If there were two parity drives, this would allow up to two drive losses without data losses, but it seems this would have to reduce your claim in point (1) to being 2x performance, since two drives would have to be used for parity writes.
- justsomehnguy 3y agoOuch. 2. Double IOPS sounds good on paper, at 100% it is still to slow, 100 IOPS at best. 5. Wait. Mirrored mirror (RAID11) on 4 drives would net you only 10TB usable. 'Mirrored pair' sounds like an ordinary RAID10 which can tolerate 1 drive loss because it's no longer redundant for half of the data. 'It can tolerate another loss on the still redundant data' is... like pulling out - works most of the time, but some become parents on the first try. Hence RAID5 have the same redundancy tolerance (1 drive loss for losing R.) then, anything other is gambling. The better question - do you have a proper backup to protect from a logical corruption? Even RAID11 wouldn't help from rf -rf in the wrong path.
- greggyb 3y agoIt is objectively measurable and subjectively it feels better than tests on a single drive for day to day activity. Objective and subjective improvement is good enough for me. Two mirrors == two vdevs, each a mirror of two disks: $ zpool status pool: zroot state: ONLINE scan: scrub repaired 0B in 02:01:39 with 0 errors on Wed Aug 16 14:08:39 2023 config: NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 ada2p1.eli ONLINE 0 0 0 ada3p1.eli ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 ada0p1.eli ONLINE 0 0 0 ada1p1.eli ONLINE 0 0 0 In a best case failure scenario, I can lose one disk from each mirror. In a worst case failure scenario, I can lose one disk. With one parity disk out of four drives (for 30TB usable), in a best case failure scenario, I can lose one disk. In a worst case failure scenario, I can lose one. These two descriptions of resiliency simply are not the same. I would obviously not run the pool in a degraded state for any longer than it takes to resilver the degraded mirror. Assuming disk failures are independent and one disk has already failed: - 2 mirror vdevs: 1/3 chance that a second disk failure causes data loss, 2/3 chance that it affects the other mirror - 4 disks w/ 1 parity: 100% chance that a second disk failure causes data loss. Again, this simply is not the same characterization of resilience. Please do not mistake this for me claiming that running this pool with three disks is anything other than a situation to remediate immediately. I take regular snapshots, and scrub regularly to ensure data integrity. Critical data is stored in at least three places, one of which is not my home.
- srhtftw 3y ago> Please do not mistake this for me claiming that running this pool with three disks is anything other than a situation to remediate immediately. About a decade and a half ago I setup a 48 drive Sun 4540 this way. The OS needed 2 dedicated drives on the first controller so I assigned two neighboring drives on that controller near the intake fans as hot spares. The remaining drives were organized into mirror pairs with each drive on a separate controller. The final root was a concatenation of the pairs. This setup proved to be very robust. Although I left the company when financial troubles pushed the founders into a messy divorce, one of the founders asked me to come back a few years later after they restructured. The 4540 had been moved to a new colo but otherwise ignored because none of the admins knew Solaris or bothered to check the monitoring systems. When I returned I discovered in the time I was away 4 drives had failed but ZFS/smf happily took two of the failed drives offline and replaced them with the spares. The two other failed drives left their respective pools degraded but functional. Replacing the failed drives was easy once they arrived. Although neglected for years, none of the applications or databases that relied on that server ever suffered any downtime from the drive failures.