mirroring two data disks (no system files on them)
Christian Caron
christian.caron at videotron.ca
Mon Apr 4 18:11:42 PDT 2005
> +>
> +> 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
More information about the freebsd-geom
mailing list