Subject: Re: Bootable root on raidframe
To: Martti Kuparinen <martti.kuparinen@iki.fi>
From: Simon Burge <simonb@wasabisystems.com>
List: port-i386
Date: 08/05/2003 16:53:15
Martti Kuparinen wrote:
> I'm going to build a new home server with RAID-1 for everything (root,
> /home and swap). I've read raidctl(8) and David's howto at
>
> http://mail-index.netbsd.org/port-i386/2002/07/17/0006.html
>
> but one thing is a little bit unclear to me.
See also
http://mail-index.netbsd.org/port-i386/2003/07/02/0000.html
With this patch, I have both a 1.6 386 box with -current bootblocks and
a -current i386 box booting from a raidframe mirror.
> I'd really like to see some real-life fdisk and disklabel values...
Here's disklabel output from the -current box:
# /dev/rwd0d:
type: ESDI
disk: IC35L120AVV207-0
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 241254720
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 8388513 63 RAID # (Cyl. 0*- 8321)
b: 8388512 232866208 swap # (Cyl. 231018*- 239339)
c: 241254657 63 unused 0 0 # (Cyl. 0*- 239339)
d: 241254720 0 unused 0 0 # (Cyl. 0 - 239339)
e: 62914320 16777152 RAID # (Cyl. 16644 - 79058)
f: 153174672 79691472 4.2BSD 1024 8192 46376 # (Cyl. 79059 - 231017)
g: 8388576 8388576 RAID # (Cyl. 8322 - 16643)
h: 8388576 232866144 RAID # (Cyl. 231018 - 239339)
Note that each 'f' partition is an unmirrored scratch file system
on both disks. Also, note that the 'b' partition overlaps the 'h'
partition. I swap on to a raid device, but dump to a raw device
since you can't dump to a raidframe device. Here's my fstab:
/dev/raid0a / ffs rw,softdep 1 1
/dev/raid1b none swap sw
/dev/wd0b none dump dp
/dev/raid2a /var ffs rw,softdep 1 2
/dev/raid3a /home ffs rw,softdep 1 3
/dev/wd0f /scratch ffs rw,softdep 1 4
/dev/wd1f /backup ffs rw,softdep 1 4
swap /tmp mfs rw,-s=524288
And finally fdisk output:
Disk: /dev/rwd0d
NetBSD disklabel disk geometry:
cylinders: 16383, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 241254720
BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 241254720
Partition table:
0: <UNUSED>
1: <UNUSED>
2: <UNUSED>
3: NetBSD (sysid 169)
start 63, size 241254657 (117800 MB, Cyls 0-15017/105/1), Active
Bootselector disabled.
> PS. I think we should have something about raidframe in the NetBSD Guide.
Yes, we should do something about that.
Simon.
--
Simon Burge <simonb@wasabisystems.com>
NetBSD Support and Service: http://www.wasabisystems.com/