Need help with Raid 5

For interesting topics. But remember this is a Linux Forum. Do not post offensive topics that are meant to cause trouble with other members or are derogatory towards people of different genders, race, color, minors (this includes nudity and sex), politics or religion. Let's try to keep peace among the community and for visitors.

No spam on this or any other forums please! If you post advertisements on these forums, your account may be deleted.

Do not copy and paste entire or even up to half of someone else's words or articles into posts. Post only a few sentences or a paragraph and make sure to include a link back to original words or article. Otherwise it's copyright infringement.

You can talk about other distros here, but no MX bashing. You can email the developers of MX if you just want to say you dislike or hate MX.
Message
Author
NibblesMctwitch
Posts: 7
Joined: Mon Mar 02, 2020 1:32 pm

Re: Need help with Raid 5

#11 Post by NibblesMctwitch »

So far I can follow the process in the link provided above and the minute ii reboot it ALL gone (Like I never even built the array which takes 8.5 hours on 12TB)


Chuck

User avatar
JayM
Posts: 6796
Joined: Tue Jan 08, 2019 3:47 am

Re: Need help with Raid 5

#12 Post by JayM »

Then you did something wrong. Without more details I can't suggest what that "something" might be.
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

antiX-Dave
Developer
Posts: 372
Joined: Mon Apr 16, 2012 4:51 pm

Re: Need help with Raid 5

#13 Post by antiX-Dave »

JayM wrote: Fri Mar 20, 2020 8:04 pm BTW I confirmed yesterday that cli-installer can't install to a RAID0 either, even if I partitioned it ahead of time. Whenever I'd select /dev/md0p2 for the root partition it would reject it. I was expecting as much since mdadm is started as a service in /etc/init.d and if /etc is on a RAID, /etc can't be accessed until after /etc/init.d is accessed: catch-22. That's why you would need a hardware RAID controller, which sets up the RAID at the system/BIOS level so it's already there before an OS even comes into the picture.

Hmm, yes the install now does a sanity check for sd* or hd*. I guess it will also fail for mmcblk then. Perhaps it is possible to get around this without editing the installer by making symlinks from md* to hd*. (ln -s /dev/md0 /dev/hda0)
If I understood correctly grub has a module for reading md raid devices and the kernel also has the needed drivers built in (modprobe raid*). So the mdadm service should not be needed immediately.

Edit:
https://en.wikipedia.org/wiki/Mdadm#Booting

Edit #2:
You should be able to see if the md module is in initramfs to allow using a raid array without needing to have a separate raid 1 partition by running
lsinitramfs /boot/initrd.img-VERSION_HERE | less
and searching for md

NibblesMctwitch
Posts: 7
Joined: Mon Mar 02, 2020 1:32 pm

Re: Need help with Raid 5

#14 Post by NibblesMctwitch »

JayM wrote: Sat Mar 21, 2020 9:00 pm Then you did something wrong. Without more details I can't suggest what that "something" might be.
I followed that guide to the letter twice and I mean to the letter, I did it just like it says to.

antiX-Dave
Developer
Posts: 372
Joined: Mon Apr 16, 2012 4:51 pm

Re: Need help with Raid 5

#15 Post by antiX-Dave »

NibblesMctwitch wrote: Sat Mar 21, 2020 11:57 pm
JayM wrote: Sat Mar 21, 2020 9:00 pm Then you did something wrong. Without more details I can't suggest what that "something" might be.
I followed that guide to the letter twice and I mean to the letter, I did it just like it says to.
Perhaps you could post the output of parted -l/fdisk -l so we can see what disks you have and how you hope to arrange them for data storage?
Also what the commands looked like from the article after you altered them for your application?

Also by the statement
NibblesMctwitch wrote: Sat Mar 21, 2020 8:24 am So far I can follow the process in the link provided above and the minute ii reboot it ALL gone (Like I never even built the array which takes 8.5 hours on 12TB)
It seems as though you are running a live instance instead of an installed copy. Maybe you could point out which disk you are installing to / have installed on in the parted -l /fdisk -l output?

User avatar
JayM
Posts: 6796
Joined: Tue Jan 08, 2019 3:47 am

Re: Need help with Raid 5

#16 Post by JayM »

I may try again later this week as I'm pretty much confining myself to the house so it'll be a fun project. I'll try your symlink idea and let everyone know if it works. (I should probably start a new topic though instead of hijacking this one, huh?)
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

Post Reply

Return to “General”