From owner-freebsd-questions@FreeBSD.ORG Tue Oct 2 18:07:11 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A42716A417 for ; Tue, 2 Oct 2007 18:07:11 +0000 (UTC) (envelope-from auk@startext.tomsk.ru) Received: from mail.startext.de (mail.startext.de [62.159.148.202]) by mx1.freebsd.org (Postfix) with ESMTP id B660F13C4A8 for ; Tue, 2 Oct 2007 18:07:10 +0000 (UTC) (envelope-from auk@startext.tomsk.ru) Received: by mail.startext.de (Postfix on SuSE Linux eMail Server 3.0, from userid 65534) id 629441AC8D1; Tue, 2 Oct 2007 19:53:47 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.0 (2007-05-01) on debian-3-1r1-001 X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=ALL_TRUSTED,AWL autolearn=disabled version=3.2.0 Received: from [192.168.0.250] (dmz-gateway.startext.de [192.168.1.254]) by mail.startext.de (Postfix on SuSE Linux eMail Server 3.0) with ESMTP id D46B61AC8BA for ; Tue, 2 Oct 2007 19:53:46 +0200 (CEST) Message-ID: <47028401.7090901@startext.tomsk.ru> Date: Tue, 02 Oct 2007 19:46:41 +0200 From: "Alexey A. Ukhov" User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Need help/advice with gmirror after server crash X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Oct 2007 18:07:11 -0000 Hello all colleagues. I have the following problem. I had server with 2 SATA drives worked in gmirror. Recently we had crash of third (system) HDD. After FreeBSD reinstalation I see in dmesg: ad2: 238475MB at ata1-master UDMA100 ad3: 238475MB at ata1-slave UDMA100 And do not see any UFS file slices, partitions, etc. In /dev I have only /dev/ad2 and /dev/ad3 Mounting is impossible also: *sml# mount /dev/ad2 /mnt* mount: /dev/ad2: Operation not permitted Here is some output of fdisk usage: *sml# fdisk /dev/ad2* ******* Working on device /dev/ad2 ******* 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: The data for partition 3 is: The data for partition 4 is: *sml# fdisk /dev/ad3* ******* Working on device /dev/ad3 ******* 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: The data for partition 3 is: The data for partition 4 is: Some ideas what to do with it? How to restore my data? Thanks in advance, Alexey P.S.: with stupid trick I see that data are still there: *sml# dd if=/dev/ad2 count=1000|strings* /home /usr/local/vpopmail 1000+0 records in 1000+0 records out 512000 bytes transferred in 0.139311 secs (3675228 bytes/sec)