Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jun 2011 10:07:11 +0100
From:      krad <kraduk@gmail.com>
To:        Damien Fleuriot <ml@my.gd>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: FreeBSD ZFS system
Message-ID:  <BANLkTi=bZAvOR=OZE9ys3VJAPSVv=gW9mQ@mail.gmail.com>
In-Reply-To: <2596CDD6-593A-4A46-A14E-3BBBAC1AD57E@my.gd>
References:  <4E00EA98.1090805@nagual.nl> <4E00FDC0.3090808@infracaninophile.co.uk> <BANLkTinA9rhDhxwg2KyB0n1Yc%2BAiCz2Z9Q@mail.gmail.com> <2596CDD6-593A-4A46-A14E-3BBBAC1AD57E@my.gd>

next in thread | previous in thread | raw e-mail | index | archive | help
On 23 June 2011 02:38, Damien Fleuriot <ml@my.gd> wrote:

>
>
> On 22 Jun 2011, at 22:22, krad <kraduk@gmail.com> wrote:
>
> > On 21 June 2011 21:23, Matthew Seaman <m.seaman@infracaninophile.co.uk
> >wrote:
> >
> >> On 21/06/2011 20:01, Dick Hoogendijk wrote:
> >>> I'd like to install FreeBSD (pcbsd) on a (zfs) mirror
> >>> In OpenSolaris you can install directly to the zfs mirror, but how's
> >>> this in this situation> After all, an UFS partitin is also created. How
> >>> can I get the equivalent of an OpenSolaris mirrored install for a
> >>> FreeBSD system?
> >>
> >> http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/Mirror
> >>
> >>       Cheers
> >>
> >>       Matthew
> >>
> >> --
> >> Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
> >>                                                 Flat 3
> >> PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
> >> JID: matthew@infracaninophile.co.uk               Kent, CT11 9PW
> >>
> >>
> >
> > its dead easy to do retrospective as well no need to  rebuild or ditch
> the
> > pcbsd install method.
> >
> > X = current boot drive
> > Y = blank drive
> > z = zfs partition/slice eg s1d, p3 etc
> >
> > gpart backup /dev/X | gpart restore /dev/Y
> >
>
> Hey that's pretty cool, does this work to copy from a small disk to a
> bigger one like dump does, or do the partitions have to be the same size ?
>
>
> > gpart bootcode -b /zfsboot/pmbr -p /zfsboot/(gpt)*zfsboot -i 1 /dev/Y
> > zpool attach <pool> /dev/Xz /dev/Yz
> > _______________________________________________
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe@freebsd.org"
>

it should work, however I have never done it in practice.

a quick test on my openindiana box shows it does

# zfs create -V 1G rpool/test2
# zfs create -V 2G rpool/test3
# zpool create test rpool/test2
# zpool create test /dev/zvol/dsk/rpool/test2
# zpool attach test /dev/zvol/dsk/rpool/test2 /dev/zvol/dsk/rpool/test3
# zpool status test
  pool: test
 state: ONLINE
 scan: resilvered 82K in 0h0m with 0 errors on Thu Jun 23 10:05:43 2011
config:

    NAME                           STATE     READ WRITE CKSUM
    test                           ONLINE       0     0     0
      mirror-0                     ONLINE       0     0     0
        /dev/zvol/dsk/rpool/test2  ONLINE       0     0     0
        /dev/zvol/dsk/rpool/test3  ONLINE       0     0     0

errors: No known data errors
#



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTi=bZAvOR=OZE9ys3VJAPSVv=gW9mQ>