From owner-freebsd-questions@FreeBSD.ORG Fri Jan 28 15:46:01 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A69E416A4CE for ; Fri, 28 Jan 2005 15:46:01 +0000 (GMT) Received: from hotmail.com (bay23-f6.bay23.hotmail.com [64.4.22.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8200D43D1D for ; Fri, 28 Jan 2005 15:46:01 +0000 (GMT) (envelope-from faxmachine373@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 28 Jan 2005 07:46:00 -0800 Message-ID: Received: from 222.166.160.210 by by23fd.bay23.hotmail.msn.com with HTTP; Fri, 28 Jan 2005 15:45:56 GMT X-Originating-IP: [222.166.160.210] X-Originating-Email: [faxmachine373@hotmail.com] X-Sender: faxmachine373@hotmail.com From: "Peter Wong" To: freebsd-questions@freebsd.org Date: Fri, 28 Jan 2005 15:45:56 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 28 Jan 2005 15:46:00.0914 (UTC) FILETIME=[776DE320:01C50550] Subject: disklabel missing on a raid-5 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jan 2005 15:46:01 -0000 Hi, I'm having a serious problem with one of my freebsd 4.6-R box. I have always used Freebsd to run my database servers and I've never had such a problem. If anyone knows the solution to my problem below, please let me know because I have some really important data that I badly need. Short story: Someone booted a database server by accident, it won't boot up and got hang up right after post (where the /|\ spinning supposedly begins) so that person booted it again, and again. (three times in total I think). Anyway, since it won't boot up at all, I've decided to install a IDE HD with Freebsd 4.6 on it, boot up the server and attempt to retrieve the database backups from the messed-up raid-5 HDDS that I stored in a /usr/home/backup folder. dmesg says: da0 at asr0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: Tagged Queueing Enabled da0: 70006MB (143372288 512 byte sectors: 255H 63S/T 8924C) Looks good. So I go #mount /dev/da0s1 /mnt It returns: Jan 28 23:22:31 /kernel: da0: cannot find label (no disk label) Jan 28 23:22:31 /kernel: da0s1: cannot find label (no disk label) And I am able to cd to mnt and read everything, but /usr and /var (that's where the data reside) are empty. Then I tried: #fdisk da0 and it returns ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=8924 heads=255 sectors/track=63 (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=8924 heads=255 sectors/track=63 (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,(FreeBSD/NetBSD/386BSD) start 63, size 143363997 (70001 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 254/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: So I tried: # disklabel da0s1 disklabel: ioctl DIOCGDINFO: Invalid argument # disklabel da0 disklabel: ioctl DIOCGDINFO: Invalid argument Is my disklabel missing, and that's why the raid-5 HDDs won't boot up and won't let me mount '/usr' and '/var'? Since the etc directory is accessible I can even access the old '/etc/fstab' and '/etc/disktab', would that help? All I need is to be able to mount /usr and /var and copy the data out to my IDE HD, whether the Raid-5 sys can ever boot up again is secondary. Here's '/etc/fstab' (well '/mnt/etc/fstab'): /dev/da0s1b none swap sw 0 0 /dev/da0s1a / ufs rw 1 1 /dev/da0s1f /usr ufs rw 2 2 /dev/da0s1e /var ufs rw 2 2 /dev/da0s1g /www ufs rw 2 2 /dev/acd0c /cdrom cd9660 ro,noauto 0 0 proc /proc procfs rw 0 0 Also, as a freaked out person desperatly trying to restore the data I tried to mount the slices. I tried: #mount /dev/da0s1f /mnt and it returns mount: /dev/da0s1f on /mnt: incorrect super block If anybody has any idea on how that can be done, please let me know; If any extra info is needed, please let me know and I'll provide them as much as possible. Thanks in advance. _________________________________________________________________ Get 10Mb extra storage for MSN Hotmail. Subscribe Now! http://join.msn.com/?pgmarket=en-hk