From owner-freebsd-questions Mon Feb 3 0:28:38 2003 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 429EC37B401 for ; Mon, 3 Feb 2003 00:28:36 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id B31C043F75 for ; Mon, 3 Feb 2003 00:28:34 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id h138SPFu011591 for ; Mon, 3 Feb 2003 08:28:25 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id h138SKmB011590 for FreeBSD-questions@FreeBSD.ORG; Mon, 3 Feb 2003 08:28:20 GMT Date: Mon, 3 Feb 2003 08:28:20 +0000 From: Matthew Seaman To: FreeBSD Questions Subject: Re: Complaints about disk slice sizes on SCSI disk Message-ID: <20030203082820.GB11131@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , FreeBSD Questions References: <20030203070513.GC3213@raggedclown.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030203070513.GC3213@raggedclown.net> User-Agent: Mutt/1.5.3i X-Spam-Status: No, hits=-3.0 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_02_03, USER_AGENT,USER_AGENT_MUTT version=2.44 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Feb 03, 2003 at 08:05:13AM +0100, Cliff Sarginson wrote: > > Hello, > I am getting the following complaints from 4.7-Stable. > > da1 at sym0 bus 0 target 8 lun 0 > da1: Fixed Direct Access SCSI-3 device > da1: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing > Enabled > da1: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C) > da1s2: raw partition size != slice size > da1s2: start 1026048, end 23556095, size 22530048 > da1s2c: start 1026048, end 15358139, size 14332092 > da1s2: raw partition size != slice size > da1s2: start 1026048, end 23556095, size 22530048 > da1s2c: start 1026048, end 15358139, size 14332092 > > > Disk name: da1 FDISK Partition > Editor > DISK Geometry: 17501 cyls/64 heads/32 sectors = 35842048 sectors > (17501MB) > > Offset Size(ST) End Name PType Desc Subtype > Flags > > 0 32 31 - 6 unused 0 > 32 1026016 1026047 da1s1 1 ext2fs 131 > 1026048 22530048 23556095 da1s2 4 extended 5 > 23556096 12285952 35842047 da1s3 3 freebsd 165 C > 35842048 1622 35843669 - 6 unused 0 > > # df -h > Filesystem Size Used Avail Capacity Mounted on > /dev/da0s2a 485M 96M 350M 21% / > /dev/da0s2e 969M 1.0M 891M 0% /local > /dev/da0s2g 13G 6.7G 5.4G 55% /usr > /dev/da0s2f 969M 38M 854M 4% /var > /dev/da1s3e 5.8G 2.8G 2.5G 52% /home > /dev/ad2s2e 9.6G 2.0K 8.8G 0% /empty > /dev/ad2s4e 6.8G 1.8G 4.5G 29% /staging > procfs 4.0K 4.0K 0B 100% /proc > linprocfs 4.0K 4.0K 0B 100% /usr/compat/linux/proc > dawn:/backup 7.9G 2.9G 4.6G 39% /backup-remote Hmmmm... da1s2 is marked as 'extended' under fdisk, and it's not apparently mounted under FreeBSD. However, the boot-up disk scan is finding what looks sufficiently like a FreeBSD disklabel that it is getting confused. I guess that you may at one time have had a FreeBSD slice starting at the same place as your da1s2 slice or maybe you typo'd one time you were using disklabel. Can you show us the output of: disklabel da1s2 What should the da1s2 slice contain? One way of curing the problem would be to zero the slice contents (ie. dd if=/dev/zero of=/dev/da1s2 sort of thing) but that's no good if you've got valuable data there. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message