Vieri l33t
Joined: 18 Dec 2005 Posts: 877
|
Posted: Fri Apr 22, 2022 8:45 am Post subject: Cannot rebuild a RAID 1 set with dmraid |
|
|
Hi,
In one Gentoo system I have 2 mirrored disks with dmraid.
They were working fine until the CMOS ran out of power, the computer was halted, and the system was booted with just one of the two disks (the other one was disconnected physically).
After replacing the CMOS battery and booting the system with both hard drives connected, I got to the Gentoo prompt and issued these commands with the hope of rebuilding the RAID set (BIOS reported that the set was in rebuilding state and that the OS would take care of it):
Code: | # dmraid -s -v
*** Group superset isw_diigbahdba
--> Active Subset
name : isw_diigbahdba_raid1disks
size : 488390272
stride : 128
type : mirror
status : nosync
subsets: 0
devs : 2
spares : 0
# dmraid -R isw_diigbahdba
RAID set "isw_diigbahdba_raid1disks" already active
ERROR: Unable to register a device mapper event handler for device "isw_diigbahdba_raid1disks"
# ls /dev/mapper/*
/dev/mapper/control /dev/mapper/isw_diigbahdba_raid1disks1 /dev/mapper/isw_diigbahdba_raid1disks3
/dev/mapper/isw_diigbahdba_raid1disks /dev/mapper/isw_diigbahdba_raid1disks2
# dmraid -r
ERROR: isw: Could not find disk /dev/sdb in the metadata
/dev/sda: isw, "isw_diigbahdba", GROUP, ok, 488397166 sectors, data@ 0
# ls /dev/sd*
/dev/sda /dev/sda1 /dev/sda2 /dev/sda3 /dev/sdb /dev/sdb1 /dev/sdb2 /dev/sdb3
# dmraid -R isw_diigbahdba /dev/sdb
ERROR: isw: Could not find disk /dev/sdb in the metadata
ERROR: isw: wrong number of devices in RAID set "isw_diigbahdba_raid1disks" [1/2] on /dev/sda
ERROR: isw: only one failed disk supported
metadata fmt update failed |
The first time I built the RAID set with dmraid I did it with the same Gentoo system.
What can I try? |
|