Subject: Re: RAIDframe installboot
To: None <netbsd-help@netbsd.org>
From: George Georgalis <george@galis.org>
List: netbsd-help
Date: 07/13/2007 13:55:58
On Fri, Jul 13, 2007 at 12:58:27PM -0400, George Georgalis wrote:
>On Fri, Jul 13, 2007 at 05:48:43PM +0100, David Laight wrote:
>>On Fri, Jul 13, 2007 at 12:39:30PM -0400, George Georgalis wrote:
>>> 
>>> my plan is to change the RAID partition to UNKNOWN
>>> boot into wd0; change back the in-core label for
>>> wd1a to RAID, backup the raid0a partition to raid0i;
>>> repartition so the raid0a has an offset of 0, newfs
>>> it, and restore root partition from raid0i.
>>
>>You might manage to move the raid header and raid disklabel 63 sectors
>>down the disk image!
>>There isn't very much information in the 64 sector raid header.
>>
>>Alternatively rebuild bootxx_ffsv1 with a different value for the
>>'magic offset' to the raid root filesystem.
>
>both cases, too much I don't know about... :\
>
>Unfortunately the way I planned has a snare,
>below I've booted into wd0 and changed back the
>type of wd1a to RAID, but...
>
> root@rock:/root mount
>/dev/wd0a on / type ffs (soft dependencies, local)
>/dev/wd0f on /var type ffs (nodev, noatime, soft dependencies, local)
>/dev/wd0e on /usr type ffs (nodev, soft dependencies, local)
>/dev/wd0g on /local type ffs (soft dependencies, local)
>mfs:375 on /tmp type mfs (synchronous, local)
>kernfs on /kern type kernfs (local)
>procfs on /proc type procfs (local)
> root@rock:/root disklabel  raid0 
>disklabel: Can't read master boot record 0: Device not configured
>disklabel: ioctl DIOCGDINFO: Device not configured
> root@rock:/root mount /dev/raid0i /mnt
>mount: cannot open `/dev/raid0i': Device not configured
>
>so I'm going to give it (backup root partition)
>another shot in single user, then see if I can
>repartition/restore; fail that, just rebuild restore
>all, without the extra offset. Maybe can finish the
>restore by Monday.

I could backup, and newfs raid0a in single user, but
restoring wasn't an option...  So now I'm preparing
a new raid with a 0 offset for raid0a!

// George


-- 
George Georgalis, information systems scientist <IXOYE><