Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jan 2011 23:22:28 +0300
From:      Anonymous <swell.k@gmail.com>
To:        Marcus =?utf-8?Q?M=C3=BCller?= <znek@mulle-kybernetik.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: Multiple ZFS pools and booting
Message-ID:  <86ei8cha4b.fsf@gmail.com>
In-Reply-To: <37C1E643-C7A9-4061-8316-281819AC947E@mulle-kybernetik.com> ("Marcus =?utf-8?Q?M=C3=BCller=22's?= message of "Fri, 14 Jan 2011 14:31:11 %2B0100")
References:  <37C1E643-C7A9-4061-8316-281819AC947E@mulle-kybernetik.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Marcus M=C3=BCller <znek@mulle-kybernetik.com> writes:

> I have a single harddrive with GPT partitioning:
>
> root@muller:(~)# gpart show
> =3D>       34  234441581  ad10  GPT  (112G)
>          34        128     1  freebsd-boot  (64K)
>         162    8388608     2  freebsd-swap  (4.0G)
>     8388770   10485760     3  freebsd-zfs  (5.0G)
>    18874530   10485760     4  freebsd-zfs  (5.0G)
>    29360290  102540662     5  freebsd-zfs  (49G)
>   131900952  102540662     6  freebsd-zfs  (49G)
>   234441614          1        - free -  (512B)
>
> ad10p3/ad10p4 (tank) and ad10p5/ad10p6 (muller) are two mirror
> zpools. The root filesystem currently resides on tank.

gptzfsboot skips any non-zfs partition type such as `freebsd-ufs'.
Say, you want to boot from the pool on ad10p5 and

  $ gpart modify -t freebsd-ufs -i 3 ad10
  $ gpart modify -t freebsd-ufs -i 4 ad10

should be enough. Does it work for you?



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