Re: ZFS boot on zfs mirror
- From: Andriy Gapon <avg@xxxxxxxxxxx>
- Date: Tue, 26 May 2009 19:29:00 +0300
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
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: ZFS boot on zfs mirror
- From: George Hartzell
- Re: ZFS boot on zfs mirror
- References:
- ZFS boot on zfs mirror
- From: Lorenzo Perone
- Re: ZFS boot on zfs mirror
- From: Philipp Wuensche
- Re: ZFS boot on zfs mirror
- From: Mickael MAILLOT
- Re: ZFS boot on zfs mirror
- From: Dmitry Morozovsky
- Re: ZFS boot on zfs mirror
- From: George Hartzell
- ZFS boot on zfs mirror
- Prev by Date: Re: ZFS boot on zfs mirror
- Next by Date: Re: loader not working with GPT and LOADER_ZFS_SUPPORT
- Previous by thread: Re: ZFS boot on zfs mirror
- Next by thread: Re: ZFS boot on zfs mirror
- Index(es):