tomlankhorst / comments

utterances 🔮
0 stars 0 forks source link

setup-lvm-raid-array-mdadm-linux #15

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Setting up LVM on a RAID array with mdadm | Tom Lankhorst

License: CC BY 4.0 Recently, one of my favourite YouTube channels decided to cease their presence on YouTube and remove their channel. I stumbled across some old pictures which I overly compressed to fit to 600 megabytes - CD-ROM sized - faces barely recognizable. When visiting some bookmark from 2010, I found out that it was not served through that link anymore. The time for me is now, to become a datahoarder. 🕸️ Disclaimer: I’m not an expert in this field and merely want to record and share my experience, that’s why I chose to license this text with the formidable CC BY 4.0. What does that practically entail for me? Setting up some long-term reliable storage on my Linux desktop in the form of a RA

https://tomlankhorst.nl/setup-lvm-raid-array-mdadm-linux

truebits commented 2 years ago

Hi, great article. But looks like that $ mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda1 /dev/sda2 should be $ mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1 ?

tomlankhorst commented 2 years ago

Exactly!

papstuc commented 1 year ago

thanks for this excellent guide, although I want to add something very crucial when it comes to creating a raid. In your guide you create the raid and specify the disks. I would personally partition the disks and create a raid array with the partitions because otherwise the disk doesn't have a gpt signature, which might trigger some motherboards (tested on ASUS Prime B360 Plus and Z370F) into believing that the disk is broken and then "repairing" the disk.

This leads to losing the raid array.

m0wlheld commented 1 year ago

Refering to the comment of @truebits:

Hi, great article. But looks like that $ mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda1 /dev/sda2 should be $ mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1 ?

I don't see that in the article itself, has it been reverted? Or is

$ mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1

still the way to go?