From owner-freebsd-geom@FreeBSD.ORG Thu Dec 9 11:05:42 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 C9D4C1065672 for ; Thu, 9 Dec 2010 11:05:42 +0000 (UTC) (envelope-from nonsolosoft@diff.org) Received: from smtpi3.ngi.it (smtpi3.ngi.it [88.149.128.33]) by mx1.freebsd.org (Postfix) with ESMTP id 9017F8FC15 for ; Thu, 9 Dec 2010 11:05:42 +0000 (UTC) Received: from lap.diff.org (vola.diff.org [81.174.26.135]) by smtpi3.ngi.it (Postfix) with ESMTP id EDCF5318DB3 for ; Thu, 9 Dec 2010 11:46:04 +0100 (CET) Message-ID: <4D00B36C.5070509@diff.org> Date: Thu, 09 Dec 2010 11:46:04 +0100 From: Ferruccio Zamuner Organization: NonSoLoSoft User-Agent: Mozilla/5.0 (X11; U; DragonFly i386; en-US; rv:1.9.2.9) Gecko/20101023 Lightning/1.0b3pre Lanikai/3.1.3 MIME-Version: 1.0 To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: gmirror insert 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: Thu, 09 Dec 2010 11:05:42 -0000 I've a trouble restoring ad4s2 in the mirror, same operation for ad4s1 on gm0 succeded. I'm on FreeBSD 8.1 adm64. Have you hint? Following it is the log: u1# fdisk ad6 ******* Working on device /dev/ad6 ******* parameters extracted from in-core disklabel are: cylinders=1453521 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=1453521 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 251657217 (122879 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 15/ sector 63 The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 251657280, size 1048575024 (511999 Meg), flag 0 beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 15/ sector 63 The data for partition 3 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 1300232304, size 164916864 (80525 Meg), flag 0 beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 15/ sector 63 The data for partition 4 is: u1# gmirror forget gm1 ad4s2 u1# gmirror list gm1 Geom name: gm1 State: COMPLETE Components: 1 Balance: split Slice: 1048576 Flags: NONE GenID: 0 SyncID: 2 ID: 3153972535 Providers: 1. Name: mirror/gm1 Mediasize: 536870411776 (500G) Sectorsize: 512 Mode: r1w1e1 Consumers: 1. Name: ad6s2 Mediasize: 536870412288 (500G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: HARDCODED GenID: 0 SyncID: 2 ID: 3208481414 u1# fdisk -2 ad4 ******* Working on device /dev/ad4 ******* parameters extracted from in-core disklabel are: cylinders=1453521 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=1453521 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 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 251657280, size 1048575024 (511999 Meg), flag 80 (active) beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 15/ sector 63 u1# gmirror insert gm1 ad4s2 gmirror: Provider ad4s2 too small.