Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Apr 2005 22:47:21 -0400
From:      Jeremy Claeson <jclaeson@gmail.com>
To:        freebsd-geom@freebsd.org
Subject:   Re: mirroring two data disks (no system files on them)
Message-ID:  <16a400ac050424194712d4eca0@mail.gmail.com>
In-Reply-To: <16a400ac05041317272eb1ea01@mail.gmail.com>
References:  <4250A400.50200@videotron.ca> <4250F778.3040903@zvala.cz> <4251F631.3050707@videotron.ca> <20050404213800.A29631@denninger.net> <16a400ac05041317272eb1ea01@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I'm still confused. I've seen some great emails on some things that
seem pretty complicated to me, but I've yet to hear from anyone who
can walk me through what I'm doing wrong. Maybe I'm doing something
too complicated, can someone let me know that at least? Thanks! Please
help and thanks in advance!

On 4/13/05, Jeremy Claeson <jclaeson@gmail.com> wrote:
> I'm trying to do the same thing but I've not had any luck still. I'm
> messing up somewhere in preparing the drives. I've got two 250GB
> drives (ad4 and ad6). I'd like to mirror them as data disks.
>=20
> Here's what I'm doing:
> $ /stand/sysinstall
> (fdisk and label ad4 as /usr/sambashares/data and writing that out to
> disk. this works and I can access the disk)
> $ /stand/sysinstall
> (fdisk ad6 and write that out to disk)
> $ gmirror label -v -n -b round-robin gm0s1 /dev/ad3s1
> $ gmirror load
> (Here everything looks ok but I get a warning:
> "WARNING: Expected rawoffset 0, found 63"
> "GEOM_MIRROR: Cannot add disk mirror/gm0s1c to gm0s1 (error=3D17).")
> $ gmirror configure -a gm0s1
> (at this point I get an error that says "Bad address" and then nothing
> else works.)
>=20
> [root@epiphyte jclaeson]# ls /dev/ad4* /dev/ad6*
> /dev/ad4        /dev/ad4s1      /dev/ad4s1c     /dev/ad4s1d     /dev/ad6
>=20
> [root@epiphyte jclaeson]# ll /dev/mirror/
> total 1
> dr-xr-xr-x  2 root  wheel          512 Apr 13 20:19 ./
> dr-xr-xr-x  5 root  wheel          512 Apr 13 16:13 ../
> crw-r-----  1 root  operator    4,  30 Apr 13 20:13 gm0
> crw-r-----  1 root  operator    4,  31 Apr 13 20:13 gm0s1
> crw-r-----  1 root  operator    4,  31 Apr 13 20:13 gm0s1
> crw-r-----  1 root  operator    4,  33 Apr 13 20:13 gm0s1c
> crw-r-----  1 root  operator    4,  33 Apr 13 20:13 gm0s1c
>=20
> [root@epiphyte jclaeson]# bsdlabel ad4s1
> # /dev/ad4s1:
> 8 partitions:
> #        size   offset    fstype   [fsize bsize bps/cpg]
>   c: 488392002        0    unused        0     0         # "raw" part,
> don't edit
>   d: 488392002        0    4.2BSD     2048 16384 28552
>=20
> [root@epiphyte jclaeson]# bsdlabel ad6s1
> bsdlabel: /dev/ad6s1: No such file or directory
> [root@epiphyte jclaeson]# bsdlabel ad6
> bsdlabel: /dev/ad6: no valid label found
> [root@epiphyte jclaeson]#
>=20
> So, I'm sure I'm preppring the disks wrong, I'm just not sure what I'm
> doing wrong.
>=20
> Thanks in advance for your help and advice!
>=20
> ~jeremy
>=20
>=20
> On 4/4/05, Karl Denninger <karl@denninger.net> wrote:
> > On Mon, Apr 04, 2005 at 10:21:37PM -0400, Christian Caron wrote:
> > > Tomas Zvala a =E9crit :
> > > > did /dev/ad3s1 contain filesystem already? did you do newfs
> > > > /dev/mirror/gm0s1 ? what does it mean "dies"? what does it say?
> > >
> > > Ok... man newfs shed some light on how to prepare a new disk...
> > >
> > > newfs -U /dev/mirror/gm0s1
> > > mkdir /mirror
> > > mount /dev/mirror/gm0s1 /mirror
> > >
> > > did the trick. It boots ok and it seems to work (gmirror list does
> > > return something, although it says "DIRTY" which doesn't sound
> > > excellent...).
> > >
> > > I'll read the manual.
> > >
> > > Thanks!
> > >
> > > Christian
> >
> > "Dirty" is normal.  It means the volume is mounted and has data on it, =
and
> > is not "clean", just as a mounted disk is "dirty" while it is actually
> > mounted.
> >
> > --
> > --
> > Karl Denninger (karl@denninger.net) Internet Consultant & Kids Rights A=
ctivist
> > http://www.denninger.net        My home on the net - links to everythin=
g I do!
> > http://scubaforum.org           Your UNCENSORED place to talk about DIV=
ING!
> > http://www.spamcuda.net         SPAM FREE mailboxes - FREE FOR A LIMITE=
D TIME!
> > http://genesis3.blogspot.com    Musings Of A Sentient Mind
> >
> >
> > _______________________________________________
> > freebsd-geom@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-geom
> > To unsubscribe, send any mail to "freebsd-geom-unsubscribe@freebsd.org"
> >
>



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