Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do you (software) RAID?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  

What kind of software RAID do you mainly use (at lowest level)?
I don't use RAID
36%
 36%  [ 9 ]
MDRAID 0
4%
 4%  [ 1 ]
MDRAID 1, 1+0, 0+1
24%
 24%  [ 6 ]
MDRAID 4, 5, 6
16%
 16%  [ 4 ]
LVM/DM RAID 0
0%
 0%  [ 0 ]
LVM/DM RAID 1 or 10 including Fake (HW) RAID
0%
 0%  [ 0 ]
LVM/DM RAID 4, 5, 6
0%
 0%  [ 0 ]
Hardware RAID box
12%
 12%  [ 3 ]
I only raid Onyxia's panties
8%
 8%  [ 2 ]
Total Votes : 25

Author Message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9677
Location: almost Mile High in the USA

PostPosted: Fri Jul 01, 2022 6:19 pm    Post subject: How do you (software) RAID? Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54220
Location: 56N 3W

PostPosted: Fri Jul 01, 2022 6:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9677
Location: almost Mile High in the USA

PostPosted: Fri Jul 01, 2022 7:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54220
Location: 56N 3W

PostPosted: Fri Jul 01, 2022 7:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3339
Location: Rasi, Finland

PostPosted: Fri Jul 01, 2022 7:42 pm    Post subject: Reply with quote

  • lvmraid 1,5 and 6
;)
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Fri Jul 01, 2022 10:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9677
Location: almost Mile High in the USA

PostPosted: Fri Jul 01, 2022 11:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
death-magnet
n00b
n00b


Joined: 01 Jul 2022
Posts: 9

PostPosted: Sat Jul 02, 2022 2:36 am    Post subject: Reply with quote

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
View user's profile Send private message
pa4wdh
l33t
l33t


Joined: 16 Dec 2005
Posts: 811

PostPosted: Sat Jul 02, 2022 9:41 am    Post subject: Reply with quote

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
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1012

PostPosted: Sat Jul 02, 2022 10:12 am    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54220
Location: 56N 3W

PostPosted: Sat Jul 02, 2022 11:04 am    Post subject: Reply with quote

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
View user's profile Send private message
lekto
Apprentice
Apprentice


Joined: 20 Sep 2014
Posts: 170
Location: Ancient Rome

PostPosted: Sat Jul 02, 2022 11:20 am    Post subject: Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9677
Location: almost Mile High in the USA

PostPosted: Sat Jul 02, 2022 2:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
C5ace
Guru
Guru


Joined: 23 Dec 2013
Posts: 472
Location: Brisbane, Australia

PostPosted: Sat Jul 02, 2022 3:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
MrRoy3
n00b
n00b


Joined: 10 Feb 2022
Posts: 53
Location: Canada

PostPosted: Sat Jul 02, 2022 7:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9677
Location: almost Mile High in the USA

PostPosted: Sat Jul 02, 2022 7:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
MrRoy3
n00b
n00b


Joined: 10 Feb 2022
Posts: 53
Location: Canada

PostPosted: Sat Jul 02, 2022 11:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9677
Location: almost Mile High in the USA

PostPosted: Sun Jul 03, 2022 1:30 am    Post subject: Reply with quote

MrRoy3 wrote:
[1] https://unixsheikh.com/articles/battle-testing-zfs-btrfs-and-mdadm-dm.html#btrfs-raid-5

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
View user's profile Send private message
MrRoy3
n00b
n00b


Joined: 10 Feb 2022
Posts: 53
Location: Canada

PostPosted: Sun Jul 03, 2022 2:27 am    Post subject: Reply with quote

eccerr0r wrote:
MrRoy3 wrote:
[1] https://unixsheikh.com/articles/battle-testing-zfs-btrfs-and-mdadm-dm.html#btrfs-raid-5

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
View user's profile Send private message
Tout
n00b
n00b


Joined: 18 Jul 2020
Posts: 33

PostPosted: Sun Jul 03, 2022 7:24 am    Post subject: Reply with quote

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
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3339
Location: Rasi, Finland

PostPosted: Sun Jul 03, 2022 7:37 am    Post subject: Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9677
Location: almost Mile High in the USA

PostPosted: Sun Jul 03, 2022 12:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun Jul 03, 2022 11:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2961
Location: Edge of marsh USA

PostPosted: Mon Jul 04, 2022 3:23 am    Post subject: Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9677
Location: almost Mile High in the USA

PostPosted: Mon Jul 04, 2022 3:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum