From howard@eeback.elen.utah.edu Tue Sep 28 16:41:39 1999
Return-Path: <howard@eeback.elen.utah.edu>
Received: from eeback.elen.utah.edu (eeback.elen.utah.edu [128.110.18.4])
	by hub.freebsd.org (Postfix) with ESMTP id 3552415913
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 28 Sep 1999 16:41:28 -0700 (PDT)
	(envelope-from howard@eeback.elen.utah.edu)
Received: (from howard@localhost)
	by eeback.elen.utah.edu (8.9.3/8.9.2) id RAA67298;
	Tue, 28 Sep 1999 17:41:28 -0600 (MDT)
	(envelope-from howard)
Message-Id: <199909282341.RAA67298@eeback.elen.utah.edu>
Date: Tue, 28 Sep 1999 17:41:28 -0600 (MDT)
From: howard@ee.utah.edu
Sender: howard@eeback.elen.utah.edu
Reply-To: howard@ee.utah.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: initializing disk labels under FreeBSD 3.X
X-Send-Pr-Version: 3.2

>Number:         14027
>Category:       i386
>Synopsis:       "disklabel -r -w" on new disk reports "No space left on device"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 28 16:50:01 PDT 1999
>Closed-Date:    Sat Aug 5 16:09:05 PDT 2000
>Last-Modified:  Sat Aug 05 16:09:30 PDT 2000
>Originator:     Walt Howard
>Release:        FreeBSD 3.3-RELEASE i386
>Organization:
University of Utah Electrical Engineering Dept
>Environment:
Dual-686 motherboard (450 MHz)
                 Adaptec 7880 SCSI controller on motherboard
                 IBM DRVS09V 9GB SCSI disk drives (not root drive)
                 System has two IDE drives and a SCSI boot drive

>Description:
Physically add drives at SCSI targets 8 and 9
                   The controller does wide SCSI, and the disks are wide also.
                 run /dev/MAKEDEV da8 da9 da8s1a da8s2a da8s3a da8s4a da9s1a
                 run fdisk to create slices
                   this worked, and left the first 64 sectors for a bootblock.
                   I also tried "fdisk -e", which also worked.
                 add entry for drvs09v-8s1 to /etc/disktab
                   it includes offset, partition-size, blocksize, and
                   fragment-size values for partitions c, e, f, g.
                 run disklabel -r -w da8s1 drvs09v-8s1
                   I tried several variants of the disk-device name.
                   get immediate response "disklabel: No space left on device"
                   find message from kernel in /var/log/messages about lack
                   of existing label on da8

>How-To-Repeat:

	See above.  The prototype files were derived from information on a
        FreeBSD 3.2 machine configured identically.  On that prototype, we
        configured all disks during the install.

        May be related to the existence of the bootblock area; we find
        that we cannot boot from a SCSI disk which has the bootblock
        outside the slices.  There are complaints about no ufs filesystem.

>Fix:
	
	Workaround may be to re-install and configure all disks then.
        I don't know what I'll do if I need to add more disks later.


>Release-Note:
>Audit-Trail:

From: Ruslan Ermilov <ru@ucb.crimea.ua>
To: howard@ee.utah.edu
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: i386/14027: initializing disk labels under FreeBSD 3.X
Date: Wed, 29 Sep 1999 12:27:08 +0300

 On Tue, Sep 28, 1999 at 05:41:28PM -0600, howard@ee.utah.edu wrote:
 > 
 > Physically add drives at SCSI targets 8 and 9
 > The controller does wide SCSI, and the disks are wide also.
 > run /dev/MAKEDEV da8 da9 da8s1a da8s2a da8s3a da8s4a da9s1a
 > run fdisk to create slices
 >   this worked, and left the first 64 sectors for a bootblock.
 >   I also tried "fdisk -e", which also worked.
 > add entry for drvs09v-8s1 to /etc/disktab
 >   it includes offset, partition-size, blocksize, and
 >   fragment-size values for partitions c, e, f, g.
 > run disklabel -r -w da8s1 drvs09v-8s1
 >   I tried several variants of the disk-device name.
 >   get immediate response "disklabel: No space left on device"
 >   find message from kernel in /var/log/messages about lack
 >   of existing label on da8
 > 
 Please tell me whether the following will work for you:
 
 - disklabel /dev/da8 > mylabel
 - edit `mylabel' appropriately with text editor
 - disklabel -R [-B] da8 mylabel
 
 -- 
 Ruslan Ermilov		Sysadmin and DBA of the
 ru@ucb.crimea.ua	United Commercial Bank,
 ru@FreeBSD.org		FreeBSD committer,
 +380.652.247.647	Simferopol, Ukraine
 
 http://www.FreeBSD.org	The Power To Serve
 http://www.oracle.com	Enabling The Information Age
 
State-Changed-From-To: open->feedback 
State-Changed-By: nbm 
State-Changed-When: Sat Aug 5 15:57:22 PDT 2000 
State-Changed-Why:  
Did the drives probe as da8 and da9? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=14027 
State-Changed-From-To: feedback->closed 
State-Changed-By: nbm 
State-Changed-When: Sat Aug 5 16:09:05 PDT 2000 
State-Changed-Why:  
Feedback not possible - mail bounces. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=14027 
>Unformatted:
 Walt Howard
