Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 May 2008 11:21:53 +0300
From:      Andrei Kolu <antik@bsd.ee>
To:        freebsd-geom@freebsd.org
Subject:   Re: gjournal misconfiguration
Message-ID:  <200805211121.53354.antik@bsd.ee>
In-Reply-To: <4832D989.60607@quip.cz>
References:  <200805201423.56220.antik@bsd.ee> <4832D989.60607@quip.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 20 May 2008 17:00:41 Miroslav Lachman wrote:
> Andrei Kolu wrote:
> > I created geom journal according to this documentation:
> > http://www.freebsd.org/doc/en/books/handbook/geom-gjournal.html
> >
> > I already had partition on second drive (da1s1d)
> >
> > # gjournal label -f /dev/da1s1d
> > # gjournal load
> > # newfs -O 2 -J /dev/da1s1d.journal
> > # mount /dev/da1s1d.journal /data
> >
> > everything worked fine until I rebooted with this fstab:
> > ----------------------------------------------------------
> > # geom_journaling
> > /dev/da1s1d.journal     /data           ufs     rw              3       3
> > ----------------------------------------------------------
> >
> > FreeBSD failed to boot- because it said there is no such a
> > filesystem....bah.
> >
> > then I looked at /dev/da* and found this:
> >
> > crw-r-----  1 root  operator    0, 105 May 20 13:52 /dev/da1s1.journal
> > crw-r-----  1 root  operator    0, 106 May 20 13:52 /dev/da1s1.journalc
> > crw-r-----  1 root  operator    0, 107 May 20 16:52 /dev/da1s1.journald
> >
> > Changed /etc/fstab:
> > ----------------------------------------------------------
> > # geom_journaling
> > /dev/da1s1.journald     /data           ufs     rw              3       3
> > ----------------------------------------------------
> >
> > Now everything works fine except this error message:
> >
> > GEOM_JOURNAL: Journal 2508477697: da1s1 contains data.
> > GEOM_JOURNAL: Journal 2508477697: da1s1 contains journal.
> > GEOM_JOURNAL: Journal da1s1 clean.
> > WARNING: Expected rawoffset 0, found 63
>
> I think I saw this behaviour if slice contains previously created
> partitions with 0 offset. (bsdlabel /dev/da1s1 will show you).
>
> Try create it again, but do bsdlabel -e before journaling, set all
> offsets to * (asterisk) and save new label. (remember you will lose you
> data! so do backup before)
>
Ok, I'll try to clean up old partition but what amused me is that when I 
created journaling manually it worked and same time it does not work with 
same device names from /etc/fstab.

to me: /dev/da1s1d.journal == /dev/da1s1.journald 

does it make any sense?





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