Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 2009 19:29:00 +0300
From:      Andriy Gapon <avg@icyb.net.ua>
To:        hartzell@alerce.com
Cc:        FreeBSD Stable Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: ZFS boot on zfs mirror
Message-ID:  <4A1C18CC.7080902@icyb.net.ua>
In-Reply-To: <18972.5870.795005.186542@already.dhcp.gene.com>
References:  <29579856-69F7-4CDC-A52A-B414A40180ED@yellowspace.net>	<4A1B0B4F.1020106@h3q.com>	<ea7b7b810905260226g29e8cbf5ic75a59b979f6cd42@mail.gmail.com>	<alpine.BSF.2.00.0905261353140.8940@woozle.rinet.ru> <18972.5870.795005.186542@already.dhcp.gene.com>

next in thread | previous in thread | raw e-mail | index | archive | help
on 26/05/2009 19:21 George Hartzell said the following:
> Dmitry Morozovsky writes:
>  > On Tue, 26 May 2009, Mickael MAILLOT wrote:
>  > 
>  > MM> Hi,
>  > MM> 
>  > MM> i prefere use zfsboot boot sector, an example is better than a long talk:
>  > MM> 
>  > MM> $ zpool create tank mirror ad4 ad6
>  > MM> $ zpool export tank
>  > MM> $ dd if=/boot/zfsboot of=/dev/ad4 bs=512 count=1
>  > MM> $ dd if=/boot/zfsboot of=/dev/ad6 bs=512 count=1
>  > MM> $ dd if=/boot/zfsboot of=/dev/ad4 bs=512 skeep=1  seek=1024
>  > MM> $ dd if=/boot/zfsboot of=/dev/ad6 bs=512 skeep=1  seek=1024
>  > 
>  > s/skeep/skip/ ? ;-)
> 
> What is the reason for copying zfsboot one bit at a time, as opposed
> to 
> 
>   dd if=/boot/zfsboot of=/dev/ad4 bs=512 count=2

seek=1024 for the second part? and no 'count=1' for it? :-)

[Just guessing] Apparently the first block of zfsboot is some form of MBR and the
rest is zfs-specific code that goes to magical sector 1024.

-- 
Andriy Gapon



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