steve%prd.co.uk@localhost (Steve Blinkhorn) writes: > Still not clear how to make it boot from RAID1. These machines have > no other OS or non-NetBSD components of any kind. My boot.cfg looks > like this: > > menu=Boot normally:rndseed /etc/entropy-file;consdev pc; boot netbsd > menu=Boot single user:rndseed /etc/entropy-file;consdev pc; boot netbsd -s > menu=Boot single user from wd0a:rndseed /etc/entropy-file;consdev pc; boot hd0a:netbsd -sa > menu=Boot single user from wd1a:rndseed /etc/entropy-file;consdev pc; boot hd1a:netbsd -sa > menu=Disable ACPI:rndseed /etc/entropy-file; consdev pc; boot netbsd -2 > menu=Disable ACPI and SMP:rndseed /etc/entropy-file;consdev pc; boot netbsd -12 > menu=Drop to boot prompt:prompt > default=1 > timeout=10 > clear=1 But that boot.cfg is in your root-on-raid. My memory is fdisk has a netbsd partition marked active mbr boot looks for first partition of disklabel within that loads bootxx_ffsv2 from sectors 2-14 of that partition (which is the RAID partition) bootxx_ffsv2 starts to load the kernel from the first partition, but finds that it is of type raid instead of BSD Therefore skips 64 sectors ahead (I think, but the raidframe header) and treats that as a BSD filesystem (whose type had better match the bootxx_ffsv2 flavor, just as the a partition had better match normally bootxx_ffsv2 loads the kernel from the / within the raid I have a system (old, before 4K disks) that boots from raid. fdisk 0: NetBSD (sysid 169) bootmenu: Net-wd0 start 63, size 781422705 (381554 MB, Cyls 0-775220), Active 1: <UNUSED> 2: <UNUSED> 3: <UNUSED> disklabel on wd0 # size offset fstype [fsize bsize cpg/sgs] a: 781422705 63 RAID # (Cyl. 0*- 775220) c: 781422705 63 unused 0 0 # (Cyl. 0*- 775220) d: 781422768 0 unused 0 0 # (Cyl. 0 - 775220) disklabel in raid 8 partitions: # size offset fstype [fsize bsize cpg/sgs] a: 524288 0 4.2BSD 1024 8192 43696 # (Cyl. 0 - 511) b: 8388608 524288 swap # (Cyl. 512 - 8703) d: 781422592 0 unused 0 0 # (Cyl. 0 - 763107) [continues] Have a look at (but not saying you need to do all this) https://www.netbsd.org/docs/guide/en/chap-rf.html#chap-rf-ex-raid1root https://wiki.netbsd.org/tutorials/how_to_install_netbsd_on_raid1_using_raidframe/ This is scary stuff to do remotely (unless you have console; I mean if you are hosed if it doesn't boot..)
Attachment:
signature.asc
Description: PGP signature