Date: Sat, 04 Sep 2004 22:42:13 +0200 From: =?ISO-8859-2?Q?Krzysztof_Ciep=B3ucha?= <kris@home.pl> To: Pawel Jakub Dawidek <pjd@FreeBSD.org> Cc: freebsd-geom@freebsd.org Subject: Re: problems with GEOM_MIRROR Message-ID: <413A28A5.4010902@home.pl> In-Reply-To: <20040903125220.GP30151@darkness.comp.waw.pl> References: <00d701c491af$253ebf30$fe78a8c0@kris> <20040903125220.GP30151@darkness.comp.waw.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
Pawel Jakub Dawidek wrote: > +> 1. After server restart the mirror is being rebuilding form the beginning, > +> even if before restart it was fully synchronized. > > Yes, I know this problem. It is fixed in -CURRENT. > Could you get g_mirror.c, g_mirror.h and g_mirror_ctl.c files from HEAD > branch and try it? > I have upgraded to 6-CURRENT, rebuild kernel and world. # uname -a FreeBSD krisbsd 6.0-CURRENT FreeBSD 6.0-CURRENT #1: Sat Sep 4 10:44:10 CEST 2004 root@krisbsd:/usr/obj/usr/src/sys/KRIS5 i386 sysctl -b kern.geom.conftxt still shows labels like da0a .. da0f, and the mirror is still starting synchronization after every restart. #dmesg GEOM_LABEL[0]: Label for provider da0 is label/disk0. GEOM_LABEL[1]: UFS2 file system detected on da0. GEOM_LABEL[0]: Label for provider da1 is label/disk1. GEOM_LABEL[1]: UFS2 file system detected on da1. GEOM_LABEL[1]: UFS2 file system detected on da0a. GEOM_LABEL[1]: UFS2 file system detected on da0c. GEOM_LABEL[1]: UFS2 file system detected on da0d. GEOM_LABEL[1]: UFS2 file system detected on da0e. GEOM_LABEL[1]: UFS2 file system detected on da0f. GEOM_MIRROR[1]: Creating device mirror1 (id=1132938933). GEOM_MIRROR[0]: Device mirror1 created (id=1132938933). GEOM_MIRROR[1]: Adding disk label/disk0 to mirror1. GEOM_MIRROR[1]: Disk label/disk0 state changed from NONE to NEW (device mirror1). GEOM_MIRROR[0]: Device mirror1: provider label/disk0 detected. GEOM_LABEL[1]: UFS2 file system detected on da1a. GEOM_LABEL[1]: UFS2 file system detected on da1c. GEOM_LABEL[1]: UFS2 file system detected on da1d. GEOM_LABEL[1]: UFS2 file system detected on da1e. GEOM_LABEL[1]: UFS2 file system detected on da1f. GEOM_MIRROR[1]: Adding disk label/disk1 to mirror1. GEOM_MIRROR[1]: Disk label/disk1 state changed from NONE to NEW (device mirror1). GEOM_MIRROR[0]: Device mirror1: provider label/disk1 detected. GEOM_MIRROR[1]: Using disk label/disk1 (device mirror1) as a master disk for synchronization. GEOM_MIRROR[1]: Device mirror1 state changed from STARTING to RUNNING. GEOM_MIRROR[1]: Disk label/disk1 state changed from NEW to ACTIVE (device mirror1). GEOM_MIRROR[0]: Device mirror1: provider label/disk1 activated. GEOM_MIRROR[1]: Disk label/disk0 state changed from NEW to SYNCHRONIZING (device mirror1). GEOM_MIRROR[0]: Device mirror1: provider mirror/mirror1 launched. GEOM_MIRROR[0]: Device mirror1: rebuilding provider label/disk0. GEOM_LABEL[1]: UFS2 file system detected on mirror/mirror1. GEOM_LABEL[1]: UFS2 file system detected on mirror/mirror1a. GEOM_LABEL[1]: UFS2 file system detected on mirror/mirror1c. GEOM_LABEL[1]: UFS2 file system detected on mirror/mirror1d. GEOM_LABEL[1]: UFS2 file system detected on mirror/mirror1e. GEOM_LABEL[1]: UFS2 file system detected on mirror/mirror1f. Mounting root from ufs:/dev/mirror/mirror1a GEOM_MIRROR[1]: Disk label/disk1 (device mirror1) marked as dirty. GEOM_LABEL[1]: UFS2 file system detected on mirror/mirror1e. GEOM_LABEL[1]: UFS2 file system detected on mirror/mirror1f. GEOM_LABEL[1]: UFS2 file system detected on mirror/mirror1d. <... and after synchronization finished...> GEOM_MIRROR[1]: Disk label/disk0 state changed from SYNCHRONIZING to ACTIVE (device mirror1). GEOM_MIRROR[0]: Device mirror1: rebuilding provider label/disk0 finished. GEOM_MIRROR[1]: Disk label/disk0 (device mirror1) marked as dirty. GEOM_MIRROR[0]: Device mirror1: provider label/disk0 activated.krisbsd# krisbsd# sysctl -b kern.geom.conftxt 0 DISK da1 2147483648 512 hd 255 sc 63 1 LABEL label/disk1 2147483136 512 i 0 o 0 2 MIRROR mirror/mirror1 2147482624 512 3 BSD mirror/mirror1f 1100176384 512 i 5 o 1047306240 ty 7 3 BSD mirror/mirror1e 268435456 512 i 4 o 778870784 ty 7 3 BSD mirror/mirror1d 268435456 512 i 3 o 510435328 ty 7 3 BSD mirror/mirror1c 2147482624 512 i 2 o 0 ty 0 3 BSD mirror/mirror1b 241999872 512 i 1 o 268435456 ty 1 3 BSD mirror/mirror1a 268435456 512 i 0 o 0 ty 7 0 DISK da0 2147483648 512 hd 255 sc 63 1 BSD da0f 1100176384 512 i 5 o 1047306240 ty 7 1 BSD da0e 268435456 512 i 4 o 778870784 ty 7 1 BSD da0d 268435456 512 i 3 o 510435328 ty 7 1 BSD da0c 2147482624 512 i 2 o 0 ty 0 1 BSD da0b 241999872 512 i 1 o 268435456 ty 1 1 BSD da0a 268435456 512 i 0 o 0 ty 7 1 LABEL label/disk0 2147483136 512 i 0 o 0 2 BSD label/disk0f 1100176384 512 i 5 o 1047306240 ty 7 2 BSD label/disk0e 268435456 512 i 4 o 778870784 ty 7 2 BSD label/disk0d 268435456 512 i 3 o 510435328 ty 7 2 BSD label/disk0c 2147482624 512 i 2 o 0 ty 0 2 BSD label/disk0b 241999872 512 i 1 o 268435456 ty 1 2 BSD label/disk0a 268435456 512 i 0 o 0 ty 7 2 MIRROR mirror/mirror1 2147482624 512 3 BSD mirror/mirror1f 1100176384 512 i 5 o 1047306240 ty 7 3 BSD mirror/mirror1e 268435456 512 i 4 o 778870784 ty 7 3 BSD mirror/mirror1d 268435456 512 i 3 o 510435328 ty 7 3 BSD mirror/mirror1c 2147482624 512 i 2 o 0 ty 0 3 BSD mirror/mirror1b 241999872 512 i 1 o 268435456 ty 1 3 BSD mirror/mirror1a 268435456 512 i 0 o 0 ty 7 krisbsd# any ideas? -- kris-at-home-dot-pl
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?413A28A5.4010902>