DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th August 2019
sklv sklv is offline
New User
 
Join Date: May 2019
Posts: 6
Default Issues bringing up RAID5 array

I have a machine with a crypto volume on sd0, and a RAID5 array on sd1, sd2, and sd3.

I was transferring data to the machine when it panicked. The data is backed up, and not important, but I'd like to learn how to recover.

I have ran SMART short test on all 3 drives and the test reports no issues. As the array contains a crypto volume, I can't verify the validity of the data on the drives.

My issue is that the array does not appear in bioctl -i softraid0.

There is a suspicious message in dmesg but I don't know how to use the information to help mount the array.
Code:
# dmesg | grep softraid
softraid0 at root
scsibus4 at softraid0: 256 targets
softraid0: trying to bring up sd4 degraded
softraid0: sd4 was not shutdown properly
softraid0: sd4 is offline, will not be brought online
softraid0: volume sd4 is roaming, it used to be sd2, updating metadata
Code:
# bioctl -c 5 -l sd1a,sd2a,sd3a softraid0
softraid0: trying to bring up sd4 degraded
softraid0: sd4 was not shutdown properly
softraid0: sd4 is offline, will not be brought online
According to bioctl, sd4 is the name of sd0's crypto volume.
Code:
# bioctl -i softraid0
Volume      Status               Size Device
softraid0 0 Online       254432315904 sd4     CRYPTO
          0 Online       254432315904 0:0.0   noencl <sd0a>
I have tried to google the bioctl error but the info i am able to find is involved and confusing. Any advice on how I could recover my raid5 array?

Last edited by sklv; 7th August 2019 at 06:02 PM. Reason: missing word
Reply With Quote
  #2   (View Single Post)  
Old 7th August 2019
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Quote:
Originally Posted by sklv View Post
As the array contains a crypto volume, I can't verify the validity of the on the drives.
I interpret this to indicate you have two layers of softraid in use on these three drives. While you may be able to get it to work, the OpenBSD FAQ states:
Quote:
Note that "stacking" softraid modes (mirrored drives and encryption, for example) is not supported at this time.
I don't know if this type of error is recoverable. You could ask on the misc@ mailing list.

If it is not recoverable, you must zero out the metadata, recreate the array, and restore from backup.
Reply With Quote
  #3   (View Single Post)  
Old 7th August 2019
sklv sklv is offline
New User
 
Join Date: May 2019
Posts: 6
Thumbs up

Thanks for the reply!

I can see that you're right.

I was aware of the limitation of stacking softraid disciples, but I thought that you couldn't *boot* of crypto on raid5, not that it was outright not supported.

It feels counterintuitive to me that the contents of the array can prevent the array from being *assembled*, but the limitation is clearly stated in the FAQ.

I will ask on the mailing list as you suggest.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C: address of an int in an array in a struct? xmorg Programming 3 18th April 2011 02:31 PM
Rescuing broken RAID5 gvinum volume morfran FreeBSD General 1 26th May 2010 09:49 AM
bringing up vlan interfaces xiphias FreeBSD General 3 5th March 2010 04:04 PM
Encrypting gvinum raid5 oxy FreeBSD General 1 13th December 2008 05:59 PM
gmirror array broken stukov FreeBSD General 5 15th July 2008 08:45 PM


All times are GMT. The time now is 09:32 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick