NetBSD Problem Report #39697

From bernd@arresum.veego.de  Sat Oct  4 20:25:48 2008
Return-Path: <bernd@arresum.veego.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id AABB963B884
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  4 Oct 2008 20:25:48 +0000 (UTC)
Message-Id: <200810042025.m94KPcFB017448@arresum.veego.de>
Date: Sat, 4 Oct 2008 22:25:38 +0200 (CEST)
From: Bernd Ernesti <pr200817-3@veego.de>
Reply-To: Bernd Ernesti <pr200817-3@veego.de>
To: gnats-bugs@gnats.NetBSD.org
Subject: no raidframe support in sysinst
X-Send-Pr-Version: 3.95

>Number:         39697
>Category:       install
>Synopsis:       no raidframe support in sysinst
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 04 20:30:00 +0000 2008
>Last-Modified:  Tue Mar 29 22:34:11 +0000 2022
>Originator:     Bernd Ernesti
>Release:        NetBSD 4.99.72
>Organization:

>Environment:
System: NetBSD 4.99.72 (GENERIC) #0: Tue Sep 30 22:03:22 PDT 2008
        builds@wb25:/home/builds/ab/HEAD/i386/200809300002Z-obj/home/builds/ab/HEAD/src/sys/arch/i386/compile/GENERIC
Architecture: i386
Machine: i386
>Description:
	sysinst has no obvious option (if at all) to create a raid with raidframe
	and install the system on it.
>How-To-Repeat:
	Try to setup a raid while installing a new system
>Fix:
	Please add an option to create a raid set with raidframe.

>Release-Note:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: install/39697: no raidframe support in sysinst
Date: Sun, 5 Oct 2008 02:01:28 +0200

 On Sat, Oct 04, 2008 at 08:30:00PM +0000, Bernd Ernesti wrote:
 > 	sysinst has no obvious option (if at all) to create a raid with raidframe
 > 	and install the system on it.

 Not that I disagree with the wish to have more complete support in sysinst -
 just for the record, the unobvious option is:

  - use the utility menu and run a shell from there
  - use raidctl to configure your raid set
  - exit the shell, go back to the sysinst main page and start the install
  - raid0 (or whatever you created) will now be offered as an install target

 Martin

From: Bernd Ernesti <pr200817@veego.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: install/39697: no raidframe support in sysinst
Date: Sun, 5 Oct 2008 12:08:46 +0200

 On Sun, Oct 05, 2008 at 12:05:04AM +0000, Martin Husemann wrote:
 >  On Sat, Oct 04, 2008 at 08:30:00PM +0000, Bernd Ernesti wrote:
 >  > 	sysinst has no obvious option (if at all) to create a raid with raidframe
 >  > 	and install the system on it.
 >  
 >  Not that I disagree with the wish to have more complete support in sysinst -
 >  just for the record, the unobvious option is:
 >  
 >   - use the utility menu and run a shell from there
 >   - use raidctl to configure your raid set

 Unfortunally this is not so easy.

 IMHO it is missing the fdisk / disklabel part (fstype RAID), which is a requiremnt
 for creating the raid set and the initial setup of the bootloader for a root raid
 set.

 And I'm not sure which stripe size I should use for a raid1 set.
 Greg used a formular on how to calculate it in his mail on current-users at
 the end of August 2008:
  ($stripewidth / 2 * ($disks - 1)) == MAXPHYS
 But it looks like that was an example for a raid5 set, so I'm not sure about
 the '($disks - 1)' part and if it applies to a raid1 set too.

 >   - exit the shell, go back to the sysinst main page and start the install
 >   - raid0 (or whatever you created) will now be offered as an install target

 Bernd

From: Greg Oster <oster@cs.usask.ca>
To: gnats-bugs@NetBSD.org
Cc: Bernd Ernesti <pr200817@veego.de>
Subject: Re: install/39697: no raidframe support in sysinst 
Date: Tue, 07 Oct 2008 19:42:33 -0600

 Bernd Ernesti writes:
 > The following reply was made to PR install/39697; it has been noted by GNATS.
 > 
 > From: Bernd Ernesti <pr200817@veego.de>
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: install/39697: no raidframe support in sysinst
 > Date: Sun, 5 Oct 2008 12:08:46 +0200
 > 
 >  On Sun, Oct 05, 2008 at 12:05:04AM +0000, Martin Husemann wrote:
 >  >  On Sat, Oct 04, 2008 at 08:30:00PM +0000, Bernd Ernesti wrote:
 >  >  > 	sysinst has no obvious option (if at all) to create a raid with
 >  raidframe
 >  >  > 	and install the system on it.
 >  >  
 >  >  Not that I disagree with the wish to have more complete support in sysins
 > t -
 >  >  just for the record, the unobvious option is:
 >  >  
 >  >   - use the utility menu and run a shell from there
 >  >   - use raidctl to configure your raid set
 >  
 >  Unfortunally this is not so easy.
 >  
 >  IMHO it is missing the fdisk / disklabel part (fstype RAID), which is a requ
 > iremnt
 >  for creating the raid set and the initial setup of the bootloader for a root
 >  raid
 >  set.
 >  
 >  And I'm not sure which stripe size I should use for a raid1 set.
 >  Greg used a formular on how to calculate it in his mail on current-users at
 >  the end of August 2008:
 >   ($stripewidth / 2 * ($disks - 1)) == MAXPHYS
 >  But it looks like that was an example for a raid5 set, so I'm not sure about
 >  the '($disks - 1)' part and if it applies to a raid1 set too.

 The math works for a RAID 1 set as well -- with MAXPHYS at 64K you want
 a stripe width of 128 blocks ...

 >  >   - exit the shell, go back to the sysinst main page and start the install
 >  >   - raid0 (or whatever you created) will now be offered as an install target

 Even installing to "half a RAID 1 set" would be a step in the right 
 direction...  I'd argue, in fact, that we should only attempt to 
 support installing to a RAID 1 or half of a RAID 1 set...  We can't 
 boot from RAID 0 or RAID 5, so those could be just ignored for the 
 purposes of sysinst...

 I'm happy to provide whatever support I can towards sysinst installing
 to a RAID 1 set...

 Later...

 Greg Oster


From: David Laight <david@l8s.co.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: install/39697: no raidframe support in sysinst
Date: Wed, 8 Oct 2008 22:12:38 +0100

 On Wed, Oct 08, 2008 at 01:45:03AM +0000, Greg Oster wrote:
 >  
 >  Even installing to "half a RAID 1 set" would be a step in the right 
 >  direction...  I'd argue, in fact, that we should only attempt to 
 >  support installing to a RAID 1 or half of a RAID 1 set...  We can't 
 >  boot from RAID 0 or RAID 5, so those could be just ignored for the 
 >  purposes of sysinst...

 I also thought about the 'half a raid set' ...

 It is also possibly to do an install (on i386/amd64) leaving a 64 sector
 gap for the RF header before the netbsd partition.
 And then fill in the RF header and patch the disklabel to match.

 Teaching sysinst the exact format of that RF area is probably not hard!

 	David

 -- 
 David Laight: david@l8s.co.uk

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.