Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Feb 2012 13:20:02 GMT
From:      Marius Strobl <marius@alchemy.franken.de>
To:        freebsd-sparc64@FreeBSD.org
Subject:   Re: sparc64/165025: [PATCH] zfsboot support for sparc64
Message-ID:  <201202121320.q1CDK2QV027570@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR sparc64/165025; it has been noted by GNATS.

From: Marius Strobl <marius@alchemy.franken.de>
To: bug-followup@FreeBSD.org, gavin.mu@gmail.com
Cc:  
Subject: Re: sparc64/165025: [PATCH] zfsboot support for sparc64
Date: Sun, 12 Feb 2012 14:16:19 +0100

 > Known Limitations:
 > 1. only zpool on a whole disk is supported, zfs boot from zpool in VTOC8 partitions may not work.
 
 Uhm, are you sure you didn't have (the remnants) of a VTOC label on
 the disk? I'd expect the firmware to refuse to boot from a disk not
 having one.
 
 > 2. boot from mirror/raidz is not supported due to limited dev environment.
 
 Could you also tackle these remaining bits or at least describe what
 it would take to support booting from a zpool in a VTOC label, mirror
 and raidz?
 
 > 
 > >How-To-Repeat:
 > NA.
 > >Fix:
 > generic steps:
 > 1. build zfsboot and zfsloader
 > 2. create zpool on your disk
 > # zpool create tank /dev/<your disk, ie. ada0>
 > 3. export the zpool
 > # zpool export tank
 > 4. install zfsboot
 > # dd if=boot1 of=/dev/<your disk, ie. ada0> bs=512 skip=1 oseek=1 conv=notrunc
 
 Assuming there is a VTOC8 label, this could also be done using `gpart -b`,
 no?
 
 > 5. install zfsloader to ZFS Book Block location
 > # dd if=zfsloader of=/dev/<your disk, ie. ada0> bs=512 oseek=1024 conv=notrunc
 
 I think to vaguely remember there being a zfs command/way of writing
 a loader to that 3.5MB boot block area following the uberblock. Do
 you know what it is?
 
 In any case, nice work so far!
 
 Marius
 



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