View previous topic :: View next topic |
What kind of software RAID do you mainly use (at lowest level)? |
I don't use RAID |
|
36% |
[ 9 ] |
MDRAID 0 |
|
4% |
[ 1 ] |
MDRAID 1, 1+0, 0+1 |
|
24% |
[ 6 ] |
MDRAID 4, 5, 6 |
|
16% |
[ 4 ] |
LVM/DM RAID 0 |
|
0% |
[ 0 ] |
LVM/DM RAID 1 or 10 including Fake (HW) RAID |
|
0% |
[ 0 ] |
LVM/DM RAID 4, 5, 6 |
|
0% |
[ 0 ] |
Hardware RAID box |
|
12% |
[ 3 ] |
I only raid Onyxia's panties |
|
8% |
[ 2 ] |
|
Total Votes : 25 |
|
Author |
Message |
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9677 Location: almost Mile High in the USA
|
Posted: Fri Jul 01, 2022 6:19 pm Post subject: How do you (software) RAID? |
|
|
RAIDs, or Redundant Array of (Inexpensive/Independent) Disks is a way to use multiple disk drives together to provide redundancy or speed improvement, or even both. And you can build them in Linux with software.
Do you use RAID on one of your Gentoo systems, and what kind?
I use LVM over MDRAID5 on 3 disks at the moment, used to have a 4-disk but not any more. I even have another LVM over MDRAID5 on 2 hard disks (a degenerate (not degraded!) RAID5 that basically functions as a slow RAID1, was meant to grow it to a normal RAID5 if I got a third disk. Not sure this is possible on LVM-RAID5 or not, but oh well...) _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54220 Location: 56N 3W
|
Posted: Fri Jul 01, 2022 6:41 pm Post subject: |
|
|
eccerr0r,
I use raid1 for /boot and or the EFI Partition because EFI is broken by design in that respect.
Then mdadm raid5 with LVM over the top on rotating rust.
That mix isn't in your poll.
I did look at LVM doing raid 5 for itself but fortune wrote: | It Is Fatuous To Attempt To Indoctrinate A Superannuated Canine With Innovative Maneuvers | so I stuck with what I know.
I have used raid0 too but that's just 'aid'. There is no 'r'. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9677 Location: almost Mile High in the USA
|
Posted: Fri Jul 01, 2022 7:19 pm Post subject: |
|
|
Actually I did... wrote "lowest level", so you're using MD at a lower level than LVM, so you're using MDRAID (the same way I'm using md/lvm!)
I think I virtually/inadvertently wrote a primer on how to do create/use LVMRAID5 on another thread which sort of made me wonder how often people use this method, hence this poll. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54220 Location: 56N 3W
|
Posted: Fri Jul 01, 2022 7:22 pm Post subject: |
|
|
eccerr0r
I can't choose both Raid1 and Raid5 in your poll. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3339 Location: Rasi, Finland
|
Posted: Fri Jul 01, 2022 7:42 pm Post subject: |
|
|
;) _________________ ..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Fri Jul 01, 2022 10:22 pm Post subject: |
|
|
I don't use RAID on my Gentoo systems. I use Subversion, Git and cron-jobs calling tar to make backups of my data. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9677 Location: almost Mile High in the USA
|
Posted: Fri Jul 01, 2022 11:35 pm Post subject: |
|
|
NeddySeagoon wrote: | eccerr0r
I can't choose both Raid1 and Raid5 in your poll. |
Well, if you constantly edit your boot partition, then yeah it would be difficult...at least for me having lots of raid1 and raid5, I make content modifications on my raid5 the most, so that it will be!
mike155 wrote: | I don't use RAID on my Gentoo systems. I use Subversion, Git and cron-jobs calling tar to make backups of my data. |
Well, RAID was never meant for backups... One of my disks suddenly failed and I didn't need to reboot my computer, was able to "fix" it while everything was still running - that's what RAID was for! _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
death-magnet n00b
Joined: 01 Jul 2022 Posts: 9
|
Posted: Sat Jul 02, 2022 2:36 am Post subject: |
|
|
For the longest time I had a raid0 setup on my laptop. It came with a raid controller specifically for this. (a msi gaming laptop from almost 10 years ago) But when I tried a new distro a while back, no matter what I couldn't get its installer (calamares) to correctly see and interact with the disks. mdadm was enabled, prepartitioned so no screwy business there. Nope.
Apparently for whatever reason that setup did not like being installed to a raid setup. So I moved some files around and disabled it. It was raid0. I wanted speed, not redundancy. I keep backups elsewhere anyway. These old SSDs are still decent on their own, but definitely perform better under the raid0.
Now that I'm messing with gentoo I've kinda got the mind to turn that back on and see if it will turn this already insanely fast monstrosity up to 11.
I'm quite confident I can set up and install it with the raid in place. I may have to unsimplify my kernel and go with an initramfs to make it work though. I kinda like simplicity. Less stuff to go wrong. |
|
Back to top |
|
|
pa4wdh l33t
Joined: 16 Dec 2005 Posts: 811
|
Posted: Sat Jul 02, 2022 9:41 am Post subject: |
|
|
I've voted for "MDRAID 1, 1+0, 0+1". I use MDRAID 1 on my server with LVM on top (and LUKS on top of some LV's). I use 0.9 metadata so the kernel can autodetect the raid arrays and / can be on raid without the need for an initrd.
How many using MDRAID actually follow this advice? https://raid.wiki.kernel.org/index.php/Choosing_your_hardware,_and_what_is_a_device%3F#TLER_and_SCT.2FERC
I now have two 1TB Samsung 860 EVO's in software raid which have the SCT/ERC feature and i'm looking for a new SSD which also implements it but it seems to be removed on newer models, does anyone know one? _________________ The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world
My shared code repository: https://code.pa4wdh.nl.eu.org
Music, Free as in Freedom: https://www.jamendo.com
Last edited by pa4wdh on Sat Jul 02, 2022 10:25 am; edited 1 time in total |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1012
|
Posted: Sat Jul 02, 2022 10:12 am Post subject: |
|
|
I've MD - RAID 1 for my private Docs
and MD - RAID 5 (3 x 1,5 TB) for Working docs and other stuffs
and Minor things on cloud.
I've 2 hardware raid controllers (4 x sata 2.) that I don't use anymore _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54220 Location: 56N 3W
|
Posted: Sat Jul 02, 2022 11:04 am Post subject: |
|
|
death-magnet,
Built in Raid controllers, except on servers are fakeraid. Very few work with mdadm. They usually need sys-fs/dmraid.
For raid0, there is no parity to calculate, so a real hardware raid controller does very little. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
lekto Apprentice
Joined: 20 Sep 2014 Posts: 170 Location: Ancient Rome
|
Posted: Sat Jul 02, 2022 11:20 am Post subject: |
|
|
RAID1 on SSDs wherever I can.
Right now:
main PC - good quality about 256GB NVME + 512GB Aliexpress quality NVME (half of it is unpartitioned) using mdraid.
main laptop - two 512GB SSDs from Aliexpress with ZFS mirror on both.
Currently waiting:
NAS - 32GB industrial SSD in mirror with one disk (I don't have and can't buy second same disk anywhere), I want to reinstall system this year and put ZFS mirror for root.
Internet gateway - when OpenBSD 7.2 come out I want to put two SSDs (probably again from Aliexpress) and make it mirror raid.
I want to have every SSD I have in mirror because I worked in PC shop and I saw how fragile they are. I had many customers with failed SSD that just suddenly stopped working (with decent brands like Crucial or Kingston) and all data were gone. When HDD is failing at least you get some warnings (poor performance, noise etc.) and you can save your data. My last broken NVME just stopped working without warning, after restart it was working about 1.5min (if I remember correctly) and disappeared, recovering data from it was… fun, had to speedrunning running ddrescure, and restarting PC many times. Also at beginning of this year I had two failed SSDs: 32GB industrial Sandisk and 120GB Adata, on both btrfs was throwing errors in dmesg, but smart was clean, I had to use badblocks to find problems and after this smart was still clean. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9677 Location: almost Mile High in the USA
|
Posted: Sat Jul 02, 2022 2:04 pm Post subject: |
|
|
I use whatever drives I can get my hands on to, but TLER / SCTERC would be nice. I think the ones I have happen to have TLER anyway.
I would think that SSDs this is not an issue, it can either read a block or not, there's no retry unlike a mechanical hard disk...
And Zucca, vote the array that you do the most read/writes to! Else lvm-raid should be deleted as nobody uses it! :D
(come to think of it I probably should have added raid-z options ... but anyway...) _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
C5ace Guru
Joined: 23 Dec 2013 Posts: 472 Location: Brisbane, Australia
|
Posted: Sat Jul 02, 2022 3:06 pm Post subject: |
|
|
I use RAID 1 for /boot and RAID 5 for /, /home and swap on 3x2TB rotating rust. _________________ Observation after 30 years working with computers:
All software has known and unknown bugs and vulnerabilities. Especially software written in complex, unstable and object oriented languages such as perl, python, C++, C#, Rust and the likes. |
|
Back to top |
|
|
MrRoy3 n00b
Joined: 10 Feb 2022 Posts: 53 Location: Canada
|
Posted: Sat Jul 02, 2022 7:23 pm Post subject: |
|
|
The poll is missing ZFS/BTRFS RAID options
For my NAS, I use BTRFS RAID 5 (with metadata on RAID1).
I think the write hole issue is overblown and much rarer than people like to believe, so I take the "risk" of using BTRFS RAID 5, despite all the warnings. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9677 Location: almost Mile High in the USA
|
Posted: Sat Jul 02, 2022 7:56 pm Post subject: |
|
|
yeah, forgot about that, mentioned it just a few hours ago for the filesystem options. Alas seems this is a rarity too since nobody mentioned they were using it before now... likewise LVM-RAID, it's pretty much MD RAID, might well be since it's the oldest I think...
The write hole is a risk, it's not completely overblown. The thing is that most people aren't constantly writing to their disks with random irreplaceable stuff, so it's rarely an issue. But if you just so happen to be writing that bit of data and it's not consistent due to power outage our whatnot... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
MrRoy3 n00b
Joined: 10 Feb 2022 Posts: 53 Location: Canada
|
Posted: Sat Jul 02, 2022 11:37 pm Post subject: |
|
|
eccerr0r wrote: | But if you just so happen to be writing that bit of data and it's not consistent due to power outage our whatnot... |
It's actually quite hard to reproduce the issue; see [1]. Plus, I use a UPS and my computer will shutdown cleanly in case of extended power loss. I'm not too afraid of BTRFS RAID 5 destroying my data
[1] https://unixsheikh.com/articles/battle-testing-zfs-btrfs-and-mdadm-dm.html#btrfs-raid-5 |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9677 Location: almost Mile High in the USA
|
Posted: Sun Jul 03, 2022 1:30 am Post subject: |
|
|
Your [1] reference is not an exhaustive or even worst case scenario....
But again agreed most people aren't doing data writes that would result in corruption and rollbacks are easy... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
MrRoy3 n00b
Joined: 10 Feb 2022 Posts: 53 Location: Canada
|
Posted: Sun Jul 03, 2022 2:27 am Post subject: |
|
|
eccerr0r wrote: |
Your [1] reference is not an exhaustive or even worst case scenario.... |
Well, my point wasn't that the write hole issue is non-existent, but rather that it's uncommon enough for RAID5 to be used with peace of mind, at least for me |
|
Back to top |
|
|
Tout n00b
Joined: 18 Jul 2020 Posts: 33
|
Posted: Sun Jul 03, 2022 7:24 am Post subject: |
|
|
Wow. I'm a bit shocked. As per my understanding, raid configurations are not safe to use on their own. I thought that data corruption can occur unnoticed, and be carried to all disks, making data corruption just redundant But hey, I could be wrong of course. If I am wrong, I am superstitious. My superstition than gives me BTRFS. And yes, I am using raid in that for my data disks Do not now what kind, but I have three disks of different sizes, where one can fail So it's not 1 or 0 I guess, might be a kind of 5
For my root I just use one partition, BTRFS snapshots and offline backups.
I hope for you that I am superstitious and wrong of course, if you are running raid on it's own without other safety measures. I was also in the understanding that the unsafety of raid on its own was common knowledge. How one can live in a bubble
Is my understanding of raid is not a backup also one of my bubbly things? Or is that one indeed common? |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3339 Location: Rasi, Finland
|
Posted: Sun Jul 03, 2022 7:37 am Post subject: |
|
|
eccerr0r wrote: | And Zucca, vote the array that you do the most read/writes to! Else lvm-raid should be deleted as nobody uses it! :D | Since, lvmraid uses mdraid, I guess I use mdraid1, 5 and 6.
I voted what's closest. _________________ ..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9677 Location: almost Mile High in the USA
|
Posted: Sun Jul 03, 2022 12:25 pm Post subject: |
|
|
Tout wrote: | Wow. I'm a bit shocked. As per my understanding, raid configurations are not safe to use on their own. I thought that data corruption can occur unnoticed, and be carried to all disks, making data corruption just redundant :)
|
Indeed RAID is not backup. If you're not backing up your RAID you're doing it wrong. The "write hole" is the main way corruption can happen (barring bad RAM/bad hardware/bad SOFTWARE) and it's silent without massive loss in performance, and you need battery backup to totally prevent it, depending on your workload.
Zucca wrote: | eccerr0r wrote: | And Zucca, vote the array that you do the most read/writes to! Else lvm-raid should be deleted as nobody uses it! :D | Since, lvmraid uses mdraid, I guess I use mdraid1, 5 and 6.
I voted what's closest. |
...
but you do not use mdadm to maintain your disks ... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10587 Location: Somewhere over Atlanta, Georgia
|
Posted: Sun Jul 03, 2022 11:22 pm Post subject: |
|
|
Hardware RAID 6 only with Adaptec controllers at the moment, but software RAID is in my future: I'm planning a RAIDz2 array.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2961 Location: Edge of marsh USA
|
Posted: Mon Jul 04, 2022 3:23 am Post subject: |
|
|
eccerr0r, you write, "I use LVM over MDRAID5" though that is not an obvious choice in your poll. I think poll lacks clarity. _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9677 Location: almost Mile High in the USA
|
Posted: Mon Jul 04, 2022 3:07 pm Post subject: |
|
|
LVM over MDRAID5 means LVM on top of MDRAID5, which was the traditional method prior to LVM adding internal RAID support which I call LVM-RAID.
Basically if you use mdadm to maintain your RAID, you're using MDRAID.
If you're using lvconvert, lvcreate, pvcreate, etc. to maintain your RAID you're using LVM-RAID.
Mainly I'm wondering who's using internal to lvm RAID support. But clearly I forgot about adding an option for internal to filesystem RAID support like zfs, etc... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
|