From owner-freebsd-scsi Tue May 21 2:51: 0 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by hub.freebsd.org (Postfix) with ESMTP id 2F80037B409 for ; Tue, 21 May 2002 02:50:54 -0700 (PDT) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.3/8.12.3) with ESMTP id g4L9oeHc085793 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Tue, 21 May 2002 11:50:45 +0200 (CEST) (envelope-from ticso@cicely5.cicely.de) Received: from cicely5.cicely.de (localhost [IPv6:::1]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id g4L9oc95076628 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 21 May 2002 11:50:38 +0200 (CEST)?g (envelope-from ticso@cicely5.cicely.de) Received: (from ticso@localhost) by cicely5.cicely.de (8.12.1/8.12.1/Submit) id g4L9oaDu076627; Tue, 21 May 2002 11:50:36 +0200 (CEST)?g (envelope-from ticso) Date: Tue, 21 May 2002 11:50:35 +0200 From: Bernd Walter To: David Miller Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: More RAID/disklabel woes Message-ID: <20020521095035.GH72276@cicely5.cicely.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.26i X-Operating-System: FreeBSD cicely5.cicely.de 5.0-CURRENT i386 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sat, May 18, 2002 at 11:30:22PM -0400, David Miller wrote: > avalanche:dmiller# fdisk da0 > ******* Working on device /dev/da0 ******* > parameters extracted from in-core disklabel are: > cylinders=11112 heads=254 sectors/track=63 (16002 blks/cyl) > > Figures below won't work with BIOS for partitions not in cyl 1 > parameters to be used for BIOS calculations are: > cylinders=11112 heads=254 sectors/track=63 (16002 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 0,(unused) > start 0, size 177823422 (86827 Meg), flag 0 > beg: cyl 0/ head 0/ sector 1; > end: cyl 828/ head 253/ sector 63 > The data for partition 2 is: > > The data for partition 3 is: > > The data for partition 4 is: > Fine - you have allocated space for slice 1. > avalanche:dmiller# fdisk da1 > ******* Working on device /dev/da1 ******* > parameters extracted from in-core disklabel are: > cylinders=2213 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=2213 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 35551782 (17359 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: > Also fine - allocated space for slice 1. > ... but it just doesn't want to disklabel: > > avalanche:dmiller# disklabel -w -r da0 auto > disklabel: /dev/da0c: Undefined error: 0 > avalanche:dmiller# disklabel -w -r da1 auto > disklabel: No space left on device Of course it won't. First you need to disklabel da0s1 and da1s1 because you have created a slice fdisk partition table. And you might to wipe out the first blocks of a slice to create a virgin disklabel. E.g. dd if=/dev/zero bs=64k count=10 of=/dev/da1s1 Finaly you want to read the Handbook section about adding new disks - it's all explained there. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message