Date: Fri, 9 Apr 2010 02:55:37 -0700 (PDT) From: Martin Badie <martinbadie@yahoo.com> To: freebsd-geom@freebsd.org Cc: rse@freebsd.org Subject: gmirror question Message-ID: <246759.92700.qm@web59906.mail.ac4.yahoo.com>
next in thread | raw e-mail | index | archive | help
Hi, I have a gmirror system (FreeBSD 6.3). Normally on seagate.com I can see that both disk (ST3250310AS and ST3250318AS) have same layout and the sizes are equal. I have built gmirror using http://people.freebsd.org/~rse/mirror/ what I want to ask is that ad6 was broken and i have replaced it with the new one (new ad6) both on the fdisk command output i see different sizes (ad6 is bigger than ad4). What i want to ask is that if i rebuild mirror using following command does that break OS ? # sysctl kern.geom.debugflags=16 # gmirror forget gm0 # dd if=/dev/zero of=/dev/ad6 bs=1k count=1 # fdisk -BI ad6 # bsdlabel -B -w ad6s1 auto # gmirror insert gm0 /dev/ad6s1 # gmirror status The disk details are like: grep ad4 /var/run/dmesg.boot ad4: 238475MB <Seagate ST3250310AS 3.AAF> at ata2-master SATA150 GEOM_MIRROR: Device gm0: provider ad4s1 detected. GEOM_MIRROR: Device gm0: provider ad4s1 activated grep ad6 /var/run/dmesg.boot ad6: 238475MB <Seagate ST3250318AS CC38> at ata3-master SATA150 Disk layouts: 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 488391057 (238472 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 162/ head 15/ sector 63 The data for partition 2 is: <UNUSED> The data for partition 3 is: <UNUSED> The data for partition 4 is: <UNUSED> [root@antispam ~]# fdisk /dev/ad6 ******* Working on device /dev/ad6 ******* 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) fdisk: invalid fdisk partition table found 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 488397105 (238475 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 168/ head 15/ sector 63 The data for partition 2 is: <UNUSED> The data for partition 3 is: <UNUSED> The data for partition 4 is: <UNUSED> gmirror status Name Status Components mirror/gm0 DEGRADED ad4s1
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?246759.92700.qm>
