LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-16-2024, 08:48 AM   #1
zoobie78
LQ Newbie
 
Registered: Mar 2024
Posts: 2

Rep: Reputation: 0
Raid5 unable to mount array disk after replacing a faulty disk in RAID5 array


Hi,

I have a RAID5 array with 4 disks - this array was in a clean degraded status, as one of the disk was faulty and automatically removed from the array.

I have purchased a new HDD and then I have added this new disk through webmin administration tool in order to replace the faulty disk sda7 with the new disk sde6.
I have monitored the recovery process through cat/post/mdstat and the whole process took over 6 hours. A the end of the process I switched off my NAS Server (DYI running under Ubuntu 22.04).

Since then, I need to comment the mount point in fstab, as it is impossible to mount the array, each time I got the following error::

Code:
manu29chatel@NAS:/home/deneufchatel_family$ sudo mount /dev/md127 /export/media3
mount: /export/media3: wrong fs type, bad option, bad superblock on /dev/md127, missing codepage or helper program, or other error.

Here is the detail of the array /dev/md127
Code:
manu29chatel@NAS:/home/deneufchatel_family$ sudo mdadm -D /dev/md127
/dev/md127:
           Version : 1.2
     Creation Time : Sat Jan  9 18:15:50 2016
        Raid Level : raid5
        Array Size : 2196869568 (2.05 TiB 2.25 TB)
     Used Dev Size : 732289856 (698.37 GiB 749.86 GB)
      Raid Devices : 4
     Total Devices : 4
       Persistence : Superblock is persistent

       Update Time : Thu Mar 14 07:08:23 2024
             State : clean 
    Active Devices : 4
   Working Devices : 4
    Failed Devices : 0
     Spare Devices : 0

            Layout : left-symmetric
        Chunk Size : 64K

Consistency Policy : resync

              Name : NAS:media3  (local to host NAS)
              UUID : c417fb9d:0bc3d299:e6704467:f6cfe34c
            Events : 70249

    Number   Major   Minor   RaidDevice State
       0       8       49        0      active sync   /dev/sdd1
       1       8       35        1      active sync   /dev/sdc3
       5       8       70        2      active sync   /dev/sde6
       4       8       19        3      active sync   /dev/sdb3
I have been clearly an idiot as I didn't do a backup prior adding the new disk to the array in order to replace the faulty one.

Is there a way to mount the array (/dev/md127) and to be able to recover / access the data on the array ?

Thanking you in advance for your support.

Regards,

Zoobie78
 
Old 03-17-2024, 01:11 AM   #2
lvm_
Member
 
Registered: Jul 2020
Posts: 941

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
md think that array is clean, so whatever happened to it has happened and presents interest only from the 'learning from your own mistakes' POV. What we have now is the filesystem that won't mount, you can forget about it being on a RAID and deal with it using the corrupted filesystem scenario - testdisk and such. Though I won't hold too many hopes - RAID issues usually thrash filesystems thoroughly and for good.
 
Old 03-17-2024, 10:15 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,729

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
Have you tried specifying a filesystem type with the mount command?

mount -t ext4 /dev/md127 /export/media3 (replace ext4 with the actual filesystem type if different)
 
Old 03-17-2024, 10:47 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,131

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Quote:
Originally Posted by zoobie78 View Post
I have monitored the recovery process through cat/post/mdstat and the whole process took over 6 hours. A the end of the process I switched off my NAS Server (DYI running under Ubuntu 22.04).
This bit worries me. How long (time-wise) after the process finished (as far as mdstat was concerned) did you physically shut the machine down ?. And how did you do it ?.
What does this return
Code:
sudo file -s /dev/md127
 
Old 03-20-2024, 03:15 PM   #5
zoobie78
LQ Newbie
 
Registered: Mar 2024
Posts: 2

Original Poster
Rep: Reputation: 0
Hi sorry for the late feedback, I was on a business strip

I have been able to go back to a previous state by removing the newly added disk (sde6) from the array, with the set faulty and remove command.

I have been able to remount the array that is now under clean degraded status. I'm currently backing up all the data stored on the array partition

I'm under the impression that all these issues are related to the new disk. This new disk is a 8TB disk with advanced format (with physical and logical sector of 4096 ilo 512/12 and 512/4096 for the other disks included in the array.

It seems that generates the following side effect:
  1. The array partition is changing from a 512 octet based to 4096 octet and the result is that the partition is no readable and the OS don't detect the fs and highlight an issue on the superblock
  2. The partitions captured in the array are not aligned

Are there tutorials or documentation on:

1- How to align the single partitions captured in the array
2- How to build an array with a mixture of HDD with standard format and HDD with advanced format

I really believe that this is related to the new disk as I had a similar issue on another array on the same machine by replacing the disk partition from sda disk to sde disk

Last edited by zoobie78; 03-20-2024 at 03:20 PM.
 
  


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
Raid5:- how to remove faulty hard driv and replace with a new one and rebuild in centos nitinm CentOS 2 11-18-2018 07:28 AM
RAID1: can't replace faulty spare (marked again as 'faulty spare' within seconds) Thambry Linux - General 2 11-14-2013 07:31 AM
Faulty card or faulty config? svar Linux - Networking 4 09-02-2009 09:39 AM
problem in replacing hardisk raid5 array slack66 Linux - Newbie 0 08-13-2003 04:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:03 AM.

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