Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 2009 13:53:31 +0400 (MSD)
From:      Dmitry Morozovsky <marck@rinet.ru>
To:        Mickael MAILLOT <mickael.maillot@gmail.com>
Cc:        Lorenzo Perone <lopez.on.the.lists@yellowspace.net>, Philipp Wuensche <cryx-freebsd@h3q.com>, FreeBSD Stable Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: ZFS boot on zfs mirror
Message-ID:  <alpine.BSF.2.00.0905261353140.8940@woozle.rinet.ru>
In-Reply-To: <ea7b7b810905260226g29e8cbf5ic75a59b979f6cd42@mail.gmail.com>
References:  <29579856-69F7-4CDC-A52A-B414A40180ED@yellowspace.net> <4A1B0B4F.1020106@h3q.com> <ea7b7b810905260226g29e8cbf5ic75a59b979f6cd42@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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/ ? ;-)

MM> $ zpool import tank
MM> $ zpool set bootfs=tank tank
MM> $ zfs set mountpoint=legacy tank
MM> 
MM> add vfs.root.mountfrom="zfs:tank" to your loader.conf
MM> now you can boot on ad4 or ad6
MM> 
MM> Source:
MM> http://www.waishi.jp/~yosimoto/diary/?date=20080909

[snip]

-- 
Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer:                                 marck@FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.0905261353140.8940>