Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Apr 2006 18:51:09 +0200
From:      Andreas Zymny <azymny@web.de>
To:        freebsd-geom@freebsd.org
Subject:   Having problems, when writing to a gmirrored filesystem
Message-ID:  <1481733019@web.de>

next in thread | raw e-mail | index | archive | help
Hello all,

I had a long time ago two 80 GB harddrives gmirrored. Because the space
was not enough, I bought two 250 GB harddrivs. I exchanged one of both
80 GB with one 250 GB harddrive, and put the 250 GB into the mirror.
After the sync was finished, I exchanged the secong 80 GB HD. Then I
have booted from the first hd (without geom loaded) to resize the slice
(I reserved the last half cylinder for the geom data) using fdisk, and
increase the last filesystem to the end of the slice (with disklabel and
growfs).

I launched the mirror, and all was working fine for a few weeks. Then I
had the idea to copy some GB of stuff to the big filesystem, and as
result my FreeBSD freezes, and reboots - without writing any to the
logfiles.

Here are some data:

ad4: 238475MB <Seagate ST3250823NS 5.01> at ata2-master SATA150
ad6: 238475MB <Seagate ST3250823NS 5.01> at ata3-master SATA150

# fdisk /dev/ad4
******* Working on device /dev/ad4 *******
parameters extracted from in-core disklabel are:
cylinders=484521 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=484521 heads=16 sectors/track=63 (1008 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 488397042 (238475 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 168/ head 14/ sector 63

# fdisk mirror/gm4
******* Working on device /dev/mirror/gm4 *******
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 488397042 (238475 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 168/ head 14/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>

This layout is the same as on ad4:

# /dev/mirror/gm4s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:  1048576        0    4.2BSD        0     0     0
  b:  8388608  1048576      swap
  c: 488397042        0    unused        0     0
  d: 33554432  9437184    4.2BSD     2048 16384 28552
  e: 445405426 42991616    4.2BSD     2048 16384 28552

You can see, that the slice on gm4 is a little bit greater than gm4:

ad4: 488397168 sectors
gm4: 488392065 sectors

When I work with /var (the last filesystem, currently only 20% in use)
my FreeBSD freezes and reboots. Than, I can't write any more data on
/var, or remove some files ):

I checked the filesystems with fsck, I had built a new /var with newfs,
I had upgraded my BIOS (it knows the 250 GB harddisks now as 250 GB
drives), nothing helped.

I booted without the gmirror from ad4, and with a small script I wrote
/var full (100% usage), and all was fine. When I try to do this with
gm4, it crashes (with only ad4 in the mirror, or with ad4 and ad6 in the
mirror).

My system is a FreeBSD 6.0 prerelease.


Any ideas, whats wrong?


Kind regards,

Andreas Zymny
_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192




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