Subject: Re: mount a raidframe partition
To: Pierre-Philipp Braun <pbraun@nethence.com>
From: Tobias Nygren <tnn@netilium.org>
List: netbsd-help
Date: 02/13/2005 23:45:47
On Sun, 13 Feb 2005 22:56:37 +0100 (CET)
Pierre-Philipp Braun <pbraun@nethence.com> wrote:

> Hi fellows:)
> 
> how to mount a NetBSD raidframe partition without recreating it ?
> 
> Reading http://www.netbsd.org/guide/en/chap-rf.html again lets me cautious.
> 
> And I need to be VERY cautious, as the data on that raidframe configured
> harddrive are quite important to me & others.
> 
> Note: it's a IDE harddrive that used to be in production on a NetBSD/sparc64
> machine.
> 
> Help would be appreciated.
> Thanks
> 
> 

Assuming this drive used to be in a plain mirror (raid1),
try this:
# cat > raid3.conf << EOF
START array
1 2 0
START disks
/dev/wd1e            [the RAID partition]
absent
START layout
128 1 1 1
START queue
fifo 100
EOF
# raidctl -c raid3.conf raid3
# disklabel raid3
# mount -o ro /dev/raid3N /mnt


As long as you don't use capital "-C" to raidctl and use read-only
mounts the data will not be corrupted.