gmirror question

Martin Badie martinbadie at yahoo.com
Fri Apr 9 10:22:20 UTC 2010


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 at 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


      


More information about the freebsd-geom mailing list