Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Sep 2004 17:06:20 +0100
From:      Chris Elsworth <chris@shagged.org>
To:        freebsd-geom@FreeBSD.org
Subject:   WARNING: Expected rawoffset 0, found 63 ?
Message-ID:  <20040924160620.GA77997@shagged.org>

next in thread | raw e-mail | index | archive | help
Hello,

I'm having a play with gmirror, but I'm consistently running up
against this problem:

WARNING: Expected rawoffset 0, found 63

My chain of events is this:


Start with a fresh disk, one slice covering the entire disk, no partitions yet:
app1# disklabel -r da1s1
# /dev/da1s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c: 71119692        0    unused        0     0         # "raw" part, don't edit


Set up a gmirror on it (this disk only at the moment, no other providers):
app1# gmirror label -hv gms1 da1s1
Metadata value stored on da1s1.
Done.

In response to this command on console I see the following:
GEOM_MIRROR: Device gms1 created (id=2385087336).
GEOM_MIRROR: Device gms1: provider da1s1 detected.
GEOM_MIRROR: Device gms1: provider da1s1 activated.
GEOM_MIRROR: Device gms1: provider mirror/gms1 launched.
WARNING: Expected rawoffset 0, found 63


app1# disklabel -r /dev/mirror/gms1
# /dev/mirror/gms1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c: 71119692       63    unused        0     0         # "raw" part, don't edit
partition c: partition extends past end of unit
disklabel: partition c doesn't start at 0!
disklabel: partition c doesn't cover the whole unit!
disklabel: An incorrect partition c may cause problems for standard system utilities

da1s1 still shows:

app1# disklabel -r da1s1
# /dev/da1s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c: 71119692        0    unused        0     0         # "raw" part, don't edit



I feel I'm missing something blatantly obvious here. Is that offset of
63 something to do with metadata? Have I not left any space for
metadata that I should have done? I was hoping that I'd be able to end
up applying this gmirror command to an existing disk with live data on
it, and then attach a free disk to achieve a complete mirror from an
existing system?

Are these warnings about partition c actually ignorable, or even
normal?

This system is 5.3-BETA5, built moments ago, and supped just before
that.

Appreciate any help.

-- 
Chris



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