Re: gmirror per partition. Was: Re: gmirror gm0 destroyed on shutdown; GPT corrupt

From: Anton Shterenlikht <mexas_at_bristol.ac.uk>
Date: Wed, 1 Jul 2009 13:20:15 +0100
On Wed, Jul 01, 2009 at 07:01:02AM -0500, James R. Van Artsdalen wrote:
> Anton Shterenlikht wrote:
> > Like this?
> >
> > # gmirror label -vb round-robin root /dev/da0p2
> > gmirror: Can't store metadata on /dev/da0p2: Operation not permitted.
> > #
> >   
> 
> Is there a filesystem already mounted from da0p2?

yes, da0 is the disk on which I installed the system.
 
> Use gmirror label immediately after using gpart to create da0p2 then
> always use /dev/mirror/root as the device after that, never da0p2, ie
> 
> # gpart add -b 162 -s 1048576 -t freebsd-ufs ad0

wow! gpart is never mentioned in the handbook, neither in GEOM,
nor in gvinum chapter. Is the handbook a bit out of date?

> # gmirror label -vb round-robin root /dev/da0p2
> 
> # newfs /dev/mirror/root
> 
> The examples from the gpart and gmirror man pages worked for me.

are you using ia64?

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423
Received on Wed Jul 01 2009 - 10:20:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:50 UTC