Port-i386 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

booting from wd0b / raidframe



I seem to be getting rusty, and can't work out how to make a raidframe
mirror boot(!)

dd | hexdump confirms that sector 0 contains /usr/mdec/mbr
I recognise the beginning of /usr/mdec/bootxx_ffsv1 from sector 63

The mess might because I have swap starting in sector 63 - is that not
legal?


# fdisk wd0
fdisk: Cannot determine the number of heads
Disk: /dev/rwd0d
NetBSD disklabel disk geometry:
cylinders: 1938021, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 1953525168

BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 1953525168

Partition table:
0: NetBSD (sysid 169)
    start 63, size 1953525105 (953870 MB, Cyls 0-121601/80/63), Active
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
Bootselector disabled.
First active partition: 0

# disklabel -t wd0
raid|Automatically generated label:\
        :dt=ESDI:se#512:ns#63:nt#16:sc#1008:nc#1938021:\
        :pa#20971440:oa#4195296:ta=RAID:\
        :pb#4195233:ob#63:tb=swap:\
        :pc#1953525105:oc#63:\
        :pd#1953525168:od#0:\
        :pe#125829648:oe#25166736:te=RAID:\
        :pf#629146224:of#150996384:tf=RAID:\
        :pg#1173382560:og#780142608:tg=RAID:
# disklabel -t raid0
raid0|Automatically generated label:\
        :dt=RAID:se#512:ns#128:nt#8:sc#1024:nc#20479:\
        :su#20971264:\
        :pa#4194304:oa#0:ta=4.2BSD:ba#0:fa#0:\
        :pc#20971264:oc#0:\
        :pd#20971264:od#0:\
        :pe#16776960:oe#4194304:te=4.2BSD:be#0:fe#0:

and the secondary bootloader /boot is in raid0a (raidctl -A root raid0)

installboot(8) says:

   NetBSD/i386 and NetBSD/amd64
     The bootstrap must be installed in the NetBSD partition that starts at
     the beginning of the mbr partition.  If that is a valid filesystem and
     contains the /boot program then it will be used as the root filesystem,
     otherwise the `a' partition will be booted.

So I should be able to installboot to rwd0b. That isn't a valid filesystem,
so look in wd0a which is RAID - would things get stuck here, or given that
raid0 is marked as Root allow a search of raid0a for /boot?

Cheers,

Patrick


BTW
# mbrlabel wd0
Found 4.2BSD partition; size 1953525105 (953869 MB), offset 63
  skipping existing unused partition at slot c.




Home | Main Index | Thread Index | Old Index