From owner-freebsd-stable@FreeBSD.ORG Wed Feb 16 20:58:52 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E88916A4CE for ; Wed, 16 Feb 2005 20:58:52 +0000 (GMT) Received: from mail58-s.fg.online.no (mail58-s.fg.online.no [148.122.161.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 71F7E43D3F for ; Wed, 16 Feb 2005 20:58:51 +0000 (GMT) (envelope-from charles-erik@mcdonald.no) Received: from [192.168.1.3] (ti500720a080-9557.bb.online.no [85.166.229.85]) by mail58.fg.online.no (8.12.11/8.12.11) with ESMTP id j1GKwfqf018963; Wed, 16 Feb 2005 21:58:42 +0100 (MET) Received: from 127.0.0.1 (AVG SMTP 7.0.300 [265.8.8]); Wed, 16 Feb 2005 21:58:38 +0100 Message-ID: <4213B3FD.6060400@mcdonald.no> Date: Wed, 16 Feb 2005 21:58:37 +0100 From: Charles Erik McDonald User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en To: Godwin Stewart References: <42134454.7030306@mcdonald.no> <790a9fff05021607456ec0406d@mail.gmail.com> <20050216175920.4f60007c.gstewart@bonivet.net> In-Reply-To: <20050216175920.4f60007c.gstewart@bonivet.net> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed cc: freebsd-stable@freebsd.org Subject: Re: Strange disk problems make the system lock up X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2005 20:58:52 -0000 > >> Do you have any error messages related to ad2 or ad3 in /var/log/messages? no. > >>I have two large disks: > >> > >>/dev/ad2 144G 124G 9.2G 93% /mnt/sp1604n > >>/dev/ad3 226G 202G 5.2G 98% /mnt/wd2500pb > > >Did you use disklabel on these disks (/dev/ad2s1 and /dev/ad3s1) to > >create a partition on the slice? > > The above looks like an excerpt of `df`, meaning that not only was bsdlabel > not used, but neither was fdisk. That could be a problem for some things > that at least expect a partition table somewhere. Correct, it is from 'df', but both disks were initialized from within the fdisk editor in the installer, where I used the "use entire disk" option. Disk name: ad2 FDISK Partition Editor DISK Geometry: 19457 cyls/255 heads/63 sectors = 312576705 sectors (152625MB) Offset Size(ST) End Name PType Desc Subtype Flags 0 63 62 - 12 unused 0 63 312576642 312576704 ad2s1 8 freebsd 165 312576705 5103 312581807 - 12 unused 0 and Disk name: ad3 FDISK Partition Editor DISK Geometry: 30401 cyls/255 heads/63 sectors = 488392065 sectors (238472MB) Offset Size(ST) End Name PType Desc Subtype Flags 0 63 62 - 12 unused 0 63 488392002 488392064 ad3s1 8 freebsd 165 488392065 5103 488397167 - 12 unused 0 So, for example: bastion(root):/usr/src#disklabel /dev/ad2 disklabel: /dev/ad2: no valid label found bastion(root):/usr/src#disklabel /dev/ad2s1 # /dev/ad2s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 312576642 0 unused 0 0 # "raw" part, don't edit bastion(root):/usr/src#disklabel /dev/ad3 disklabel: /dev/ad3: no valid label found bastion(root):/usr/src#disklabel /dev/ad3s1 # /dev/ad3s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 488392002 0 unused 0 0 # "raw" part, don't edit bastion(root):/usr/src# .. it doesn't have valid disklabels on /dev/ad? bastion(root):#mount -t ufs /dev/ad3s1 /mnt/wd2500pb/ mount: /dev/ad3s1 on /mnt/wd2500pb: incorrect super block bastion(root):#mount -t ufs /dev/ad3s1c /mnt/wd2500pb/ mount: /dev/ad3s1c on /mnt/wd2500pb: incorrect super block bastion(root):#mount -t ufs /dev/ad3 /mnt/wd2500pb/ bastion(root):# .. still /dev/ad3 mounts just fine. I can probably use it and it'll be rock steady for a week now before suddenly it'll go offline. If I then try to umount it the system will freeze up. So what I am doing wrong is I've used /dev/ad2 instead of /dev/ad2s1 for my partition? Will I have to reformat the drives and use standard partitions? (why? :-) Thanks for your time, Erik ps. If I am wasting your time please point me in the right direction and I'll do some research on my own. Right now I'm kinda stuck. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14.02.2005