I'm trying to have everything except /home mounted on wd0, with /home
mounted on a RAID 1 array comprising wd1a and wd2a. There are no other
partitions on wd1 and wd2. (Unless you count the c partition.)
I tried to prepare wd1 and wd2 with:
# fdisk -i wd1
# disklabel -E wd1
and following the prompts. After writing the disklabel, here's the
output:
# disklabel wd1
# Inside MBR partition 3: type A6 start 63 size 488392002
# /dev/rwd1c:
type: ESDI
disk: ESDI/IDE disk
label: WDC WD2500AAJB-0
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 30401
total sectors: 488397168
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 488392002 63 RAID
c: 488397168 0 unused 0 0
So far so good. Following some advice I found on the web [1][2], I
continued with:
# newfs wd1a
Before moving forward. But now disklabel gives the following output:
# disklabel wd1
# Inside MBR partition 3: type A6 start 63 size 488392002
# /dev/rwd1c:
type: ESDI
disk: ESDI/IDE disk
label: WDC WD2500AAJB-0
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 30401
total sectors: 488397168
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 488392002 63 4.2BSD 2048 16384 1
c: 488397168 0 unused 0 0
It looks like wd1a's label changed. How? More importantly, is this a
problem for setting up a RAID array? I know that the manual for raidctl
says "While FS_BSDFFS (e.g. 4.2BSD) will also work as the component
type, the type FS_RAID (e.g. RAID) is preferred for RAIDframe use, as it
is required for features such as auto-configuration." But it would be
nice to keep my wd1a, and wd2a once I get to it, as FS_RAID.
I'm running 4.4-stable with GENERIC plus raid support kernel. Which, in
case it's relevant, I did by adding
pseudo-device raid 4
option RAID_AUTOCONFIG
to the GENERIC config file. (I don't know how *else* one would do it,
but perhaps the order of the lines matters?)
Any advice is greatly appreciated!
[1] geektechnique.org/projectlab/797/openbsd-encrypted-nas-howto
[2] www.argon18.com/raid_openbsd.html