How to upgrade kernel with gmirror boot?



I've got a couple FreeBSD 7.0 systems which I am trying to upgrade. I
had used ZFS for everything except the boot where I had used a gmirror.
I didn't really understand it all then, but it's been working fine.

The problem is that now with I "make buildworld" and "make
installkernel" I get the old original kernel, not the new one. I
suspect it's because I'm not installing the kernel in the boot partition
that's actually being used, but am out of my depth here and need some
advice.

Here's how I created the gmirror and installed onto it back then, per my
notes. I had 2x 1TB drives and wanted to use a gmirror for the boot and
ZFS for the rest:

Did a minimal install onto a 1GB ad4s1a.
fdisk -BI ad6
bslabel ad4s1 > /tmp/label
bsdlabel -RB ad6s1 /tmp/label
gmirror label boot ad6s1a
newfs /dev/mirror/boot
mount /dev/mirror/boot /mnt
find -x / | cpio -pmd /mnt
rm -rf /mnt/var/* /mnt/usr/* /mnt/tmp/*
reboot
gmirror insert boot ad4s1a

Rebooting I believe is now booting from the gmirror comprised of ad4s1a
and ad6s1a:

$ df -h / /boot
Filesystem Size Used Avail Capacity Mounted on
/dev/mirror/boot 989M 634M 276M 70% /
/dev/mirror/boot 989M 634M 276M 70% /

After "make installkernel" my /boot/GENERIC is still from 2008, when I
did the original installation. My /boot/kernel is new, from the
installkernel.

What am I missing? It seems I am not "installkernel"-ing to the right place
where the boot loader is looking.

Thanks.

PS: Current "gmirror list" output:

$ gmirror list
Geom name: boot
State: COMPLETE
Components: 1
Balance: split
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 1
ID: 2728037890
Providers:
1. Name: mirror/boot
Mediasize: 1073741312 (1.0G)
Sectorsize: 512
Mode: r1w1e1
Consumers:
1. Name: ad6s1a
Mediasize: 1073741824 (1.0G)
Sectorsize: 512
Mode: r1w1e1
State: ACTIVE
Priority: 0
Flags: NONE
GenID: 0
SyncID: 1
ID: 2864447916
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: What fs should I use on my new server?
    ... I did such an upgrade recently, and found that the usual procedure did ... essential filesystems from ZFS, and of course the old zpool and zfs ... filesystem that I boot from is mounted on /bootpart/. ... # sudo make installkernel KERNCONF=MYKERNEL # default is GENERIC ...
    (comp.unix.bsd.freebsd.misc)
  • Re: ZFS: i/o error - all block copies unavailable after upgrading to r225312
    ... I'm running FreeBSD-CURRENT r224522M installed on ZFS Root and GPT ... after rebooting I've got following error message from boot loader: ... make installkernel ...
    (freebsd-current)
  • Re: gmirror on 7B4
    ... BUT you can't boot from a gstripe volume ... drives and I've been doing it since 5.3, ... One way to visualize this is to recognize that because the gmirror ... Clifton Royston -- cliftonr@xxxxxxxxxxxxxxxxxx / cliftonr@xxxxxxxx ...
    (freebsd-stable)
  • gmirror woes on 6.2-S, Aug 1
    ... I just swapped a gmirror pair of disks into a new box and have run into a ... GEOM_MIRROR: Device gm0: provider ad12 detected. ... ad10 was seen at boot and is currently attached. ... meno# gmirror forget gm0 ...
    (freebsd-questions)
  • booting off gmirror volume
    ... I have the root partition gmirrored on four slices and gmirror reports ... But if I try to boot off two of them ... Mediasize: 263176192 ... Sectorsize: 512 ...
    (comp.unix.bsd.freebsd.misc)