From owner-freebsd-geom@FreeBSD.ORG Fri Apr 9 10:22:20 2010 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 349AD1065675 for ; Fri, 9 Apr 2010 10:22:20 +0000 (UTC) (envelope-from martinbadie@yahoo.com) Received: from web59906.mail.ac4.yahoo.com (web59906.mail.ac4.yahoo.com [76.13.12.169]) by mx1.freebsd.org (Postfix) with SMTP id 89AF58FC1A for ; Fri, 9 Apr 2010 10:22:19 +0000 (UTC) Received: (qmail 93558 invoked by uid 60001); 9 Apr 2010 09:55:37 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1270806937; bh=ySIBV38ssPAvTKWIzS0dFmkHiQ3g4uhdCLZWKtP0N60=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type; b=EHlK60BUUR5/L3pURWSbWlAko7tem6MOwVFPgZnSm2IY4RE68uRY2FXlBkIWLnC5JjpVIB2bp38u9cifX0h86HouduT9miE4IB+p3O8iK7U4DXFw9ulPOY+lJlgkECQrXE2OIKOxH5oBr3WkdMYM+kP0nJgGnMLlC7PFnDJVZDc= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type; b=0drVr/fa1lwfaPHcix1X1F/W3l6YmEqJDW5Q41vpFY55yMQUATFF5N3kL5Il1mz2e9SNCnBXl2yITbOim9ea/V2lz6+Bq9WSjFBzCiPt0j09HIuHnG8eVHxkfmH4hTWeMt+faK0tTrWJORm53H7Mjv6cN1+L2lmgK0BC9Nj8ROY=; Message-ID: <246759.92700.qm@web59906.mail.ac4.yahoo.com> X-YMail-OSG: eqRQEHsVM1lquRuXhdjiOjyPWeFtEb.WQd8xSZRlrBuwFCJ lCAUqpYnkbEBuV5GLUsjgRudDEjNMR3Jg0JL60OEt.fe2PFZrB.9D8pm2zlG gWf9IxbDRpfBcnMYCyaKfNrR8iOCye9sB3Yv9O5GfxTy2i_8uobMVEA24TFI UsVQGfWQ3V6wEUDsfsRRgd87nca6mo3xMpQehSuJtfBR2bL4nXak31lA2Z0c CTiwDoYIIBgYUwNta_EOkNz6sIXcy18C54C2ZdplkeFg6sIiufx31N6jE6iT C1aNSirA- Received: from [78.186.198.152] by web59906.mail.ac4.yahoo.com via HTTP; Fri, 09 Apr 2010 02:55:37 PDT X-Mailer: YahooMailRC/348.3 YahooMailWebService/0.8.100.260964 Date: Fri, 9 Apr 2010 02:55:37 -0700 (PDT) From: Martin Badie To: freebsd-geom@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: rse@freebsd.org Subject: gmirror question X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2010 10:22:20 -0000 Hi,=0A=0AI have a gmirror system (FreeBSD 6.3). Normally on seagate.com I c= an see that both disk (ST3250310AS=A0 and ST3250318AS) have same layout and= the sizes are equal. I have built gmirror using http://people.freebsd.org/= ~rse/mirror/=A0what I want to ask is that ad6 was broken and i have replace= d it with the new one (new ad6) both on the fdisk command output=A0 i see d= ifferent sizes (ad6 is bigger than ad4). What i want to ask is that if i re= build mirror using following command does that break OS ?=0A=0A# sysctl ker= n.geom.debugflags=3D16=0A# gmirror forget gm0=0A# dd if=3D/dev/zero of=3D/d= ev/ad6 bs=3D1k count=3D1=0A# fdisk -BI ad6=0A# bsdlabel -B -w ad6s1 auto = =0A# gmirror insert gm0 /dev/ad6s1=0A# gmirror status=0A=0A=0A=0AThe disk d= etails are like:=0A=0A=A0grep ad4 /var/run/dmesg.boot =0A=0Aad4: 238475MB <= Seagate ST3250310AS 3.AAF> at ata2-master SATA150=0AGEOM_MIRROR: Device gm0= : provider ad4s1 detected.=0AGEOM_MIRROR: Device gm0: provider ad4s1 activa= ted=0A=0Agrep ad6 /var/run/dmesg.boot =0A=0Aad6: 238475MB at ata3-master SATA150=0A=0ADisk layouts:=0A=0A=0Afdisk /dev/ad4= =0A******* Working on device /dev/ad4 *******=0Aparameters extracted from i= n-core disklabel are:=0Acylinders=3D484521 heads=3D16 sectors/track=3D63 (1= 008 blks/cyl)=0AFigures below won't work with BIOS for partitions not in cy= l 1=0Aparameters to be used for BIOS calculations are:=0Acylinders=3D484521= heads=3D16 sectors/track=3D63 (1008 blks/cyl)=0AMedia sector size is 512= =0AWarning: BIOS sector numbering starts with sector 1=0AInformation from D= OS bootblock is:=0AThe data for partition 1 is:=0Asysid 165 (0xa5),(FreeBSD= /NetBSD/386BSD)=0A=A0=A0=A0 start 63, size 488391057 (238472 Meg), flag 80 = (active)=0A=A0=A0=A0=A0=A0=A0=A0 beg: cyl 0/ head 1/ sector 1;=0A=A0=A0=A0= =A0=A0=A0=A0 end: cyl 162/ head 15/ sector 63=0AThe data for partition 2 is= :=0A=0AThe data for partition 3 is:=0A=0AThe data for parti= tion 4 is:=0A=0A[root@antispam ~]# fdisk /dev/ad6=0A******* Working= on device /dev/ad6 *******=0Aparameters extracted from in-core disklabel a= re:=0Acylinders=3D484521 heads=3D16 sectors/track=3D63 (1008 blks/cyl)=0AFi= gures below won't work with BIOS for partitions not in cyl 1=0Aparameters t= o be used for BIOS calculations are:=0Acylinders=3D484521 heads=3D16 sector= s/track=3D63 (1008 blks/cyl)=0Afdisk: invalid fdisk partition table found= =0AMedia sector size is 512=0AWarning: BIOS sector numbering starts with se= ctor 1=0AInformation from DOS bootblock is:=0AThe data for partition 1 is:= =0Asysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)=0A=A0=A0=A0 start 63, size 4883= 97105 (238475 Meg), flag 80 (active)=0A=A0=A0=A0=A0=A0=A0=A0 beg: cyl 0/ he= ad 1/ sector 1;=0A=A0=A0=A0=A0=A0=A0=A0 end: cyl 168/ head 15/ sector 63=0A= The data for partition 2 is:=0A=0AThe data for partition 3 is:=0A=0AThe data for partition 4 is:=0A=0A=0A=0A=0A=A0gmirror stat= us=0A=A0=A0=A0=A0=A0 Name=A0=A0=A0 Status=A0 Components=0Amirror/gm0=A0 DEG= RADED=A0 ad4s1=0A=0A=0A