LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-23-2023, 01:51 PM   #31
henca
Senior Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 1,008

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678

Quote:
Originally Posted by LuckyCyborg View Post
The consistency is detected by MD engine automatically and also automatically happens the array rebuilds and/or disks kicking.

I am not a programmer (to know precisely how MD driver works), but I guess that on the RAID1 the data read from both stripes (on each disks) should be equal, otherwise starts rebuilding the array. BUT, I believe that RAID1 has no way to check IF the equal data from stripes is correct or not. Anyway, any RAID1 system, no matter if it's software or hardware, should react this way.

That's why I believe that RAID5 is superior, because it has checksums for every data stripe, so eventually it even can rebuild the missing data. For example, introducing (replacing a faulty) disk in a 3 disks RAID5 will end with rebuilding your entire data correctly.
The parity stripe in a RAID5 system will be able to rebuild a single broken stipe, but it does not say which stripe is broken. The raid system will need to rely on the disks telling when they are broken and give read error. The same applies to RAID1, if a stripe would differ but both disks would say that they are OK RAID1 would not be able to solve that problem.

Usually hardware raid is to prefer instead of software raid. The OP got a degraded aray from his hardware RAID controller, but that does not for sure mean that the RAID controller is broken. Maybe one of the disks in the RAID1 array reported so many SMART errors that the controller decided to replace it. Instead replacing the controller and start using software RAID on the same disks might be a bad idea...

regards Henrik
 
1 members found this post helpful.
Old 03-23-2023, 09:47 PM   #32
wingfy01
Member
 
Registered: Jul 2009
Location: HZ, China
Distribution: Slackware14 /Debian 6/CentOS5
Posts: 64

Original Poster
Rep: Reputation: 6
Talking

Quote:
Originally Posted by henca View Post
The parity stripe in a RAID5 system will be able to rebuild a single broken stipe, but it does not say which stripe is broken. The raid system will need to rely on the disks telling when they are broken and give read error. The same applies to RAID1, if a stripe would differ but both disks would say that they are OK RAID1 would not be able to solve that problem.

Usually hardware raid is to prefer instead of software raid. The OP got a degraded aray from his hardware RAID controller, but that does not for sure mean that the RAID controller is broken. Maybe one of the disks in the RAID1 array reported so many SMART errors that the controller decided to replace it. Instead replacing the controller and start using software RAID on the same disks might be a bad idea...

regards Henrik
Thanks. The disks used for hardware controller before are all new disks bought from official and tested successfully with badblocks command.
The hardware raid controller could not find the second drive(always the second drive):
cable p1 connect to disk 1 (detected)
cable p2 connect to disk 2 (not found)
and
cable p1 connect to disk 2 (detected)
cable p2 connect to disk 1 (not found)
and
cable p2 connect to disk 1 (detected)
cable p3 connect to disk 2 (not found)
....
And i dont have much time to figure out the problem
And the card very very hot....very hot that i dont know if it is related to the problem.
And the card chip is very old but newer is very expensive....

So in my case...i think soft raid is the better for me....

And at last i choose mdadm + ext4.
There are so many tools that could be used for recover the disk with ext4 if the md was broken...

Last edited by wingfy01; 03-23-2023 at 09:50 PM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SLK15.0, shutdown through ssh, motherboard catterr led on and system hung. wingfy01 Slackware 18 03-23-2023 04:37 AM
Raid6 recovery using madam. HalB Linux - Newbie 1 06-13-2018 08:54 AM
Installing onto and existing madam RAID5 array KC9GRD Linux - Newbie 0 02-01-2014 02:48 AM
ZFS Root / Boot into ZFS from a usb flash drive Kataku Solaris / OpenSolaris 1 07-15-2006 04:13 AM
set up raid 1 with madam eyt Linux - Software 1 09-01-2005 07:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration