From: Richard <richard@radoeka.nl>
To: linux-raid@vger.kernel.org
Subject: RAID-1 not accessible after disk replacement
Date: Thu, 23 May 2024 13:47:47 +0200 [thread overview]
Message-ID: <1910147.LkxdtWsSYb@selene> (raw)
Hello,
I was reference to this mailinglist via the https://raid.wiki.kernel.org/
index.php/RAID_Recovery page, "Make sure to contact someone who's experienced
in dealing with md RAID problems and failures - either someone you know in
person, or, alternatively, the friendly and helpful folk linux-raid mailing
list".
As I've a problem with an RAID-1 array after replacing a failed disk, I hope
that you can help me to make it at least readable again.
Information about the RAID:
/dev/sda3 is the disk partition that has the data on it.
/dev/sdb6 is the new disk partition - no data on it.
Information of the involved RAID before the disk replacement:
/dev/md126:
Version : 1.0
Creation Time : Sat Apr 29 20:30:27 2017
Raid Level : raid1
Array Size : 247464768 (236.00 GiB 253.40 GB)
Used Dev Size : 247464768 (236.00 GiB 253.40 GB)
I grew (--grow) the RAID to an smaller size as it was complaining about the
size (no logging of that).
After the this action the RAID was functioning and fully accessible.
After reboot the RAID is not accessible anymore.
The actual data on the RAID is about 37GB.
After reboot it became md125.
[ 23.872267] md/raid1:md125: active with 1 out of 2 mirrors
[ 23.903300] md125: detected capacity change from 0 to 488636416
2024-05-23T12:13:29.708106+02:00 cloud kernel: [ 632.338266][ T2913] EXT4-fs
(md125): bad geometry: block count 6186598
4 exceeds size of device (61079552 blocks)
# mount /dev/md125 /srv
mount: /srv: wrong fs type, bad option, bad superblock on /dev/md125, missing
codepage or helper program, or other error
# LANG=C fsck /dev/md125
fsck from util-linux 2.37.4
e2fsck 1.46.4 (18-Aug-2021)
The filesystem size (according to the superblock) is 61865984 blocks
The physical size of the device is 61079552 blocks
Either the superblock or the partition table is likely to be corrupt!
# cat /proc/mdstat
md125 : active raid1 sda3[2]
244318208 blocks super 1.0 [2/1] [U_]
bitmap: 1/2 pages [4KB], 65536KB chunk
mdadm --detail /dev/md125
/dev/md125:
Version : 1.0
Creation Time : Sat Apr 29 20:30:27 2017
Raid Level : raid1
Array Size : 244318208 (233.00 GiB 250.18 GB)
Used Dev Size : 244318208 (233.00 GiB 250.18 GB)
Raid Devices : 2
Total Devices : 1
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Mon May 20 18:40:03 2024
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
Consistency Policy : bitmap
Name : any:srv
UUID : d96112c1:4c249022:96b4488c:642e84a6
Events : 576774
Number Major Minor RaidDevice State
2 8 3 0 active sync /dev/sda3
- 0 0 1 removed
# LANG=C fdisk -l /dev/sda
Disk /dev/sda: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: WDC WD5000LPCX-2
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xc28b197d
Apparaat Op. Begin Einde Sectoren Grootte ID Type
/dev/sda3 46139392 891291647 845152256 403G fd Linux raidautodetectie
# LANG=C fdisk -l /dev/sdb
Disk /dev/sdb: 298.09 GiB, 320072933376 bytes, 625142448 sectors
Disk model: WDC WD3200BUCT-6
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x975182e6
Device Boot Start End Sectors Size Id Type
/dev/sdb6 136321024 625142447 488821424 233.1G fd Linux raid autodetect
# mdadm --examine /dev/sda3
/dev/sda3:
Magic : a92b4efc
Version : 1.0
Feature Map : 0x1
Array UUID : d96112c1:4c249022:96b4488c:642e84a6
Name : any:srv
Creation Time : Sat Apr 29 20:30:27 2017
Raid Level : raid1
Raid Devices : 2
Avail Dev Size : 845151976 sectors (403.00 GiB 432.72 GB)
Array Size : 244318208 KiB (233.00 GiB 250.18 GB)
Used Dev Size : 488636416 sectors (233.00 GiB 250.18 GB)
Super Offset : 845152240 sectors
Unused Space : before=0 sectors, after=356515808 sectors
State : clean
Device UUID : d75cd979:3401034d:41932cc1:4c98b232
Internal Bitmap : -16 sectors from superblock
Update Time : Mon May 20 18:40:03 2024
Bad Block Log : 512 entries available at offset -8 sectors
Checksum : f6864782 - correct
Events : 576774
Device Role : Active device 0
Array State : A. ('A' == active, '.' == missing, 'R' == replacing)
# mdadm --examine /dev/sdb6
/dev/sdb6:
Magic : a92b4efc
Version : 1.0
Feature Map : 0x1
Array UUID : d96112c1:4c249022:96b4488c:642e84a6
Name : any:srv
Creation Time : Sat Apr 29 20:30:27 2017
Raid Level : raid1
Raid Devices : 2
Avail Dev Size : 488821392 sectors (233.09 GiB 250.28 GB)
Array Size : 244318208 KiB (233.00 GiB 250.18 GB)
Used Dev Size : 488636416 sectors (233.00 GiB 250.18 GB)
Super Offset : 488821408 sectors
Unused Space : before=0 sectors, after=184976 sectors
State : clean
Device UUID : c077a12d:9ba6c3a0:9c5749ba:600e9aef
Internal Bitmap : -16 sectors from superblock
Update Time : Mon May 20 18:15:52 2024
Bad Block Log : 512 entries available at offset -8 sectors
Checksum : 899ae2ec - correct
Events : 576771
Device Role : Active device 1
Array State : AA ('A' == active, '.' == missing, 'R' == replacing)
Is there anything that can be done, to access the data on /dev/sda3?
--
Thanks in advance,
Richard
next reply other threads:[~2024-05-23 11:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-23 11:47 Richard [this message]
2024-05-23 12:20 ` RAID-1 not accessible after disk replacement Yu Kuai
2024-05-23 12:47 ` Richard
2024-05-23 16:23 ` Phillip Susi
2024-05-24 15:23 ` Richard
2024-05-24 15:55 ` Richard
2024-05-25 19:27 ` Roger Heflin
2024-05-28 19:04 ` Phillip Susi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1910147.LkxdtWsSYb@selene \
--to=richard@radoeka.nl \
--cc=linux-raid@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.