Date: Mon, 04 Apr 2005 21:11:46 -0400 From: Christian Caron <christian.caron@videotron.ca> To: Pawel Jakub Dawidek <pjd@FreeBSD.org> Cc: freebsd-geom@freebsd.org Subject: Re: mirroring two data disks (no system files on them) Message-ID: <4251E5D2.9010300@videotron.ca> In-Reply-To: <20050404063844.GF837@darkness.comp.waw.pl> References: <4250A400.50200@videotron.ca> <20050404063844.GF837@darkness.comp.waw.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
> +> > +> I tried adding /dev/mirror/gm0s1 to /etc/fstab, but it dies when loading... > +> > +> Any hints? > > Just to be sure: did you create file system on it? > Sorry about the lack of details. I should have take more time to describe. By following the guidelines, I indeed use sysinstall (fdisk and label) to create c partitions on ad2 and ad3 (I hope I did it right). The error showing at boot time is: ==== Cannot find file system superblock /dev/mirror/gm0s1c: CAN'T CHECK FILE SYSTEM. /dev/mirror/gm0s1c: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. /dev/mirror/gm0s1c: CANNOT SEEK BLK: -1 /dev/mirror/gm0s1c: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. (...) THE FOLLOWING FILE SYSTEM HAD AN UNEXPECTED INCONSISTENCY: ufs: /dev/mirror/gm0s1c (/mirror) Automatic file system check failed; help! Mar 29 18:28:15 init: /bin/sh on /etc/rc terminated abnormally, going to single user mode Enter full pathname of shell or RETURN for /bin/sh: ==== Then I can mount /, /tmp, /var and /usr to remove tne entry from /etc/fstab: /dev/mirror/gm0s1c /mirror ufs rw 2 2 When I comment out this entry, I can boot normally, but I can't access the geom drive. Here's the content when it boots ok: ad2: 14669MB <WDC WD153BA/16.13M16> [29805/16/63] at ata1-master UDMA33 ad3: 14669MB <WDC WD153BA/16.13M16> [29805/16/63] at ata1-slave UDMA33 GEOM_MIRROR: Device gm0s1 created (id=522018943) GEOM_MIRROR: Device gm0s1: provider ad2 detected. GEOM_MIRROR: Device gm0s1: provider ad3 detected. GEOM_MIRROR: Device gm0s1: provider ad3 activated. GEOM_MIRROR: Device gm0s1: provider mirror/gm0s1 launched. GEOM_MIRROR: Device gm0s1: rebuilding provider ad2. GEOM_MIRROR: Device gm0s1: rebuilding provider ad2 finished. GEOM_MIRROR: Device gm0s1: provider ad2 activated. > ls -l /dev/ad2* /dev/ad3* crw-r----- 1 root operator 4, 13 Mar 30 00:00 /dev/ad2 crw-r----- 1 root operator 4, 30 Mar 30 00:00 /dev/ad2a crw-r----- 1 root operator 4, 31 Mar 30 00:00 /dev/ad2c crw-r----- 1 root operator 4, 14 Mar 30 00:00 /dev/ad3 crw-r----- 1 root operator 4, 19 Mar 30 00:00 /dev/ad3a crw-r----- 1 root operator 4, 20 Mar 30 00:00 /dev/ad3c > ls -l /dev/mirror crw-r----- 1 root operator 4, 21 Mar 30 00:00 gm0s1 crw-r----- 1 root operator 4, 28 Mar 30 00:00 gm0s1a crw-r----- 1 root operator 4, 29 Mar 30 00:00 gm0s1c I think that's all the details I have... Christian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4251E5D2.9010300>