sparc64 zfsroot/gmirror?
Sean Bruno
seanwbruno at gmail.com
Wed Feb 20 04:52:55 UTC 2013
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20130219/7ab77950/attachment.sig>
More information about the freebsd-hackers
mailing list