From owner-freebsd-fs@FreeBSD.ORG Thu May 5 17:53:38 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BCDC5106566B for ; Thu, 5 May 2011 17:53:38 +0000 (UTC) (envelope-from toasty@dragondata.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 81A518FC16 for ; Thu, 5 May 2011 17:53:38 +0000 (UTC) Received: by iwn33 with SMTP id 33so2836842iwn.13 for ; Thu, 05 May 2011 10:53:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dragondata.com; s=google; h=domainkey-signature:from:content-type:content-transfer-encoding :subject:date:message-id:to:mime-version:x-mailer; bh=+4yRosvY4OeW8+IRJ+ZBkW4eIlFoZpC24Zc1S17CZvU=; b=krWbJ57QBWUNbQqiPPx2+LmjBiInULnyU9Vprx7o1iSmfjxwFLE2+JEnch/nVjhJXD XCuZr6RuKg4qQjDL0OxnKJVZi6t+b56wpHH9I3DwOOZ5gavTMJDRRQEzTjT9Nr05QwtK MOM+OpiiND3zjDVOQVqka2NX35m3RXFSxItKM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=dragondata.com; s=google; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=ixB7kNDNxuD+FITjij7L/9MQGKsfNZbLOKeIC0smCqZd7DfiRd9XI7zzCURN5z7pG9 Mo+f+e8kphuvEI8WdXcLck1bzbqqU4pDOdYxj67OPPfd+lmlpmzWPE3Cg7AW4Q+UTkok 3ThqZ02ogE2w1xUacXbLy9jSwdFu39M8CZVDQ= Received: by 10.43.58.148 with SMTP id wk20mr1341731icb.242.1304616329041; Thu, 05 May 2011 10:25:29 -0700 (PDT) Received: from vpn177.ord02.your.org (vpn177.ord02.your.org [204.9.55.177]) by mx.google.com with ESMTPS id g16sm974803ibb.37.2011.05.05.10.25.26 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 May 2011 10:25:27 -0700 (PDT) From: Kevin Day Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Thu, 5 May 2011 12:25:24 -0500 Message-Id: To: freebsd-fs@freebsd.org Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) Subject: "gpart show" stuck in loop X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2011 17:53:38 -0000 We've had one of our boxes getting stuck with "gpart show" (called from = rc startup scripts) consuming 100% cpu after each reboot. Manually = running "gpart show" gives me: # gpart show |more =3D> 63 715571136 amrd0 MBR (341G) 63 715567167 1 freebsd [active] (341G) 715567230 3969 - free - (1.9M) =3D> 0 715567167 amrd0s1 BSD (341G) 0 696254464 1 freebsd-ufs (332G) 696254464 19312703 2 freebsd-swap (9.2G) =3D> 63 5860573110 da0 MBR (2.7T) 63 2147472747 1 freebsd [active] (1.0T) 2147472810 2147472810 2 freebsd [active] (1.0T) 4294945620 -2729352721 3 freebsd [active] () 1565592899 581879911 - free - (277G) 2147472810 2147472810 2 freebsd [active] (1.0T) 4294945620 -2729352721 3 freebsd [active] () 1565592899 581879911 - free - (277G) 2147472810 2147472810 2 freebsd [active] (1.0T) 4294945620 -2729352721 3 freebsd [active] () 1565592899 581879911 - free - (277G) 2147472810 2147472810 2 freebsd [active] (1.0T) 4294945620 -2729352721 3 freebsd [active] () 1565592899 581879911 - free - (277G) 2147472810 2147472810 2 freebsd [active] (1.0T) 4294945620 -2729352721 3 freebsd [active] () 1565592899 581879911 - free - (277G) (repeating forever) I'm guessing something is corrupt in the partition table. I'm happy to = file a PR on this, but I can only leave this untouched for a day or two = max before I'm going to have to wipe this and start over for a new = customer who needs this storage array. Is there anything anyone could = suggest looking at or preserving before I'm forced to delete this?=20 The storage system came to me configured like this, I don't know what = the previous owner was attempting to do, or how they ended up with the = partitions like this. -- Kevin da0 at mpt0 bus 0 scbus0 target 0 lun 0 da0: Fixed Direct Access SCSI-5 device=20 da0: 100.000MB/s transfers da0: Command Queueing enabled da0: 2861608MB (5860573184 512 byte sectors: 255H 63S/T 364803C) # fdisk da0 ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=3D364803 heads=3D255 sectors/track=3D63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=3D364803 heads=3D255 sectors/track=3D63 (16065 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 2147472747 (1048570 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 254/ sector 63 The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 2147472810, size 2147472810 (1048570 Meg), flag 80 (active) beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 254/ sector 63 The data for partition 3 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 4294945620, size 1565614575 (764460 Meg), flag 80 (active) beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 165/ sector 59 The data for partition 4 is: