misc/130528: gjournal fsck during boot
Oleg Gawriloff
barzog at telecom.by
Tue Jan 13 20:30:02 PST 2009
>Number: 130528
>Category: misc
>Synopsis: gjournal fsck during boot
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Jan 14 04:30:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Oleg Gawriloff
>Release: 7.1
>Organization:
Atlant Telecom
>Environment:
FreeBSD albatros2.telecom.by 7.1-RELEASE-p1 FreeBSD 7.1-RELEASE-p1 #0: Sat Jan 10 00:35:09 EET 2009 root at albatros2.telecom.by:/usr/obj/usr/src/sys/ALBATROS2 amd64
>Description:
On server we have 2 data providers. First which is mounted on / is gmirror. Second which is mounted on /mnt in gjournal. During power failure we have following situation (with background_fsck="NO" & fsck_y_enable="YES"):
System starting and detects consisten journal:
GEOM_JOURNAL: Journal 3800228672: da0 contains data.
GEOM_JOURNAL: Journal 3800228672: da0 contains journal.
GEOM_JOURNAL: Journal da0 clean.
Then it detects inconsistent gmirror:
Trying to mount root from ufs:/dev/mirror/gm0s1a
WARNING: / was not properly dismounted
Then it checks gmirror systems in automatic mode (fsck_y_enable):
Jan 14 04:37:52 albatros2 kernel: Starting file system checks:
Jan 14 04:37:52 albatros2 kernel: /dev/mirror/gm0s1a: 2202 files, 61779 used, 2476740 free (932 frags,
309476 blocks, 0.0% fragmentation)
Jan 14 04:37:52 albatros2 kernel: /dev/mirror/gm0s1d: 41 files, 621 used, 1012394 free (74 frags, 126540 blocks, 0.0% fragmentation)
Jan 14 04:37:52 albatros2 kernel: /dev/mirror/gm0s1e: 273770 files, 2521741 used, 7632458 free (114082 frags, 939797 blocks, 1.1% fragmentation)
Jan 14 04:37:52 albatros2 kernel: /dev/mirror/gm0s1f: 155596 files, 1427128 used, 21690718 free (17030 frags, 2709211 blocks, 0.1% fragmentation)
But when it comes to checking gjournal it need user intervention:
Jan 14 04:37:52 albatros2 kernel: Mounting local file systems:
Jan 14 04:37:52 albatros2 kernel: WARNING: R/W mount of /mnt/StorageB denied. Filesystem is not clean - run fsck
Jan 14 04:37:52 albatros2 kernel: mount:
Jan 14 04:37:52 albatros2 kernel: /dev/da1.journal
Jan 14 04:37:52 albatros2 kernel: :
Jan 14 04:37:52 albatros2 kernel: Operation not permitted
Jan 14 04:37:52 albatros2 kernel: .
Jan 14 04:37:52 albatros2 kernel: Mounting /etc/fstab filesystems failed, startup aborted
Jan 14 04:37:52 albatros2 kernel: ERROR: ABORTING BOOT (sending SIGTERM to parent)!
Jan 14 04:37:52 albatros2 kernel: Jan 14 06:18:06 init: /bin/sh on /etc/rc terminated abnormally, going to single user mode
fsck on gjournal never finds any problems (its 3 disk hardware RAID on disk-shelf):
Jan 14 04:37:52 albatros2 kernel: ** /dev/da1.journal
Jan 14 04:37:52 albatros2 kernel: ** Last Mounted on /mnt/StorageB
Jan 14 04:37:52 albatros2 kernel: ** Phase 1 - Check Blocks and Sizes
Jan 14 04:37:52 albatros2 kernel: ** Phase 2 - Check Pathnames
Jan 14 04:37:52 albatros2 kernel: ** Phase 3 - Check Connectivity
Jan 14 04:37:52 albatros2 kernel: ** Phase 4 - Check Reference Counts
Jan 14 04:37:52 albatros2 kernel: ** Phase 5 - Check Cyl groups
Jan 14 04:37:52 albatros2 kernel: 232786 files, 392353426 used, 80122488 free (67704 frags, 10006848 blocks, 0.0% fragmentation)
Jan 14 04:37:52 albatros2 kernel:
Jan 14 04:37:52 albatros2 kernel: ***** FILE SYSTEM MARKED CLEAN *****
Jan 14 04:37:52 albatros2 kernel: #
Why? On the same systems without gjournal it checks all file systems withour user intervention.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list