> Greetings :)
>
> I have a raid1 and raid5 array.  The raid1 is for the OS and has no issues.
>
> The raid5 has been offline since a kernel panic and reboot.
>
> I see this in dmesg
>
> root@cephas:~# dmesg |grep sd6
> softraid0: trying to bring up sd6 degraded
> softraid0: sd6 was not shutdown properly
> softraid0: sd6 is offline, will not be brought online
>
> How do I bring this back online?

OK, I could bring it back online using:

bioctl -C force -v -c 5 -l sd1a,sd2a,sd3a softraid0

I wouldn't have expected it to be the -c flag, because that says a "new"
raid and I'm trying to enable a previously active raid.

Anyway, the above command works.  And I have no data loss.

Then I had a single disk that was marked bad, which I put online again
like so:

If sd1a failed, like so:

```
softraid0 1 Degraded    4000797294592 sd6     RAID5
          0 Offline                 0 1:0.0   noencl <sd1a>
                                                     'unknown serial'
          1 Online      2000398663680 1:1.0   noencl <sd2a>
                                                     'unknown serial'
          2 Online      2000398663680 1:2.0   noencl <sd3a>
                                                     'unknown serial'
```

You can add it back to the RAID like so: `bioctl -C force -R /dev/sd1a sd6`

```
softraid0 1 Rebuild     4000797294592 sd6     RAID5 0% done
          0 Rebuild     2000398663680 1:0.0   noencl <sd1a>
                                                     'unknown serial'
          1 Online      2000398663680 1:1.0   noencl <sd2a>
                                                     'unknown serial'
          2 Online      2000398663680 1:2.0   noencl <sd3a>
                                                     'unknown serial'
```

Reply via email to