Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Aug 2009 00:17:55 +0400
From:      Boris Samorodov <bsam@ipt.ru>
To:        freebsd-current@FreeBSD.org
Subject:   8-BETA, gmirror+gjournal: CANNOT READ BLK, CANNOT FIGURE OUT FILE SYSTEM PARTITION
Message-ID:  <42984716@bb.ipt.ru>

next in thread | raw e-mail | index | archive | help
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# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad4s1a    496M    161M    295M    35%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/ad4s1e    496M     12K    456M     0%    /tmp
/dev/ad4s1f    174G    1.1G    159G     1%    /usr
/dev/ad4s1d     48G    9.2M     45G     0%    /var
ns# cat /etc/fstab 
# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/ad4s1b             none            swap    sw              0       0
/dev/ad4s1a             /               ufs     rw              1       1
/dev/ad4s1e             /tmp            ufs     rw              2       2
/dev/ad4s1f             /usr            ufs     rw              2       2
/dev/ad4s1d             /var            ufs     rw              2       2
/dev/acd0               /cdrom          cd9660  ro,noauto       0       0
ns# disklabel ad4s1
# /dev/ad4s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:  1048576        0    4.2BSD        0     0     0 
  b:  4102784  1048576      swap                    
  c: 488392002        0    unused        0     0         # "raw" part, don't edit
  d: 104857600  5151360    4.2BSD        0     0     0 
  e:  1048576 110008960    4.2BSD        0     0     0 
  f: 377334466 111057536    4.2BSD        0     0     0 
ns# dmesg | grep \^ad
ad4: 238475MB <Seagate ST3250823AS 3.03> at ata2-master SATA150
ad6: 238475MB <Seagate ST3250824NS 3.AEE> at ata3-master SATA150
ns# ls -l /dev/ad4*
crw-r-----  1 root  operator    0,  85 Aug 26 23:19 /dev/ad4
crw-r-----  1 root  operator    0,  87 Aug 26 23:05 /dev/ad4s1
crw-r-----  1 root  operator    0,  92 Aug 26 23:05 /dev/ad4s1a
crw-r-----  1 root  operator    0,  93 Aug 26 23:05 /dev/ad4s1b
crw-r-----  1 root  operator    0,  94 Aug 26 23:05 /dev/ad4s1d
crw-r-----  1 root  operator    0,  95 Aug 26 23:05 /dev/ad4s1e
crw-r-----  1 root  operator    0,  96 Aug 26 23:05 /dev/ad4s1f
ns# sysctl kern.geom.debugflags=16
kern.geom.debugflags: 0 -> 16
ns# gmirror label -vb round-robin gm0 /dev/ad4
Metadata value stored on /dev/ad4.
Done.
ns# gmirror load
GEOM_MIRROR: Device mirror/gm0 launched (1/1).
ns# ls -l /dev/mirror/
total 0
crw-r-----  1 root  operator    0, 115 Aug 26 23:20 gm0
crw-r-----  1 root  operator    0, 133 Aug 26 23:20 gm0s1
crw-r-----  1 root  operator    0, 134 Aug 26 23:20 gm0s1a
crw-r-----  1 root  operator    0, 135 Aug 26 23:20 gm0s1b
crw-r-----  1 root  operator    0, 136 Aug 26 23:20 gm0s1d
crw-r-----  1 root  operator    0, 137 Aug 26 23:20 gm0s1e
crw-r-----  1 root  operator    0, 138 Aug 26 23:20 gm0s1f
ns# gjournal label -f /dev/mirror/gm0s1d
ns# gjournal label -f /dev/mirror/gm0s1f
ns# tunefs -J enable -n disable /dev/mirror/gm0s1d
tunefs: gjournal set
tunefs: soft updates cleared
ns# tunefs -J enable -n disable /dev/mirror/gm0s1f
tunefs: gjournal set
tunefs: soft updates cleared
ns# gjournal load
GEOM_JOURNAL: Journal 2772918591: ufsid/4a957af36265b32b contains data.
GEOM_JOURNAL: Journal 2772918591: ufsid/4a957af36265b32b contains journal.
GEOM_JOURNAL: Journal ufsid/4a957af36265b32b clean.
GEOM_JOURNAL: Journal 929048462: ufsid/4a957afc88eec7bc contains data.
GEOM_JOURNAL: Journal 929048462: ufsid/4a957afc88eec7bc contains journal.
GEOM_JOURNAL: Journal ufsid/4a957afc88eec7bc clean.
ns# cat /etc/fstab
# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/mirror/gm0s1b              none            swap    sw              0       0
/dev/mirror/gm0s1a              /               ufs     rw              1       1
/dev/mirror/gm0s1e              /tmp            ufs     rw              2       2
/dev/mirror/gm0s1f.journal      /usr            ufs     rw              2       2
/dev/mirror/gm0s1d.journal      /var            ufs     rw              2       2
/dev/acd0               /cdrom          cd9660  ro,noauto       0       0
ns# cat loadader.conf 
# serial console
boot_multicons="YES"
console="comconsole,vidconsole"
comconsole_speed="115200"

