Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1782  / 3 Years ago, fri, september 17, 2021, 4:49:51

I have just broke my software RAID 5 Array (build using mdadm) set up by changing one of the HDD partition.



The exact command I used is:



sudo parted -s /dev/sdb mklabel msdos


on one of 4 HDDs in my array.



Is there a way how to fix this HDD and add it back to array without loosing any data?



I'm very new to linux, so now sure how to show you more info about my set up.



Mike


More From » raid

 Answers
3

How to add the 4th disk back to the raid? "From Mike's Question in previous comment"



Edit this for your needs:



mdadm --add /dev/md1 /dev/sdf1
mdadm --grow /dev/md1 --raid-devices=4


This then took several hours to reshape the array.



The filesystem the needs to be expanded to fill up the new space.



fsck.ext3 /dev/md1
resize2fs /dev/md1

[#37854] Sunday, September 19, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
brailloni

Total Points: 122
Total Questions: 108
Total Answers: 108

Location: North Korea
Member since Tue, Apr 4, 2023
1 Year ago
brailloni questions
Tue, Jun 21, 22, 21:51, 2 Years ago
Thu, Jul 29, 21, 05:25, 3 Years ago
Sat, Apr 2, 22, 17:32, 2 Years ago
Mon, Oct 31, 22, 21:39, 2 Years ago
;