Subject: Re: raidframe device numbering
To: None <netbsd-users@NetBSD.org>
From: Jukka Salmi <j+nbsd@2007.salmi.ch>
List: netbsd-users
Date: 08/19/2007 13:56:37
Geert Hendrickx --> netbsd-users (2007-08-19 12:10:01 +0200):
> On Sun, Aug 19, 2007 at 11:23:02AM +0200, Klaus Heinz wrote:
> > The last time I renamed a device I saved the configuration with "raidctl
> > -G", turned off autoconfiguration, did a "raidctl -u" on the device,
> > configured it manually with "raidctl -c" from the saved configuration
> > with the new name and then turned autoconfiguration on again.
> 
> I tried that a few times already, it didn't help... :-(

This worked for me on a NetBSD/i386 4.99.26 system:

- boot a kernel with RAIDframe support from a device other than the
  one containing the RAID set you want to rename (I used the NetBSD
  installation CD-ROM)
- start a shell ;-)
- $ raidctl -G raid1 >/tmp/raid0.conf
- $ raidctl -u raid1
- $ raidctl -c /tmp/raid0.conf raid0
- $ raidctl -u raid0
- reboot


HTH, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~