# gmirror and gjournal
geom_mirror_load="YES" 
geom_journal_load="YES"
ns# shutdown -r now
Shutdown NOW!
shutdown: [pid 1182]
ns#
*** FINAL System shutdown message from root@ns.bsam.ru ***
System going down IMMEDIATELY

Aug 26 23:31:19 ns shutdown: reboot by root: 

System shutdown time has arrivedStopping cron.
Stopping sshd.
Stopping devd.
Writing entropy file:.
Terminated
.
Aug 26 23:31:22 ns syslogd: exiting on signal 15
Waiting (max 60 seconds) for system process `vnlru' to stop...done
Waiting (max 60 seconds) for system process `bufdaemon' to stop...done

Waiting (max 60 seconds) for system process `syncer' to stop...Syncing disks, vnodes remaining...1 1 1 0 0 done
All buffers synced.
Uptime: 26m25s
GEOM_JOURNAL: Shutting down geom gjournal 929048462.
GEOM_JOURNAL: Shutting down geom gjournal 2772918591.
...
<lor, panic, reboot>
...
GEOM_MIRROR: Device mirror/gm0 launched (1/1).
GEOM: ad4s1: geometry does not match label (255h,63s != 16h,63s).
GEOM_JOURNAL: Journal 929048462: ad4s1d contains data.
GEOM_JOURNAL: Journal 929048462: ad4s1d contains journal.
GEOM_JOURNAL: Cannot access ad4s1d (error=1).
GEOM_JOURNAL: Journal 2772918591: ad4s1f contains data.
GEOM_JOURNAL: Journal 2772918591: ad4s1f contains journal.
GEOM_JOURNAL: Cannot access ad4s1f (error=1).
GEOM_JOURNAL: Journal 929048462: mirror/gm0s1d contains data.
GEOM_JOURNAL: Journal 929048462: mirror/gm0s1d contains journal.
GEOM_JOURNAL: Journal mirror/gm0s1d clean.
GEOM_JOURNAL: Journal 2772918591: mirror/gm0s1f contains data.
GEOM_JOURNAL: Journal 2772918591: mirror/gm0s1f contains journal.
GEOM_JOURNAL: Journal mirror/gm0s1f clean.
SMP: AP CPU #1 Launched!
WARNING: WITNESS option enabled, expect reduced performance.
Trying to mount root from ufs:/dev/mirror/gm0s1a
Entropy harvesting: interrupts ethernet point_to_point kickstart.
/dev/mirror/gm0s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/mirror/gm0s1a: clean, 171565 free (3389 frags, 21022 blocks, 1.3% fragmentation)
/dev/mirror/gm0s1e: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/mirror/gm0s1e: clean, 253809 free (41 frags, 31721 blocks, 0.0% fragmentation)
/dev/mirror/gm0s1f.journal: CANNOT READ BLK: 377104864
/dev/mirror/gm0s1f.journal: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
/dev/mirror/gm0s1d.journal: CANNOT READ BLK: 104626016
/dev/mirror/gm0s1d.journal: UNEXPECTED INCONSISTENCY; Aug 26 23:33:07 init: /bin/sh on /etc/rc terminated abnormally, going to single user mode
Enter full pathname of shell or RETURN for /bin/sh: 
# fsck -y /dev/mirror/gm0s1f.journal
** /dev/mirror/gm0s1f.journal

CANNOT READ BLK: 377104864
CONTINUE? yes

THE FOLLOWING DISK SECTORS COULD NOT BE READ: 377104864, 377104865, 377104866, 377104867,
/dev/mirror/gm0s1f.journal: CANNOT FIGURE OUT FILE SYSTEM PARTITION
# fsck -y /dev/mirror/gm0s1d.journal
** /dev/mirror/gm0s1d.journal

CANNOT READ BLK: 104626016
CONTINUE? yes

THE FOLLOWING DISK SECTORS COULD NOT BE READ: 104626016, 104626017, 104626018, 104626019,
/dev/mirror/gm0s1d.journal: CANNOT FIGURE OUT FILE SYSTEM PARTITION
# mount /dev/mirror/gm0s1f.journal /var
# mount /dev/mirror/gm0s1d.journal /usr
# mount
/dev/mirror/gm0s1a on / (ufs, local, read-only)
devfs on /dev (devfs, local, multilabel)
/dev/mirror/gm0s1f.journal on /var (ufs, local, soft-updates)
/dev/mirror/gm0s1d.journal on /usr (ufs, local, soft-updates)
#
-----

-- 
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?42984716>