Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Dec 2012 12:15:23 +0700
From:      Edho Arief <edho@myconan.net>
To:        Randy Bush <randy@psg.com>
Cc:        FreeBSD FS <freebsd-fs@freebsd.org>
Subject:   Re: moving to gpart mirroring, one drive at a time
Message-ID:  <CAAtReCmG2H8tmh9zNgitaoiHO=4EN0p7VCsybTO3LD_OhF3a_A@mail.gmail.com>
In-Reply-To: <m2624e8n57.wl%randy@psg.com>
References:  <m2624e8n57.wl%randy@psg.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 7, 2012 at 12:08 PM, Randy Bush <randy@psg.com> wrote:
> i have an existing old-style glabel gmirror.  a drive, ada0 failed.  we
> inserted a new drive as ada0.  as the old drive is a teensie 80g drive
> and the new is a 500g, we figured to create gm1, dump/restore to it, and
> then swap out the old working 80g for another 500 and mirror away.
>
> so i went to the handbook.  20.4.3 Creating a Mirror with an Existing
> Drive does not seem appropriate as it assumes no source mirror and equal
> sized drives.
>
> so i figured to do the dance of 20.4.2 Creating a Mirror with Two New
> Disks, but with one disk and then mirror back.  but ...
>
> # gmirror label -v gm1 /dev/ada0
> Metadata value stored on /dev/ada0.
> Done.
>
> # gpart create -s MBR mirror/gm1
> mirror/gm1 created
>
> # gpart show mirror/gm1
> =>       63  976773104  mirror/gm1  MBR  (465G)
>          63  976773104              - free -  (465G)
>
> # gpart create -s BSD mirror/gm1s1
> gpart: arg0 'mirror/gm1s1': Invalid argument
>
> whoopsie.
>
> clue?
>

...create the partition first?

gpart add -t freebsd mirror/gm1



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAtReCmG2H8tmh9zNgitaoiHO=4EN0p7VCsybTO3LD_OhF3a_A>