Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Aug 2009 18:37:21 +0400
From:      Boris Samorodov <bsam@ipt.ru>
To:        Pawel Jakub Dawidek <pjd@FreeBSD.org>
Cc:        freebsd-current@FreeBSD.org
Subject:   [solved] Re: 8-BETA, gmirror+gjournal: CANNOT READ BLK, CANNOT FIGURE OUT FILE SYSTEM PARTITION
Message-ID:  <23294110_-_@bb.ipt.ru>
In-Reply-To: <20090826204415.GC1763@garage.freebsd.pl> (Pawel Jakub Dawidek's message of "Wed, 26 Aug 2009 22:44:15 %2B0200")
References:  <42984716@bb.ipt.ru> <20090826204415.GC1763@garage.freebsd.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 26 Aug 2009 22:44:15 +0200 Pawel Jakub Dawidek wrote:
> On Thu, Aug 27, 2009 at 12:17:55AM +0400, Boris Samorodov wrote:
> > Hello List,
> > 
> > The system installed from 8.0-BETA3-i386-memstick.img. Journal file
> > systems can not be mounted at boot but are mounted while at single
> > user. Here is a log with creating and rebooting:
> [...]
> > ns# gjournal label -f /dev/mirror/gm0s1d
> > ns# gjournal label -f /dev/mirror/gm0s1f

> Have you tried without -f (FORCE) option? You would see something along
> the lines:

> 	gjournal: File system exists on /dev/mirror/gm0s1d and this operation would destroy it.
> 	Use -f if you really want to do it.

> So I guess you have what you asked for...

OK, I created a separate slice for journals at the beginning of
disks (is it supposed to be a little bit faster for journalling
as opposed to the end of disks?). The case is fixed:
-----
ns# fdisk mirror/gm0
******* Working on device /dev/mirror/gm0 *******
parameters extracted from in-core disklabel are:
cylinders=30401 heads=255 sectors/track=63 (16065 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=30401 heads=255 sectors/track=63 (16065 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 12578832 (6142 Meg), flag 0
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 782/ head 254/ sector 63
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 12578895, size 475813170 (232330 Meg), flag 80 (active)
        beg: cyl 783/ head 0/ sector 1;
        end: cyl 1023/ head 254/ sector 63
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>
ns# disklabel mirror/gm0s1
# /dev/mirror/gm0s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c: 12578832        0    unused        0     0         # "raw" part, don't edit
  d:  4194304       16    4.2BSD        0     0     0 
  e:  4190208  4194320    unused        0     0       
  f:  4194304  8384528    4.2BSD        0     0     0 
ns# disklabel mirror/gm0s2
# /dev/mirror/gm0s2:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:  2097152        0    4.2BSD        0     0     0 
  b:  4194304  2097152      swap                    
  c: 475813170        0    unused        0     0         # "raw" part, don't edit
  d: 209715200  6291456    4.2BSD        0     0     0 
  e: 41943040 216006656    4.2BSD        0     0     0 
  f: 217863474 257949696    4.2BSD        0     0     0
ns# gmirror list
Geom name: gm0
State: DEGRADED
Components: 2
Balance: round-robin
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 1
ID: 73912522
Providers:
1. Name: mirror/gm0
   Mediasize: 250059349504 (233G)
   Sectorsize: 512
   Mode: r8w7e20
Consumers:
1. Name: ad4
   Mediasize: 250059350016 (233G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: NONE
   GenID: 0
   SyncID: 1
   ID: 4009354276
2. Name: ad6
   Mediasize: 250059350016 (233G)
   Sectorsize: 512
   Mode: r1w1e1
   State: SYNCHRONIZING
   Priority: 0
   Flags: DIRTY, SYNCHRONIZING
   GenID: 0
   SyncID: 1
   Synchronized: 8%
   ID: 3530186988
ns# gjournal status
                 Name  Status  Components
mirror/gm0s2d.journal     N/A  mirror/gm0s1d
                               mirror/gm0s2d
mirror/gm0s2f.journal     N/A  mirror/gm0s1f
                               mirror/gm0s2f
ns# mount
/dev/mirror/gm0s2a on / (ufs, local)
devfs on /dev (devfs, local, multilabel)
/dev/mirror/gm0s2e on /tmp (ufs, local, soft-updates)
/dev/mirror/gm0s2f.journal on /usr (ufs, asynchronous, local, gjournal)
/dev/mirror/gm0s2d.journal on /var (ufs, asynchronous, local, gjournal)
-----

Thanks!

-- 
WBR, Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve



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