ZFS boot on zfs mirror
Dmitry Morozovsky
marck at rinet.ru
Tue May 26 09:53:34 UTC 2009
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 at FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck at rinet.ru ***
------------------------------------------------------------------------
More information about the freebsd-stable
mailing list