Unix Technical Forum

A problem setting raid0a as / partition

This is a discussion on A problem setting raid0a as / partition within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> I have a fairly straight forward question. I have just set up my first OpenBSD software Raid array. All ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > comp.unix.bsd.openbsd.misc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-16-2008, 06:22 AM
NoNeed2Know
 
Posts: n/a
Default A problem setting raid0a as / partition

I have a fairly straight forward question. I have just set up my first
OpenBSD software Raid array. All went well and I have a 600GB Raid array
built and partitioned. It contains the following partitions:

/ - raid0a
/etc - raid0d
/var - raid0e
/usr - raid0f
/usr/local - raid0g
/home - raidh
/tmp - raidi

I have run raidctl -A root.

I have edited fstab on the /etc partition on both the raid /etc partition as
well as the wd0 /etc directory (wd0 is one partition).

When I try to mount / ass raid0a I receive the following notice on boot and
the wd0 partition is mounted as read only!
mount_ffs: /dev/raid0a on /: specified device does not match mounted device.

This is my first attempt to set up a software raid system, and according to
all the reading I have done this is possible and I have followed all the
information I can find.

Any ideas on how to set raid0a to / would be greatly appreciated I have been
working on this for 4 days and have not found the correct solution yet.

Thanks in advance for any help.

Bill



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-16-2008, 06:22 AM
Angel Suarez Rivero
 
Posts: n/a
Default Re: A problem setting raid0a as / partition

NoNeed2Know wrote:

> Any ideas on how to set raid0a to / would be greatly appreciated I have
> been working on this for 4 days and have not found the correct solution
> yet.


in /etc/fstab at boot no run?

regards
--
En realidad ese correo lo tengo como vertedero, no mandéis nada ahí. Al
menos que sea publicidad o reclamaciones de facturas sin pagar.

lococ
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-16-2008, 06:22 AM
NoNeed2Know
 
Posts: n/a
Default Re: A problem setting raid0a as / partition


"Angel Suarez Rivero" <srangel@teleline.es> wrote in message
news:3f54h1-s11.ln1@Edison.casa.es...
> NoNeed2Know wrote:
>
> > Any ideas on how to set raid0a to / would be greatly appreciated I have
> > been working on this for 4 days and have not found the correct solution
> > yet.

>
> in /etc/fstab at boot no run?
>
> regards
> --
> En realidad ese correo lo tengo como vertedero, no mandéis nada ahí. Al
> menos que sea publicidad o reclamaciones de facturas sin pagar.
>
> lococ


My current /etc/fstab is:
/dev/raid0a / ffs rw,softdep 1 1
/dev/raid0d /etc ffs rx.softdep 1 2
/dev/raid0e /var ffs rx.softdep 1 2
/dev/raid0f /usr ffs rx.softdep 1 2
/dev/raid0g /usr/local ffs rx.softdep 1 2
/dev/raid0h /home ffs rx.softdep 1 2
/dev/raid0i /tmp ffs rx.softdep 1 2

My boot partition and swap are on an old ide drve (wd0a and wd0b)

As I stated if I boot with the above /etc/fstab I get the following error on
boot:

mount_ffs: /dev/raid0a on /: specified device does not match mounted device

According to everything I have read when /bsd on wd0a initializes raid0, it
should basicly start using it immediatley, however what happens is the above
error, and then the wd0a is mounted as root in READ ONLY mode.

df reveals the following:
Filesystem . . . Mounted on:
root_device /
/dev/raid0d /etc
/dev/raid0h /home
/dev/raid0i /tmp
/dev/raid0f /usr
/dev/raid0g /usr/local
/dev/raid0e /var

Any and all help greatly appriciated.

Thanks,

Bill






Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-16-2008, 06:22 AM
Helge Olsen
 
Posts: n/a
Default Re: A problem setting raid0a as / partition


"NoNeed2Know" <noneed2know@bitbucket.us> wrote in message
news:wRK%b.655$YG4.18305@news.uswest.net...
>
> "Angel Suarez Rivero" <srangel@teleline.es> wrote in message
> news:3f54h1-s11.ln1@Edison.casa.es...
> > NoNeed2Know wrote:
> >
> > > Any ideas on how to set raid0a to / would be greatly appreciated I

have
> > > been working on this for 4 days and have not found the correct

solution
> > > yet.

> >
> > in /etc/fstab at boot no run?
> >
> > regards
> > --
> > En realidad ese correo lo tengo como vertedero, no mandéis nada ahí. Al
> > menos que sea publicidad o reclamaciones de facturas sin pagar.
> >
> > lococ

>
> My current /etc/fstab is:
> /dev/raid0a / ffs rw,softdep 1 1
> /dev/raid0d /etc ffs rx.softdep 1 2
> /dev/raid0e /var ffs rx.softdep 1 2
> /dev/raid0f /usr ffs rx.softdep 1 2
> /dev/raid0g /usr/local ffs rx.softdep 1 2
> /dev/raid0h /home ffs rx.softdep 1 2
> /dev/raid0i /tmp ffs rx.softdep 1 2
>
> My boot partition and swap are on an old ide drve (wd0a and wd0b)
>
> As I stated if I boot with the above /etc/fstab I get the following error

on
> boot:
>
> mount_ffs: /dev/raid0a on /: specified device does not match mounted

device
>
> According to everything I have read when /bsd on wd0a initializes raid0,

it
> should basicly start using it immediatley, however what happens is the

above
> error, and then the wd0a is mounted as root in READ ONLY mode.
>
> df reveals the following:
> Filesystem . . . Mounted on:
> root_device /
> /dev/raid0d /etc
> /dev/raid0h /home
> /dev/raid0i /tmp
> /dev/raid0f /usr
> /dev/raid0g /usr/local
> /dev/raid0e /var
>
> Any and all help greatly appriciated.
>
> Thanks,
>
> Bill
>
>
>
>
>
>


Did you enable the following in your kernel config:
pseudo-device raid 4 # or whatever is sufficient
option RAID_AUTOCONFIG


Double check that you have the kernel in both /bsd on your raid root slice
and wd0 slice.


I have 3 raid5 devices set up, one for swap (raid0, A yes), one for system
(A root), and one for data (A yes) and it worked at first attempt, OpenBSD
3.3.

Good luck!

/Helge


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:19 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com