Subject: Re: Adding another disk to an Ultra1 - disklabel says ioctl DIOCWDINFO:
To: Jonathan Groll <jonathanjg@wo.co.za>
From: Eduardo Horvath <eeh@netbsd.org>
List: port-sparc
Date: 09/06/2005 16:10:49
On Mon, 5 Sep 2005, Jonathan Groll wrote:

> One more piece of the puzzle, looks like the drive isn't spinning up 
> automatically - relevant lines from dmesg:-
>
>
> scsibus0: waiting 2 seconds for devices to settle...
> sd0 at scsibus0 target 0 lun 0: <IBM-PCCO, DDRS-34560Y   !#, S97B> disk
> fixed
> sd0(esp0:0:0:0):  Check Condition on CDB: 0x00 00 00 00 00 00
>   SENSE KEY:  Not Ready
>    ASC/ASCQ:  Logical Unit Is in Process Of Becoming Ready
>
> sd0: drive offline
> sd0: sync (100.00ns offset 15), 8-bit (10.000MB/s) transfers
> sd1 at scsibus0 target 1 lun 0: <IBM, DCHS04Y, 6363> disk fixed
> sd1: 4303 MB, 6077 cyl, 9 head, 161 sec, 512 bytes/sect x 8813870
> sectors
> sd1: sync (100.00ns offset 15), 8-bit (10.000MB/s) transfers
> sd0(esp0:0:0:0):  Check Condition on CDB: 0x00 00 00 00 00 00
>   SENSE KEY:  Not Ready
>    ASC/ASCQ:  Logical Unit Is in Process Of Becoming Ready
>
> sd0: disk label read error
> root on sd1a dumps on sd1b
> root file system type: ffs 
> I am now at a loss of how to add this drive to the U1, and any insights would 
> be appreciated.

If the drive isn't spinning up you obviously won't be able
to label it.

The Solaris sd driver will automatically send the start/stop unit
command to a disk when it gets this message.  I'm not sure whether
the scsipi framework does the same.

Looks like you have four options:

1) Some drives can be jumpered to spin up on poweron or not.  You
can see if this disk supports that and set the appropriate jumper.

2) Some drives have bits in mode sense pages to select this behavior.  You 
may be able to fiddle with these parameters using the Solaris format 
command.

3) ISTR the scsictl command can be used to send start/stop unit commands 
with the appropriate options.

4) You can try modifying the scsipi drivers to send a start/stop unit when 
it gets a not ready error response.

If sending the stop/start unit command won't spin the disk up it may be 
suffering from some sort of hardware problem.  If that's the case you will 
probably need to replace it.

Eduardo