Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot rebuild a RAID 1 set with dmraid
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Vieri
l33t
l33t


Joined: 18 Dec 2005
Posts: 877

PostPosted: Fri Apr 22, 2022 8:45 am    Post subject: Cannot rebuild a RAID 1 set with dmraid Reply with quote

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?
Back to top
View user's profile Send private message
Vieri
l33t
l33t


Joined: 18 Dec 2005
Posts: 877

PostPosted: Fri Apr 22, 2022 9:26 am    Post subject: Reply with quote

I then ran:

Code:
# dmraid -ay
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
RAID set "isw_diigbahdba_raid1disks" already active
ERROR:  Unable to register a device mapper event handler for device "isw_diigbahdba_raid1disks"
RAID set "isw_diigbahdba_raid1disks1" already active
The dynamic shared library "libdmraid-events-dos.so" could not be loaded:
    libdmraid-events-dos.so: cannot open shared object file: No such file or directory
RAID set "isw_diigbahdba_raid1disks2" already active
The dynamic shared library "libdmraid-events-dos.so" could not be loaded:
    libdmraid-events-dos.so: cannot open shared object file: No such file or directory
RAID set "isw_diigbahdba_raid1disks3" already active
The dynamic shared library "libdmraid-events-dos.so" could not be loaded:
    libdmraid-events-dos.so: cannot open shared object file: No such file or directory

# 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

# dmraid -s
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
*** Group superset isw_diigbahdba
--> *Inconsistent* Active Subset
name   : isw_diigbahdba_raid1disks
size   : 488390272
stride : 128
type   : mirror
status : inconsistent
subsets: 0
devs   : 1
spares : 0

# dmraid -R isw_diigbahdba
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
Rebuild: a hot-spare drive not found for a volume: "isw_diigbahdba_raid1disks". Need a drive to rebuild a volume.


Do I just need to add /dev/sdb as a spare disk? How?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum