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

Anton Shterenlikht mexas at bristol.ac.uk
Wed Jul 1 12:20:22 UTC 2009


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


More information about the freebsd-current mailing list