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:                                 ma...@freebsd.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- ma...@rinet.ru ***
------------------------------------------------------------------------
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to