On Tue, 2013-02-19 at 22:59 -0500, Kurt Lidl wrote:
> On Tue, Feb 19, 2013 at 04:03:09PM -0800, Sean Bruno wrote:
> > I'm restoring some of the sparc64 machines for freebsd.org and had a
> > question with regards to what to do about the /
> > 
> > Since it wasn't obvious how to setup zfs root things I setup something
> > that looks like this:
> > 
> > =>       0  71087625  da0  VTOC8  (33G)
> >          0    385560    1  freebsd-ufs  (188M)
> >     385560  70702065    2  freebsd-zfs  (33G)
> > 
> > =>       0  71087625  da1  VTOC8  (33G)
> >          0    385560    1  freebsd-ufs  (188M)
> >     385560  70702065    2  freebsd-zfs  (33G)
> > 
> > 
> > Where everything *except* /boot is in the mirrored zpool.
> > 
> > I can reinstall the system trivially, and am looking for suggestions.
> 
> I wrote up a script to do the heavy lifting for installing
> a completely zfs system on a sparc64 machine.
> 
> http://www.pix.net/ftp/pub/freebsd/sparc_zfs_setup.txt
> 
> The 12GB space for zfs is appropriate for a 18Gb disk, and allows
> the remainder of the disk space to accommodate a 4Gb-ish swap space,
> for crash dumps.  The swap is placed at the end of the disk, since
> that's the slowest part to access.
> 
> -Kurt
> 


Ah, I see I'm completely overthinking it.

From your script:
gpart bootcode -p /boot/zfsboot ${disk}
dd if=/boot/zfsloader of=/dev/${disk}a bs=512 oseek1024
conv=notrunc,sync

That's what I was missing hence my silly layout.

Sean

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to