Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Aug 2010 22:17:25 +0300
From:      Volodymyr Kostyrko <c.kworr@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Upgrading Boot Loader
Message-ID:  <4C5719C5.6050708@gmail.com>
In-Reply-To: <838366360.118191280776267912.JavaMail.root@mail-01.cse.ucsc.edu>
References:  <1062436129.118171280776259114.JavaMail.root@mail-01.cse.ucsc.edu> <838366360.118191280776267912.JavaMail.root@mail-01.cse.ucsc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
02.08.2010 22:11, Tim Gustafson wrote:
>> Nope. Read
>> http://www.mail-archive.com/freebsd-stable@freebsd.org/msg103917.html
>> You need the dd sequence. And you need to do that on exported pool.
>
> So, just to be clear, I need to boot off a USB key (which will then allow me to write to ad8 and ad10, my two boot zpool devices), and then:
>
> dd if=/boot/zfsboot of=/dev/ad8 bs=512 count=1
> dd if=/boot/zfsboot of=/dev/ad10 bs=512 count=1
> dd if=/boot/zfsboot of=/dev/ad8 bs=512 skip=1 seek=1024
> dd if=/boot/zfsboot of=/dev/ad10 bs=512 skip=1 seek=1024
>
> And that assumes that I copy the newly-compiled zfsboot to the USB key after creating it, correct?

Yes.

PS: I've just recently changed my mind and moved from dedicated vdevs to 
gpart. This gives possibility of:
  1. Having raw swap partition suitable for swapping/dumping.
  2. Updating bootcode online without loosing uptime.

Just in expense of some kilobytes of disk space.

-- 
Sphinx of black quartz judge my vow.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C5719C5.6050708>