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 4th January 2015
raindog308 raindog308 is offline
Fdisk Soldier
 
Join Date: Sep 2011
Posts: 67
Question List RAID devices?

With bioctl, I can get info on a particular RAID device. For example:

Code:
# bioctl softraid0
Volume      Status               Size Device  
softraid0 0 Online       938117554176 sd2     RAID1 
          0 Online       938117554176 0:0.0   noencl <sd0m>
          1 Online       938117554176 0:1.0   noencl <sd1m>
But how can I get a list of RAID devices? i.e., if there were multiple RAID devices, what could I execute to list them (softraid0, softraid1, etc.)

bioctl without args gives usage, and I couldn't find anything on the bioctl or softraid man pages that suggested an appropriate incantation.
Reply With Quote
  #2   (View Single Post)  
Old 4th January 2015
albator albator is offline
Shell Scout
 
Join Date: Jul 2011
Posts: 98
Default

You can try one of these commands :
$ sysctl -a|grep softraid
$ dmesg|grep softraid
Reply With Quote
  #3   (View Single Post)  
Old 4th January 2015
raindog308 raindog308 is offline
Fdisk Soldier
 
Join Date: Sep 2011
Posts: 67
Default

Thanks - hadn't thought of sysctl.

I don't think I want to rely on dmesg because that eventually wraps, no? I think the softraid device list would only show up there when first discovered, so after some period of time it might scroll off.
Reply With Quote
  #4   (View Single Post)  
Old 4th January 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

/var/run/dmesg.boot will keep an "unwrapped" dmesg -- but it will not survive a drop to single user mode and subsequent return to multiuser.
Reply With Quote
  #5   (View Single Post)  
Old 4th January 2015
raindog308 raindog308 is offline
Fdisk Soldier
 
Join Date: Sep 2011
Posts: 67
Default

Quote:
Originally Posted by jggimi View Post
/var/run/dmesg.boot will keep an "unwrapped" dmesg -- but it will not survive a drop to single user mode and subsequent return to multiuser.
It also won't show any RAID devices added after boot.

Seems odd that there's no straightforward command to list RAID devices. Seems like bioctl should do it somehow.

Oh well...sysctl it is.
Reply With Quote
Reply


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
Permissions of drm or video devices for better fps npmaier OpenBSD General 1 22nd April 2014 08:13 PM
Automounting USB storage devices for desktop divel FreeBSD General 4 10th February 2014 09:03 AM
OpenBSD Support for Realtek 802.11n USB devices J65nko News 0 18th December 2010 11:00 PM
OpenBSD OpenBSD developer wants USB devices ocicat News 0 9th November 2010 01:57 AM
Automounting USB devices with HAL/KDE vinegaroon FreeBSD General 1 13th June 2008 02:16 PM


All times are GMT. The time now is 12:21 PM.


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